Symbol: handle
lib/libarch/alpha/bwx.c
223
bwx_unmap_memory(void *handle, u_int32_t size)
lib/libarch/alpha/bwx.c
225
struct bwx_mem_handle *h = handle;
lib/libarch/alpha/bwx.c
235
bwx_readb(void *handle, u_int32_t offset)
lib/libarch/alpha/bwx.c
237
struct bwx_mem_handle *h = handle;
lib/libarch/alpha/bwx.c
243
bwx_readw(void *handle, u_int32_t offset)
lib/libarch/alpha/bwx.c
245
struct bwx_mem_handle *h = handle;
lib/libarch/alpha/bwx.c
251
bwx_readl(void *handle, u_int32_t offset)
lib/libarch/alpha/bwx.c
253
struct bwx_mem_handle *h = handle;
lib/libarch/alpha/bwx.c
259
bwx_writeb(void *handle, u_int32_t offset, u_int8_t val)
lib/libarch/alpha/bwx.c
261
struct bwx_mem_handle *h = handle;
lib/libarch/alpha/bwx.c
267
bwx_writew(void *handle, u_int32_t offset, u_int16_t val)
lib/libarch/alpha/bwx.c
269
struct bwx_mem_handle *h = handle;
lib/libarch/alpha/bwx.c
275
bwx_writel(void *handle, u_int32_t offset, u_int32_t val)
lib/libarch/alpha/bwx.c
277
struct bwx_mem_handle *h = handle;
lib/libarch/alpha/io.c
106
unmap_memory(void *handle, u_int32_t size)
lib/libarch/alpha/io.c
108
ops->unmap_memory(handle, size);
lib/libarch/alpha/io.c
112
readb(void *handle, u_int32_t offset)
lib/libarch/alpha/io.c
114
return ops->readb(handle, offset);
lib/libarch/alpha/io.c
118
readw(void *handle, u_int32_t offset)
lib/libarch/alpha/io.c
120
return ops->readw(handle, offset);
lib/libarch/alpha/io.c
124
readl(void *handle, u_int32_t offset)
lib/libarch/alpha/io.c
126
return ops->readl(handle, offset);
lib/libarch/alpha/io.c
130
writeb(void *handle, u_int32_t offset, u_int8_t val)
lib/libarch/alpha/io.c
132
ops->writeb(handle, offset, val);
lib/libarch/alpha/io.c
137
writew(void *handle, u_int32_t offset, u_int16_t val)
lib/libarch/alpha/io.c
139
ops->writew(handle, offset, val);
lib/libarch/alpha/io.c
144
writel(void *handle, u_int32_t offset, u_int32_t val)
lib/libarch/alpha/io.c
146
ops->writel(handle, offset, val);
lib/libarch/alpha/io.c
151
writeb_nb(void *handle, u_int32_t offset, u_int8_t val)
lib/libarch/alpha/io.c
153
ops->writeb(handle, offset, val);
lib/libarch/alpha/io.c
157
writew_nb(void *handle, u_int32_t offset, u_int16_t val)
lib/libarch/alpha/io.c
159
ops->writew(handle, offset, val);
lib/libarch/alpha/io.c
163
writel_nb(void *handle, u_int32_t offset, u_int32_t val)
lib/libarch/alpha/io.c
165
ops->writel(handle, offset, val);
lib/libc/dlfcn/dlfcn_stubs.c
49
dlclose(void *handle)
lib/libc/dlfcn/dlfcn_stubs.c
52
return _dl_cb->dlclose(handle);
lib/libc/dlfcn/dlfcn_stubs.c
58
dlsym(void *handle, const char *name)
lib/libc/dlfcn/dlfcn_stubs.c
61
return _dl_cb->dlsym(handle, name);
lib/libc/dlfcn/dlfcn_stubs.c
67
dlctl(void *handle, int command, void *data)
lib/libc/dlfcn/dlfcn_stubs.c
70
return _dl_cb->dlctl(handle, command, data);
lib/libcbor/src/cbor/bytestrings.c
61
cbor_item_t *cbor_build_bytestring(cbor_data handle, size_t length) {
lib/libcbor/src/cbor/bytestrings.c
66
memcpy(content, handle, length);
lib/libcbor/src/cbor/bytestrings.h
136
CBOR_EXPORT cbor_item_t *cbor_build_bytestring(cbor_data handle, size_t length);
lib/libcbor/src/cbor/common.c
100
cbor_decref(&handle[i]);
lib/libcbor/src/cbor/common.c
112
cbor_item_t **handle = cbor_string_chunks_handle(item);
lib/libcbor/src/cbor/common.c
114
cbor_decref(&handle[i]);
lib/libcbor/src/cbor/common.c
123
cbor_item_t **handle = cbor_array_handle(item);
lib/libcbor/src/cbor/common.c
126
if (handle[i] != NULL) cbor_decref(&handle[i]);
lib/libcbor/src/cbor/common.c
131
struct cbor_pair *handle = cbor_map_handle(item);
lib/libcbor/src/cbor/common.c
133
i++, handle++) {
lib/libcbor/src/cbor/common.c
134
cbor_decref(&handle->key);
lib/libcbor/src/cbor/common.c
135
if (handle->value != NULL) cbor_decref(&handle->value);
lib/libcbor/src/cbor/common.c
98
cbor_item_t **handle = cbor_bytestring_chunks_handle(item);
lib/libcbor/src/cbor/serialization.c
274
cbor_item_t **handle = cbor_array_handle(item);
lib/libcbor/src/cbor/serialization.c
285
cbor_serialize(*(handle++), buffer + written, buffer_size - written);
lib/libcbor/src/cbor/serialization.c
305
struct cbor_pair *handle = cbor_map_handle(item);
lib/libcbor/src/cbor/serialization.c
317
cbor_serialize(handle->key, buffer + written, buffer_size - written);
lib/libcbor/src/cbor/serialization.c
322
item_written = cbor_serialize((handle++)->value, buffer + written,
lib/libcbor/src/cbor/strings.c
45
unsigned char *handle = _cbor_malloc(len);
lib/libcbor/src/cbor/strings.c
46
_CBOR_DEPENDENT_NOTNULL(item, handle);
lib/libcbor/src/cbor/strings.c
47
memcpy(handle, val, len);
lib/libcbor/src/cbor/strings.c
48
cbor_string_set_handle(item, handle, len);
lib/libcbor/src/cbor/strings.c
55
unsigned char *handle = _cbor_malloc(length);
lib/libcbor/src/cbor/strings.c
56
_CBOR_DEPENDENT_NOTNULL(item, handle);
lib/libcbor/src/cbor/strings.c
57
memcpy(handle, val, length);
lib/libcbor/src/cbor/strings.c
58
cbor_string_set_handle(item, handle, length);
lib/libcurses/tinfo/lib_win32con.c
1182
#define SaveConsoleMode(handle, value) \
lib/libcurses/tinfo/lib_win32con.c
1183
GetConsoleMode(WINCONSOLE.handle, &WINCONSOLE.originalMode.value)
lib/libcurses/tinfo/lib_win32util.c
64
HANDLE handle = _nc_console_handle(fd);
lib/libcurses/tinfo/lib_win32util.c
70
if (handle != INVALID_HANDLE_VALUE) {
lib/libcurses/tinfo/lib_win32util.c
71
dw = GetFileType(handle);
lib/libcurses/tinfo/lib_win32util.c
73
if (GetNamedPipeInfo(handle, 0, 0, 0, 0)) {
lib/libcurses/tinfo/lib_win32util.c
76
if (GetNamedPipeServerProcessId(handle, &pPid)) {
lib/libfido2/src/hid_openbsd.c
174
fido_hid_close(void *handle)
lib/libfido2/src/hid_openbsd.c
176
struct hid_openbsd *ctx = (struct hid_openbsd *)handle;
lib/libfido2/src/hid_openbsd.c
185
fido_hid_set_sigmask(void *handle, const fido_sigset_t *sigmask)
lib/libfido2/src/hid_openbsd.c
187
struct hid_openbsd *ctx = handle;
lib/libfido2/src/hid_openbsd.c
196
fido_hid_read(void *handle, unsigned char *buf, size_t len, int ms)
lib/libfido2/src/hid_openbsd.c
198
struct hid_openbsd *ctx = (struct hid_openbsd *)handle;
lib/libfido2/src/hid_openbsd.c
226
fido_hid_write(void *handle, const unsigned char *buf, size_t len)
lib/libfido2/src/hid_openbsd.c
228
struct hid_openbsd *ctx = (struct hid_openbsd *)handle;
lib/libfido2/src/hid_openbsd.c
251
fido_hid_report_in_len(void *handle)
lib/libfido2/src/hid_openbsd.c
253
struct hid_openbsd *ctx = handle;
lib/libfido2/src/hid_openbsd.c
259
fido_hid_report_out_len(void *handle)
lib/libfido2/src/hid_openbsd.c
261
struct hid_openbsd *ctx = handle;
lib/libpcap/pcap.c
579
struct pcap *handle;
lib/libpcap/pcap.c
581
while ((handle = pcaps_to_close) != NULL)
lib/libpcap/pcap.c
582
pcap_close(handle);
lib/librthread/rthread.c
56
int dlctl(void *handle, int cmd, void *data) { return 0; }
libexec/ld.so/dlfcn.c
164
dlsym(void *handle, const char *name)
libexec/ld.so/dlfcn.c
172
if (handle == NULL || handle == RTLD_NEXT ||
libexec/ld.so/dlfcn.c
173
handle == RTLD_SELF || handle == RTLD_DEFAULT) {
libexec/ld.so/dlfcn.c
183
if (handle == RTLD_NEXT)
libexec/ld.so/dlfcn.c
185
else if (handle == RTLD_SELF)
libexec/ld.so/dlfcn.c
187
else if (handle == RTLD_DEFAULT)
libexec/ld.so/dlfcn.c
193
object = (elf_object_t *)handle;
libexec/ld.so/dlfcn.c
224
dlctl(void *handle, int command, void *data)
libexec/ld.so/dlfcn.c
294
dlclose(void *handle)
libexec/ld.so/dlfcn.c
299
if (handle == RTLD_DEFAULT)
libexec/ld.so/dlfcn.c
309
retval = _dl_real_close(handle);
libexec/ld.so/dlfcn.c
320
_dl_real_close(void *handle)
libexec/ld.so/dlfcn.c
325
object = (elf_object_t *)handle;
libexec/ld.so/dlfcn.c
43
static int _dl_real_close(void *handle);
regress/lib/libpthread/dlopen/dlopen.c
596
void *handle;
regress/lib/libpthread/dlopen/dlopen.c
661
if ((handle = dlopen("libpthread.so", RTLD_LAZY)) == NULL)
regress/lib/libpthread/dlopen/dlopen.c
666
if ((*(void **)f->callback = dlsym(handle, f->name)) == NULL &&
regress/lib/libpthread/dlopen/dlopen.c
692
if (dlclose(handle))
regress/lib/libpthread/pcap/pcap.c
33
pcap_t *handle;
regress/lib/libpthread/pcap/pcap.c
38
handle = pcap_open_live(LOOPBACK_IF, SNAPLEN, NO_PROMISC, 0, errbuf);
regress/lib/libpthread/pcap/pcap.c
39
if (!handle)
regress/lib/libpthread/pcap/pcap.c
41
ASSERT(ioctl(pcap_fileno(handle), BIOCIMMEDIATE, &on) != -1);
regress/lib/libpthread/pcap/pcap.c
44
ASSERT(pcap_loop(handle, PKTCNT, packet_ignore, 0) != -1);
regress/libexec/ld.so/dlopen/prog3/main.c
12
void *handle;
regress/libexec/ld.so/dlopen/prog3/main.c
15
handle = dlopen("libac.so.0.0", RTLD_LAZY);
regress/libexec/ld.so/dlopen/prog3/main.c
16
if (handle == NULL) {
regress/libexec/ld.so/dlopen/prog4/main.c
12
void *handle;
regress/libexec/ld.so/dlopen/prog4/main.c
15
handle = dlopen("libac.so.0.0", RTLD_LAZY);
regress/libexec/ld.so/dlopen/prog4/main.c
16
if (handle != NULL) {
regress/libexec/ld.so/lazy/prog/prog.c
20
handle = dlopen(FOO, RTLD_LAZY|RTLD_GLOBAL);
regress/libexec/ld.so/lazy/prog/prog.c
21
if (handle == NULL) {
regress/libexec/ld.so/lazy/prog/prog.c
26
foo = (foofunc)dlsym(handle, "foo");
regress/libexec/ld.so/lazy/prog/prog.c
9
void *handle = NULL;
regress/libexec/ld.so/link-order/prog/prog.c
11
if (handle == NULL)
regress/libexec/ld.so/link-order/prog/prog.c
13
version = dlsym(handle, "version");
regress/libexec/ld.so/link-order/prog/prog.c
17
dlclose(handle);
regress/libexec/ld.so/link-order/prog/prog.c
8
void *handle = dlopen("libtest.so", DL_LAZY);
regress/libexec/ld.so/noload/test1/test1.c
17
void *handle;
regress/libexec/ld.so/noload/test1/test1.c
20
if ((handle = dlopen(LIBANAME, RTLD_NOW|RTLD_NOLOAD)))
regress/libexec/ld.so/noload/test1/test1.c
22
else if ((handle = dlopen(LIBBNAME, RTLD_NOW|RTLD_NOLOAD)))
regress/sys/kern/xonly/xonly.c
155
void *dlopenp, *handle;
regress/sys/kern/xonly/xonly.c
157
handle = dlopen("ld.so", RTLD_NOW);
regress/sys/kern/xonly/xonly.c
158
if (handle == NULL)
regress/sys/kern/xonly/xonly.c
160
dlopenp = dlsym(handle, "dlopen");
sbin/init/init.c
260
handle(disaster, SIGABRT, SIGFPE, SIGILL, SIGSEGV,
sbin/init/init.c
262
handle(transition_handler, SIGHUP, SIGINT, SIGTERM, SIGTSTP,
sbin/init/init.c
264
handle(alrm_handler, SIGALRM, 0);
sbin/init/init.c
87
void handle(sig_t, ...);
sys/arch/alpha/alpha/clock.c
104
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/alpha/alpha/clock.c
80
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/amd64/amd64/acpi_machdep.c
105
acpi_map(paddr_t pa, size_t len, struct acpi_mem_map *handle)
sys/arch/amd64/amd64/acpi_machdep.c
115
handle->baseva = va;
sys/arch/amd64/amd64/acpi_machdep.c
116
handle->va = (u_int8_t *)(va + (pa & PGOFSET));
sys/arch/amd64/amd64/acpi_machdep.c
117
handle->vsize = endpa - pgpa;
sys/arch/amd64/amd64/acpi_machdep.c
118
handle->pa = pa;
sys/arch/amd64/amd64/acpi_machdep.c
130
acpi_unmap(struct acpi_mem_map *handle)
sys/arch/amd64/amd64/acpi_machdep.c
132
pmap_kremove(handle->baseva, handle->vsize);
sys/arch/amd64/amd64/acpi_machdep.c
133
km_free((void *)handle->baseva, handle->vsize, &kv_any, &kp_none);
sys/arch/amd64/amd64/acpi_machdep.c
210
acpi_scan(struct acpi_mem_map *handle, paddr_t pa, size_t len)
sys/arch/amd64/amd64/acpi_machdep.c
216
if (acpi_map(pa, len, handle))
sys/arch/amd64/amd64/acpi_machdep.c
218
for (ptr = handle->va, i = 0; i < len; ptr += 16, i += 16) {
sys/arch/amd64/amd64/acpi_machdep.c
235
acpi_unmap(handle);
sys/arch/amd64/amd64/acpi_machdep.c
244
struct acpi_mem_map handle;
sys/arch/amd64/amd64/acpi_machdep.c
252
if (acpi_scan(&handle, ba->ba_acpipbase, 16) != NULL) {
sys/arch/amd64/amd64/acpi_machdep.c
253
acpi_unmap(&handle);
sys/arch/amd64/amd64/acpi_machdep.c
262
if (acpi_map(0, NBPG, &handle))
sys/arch/amd64/amd64/acpi_machdep.c
265
ebda = *(const u_int16_t *)(&handle.va[0x40e]);
sys/arch/amd64/amd64/acpi_machdep.c
267
acpi_unmap(&handle);
sys/arch/amd64/amd64/acpi_machdep.c
270
if ((ptr = acpi_scan(&handle, ebda, 1024)))
sys/arch/amd64/amd64/acpi_machdep.c
279
if ((ptr = acpi_scan(&handle, ACPI_BIOS_RSDP_WINDOW_BASE,
sys/arch/amd64/amd64/acpi_machdep.c
286
ba->ba_acpipbase = ptr - handle.va + handle.pa;
sys/arch/amd64/amd64/acpi_machdep.c
287
acpi_unmap(&handle);
sys/arch/amd64/amd64/mpbios.c
248
mpbios_map(paddr_t pa, int len, struct mp_map *handle)
sys/arch/amd64/amd64/mpbios.c
256
handle->pa = pa;
sys/arch/amd64/amd64/mpbios.c
257
handle->pg = pgpa;
sys/arch/amd64/amd64/mpbios.c
258
handle->psize = len;
sys/arch/amd64/amd64/mpbios.c
259
handle->baseva = va;
sys/arch/amd64/amd64/mpbios.c
260
handle->vsize = endpa - pgpa;
sys/arch/amd64/amd64/mpbios.c
272
mpbios_unmap(struct mp_map *handle)
sys/arch/amd64/amd64/mpbios.c
274
pmap_kremove(handle->baseva, handle->vsize);
sys/arch/amd64/amd64/mpbios.c
275
km_free((void *)handle->baseva, handle->vsize, &kv_any, &kp_none);
sys/arch/amd64/include/bus.h
477
handle, bus_size_t offset, bus_size_t length, int flags)
sys/arch/amd64/include/smbiosvar.h
188
uint16_t handle; /* chassis handle */
sys/arch/amd64/include/smbiosvar.h
87
uint16_t handle;
sys/arch/amd64/isa/clock.c
435
rtcgettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/amd64/isa/clock.c
467
rtcsettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/amd64/stand/efiboot/efidev.c
72
efid_init(struct diskinfo *dip, void *handle)
sys/arch/amd64/stand/efiboot/efidev.c
74
EFI_BLOCK_IO *blkio = handle;
sys/arch/amd64/stand/efiboot/efidev.h
32
void efid_init(struct diskinfo *, void *handle);
sys/arch/arm64/arm64/acpi_machdep.c
101
acpi_unmap(struct acpi_mem_map *handle)
sys/arch/arm64/arm64/acpi_machdep.c
103
pmap_kremove(handle->baseva, handle->vsize);
sys/arch/arm64/arm64/acpi_machdep.c
104
km_free((void *)handle->baseva, handle->vsize, &kv_any, &kp_none);
sys/arch/arm64/arm64/acpi_machdep.c
76
acpi_map(paddr_t pa, size_t len, struct acpi_mem_map *handle)
sys/arch/arm64/arm64/acpi_machdep.c
86
handle->baseva = va;
sys/arch/arm64/arm64/acpi_machdep.c
87
handle->va = (u_int8_t *)(va + (pa & PGOFSET));
sys/arch/arm64/arm64/acpi_machdep.c
88
handle->vsize = endpa - pgpa;
sys/arch/arm64/arm64/acpi_machdep.c
89
handle->pa = pa;
sys/arch/arm64/dev/aplpmu.c
167
aplpmu_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplpmu.c
169
struct aplpmu_softc *sc = handle->cookie;
sys/arch/arm64/dev/aplpmu.c
186
aplpmu_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplpmu.c
188
struct aplpmu_softc *sc = handle->cookie;
sys/arch/arm64/dev/aplsmc.c
734
aplsmc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplsmc.c
736
struct aplsmc_softc *sc = handle->cookie;
sys/arch/arm64/dev/aplsmc.c
758
aplsmc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplsmc.c
760
struct aplsmc_softc *sc = handle->cookie;
sys/arch/arm64/dev/efi_machdep.c
290
efi_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/efi_machdep.c
292
struct efi_softc *sc = handle->cookie;
sys/arch/arm64/dev/efi_machdep.c
323
efi_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/efi_machdep.c
325
struct efi_softc *sc = handle->cookie;
sys/arch/arm64/include/smbiosvar.h
185
uint16_t handle; /* chassis handle */
sys/arch/arm64/include/smbiosvar.h
84
uint16_t handle;
sys/arch/arm64/stand/efiboot/efidev.c
60
efid_init(struct diskinfo *dip, void *handle)
sys/arch/arm64/stand/efiboot/efidev.c
62
EFI_BLOCK_IO *blkio = handle;
sys/arch/arm64/stand/efiboot/efidev.h
32
void efid_init(struct diskinfo *, void *handle);
sys/arch/armv7/marvell/mvortc.c
173
mvortc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/armv7/marvell/mvortc.c
175
struct mvortc_softc *sc = handle->cookie;
sys/arch/armv7/marvell/mvortc.c
183
mvortc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/armv7/marvell/mvortc.c
185
struct mvortc_softc *sc = handle->cookie;
sys/arch/armv7/stand/efiboot/efidev.c
60
efid_init(struct diskinfo *dip, void *handle)
sys/arch/armv7/stand/efiboot/efidev.c
62
EFI_BLOCK_IO *blkio = handle;
sys/arch/armv7/stand/efiboot/efidev.h
32
void efid_init(struct diskinfo *, void *handle);
sys/arch/hppa/dev/clock.c
75
pdc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/hppa/dev/clock.c
92
pdc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/i386/i386/acpi_machdep.c
108
acpi_map(paddr_t pa, size_t len, struct acpi_mem_map *handle)
sys/arch/i386/i386/acpi_machdep.c
118
handle->baseva = va;
sys/arch/i386/i386/acpi_machdep.c
119
handle->va = (u_int8_t *)(va + (u_long)(pa & PGOFSET));
sys/arch/i386/i386/acpi_machdep.c
120
handle->vsize = endpa - pgpa;
sys/arch/i386/i386/acpi_machdep.c
121
handle->pa = pa;
sys/arch/i386/i386/acpi_machdep.c
133
acpi_unmap(struct acpi_mem_map *handle)
sys/arch/i386/i386/acpi_machdep.c
135
pmap_kremove(handle->baseva, handle->vsize);
sys/arch/i386/i386/acpi_machdep.c
136
km_free((void *)handle->baseva, handle->vsize, &kv_any, &kp_none);
sys/arch/i386/i386/acpi_machdep.c
154
acpi_scan(struct acpi_mem_map *handle, paddr_t pa, size_t len)
sys/arch/i386/i386/acpi_machdep.c
160
if (acpi_map(pa, len, handle))
sys/arch/i386/i386/acpi_machdep.c
162
for (ptr = handle->va, i = 0; i < len; ptr += 16, i += 16) {
sys/arch/i386/i386/acpi_machdep.c
179
acpi_unmap(handle);
sys/arch/i386/i386/acpi_machdep.c
188
struct acpi_mem_map handle;
sys/arch/i386/i386/acpi_machdep.c
198
if (acpi_map(0, NBPG, &handle))
sys/arch/i386/i386/acpi_machdep.c
201
ebda = *(const u_int16_t *)(&handle.va[0x40e]);
sys/arch/i386/i386/acpi_machdep.c
203
acpi_unmap(&handle);
sys/arch/i386/i386/acpi_machdep.c
206
if ((ptr = acpi_scan(&handle, ebda, 1024)))
sys/arch/i386/i386/acpi_machdep.c
215
if ((ptr = acpi_scan(&handle, ACPI_BIOS_RSDP_WINDOW_BASE,
sys/arch/i386/i386/acpi_machdep.c
222
ba->ba_acpipbase = ptr - handle.va + handle.pa;
sys/arch/i386/i386/acpi_machdep.c
223
acpi_unmap(&handle);
sys/arch/i386/i386/mpbios.c
247
mpbios_map(paddr_t pa, int len, struct mp_map *handle)
sys/arch/i386/i386/mpbios.c
255
handle->pa = pa;
sys/arch/i386/i386/mpbios.c
256
handle->pg = pgpa;
sys/arch/i386/i386/mpbios.c
257
handle->psize = len;
sys/arch/i386/i386/mpbios.c
258
handle->baseva = va;
sys/arch/i386/i386/mpbios.c
259
handle->vsize = endpa - pgpa;
sys/arch/i386/i386/mpbios.c
271
mpbios_unmap(struct mp_map *handle)
sys/arch/i386/i386/mpbios.c
273
pmap_kremove(handle->baseva, handle->vsize);
sys/arch/i386/i386/mpbios.c
274
km_free((void *)handle->baseva, handle->vsize, &kv_any, &kp_none);
sys/arch/i386/include/smbiosvar.h
188
uint16_t handle; /* chassis handle */
sys/arch/i386/include/smbiosvar.h
87
uint16_t handle;
sys/arch/i386/isa/clock.c
581
rtcgettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/i386/isa/clock.c
613
rtcsettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/loongson/dev/mcclock.c
103
mcclock_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/loongson/dev/mcclock.c
106
struct mcclock_softc *sc = handle->cookie;
sys/arch/loongson/dev/mcclock.c
76
mcclock_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/loongson/dev/mcclock.c
79
struct mcclock_softc *sc = handle->cookie;
sys/arch/luna88k/cbus/i82365_cbus.c
312
h = &sc->handle[i];
sys/arch/luna88k/include/bus.h
201
bus_space_read_multi_1(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
205
*dest++ = bus_space_read_1(tag, handle, offset);
sys/arch/luna88k/include/bus.h
209
bus_space_read_multi_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
213
*dest++ = bus_space_read_2(tag, handle, offset);
sys/arch/luna88k/include/bus.h
217
bus_space_read_multi_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
221
*dest++ = bus_space_read_4(tag, handle, offset);
sys/arch/luna88k/include/bus.h
229
bus_space_read_raw_multi_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
235
__bus_space_read_2(tag, handle, offset);
sys/arch/luna88k/include/bus.h
241
bus_space_read_raw_multi_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
247
__bus_space_read_4(tag, handle, offset);
sys/arch/luna88k/include/bus.h
263
bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
267
*dest++ = bus_space_read_1(tag, handle, offset++);
sys/arch/luna88k/include/bus.h
271
bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
275
*dest++ = bus_space_read_2(tag, handle, offset);
sys/arch/luna88k/include/bus.h
281
bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
285
*dest++ = bus_space_read_4(tag, handle, offset);
sys/arch/luna88k/include/bus.h
334
bus_space_write_multi_1(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
338
bus_space_write_1(tag, handle, offset, *dest++);
sys/arch/luna88k/include/bus.h
342
bus_space_write_multi_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
346
bus_space_write_2(tag, handle, offset, *dest++);
sys/arch/luna88k/include/bus.h
350
bus_space_write_multi_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
354
bus_space_write_4(tag, handle, offset, *dest++);
sys/arch/luna88k/include/bus.h
363
bus_space_write_raw_multi_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
368
__bus_space_write_2(tag, handle, offset,*(u_int16_t *)dest);
sys/arch/luna88k/include/bus.h
374
bus_space_write_raw_multi_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
379
__bus_space_write_4(tag, handle, offset, *(u_int32_t *)dest);
sys/arch/luna88k/include/bus.h
394
bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
398
bus_space_write_1(tag, handle, offset++, *dest++);
sys/arch/luna88k/include/bus.h
402
bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
406
bus_space_write_2(tag, handle, offset, *dest++);
sys/arch/luna88k/include/bus.h
412
bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
416
bus_space_write_4(tag, handle, offset, *dest++);
sys/arch/luna88k/include/bus.h
436
bus_space_set_multi_1(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
440
bus_space_write_1(tag, handle, offset, value);
sys/arch/luna88k/include/bus.h
444
bus_space_set_multi_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
448
bus_space_write_2(tag, handle, offset, value);
sys/arch/luna88k/include/bus.h
452
bus_space_set_multi_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
456
bus_space_write_4(tag, handle, offset, value);
sys/arch/luna88k/include/bus.h
474
bus_space_set_region_1(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
478
bus_space_write_1(tag, handle, offset++, value);
sys/arch/luna88k/include/bus.h
482
bus_space_set_region_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
486
bus_space_write_2(tag, handle, offset, value);
sys/arch/luna88k/include/bus.h
492
bus_space_set_region_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/luna88k/include/bus.h
496
bus_space_write_4(tag, handle, offset, value);
sys/arch/luna88k/luna88k/clock.c
71
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/luna88k/luna88k/clock.c
82
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/macppc/include/bus.h
75
void bus_space_free(bus_space_tag_t tag, bus_space_handle_t handle,
sys/arch/macppc/macppc/clock.c
109
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/macppc/macppc/clock.c
95
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/macppc/macppc/opendev.c
162
int handle;
sys/arch/macppc/macppc/opendev.c
179
ret = args.handle;
sys/arch/macppc/macppc/opendev.c
185
OF_close(int handle)
sys/arch/macppc/macppc/opendev.c
191
int handle;
sys/arch/macppc/macppc/opendev.c
200
args.handle = handle;
sys/arch/macppc/macppc/opendev.c
209
OF_read(int handle, void *addr, int len)
sys/arch/macppc/macppc/opendev.c
228
args.ihandle = handle;
sys/arch/macppc/macppc/opendev.c
256
OF_write(int handle, void *addr, int len)
sys/arch/macppc/macppc/opendev.c
275
args.ihandle = handle;
sys/arch/macppc/macppc/opendev.c
295
OF_seek(int handle, u_quad_t pos)
sys/arch/macppc/macppc/opendev.c
301
int handle;
sys/arch/macppc/macppc/opendev.c
314
args.handle = handle;
sys/arch/macppc/macppc/openfirm.c
127
OF_getproplen(int handle, char *prop)
sys/arch/macppc/macppc/openfirm.c
145
args.phandle = handle;
sys/arch/macppc/macppc/openfirm.c
156
OF_getprop(int handle, char *prop, void *buf, int buflen)
sys/arch/macppc/macppc/openfirm.c
178
args.phandle = handle;
sys/arch/macppc/macppc/openfirm.c
194
OF_setprop(int handle, char *prop, const void *buf, int buflen)
sys/arch/macppc/macppc/openfirm.c
216
args.phandle = handle;
sys/arch/macppc/macppc/openfirm.c
230
OF_nextprop(int handle, char *prop, void *nextprop)
sys/arch/macppc/macppc/openfirm.c
249
args.phandle = handle;
sys/arch/macppc/stand/Locore.c
197
OF_getprop(int handle, char *prop, void *buf, int buflen)
sys/arch/macppc/stand/Locore.c
214
args.phandle = handle;
sys/arch/macppc/stand/Locore.c
231
int handle;
sys/arch/macppc/stand/Locore.c
241
return args.handle;
sys/arch/macppc/stand/Locore.c
245
OF_close(int handle)
sys/arch/macppc/stand/Locore.c
251
int handle;
sys/arch/macppc/stand/Locore.c
258
args.handle = handle;
sys/arch/macppc/stand/Locore.c
263
OF_write(int handle, void *addr, int len)
sys/arch/macppc/stand/Locore.c
279
args.ihandle = handle;
sys/arch/macppc/stand/Locore.c
288
OF_read(int handle, void *addr, int len)
sys/arch/macppc/stand/Locore.c
304
args.ihandle = handle;
sys/arch/macppc/stand/Locore.c
313
OF_seek(int handle, u_quad_t pos)
sys/arch/macppc/stand/Locore.c
319
int handle;
sys/arch/macppc/stand/Locore.c
329
args.handle = handle;
sys/arch/macppc/stand/netif_of.c
101
OF_getprop(OF_instance_to_package(op->handle),
sys/arch/macppc/stand/netif_of.c
177
rv = OF_write(op->handle, pkt, sendlen);
sys/arch/macppc/stand/netif_of.c
208
len = OF_read(op->handle, pkt, maxlen);
sys/arch/macppc/stand/netif_of.c
99
OF_getprop(OF_instance_to_package(op->handle),
sys/arch/macppc/stand/ofdev.c
104
if (OF_seek(dev->handle, pos) < 0)
sys/arch/macppc/stand/ofdev.c
106
n = OF_read(dev->handle, buf, size);
sys/arch/macppc/stand/ofdev.c
125
OF_call_method("dma-free", op->handle, 2, 0,
sys/arch/macppc/stand/ofdev.c
128
OF_close(op->handle);
sys/arch/macppc/stand/ofdev.c
299
int handle, part;
sys/arch/macppc/stand/ofdev.c
310
if ((handle = OF_finddevice(fname)) == -1)
sys/arch/macppc/stand/ofdev.c
312
if (OF_getprop(handle, "name", buf, sizeof buf) < 0)
sys/arch/macppc/stand/ofdev.c
314
if (OF_getprop(handle, "device_type", buf, sizeof buf) < 0)
sys/arch/macppc/stand/ofdev.c
326
if ((handle = OF_open(fname)) == -1) {
sys/arch/macppc/stand/ofdev.c
331
ofdev->handle = handle;
sys/arch/macppc/stand/ofdev.c
333
OF_call_method("dma-alloc", handle, 1, 1, MAXBSIZE, &ofdev->dmabuf);
sys/arch/macppc/stand/ofdev.c
382
OF_close(handle);
sys/arch/macppc/stand/ofdev.h
38
int handle;
sys/arch/macppc/stand/openfirm.h
42
int OF_getprop(int handle, char *prop, void *buf, int buflen);
sys/arch/macppc/stand/openfirm.h
44
int OF_setprop(int handle, char *prop, void *buf, int len);
sys/arch/macppc/stand/openfirm.h
47
void OF_close(int handle);
sys/arch/macppc/stand/openfirm.h
48
int OF_write(int handle, void *addr, int len);
sys/arch/macppc/stand/openfirm.h
49
int OF_read(int handle, void *addr, int len);
sys/arch/macppc/stand/openfirm.h
50
int OF_seek(int handle, u_quad_t pos);
sys/arch/octeon/dev/cn30xxuart.c
239
uartbus_read_1(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t off)
sys/arch/octeon/dev/cn30xxuart.c
241
return *(volatile uint64_t *)(handle + (off << 3));
sys/arch/octeon/dev/cn30xxuart.c
245
uartbus_write_1(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t off,
sys/arch/octeon/dev/cn30xxuart.c
248
volatile uint64_t *reg = (uint64_t *)(handle + (off << 3));
sys/arch/octeon/dev/octrtc.c
123
octrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/octeon/dev/octrtc.c
238
octrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/powerpc/powerpc/bus_space.c
208
bus_space_free(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t size)
sys/arch/powerpc64/include/smbiosvar.h
185
uint16_t handle; /* chassis handle */
sys/arch/powerpc64/include/smbiosvar.h
84
uint16_t handle;
sys/arch/riscv64/dev/smtpmic.c
252
smtpmic_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/riscv64/dev/smtpmic.c
254
struct smtpmic_softc *sc = handle->cookie;
sys/arch/riscv64/dev/smtpmic.c
274
smtpmic_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/riscv64/dev/smtpmic.c
276
struct smtpmic_softc *sc = handle->cookie;
sys/arch/riscv64/stand/efiboot/efidev.c
60
efid_init(struct diskinfo *dip, void *handle)
sys/arch/riscv64/stand/efiboot/efidev.c
62
EFI_BLOCK_IO *blkio = handle;
sys/arch/riscv64/stand/efiboot/efidev.h
32
void efid_init(struct diskinfo *, void *handle);
sys/arch/sh/sh/clock.c
227
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/sh/sh/clock.c
238
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
100
todr_handle = handle;
sys/arch/sparc64/dev/prtc.c
104
prtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
118
prtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
124
prtc_opl_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
148
prtc_opl_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
162
if (prtc_opl_gettime(handle, &otv) == -1)
sys/arch/sparc64/dev/prtc.c
76
todr_chip_handle_t handle = &sc->sc_todr_chip;
sys/arch/sparc64/dev/prtc.c
88
handle->cookie = sc;
sys/arch/sparc64/dev/prtc.c
90
handle->todr_gettime = prtc_opl_gettime;
sys/arch/sparc64/dev/prtc.c
91
handle->todr_settime = prtc_opl_settime;
sys/arch/sparc64/dev/prtc.c
93
handle->todr_gettime = prtc_gettime;
sys/arch/sparc64/dev/prtc.c
94
handle->todr_settime = prtc_settime;
sys/arch/sparc64/dev/prtc.c
97
handle->bus_cookie = NULL;
sys/arch/sparc64/dev/prtc.c
98
handle->todr_setwen = NULL;
sys/arch/sparc64/dev/prtc.c
99
handle->todr_quality = 0;
sys/arch/sparc64/dev/rtc.c
138
todr_chip_handle_t handle;
sys/arch/sparc64/dev/rtc.c
161
handle = malloc(sizeof(struct todr_chip_handle), M_DEVBUF, M_NOWAIT);
sys/arch/sparc64/dev/rtc.c
162
if (handle == NULL)
sys/arch/sparc64/dev/rtc.c
164
handle->cookie = sc;
sys/arch/sparc64/dev/rtc.c
165
handle->todr_gettime = rtc_gettime;
sys/arch/sparc64/dev/rtc.c
166
handle->todr_settime = rtc_settime;
sys/arch/sparc64/dev/rtc.c
167
handle->bus_cookie = NULL;
sys/arch/sparc64/dev/rtc.c
168
handle->todr_setwen = NULL;
sys/arch/sparc64/dev/rtc.c
169
handle->todr_quality = 0;
sys/arch/sparc64/dev/rtc.c
170
todr_handle = handle;
sys/arch/sparc64/dev/rtc.c
174
handle->todr_gettime = rtc_bq4802_gettime;
sys/arch/sparc64/dev/rtc.c
175
handle->todr_settime = rtc_bq4802_settime;
sys/arch/sparc64/dev/rtc.c
246
rtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
248
struct rtc_softc *sc = handle->cookie;
sys/arch/sparc64/dev/rtc.c
292
rtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
294
struct rtc_softc *sc = handle->cookie;
sys/arch/sparc64/dev/rtc.c
329
rtc_bq4802_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
331
struct rtc_softc *sc = handle->cookie;
sys/arch/sparc64/dev/rtc.c
372
rtc_bq4802_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
374
struct rtc_softc *sc = handle->cookie;
sys/arch/sparc64/dev/sbbc.c
319
todr_chip_handle_t handle;
sys/arch/sparc64/dev/sbbc.c
326
handle = malloc(sizeof(struct todr_chip_handle), M_DEVBUF, M_NOWAIT);
sys/arch/sparc64/dev/sbbc.c
327
if (handle == NULL)
sys/arch/sparc64/dev/sbbc.c
330
handle->cookie = tod;
sys/arch/sparc64/dev/sbbc.c
331
handle->todr_gettime = sbbc_tod_gettime;
sys/arch/sparc64/dev/sbbc.c
332
handle->todr_settime = sbbc_tod_settime;
sys/arch/sparc64/dev/sbbc.c
333
handle->bus_cookie = NULL;
sys/arch/sparc64/dev/sbbc.c
334
handle->todr_setwen = NULL;
sys/arch/sparc64/dev/sbbc.c
335
handle->todr_quality = 0;
sys/arch/sparc64/dev/sbbc.c
336
todr_handle = handle;
sys/arch/sparc64/dev/sbbc.c
340
sbbc_tod_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/sbbc.c
342
struct sbbc_sram_tod *tod = handle->cookie;
sys/arch/sparc64/dev/sbbc.c
350
sbbc_tod_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/sbbc.c
352
struct sbbc_sram_tod *tod = handle->cookie;
sys/arch/sparc64/dev/vrtc.c
60
todr_chip_handle_t handle;
sys/arch/sparc64/dev/vrtc.c
64
handle = malloc(sizeof(struct todr_chip_handle), M_DEVBUF,M_NOWAIT);
sys/arch/sparc64/dev/vrtc.c
65
if (handle == NULL)
sys/arch/sparc64/dev/vrtc.c
68
handle->cookie = self;
sys/arch/sparc64/dev/vrtc.c
69
handle->todr_gettime = vrtc_gettime;
sys/arch/sparc64/dev/vrtc.c
70
handle->todr_settime = vrtc_settime;
sys/arch/sparc64/dev/vrtc.c
71
handle->bus_cookie = NULL;
sys/arch/sparc64/dev/vrtc.c
72
handle->todr_setwen = NULL;
sys/arch/sparc64/dev/vrtc.c
73
handle->todr_quality = 0;
sys/arch/sparc64/dev/vrtc.c
74
todr_handle = handle;
sys/arch/sparc64/dev/vrtc.c
78
vrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/vrtc.c
91
vrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/include/openfirm.h
51
int OF_test_method(int handle, char *method);
sys/arch/sparc64/sparc64/clock.c
298
clock_bus_wenable(struct todr_chip_handle *handle, int onoff)
sys/arch/sparc64/sparc64/clock.c
303
struct clock_wenable_info *cwi = handle->bus_cookie;
sys/arch/sparc64/sparc64/machdep.c
1551
bus_space_handle_t handle, bus_size_t offset, bus_size_t size,
sys/arch/sparc64/sparc64/machdep.c
1554
*nhandlep = handle;
sys/arch/sparc64/sparc64/openfirm.c
125
OF_getproplen(int handle, char *prop)
sys/arch/sparc64/sparc64/openfirm.c
139
args.phandle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
147
OF_getprop(int handle, char *prop, void *buf, int buflen)
sys/arch/sparc64/sparc64/openfirm.c
165
args.phandle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
175
OF_setprop(int handle, char *prop, const void *buf, int buflen)
sys/arch/sparc64/sparc64/openfirm.c
193
args.phandle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
203
OF_nextprop(int handle, char *prop, void *buf)
sys/arch/sparc64/sparc64/openfirm.c
218
args.phandle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
379
cell_t handle;
sys/arch/sparc64/sparc64/openfirm.c
391
return args.handle;
sys/arch/sparc64/sparc64/openfirm.c
395
OF_close(int handle)
sys/arch/sparc64/sparc64/openfirm.c
401
cell_t handle;
sys/arch/sparc64/sparc64/openfirm.c
407
args.handle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
458
OF_read(int handle, void *addr, int len)
sys/arch/sparc64/sparc64/openfirm.c
474
args.ihandle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
497
OF_write(int handle, void *addr, int len)
sys/arch/sparc64/sparc64/openfirm.c
516
args.ihandle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
531
OF_seek(int handle, u_quad_t pos)
sys/arch/sparc64/sparc64/openfirm.c
537
cell_t handle;
sys/arch/sparc64/sparc64/openfirm.c
546
args.handle = HDL2CELL(handle);
sys/arch/sparc64/sparc64/openfirm.c
803
OF_is_compatible(int handle, const char *name)
sys/arch/sparc64/sparc64/openfirm.c
809
len = OF_getprop(handle, "compatible", &compat, sizeof(compat));
sys/arch/sparc64/stand/ofwboot/Locore.c
133
OF_getprop(int handle, char *prop, void *buf, int buflen)
sys/arch/sparc64/stand/ofwboot/Locore.c
149
args.phandle = HDL2CELL(handle);
sys/arch/sparc64/stand/ofwboot/Locore.c
166
cell_t handle;
sys/arch/sparc64/stand/ofwboot/Locore.c
174
args.handle == 0)
sys/arch/sparc64/stand/ofwboot/Locore.c
176
return args.handle;
sys/arch/sparc64/stand/ofwboot/Locore.c
180
OF_close(int handle)
sys/arch/sparc64/stand/ofwboot/Locore.c
186
cell_t handle;
sys/arch/sparc64/stand/ofwboot/Locore.c
192
args.handle = HDL2CELL(handle);
sys/arch/sparc64/stand/ofwboot/Locore.c
197
OF_write(int handle, void *addr, int len)
sys/arch/sparc64/stand/ofwboot/Locore.c
212
args.ihandle = HDL2CELL(handle);
sys/arch/sparc64/stand/ofwboot/Locore.c
221
OF_read(int handle, void *addr, int len)
sys/arch/sparc64/stand/ofwboot/Locore.c
236
args.ihandle = HDL2CELL(handle);
sys/arch/sparc64/stand/ofwboot/Locore.c
246
OF_seek(int handle, u_quad_t pos)
sys/arch/sparc64/stand/ofwboot/Locore.c
252
cell_t handle;
sys/arch/sparc64/stand/ofwboot/Locore.c
261
args.handle = HDL2CELL(handle);
sys/arch/sparc64/stand/ofwboot/diskprobe.c
90
ofdev.handle = ihandle;
sys/arch/sparc64/stand/ofwboot/netif_of.c
150
rv = OF_write(op->handle, pkt, sendlen);
sys/arch/sparc64/stand/ofwboot/netif_of.c
177
len = OF_read(op->handle, pkt, maxlen);
sys/arch/sparc64/stand/ofwboot/netif_of.c
91
OF_getprop(OF_instance_to_package(op->handle),
sys/arch/sparc64/stand/ofwboot/ofdev.c
148
if (OF_seek(dev->handle, pos) < 0)
sys/arch/sparc64/stand/ofwboot/ofdev.c
153
n = OF_read(dev->handle, buf, size);
sys/arch/sparc64/stand/ofwboot/ofdev.c
155
n = OF_write(dev->handle, buf, size);
sys/arch/sparc64/stand/ofwboot/ofdev.c
178
op->handle = -1;
sys/arch/sparc64/stand/ofwboot/ofdev.c
182
OF_close(op->handle);
sys/arch/sparc64/stand/ofwboot/ofdev.c
183
op->handle = -1;
sys/arch/sparc64/stand/ofwboot/ofdev.c
514
if (ofdev.handle != -1)
sys/arch/sparc64/stand/ofwboot/ofdev.c
652
ofdev.handle = ihandle;
sys/arch/sparc64/stand/ofwboot/ofdev.c
712
ofdev.handle = -1;
sys/arch/sparc64/stand/ofwboot/ofdev.h
50
int handle;
sys/arch/sparc64/stand/ofwboot/openfirm.h
44
u_int OF_getprop(u_int handle, char *prop, void *buf, int buflen);
sys/arch/sparc64/stand/ofwboot/openfirm.h
46
int OF_setprop(u_int handle, char *prop, void *buf, int len);
sys/arch/sparc64/stand/ofwboot/openfirm.h
49
void OF_close(u_int handle);
sys/arch/sparc64/stand/ofwboot/openfirm.h
50
int OF_write(u_int handle, void *addr, int len);
sys/arch/sparc64/stand/ofwboot/openfirm.h
51
int OF_read(u_int handle, void *addr, int len);
sys/arch/sparc64/stand/ofwboot/openfirm.h
52
int OF_seek(u_int handle, u_int64_t pos);
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
149
ofdev.handle = ihandle;
sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c
359
ofdev.handle = sr_handle;
sys/dev/acpi/acpi.c
1072
struct acpi_mem_map handle;
sys/dev/acpi/acpi.c
1090
if (acpi_map(base, sizeof(struct acpi_rsdp), &handle)) {
sys/dev/acpi/acpi.c
1094
rsdp = (struct acpi_rsdp *)handle.va;
sys/dev/acpi/acpi.c
1108
acpi_unmap(&handle);
sys/dev/acpi/acpi.c
1112
acpi_unmap(&handle);
sys/dev/acpi/acpi.c
1164
if (acpi_map(facspa, sizeof(struct acpi_facs), &handle))
sys/dev/acpi/acpi.c
1167
sc->sc_facs = (struct acpi_facs *)handle.va;
sys/dev/acpi/acpi.c
1421
struct acpi_mem_map handle;
sys/dev/acpi/acpi.c
1429
if (acpi_map(addr, sizeof(*hdr), &handle))
sys/dev/acpi/acpi.c
1431
hdr = (struct acpi_table_header *)handle.va;
sys/dev/acpi/acpi.c
1433
acpi_unmap(&handle);
sys/dev/acpi/acpi.c
1436
if (acpi_map(addr, len, &handle))
sys/dev/acpi/acpi.c
1438
hdr = (struct acpi_table_header *)handle.va;
sys/dev/acpi/acpi.c
1446
acpi_unmap(&handle);
sys/dev/acpi/acpi.c
1453
memcpy(entry->q_data, handle.va, len);
sys/dev/acpi/acpi.c
1464
acpi_unmap(&handle);
sys/dev/acpi/acpireg.h
660
uint8_t handle;
sys/dev/cardbus/cardbus_map.c
104
size, busflags | flags, &base, &handle)) {
sys/dev/cardbus/cardbus_map.c
115
*handlep = handle;
sys/dev/cardbus/cardbus_map.c
139
bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t size)
sys/dev/cardbus/cardbus_map.c
163
(*cf->cardbus_space_free)(cc, rbustag, handle, size);
sys/dev/cardbus/cardbus_map.c
77
bus_space_handle_t handle;
sys/dev/cardbus/cardbusvar.h
293
#define Cardbus_mapreg_unmap(ct, reg, tag, handle, size)\
sys/dev/cardbus/cardbusvar.h
295
(reg), (tag), (handle), (size))
sys/dev/fdt/acrtc.c
139
acrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/acrtc.c
141
struct acrtc_softc *sc = handle->cookie;
sys/dev/fdt/acrtc.c
161
acrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/acrtc.c
163
struct acrtc_softc *sc = handle->cookie;
sys/dev/fdt/dapmic.c
265
dapmic_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/dapmic.c
267
struct dapmic_softc *sc = handle->cookie;
sys/dev/fdt/dapmic.c
287
dapmic_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/dapmic.c
289
struct dapmic_softc *sc = handle->cookie;
sys/dev/fdt/exrtc.c
129
exrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/exrtc.c
131
struct exrtc_softc *sc = handle->cookie;
sys/dev/fdt/exrtc.c
97
exrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/exrtc.c
99
struct exrtc_softc *sc = handle->cookie;
sys/dev/fdt/gfrtc.c
62
gfrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/gfrtc.c
64
struct gfrtc_softc *sc = handle->cookie;
sys/dev/fdt/gfrtc.c
76
gfrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/gfrtc.c
78
struct gfrtc_softc *sc = handle->cookie;
sys/dev/fdt/imxrtc.c
136
imxrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/imxrtc.c
138
struct imxrtc_softc *sc = handle->cookie;
sys/dev/fdt/imxrtc.c
97
imxrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/imxrtc.c
99
struct imxrtc_softc *sc = handle->cookie;
sys/dev/fdt/mvrtc.c
129
mvrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/mvrtc.c
131
struct mvrtc_softc *sc = handle->cookie;
sys/dev/fdt/mvrtc.c
139
mvrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/mvrtc.c
141
struct mvrtc_softc *sc = handle->cookie;
sys/dev/fdt/plrtc.c
113
handle = malloc(sizeof(struct todr_chip_handle), M_DEVBUF,
sys/dev/fdt/plrtc.c
115
if (handle == NULL)
sys/dev/fdt/plrtc.c
118
handle->cookie = sc;
sys/dev/fdt/plrtc.c
119
handle->todr_gettime = plrtc_gettime;
sys/dev/fdt/plrtc.c
120
handle->todr_settime = plrtc_settime;
sys/dev/fdt/plrtc.c
121
handle->todr_quality = 0;
sys/dev/fdt/plrtc.c
122
todr_attach(handle);
sys/dev/fdt/plrtc.c
63
plrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/plrtc.c
65
struct plrtc_softc *sc = handle->cookie;
sys/dev/fdt/plrtc.c
77
plrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/plrtc.c
79
struct plrtc_softc *sc = handle->cookie;
sys/dev/fdt/plrtc.c
99
todr_chip_handle_t handle;
sys/dev/fdt/qcrtc.c
102
qcrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/qcrtc.c
104
struct qcrtc_softc *sc = handle->cookie;
sys/dev/fdt/qcrtc.c
129
qcrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/qcrtc.c
131
struct qcrtc_softc *sc = handle->cookie;
sys/dev/fdt/rkdrm.c
120
struct drm_file *file, unsigned int *handle)
sys/dev/fdt/rkdrm.c
124
return drm_gem_handle_create(file, &sfb->obj->base, handle);
sys/dev/fdt/rkpmic.c
778
rkpmic_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/rkpmic.c
780
struct rkpmic_softc *sc = handle->cookie;
sys/dev/fdt/rkpmic.c
809
rkpmic_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/rkpmic.c
811
struct rkpmic_softc *sc = handle->cookie;
sys/dev/fdt/sxirtc.c
104
handle = malloc(sizeof(struct todr_chip_handle), M_DEVBUF, M_NOWAIT);
sys/dev/fdt/sxirtc.c
105
if (handle == NULL)
sys/dev/fdt/sxirtc.c
159
handle->cookie = self;
sys/dev/fdt/sxirtc.c
160
handle->todr_gettime = sxirtc_gettime;
sys/dev/fdt/sxirtc.c
161
handle->todr_settime = sxirtc_settime;
sys/dev/fdt/sxirtc.c
162
handle->bus_cookie = NULL;
sys/dev/fdt/sxirtc.c
163
handle->todr_setwen = NULL;
sys/dev/fdt/sxirtc.c
164
handle->todr_quality = 0;
sys/dev/fdt/sxirtc.c
165
todr_attach(handle);
sys/dev/fdt/sxirtc.c
212
sxirtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/sxirtc.c
214
struct sxirtc_softc *sc = (struct sxirtc_softc *)handle->cookie;
sys/dev/fdt/sxirtc.c
253
sxirtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/sxirtc.c
255
struct sxirtc_softc *sc = (struct sxirtc_softc *)handle->cookie;
sys/dev/fdt/sxirtc.c
99
todr_chip_handle_t handle;
sys/dev/i2c/abx80x.c
137
abcrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/abx80x.c
139
struct abcrtc_softc *sc = handle->cookie;
sys/dev/i2c/abx80x.c
159
abcrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/abx80x.c
161
struct abcrtc_softc *sc = handle->cookie;
sys/dev/i2c/ds3231.c
101
struct dsxrtc_softc *sc = handle->cookie;
sys/dev/i2c/ds3231.c
121
dsxrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/ds3231.c
123
struct dsxrtc_softc *sc = handle->cookie;
sys/dev/i2c/ds3231.c
99
dsxrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/isl1208.c
100
struct islrtc_softc *sc = handle->cookie;
sys/dev/i2c/isl1208.c
120
islrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/isl1208.c
122
struct islrtc_softc *sc = handle->cookie;
sys/dev/i2c/isl1208.c
98
islrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/m41t8x.c
117
m41t8xrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/m41t8x.c
120
struct m41t8xrtc_softc *sc = handle->cookie;
sys/dev/i2c/m41t8x.c
85
m41t8xrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/m41t8x.c
88
struct m41t8xrtc_softc *sc = handle->cookie;
sys/dev/i2c/mcp794xx.c
103
mcprtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/mcp794xx.c
105
struct mcprtc_softc *sc = handle->cookie;
sys/dev/i2c/mcp794xx.c
125
mcprtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/mcp794xx.c
127
struct mcprtc_softc *sc = handle->cookie;
sys/dev/ic/bcm2835_vcprop.h
390
uint32_t handle; /* bus address returned here */
sys/dev/ic/i82365.c
209
sc->handle[0].ph_parent = (struct device *)sc;
sys/dev/ic/i82365.c
210
sc->handle[0].sock = C0SA;
sys/dev/ic/i82365.c
212
sc->handle[0].ph_read = st_pcic_read;
sys/dev/ic/i82365.c
213
sc->handle[0].ph_write = st_pcic_write;
sys/dev/ic/i82365.c
214
sc->handle[0].ph_bus_t = sc->iot;
sys/dev/ic/i82365.c
215
sc->handle[0].ph_bus_h = sc->ioh;
sys/dev/ic/i82365.c
216
if (pcic_ident_ok(reg = pcic_read(&sc->handle[0], PCIC_IDENT))) {
sys/dev/ic/i82365.c
217
sc->handle[0].flags = PCIC_FLAG_SOCKETP;
sys/dev/ic/i82365.c
220
sc->handle[0].flags = 0;
sys/dev/ic/i82365.c
222
sc->handle[0].laststate = PCIC_LASTSTATE_EMPTY;
sys/dev/ic/i82365.c
226
sc->handle[1].ph_parent = (struct device *)sc;
sys/dev/ic/i82365.c
227
sc->handle[1].sock = C0SB;
sys/dev/ic/i82365.c
229
sc->handle[1].ph_read = st_pcic_read;
sys/dev/ic/i82365.c
230
sc->handle[1].ph_write = st_pcic_write;
sys/dev/ic/i82365.c
231
sc->handle[1].ph_bus_t = sc->iot;
sys/dev/ic/i82365.c
232
sc->handle[1].ph_bus_h = sc->ioh;
sys/dev/ic/i82365.c
233
if (pcic_ident_ok(reg = pcic_read(&sc->handle[1], PCIC_IDENT))) {
sys/dev/ic/i82365.c
234
sc->handle[1].flags = PCIC_FLAG_SOCKETP;
sys/dev/ic/i82365.c
237
sc->handle[1].flags = 0;
sys/dev/ic/i82365.c
239
sc->handle[1].laststate = PCIC_LASTSTATE_EMPTY;
sys/dev/ic/i82365.c
248
sc->handle[2].ph_parent = (struct device *)sc;
sys/dev/ic/i82365.c
249
sc->handle[2].sock = C1SA;
sys/dev/ic/i82365.c
251
sc->handle[2].ph_read = st_pcic_read;
sys/dev/ic/i82365.c
252
sc->handle[2].ph_write = st_pcic_write;
sys/dev/ic/i82365.c
253
sc->handle[2].ph_bus_t = sc->iot;
sys/dev/ic/i82365.c
254
sc->handle[2].ph_bus_h = sc->ioh;
sys/dev/ic/i82365.c
255
if (pcic_vendor(&sc->handle[0]) != PCIC_VENDOR_CIRRUS_PD672X ||
sys/dev/ic/i82365.c
256
pcic_read(&sc->handle[2], PCIC_IDENT) != 0) {
sys/dev/ic/i82365.c
257
if (pcic_ident_ok(reg = pcic_read(&sc->handle[2],
sys/dev/ic/i82365.c
259
sc->handle[2].flags = PCIC_FLAG_SOCKETP;
sys/dev/ic/i82365.c
262
sc->handle[2].flags = 0;
sys/dev/ic/i82365.c
264
sc->handle[2].laststate = PCIC_LASTSTATE_EMPTY;
sys/dev/ic/i82365.c
268
sc->handle[3].ph_parent = (struct device *)sc;
sys/dev/ic/i82365.c
269
sc->handle[3].sock = C1SB;
sys/dev/ic/i82365.c
271
sc->handle[3].ph_read = st_pcic_read;
sys/dev/ic/i82365.c
272
sc->handle[3].ph_write = st_pcic_write;
sys/dev/ic/i82365.c
273
sc->handle[3].ph_bus_t = sc->iot;
sys/dev/ic/i82365.c
274
sc->handle[3].ph_bus_h = sc->ioh;
sys/dev/ic/i82365.c
275
if (pcic_ident_ok(reg = pcic_read(&sc->handle[3],
sys/dev/ic/i82365.c
277
sc->handle[3].flags = PCIC_FLAG_SOCKETP;
sys/dev/ic/i82365.c
280
sc->handle[3].flags = 0;
sys/dev/ic/i82365.c
282
sc->handle[3].laststate = PCIC_LASTSTATE_EMPTY;
sys/dev/ic/i82365.c
286
sc->handle[2].flags = 0;
sys/dev/ic/i82365.c
287
sc->handle[3].flags = 0;
sys/dev/ic/i82365.c
302
if (sc->handle[i].flags & PCIC_FLAG_SOCKETP) {
sys/dev/ic/i82365.c
303
SIMPLEQ_INIT(&sc->handle[i].events);
sys/dev/ic/i82365.c
304
pcic_write(&sc->handle[i], PCIC_CSC_INTR, 0);
sys/dev/ic/i82365.c
305
pcic_read(&sc->handle[i], PCIC_CSC);
sys/dev/ic/i82365.c
310
if ((sc->handle[i+0].flags & PCIC_FLAG_SOCKETP) ||
sys/dev/ic/i82365.c
311
(sc->handle[i+1].flags & PCIC_FLAG_SOCKETP)) {
sys/dev/ic/i82365.c
312
vendor = pcic_vendor(&sc->handle[i]);
sys/dev/ic/i82365.c
318
if ((sc->handle[i+0].flags & PCIC_FLAG_SOCKETP) &&
sys/dev/ic/i82365.c
319
(sc->handle[i+1].flags & PCIC_FLAG_SOCKETP))
sys/dev/ic/i82365.c
321
else if (sc->handle[i+0].flags & PCIC_FLAG_SOCKETP)
sys/dev/ic/i82365.c
326
if (sc->handle[i+0].flags & PCIC_FLAG_SOCKETP)
sys/dev/ic/i82365.c
327
sc->handle[i+0].vendor = vendor;
sys/dev/ic/i82365.c
328
if (sc->handle[i+1].flags & PCIC_FLAG_SOCKETP)
sys/dev/ic/i82365.c
329
sc->handle[i+1].vendor = vendor;
sys/dev/ic/i82365.c
340
if (sc->handle[i].flags & PCIC_FLAG_SOCKETP)
sys/dev/ic/i82365.c
341
pcic_attach_socket(&sc->handle[i]);
sys/dev/ic/i82365.c
647
if (sc->handle[i].flags & PCIC_FLAG_SOCKETP)
sys/dev/ic/i82365.c
648
ret += pcic_intr_socket(&sc->handle[i]);
sys/dev/ic/i82365.c
666
if (sc->handle[i].flags & PCIC_FLAG_SOCKETP)
sys/dev/ic/i82365.c
667
pcic_intr_socket(&sc->handle[i]);
sys/dev/ic/i82365var.h
149
struct pcic_handle handle[PCIC_NSLOTS];
sys/dev/ic/mk48txx.c
100
if (handle == NULL) {
sys/dev/ic/mk48txx.c
104
mk = (struct mk48txx *)((u_long)handle +
sys/dev/ic/mk48txx.c
106
handle->cookie = mk;
sys/dev/ic/mk48txx.c
107
handle->todr_gettime = mk48txx_gettime;
sys/dev/ic/mk48txx.c
108
handle->todr_settime = mk48txx_settime;
sys/dev/ic/mk48txx.c
109
handle->todr_setwen = NULL;
sys/dev/ic/mk48txx.c
110
handle->todr_quality = 0;
sys/dev/ic/mk48txx.c
117
return (handle);
sys/dev/ic/mk48txx.c
125
mk48txx_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/ic/mk48txx.c
127
struct mk48txx *mk = handle->cookie;
sys/dev/ic/mk48txx.c
135
todr_wenable(handle, 1);
sys/dev/ic/mk48txx.c
161
todr_wenable(handle, 0);
sys/dev/ic/mk48txx.c
178
mk48txx_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/ic/mk48txx.c
180
struct mk48txx *mk = handle->cookie;
sys/dev/ic/mk48txx.c
195
todr_wenable(handle, 1);
sys/dev/ic/mk48txx.c
213
todr_wenable(handle, 0);
sys/dev/ic/mk48txx.c
218
mk48txx_get_nvram_size(todr_chip_handle_t handle, bus_size_t *vp)
sys/dev/ic/mk48txx.c
220
struct mk48txx *mk = handle->cookie;
sys/dev/ic/mk48txx.c
77
todr_chip_handle_t handle;
sys/dev/ic/mk48txx.c
99
handle = malloc(sz, M_DEVBUF, M_NOWAIT);
sys/dev/ic/psp.c
452
decom->handle = udecom->handle;
sys/dev/ic/psp.c
469
status->handle = ustatus->handle;
sys/dev/ic/psp.c
492
start->handle = ustart->handle;
sys/dev/ic/psp.c
501
if (ustart->handle == 0)
sys/dev/ic/psp.c
502
ustart->handle = start->handle;
sys/dev/ic/psp.c
525
ludata->handle = ulud->handle;
sys/dev/ic/psp.c
587
luvmsa->handle = uluv->handle;
sys/dev/ic/psp.c
616
lm->handle = ulm->handle;
sys/dev/ic/psp.c
642
lf->handle = ulf->handle;
sys/dev/ic/psp.c
663
at->handle = uat->handle;
sys/dev/ic/psp.c
690
act->handle = uact->handle;
sys/dev/ic/psp.c
711
luvmsa.handle = ues->handle;
sys/dev/ic/psp.c
728
deact->handle = udeact->handle;
sys/dev/ic/psp.c
795
deact.handle = ugshutdown->handle;
sys/dev/ic/psp.c
803
decom.handle = ugshutdown->handle;
sys/dev/ic/pspvar.h
114
uint32_t handle;
sys/dev/ic/pspvar.h
124
uint32_t handle;
sys/dev/ic/pspvar.h
139
uint32_t handle;
sys/dev/ic/pspvar.h
147
uint32_t handle;
sys/dev/ic/pspvar.h
155
uint32_t handle;
sys/dev/ic/pspvar.h
169
uint32_t handle;
sys/dev/ic/pspvar.h
185
uint32_t handle;
sys/dev/ic/pspvar.h
201
uint32_t handle;
sys/dev/ic/pspvar.h
222
uint32_t handle;
sys/dev/ic/pspvar.h
228
uint32_t handle;
sys/dev/ic/pspvar.h
233
uint32_t handle;
sys/dev/ic/pspvar.h
252
uint32_t handle;
sys/dev/ic/qla.c
722
u_int32_t handle;
sys/dev/ic/qla.c
736
handle = status->handle;
sys/dev/ic/qla.c
737
if (handle > sc->sc_maxcmds) {
sys/dev/ic/qla.c
739
handle, sc->sc_maxcmds);
sys/dev/ic/qla.c
742
ccb = &sc->sc_ccbs[handle];
sys/dev/ic/qla.c
746
" ccb %d\n", DEVNAME(sc), handle);
sys/dev/ic/qla.c
752
"(handle %d, ccb %p, xs->io %p)", handle, ccb,
sys/dev/ic/qlareg.h
559
u_int32_t handle;
sys/dev/ic/qlareg.h
597
u_int32_t handle;
sys/dev/ic/qlw.c
1385
req->handle = qlw_swap32(sc, ccb->ccb_id);
sys/dev/ic/qlw.c
568
u_int32_t handle;
sys/dev/ic/qlw.c
584
handle = qlw_swap32(sc, status->handle);
sys/dev/ic/qlw.c
585
if (handle > sc->sc_maxccbs) {
sys/dev/ic/qlw.c
587
handle, sc->sc_maxccbs);
sys/dev/ic/qlw.c
590
ccb = &sc->sc_ccbs[handle];
sys/dev/ic/qlw.c
594
" ccb %d\n", DEVNAME(sc), handle);
sys/dev/ic/qlw.c
601
"(handle %d, ccb %p, xs->io %p)", handle, ccb,
sys/dev/ic/qlwreg.h
272
u_int32_t handle;
sys/dev/ic/qlwreg.h
293
u_int32_t handle;
sys/dev/ic/qlwreg.h
326
u_int32_t handle;
sys/dev/ic/tcic2.c
339
sc->handle[i].sc = sc;
sys/dev/ic/tcic2.c
340
sc->handle[i].sock = i;
sys/dev/ic/tcic2.c
341
sc->handle[i].flags = TCIC_FLAG_SOCKETP;
sys/dev/ic/tcic2.c
342
sc->handle[i].memwins
sys/dev/ic/tcic2.c
347
reg = tcic_read_1(&sc->handle[0], TCIC_R_IENA);
sys/dev/ic/tcic2.c
348
tcic_write_1(&sc->handle[0], TCIC_R_IENA,
sys/dev/ic/tcic2.c
358
tcic_sel_sock(&sc->handle[i]);
sys/dev/ic/tcic2.c
359
tcic_write_ind_2(&sc->handle[i], TCIC_IR_SCF1_N(i), 0);
sys/dev/ic/tcic2.c
360
tcic_write_ind_2(&sc->handle[i], TCIC_IR_SCF2_N(i),
sys/dev/ic/tcic2.c
367
tcic_write_1(&sc->handle[i], TCIC_R_MODE, 0);
sys/dev/ic/tcic2.c
371
SIMPLEQ_INIT(&sc->handle[i].events);
sys/dev/ic/tcic2.c
374
if ((sc->handle[0].flags & TCIC_FLAG_SOCKETP) ||
sys/dev/ic/tcic2.c
375
(sc->handle[1].flags & TCIC_FLAG_SOCKETP)) {
sys/dev/ic/tcic2.c
379
if ((sc->handle[0].flags & TCIC_FLAG_SOCKETP) &&
sys/dev/ic/tcic2.c
380
(sc->handle[1].flags & TCIC_FLAG_SOCKETP))
sys/dev/ic/tcic2.c
382
else if (sc->handle[0].flags & TCIC_FLAG_SOCKETP)
sys/dev/ic/tcic2.c
396
if (sc->handle[i].flags & TCIC_FLAG_SOCKETP)
sys/dev/ic/tcic2.c
397
tcic_attach_socket(&sc->handle[i]);
sys/dev/ic/tcic2.c
593
if (sc->handle[i].flags & TCIC_FLAG_SOCKETP)
sys/dev/ic/tcic2.c
594
ret += tcic_intr_socket(&sc->handle[i]);
sys/dev/ic/tcic2var.h
136
struct tcic_handle handle[TCIC_NSLOTS];
sys/dev/isa/i82365_isa.c
214
h = &sc->handle[i];
sys/dev/isa/i82365_isapnp.c
191
h = &sc->handle[i];
sys/dev/isa/i82365_isasubr.c
135
if (sc->handle[i].flags & PCIC_FLAG_SOCKETP) {
sys/dev/isa/i82365_isasubr.c
141
sc->handle[i].sock + PCIC_IDENT);
sys/dev/isa/i82365_isasubr.c
145
sc->handle[i].sock + PCIC_IDENT);
sys/dev/isa/i82365_isasubr.c
256
struct pcic_handle *ph = &sc->handle[0];
sys/dev/ofw/fdt.c
1001
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
1008
OF_getpropint(int handle, char *prop, uint32_t defval)
sys/dev/ofw/fdt.c
1013
len = OF_getprop(handle, prop, &val, sizeof(val));
sys/dev/ofw/fdt.c
1021
OF_getpropintarray(int handle, char *prop, uint32_t *buf, int buflen)
sys/dev/ofw/fdt.c
1026
len = OF_getprop(handle, prop, buf, buflen);
sys/dev/ofw/fdt.c
1037
OF_getpropint64(int handle, char *prop, uint64_t defval)
sys/dev/ofw/fdt.c
1042
len = OF_getprop(handle, prop, &val, sizeof(val));
sys/dev/ofw/fdt.c
1050
OF_getpropint64array(int handle, char *prop, uint64_t *buf, int buflen)
sys/dev/ofw/fdt.c
1055
len = OF_getprop(handle, prop, buf, buflen);
sys/dev/ofw/fdt.c
1066
OF_nextprop(int handle, char *prop, void *nextprop)
sys/dev/ofw/fdt.c
1068
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
1084
OF_is_compatible(int handle, const char *name)
sys/dev/ofw/fdt.c
1086
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
1091
OF_is_enabled(int handle)
sys/dev/ofw/fdt.c
1095
if (OF_getprop(handle, "status", status, sizeof(status)) > 0) {
sys/dev/ofw/fdt.c
1106
OF_getindex(int handle, const char *entry, const char *prop)
sys/dev/ofw/fdt.c
1117
len = OF_getproplen(handle, (char *)prop);
sys/dev/ofw/fdt.c
1122
OF_getprop(handle, (char *)prop, names, len);
sys/dev/ofw/fdt.c
859
OF_peer(int handle)
sys/dev/ofw/fdt.c
861
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
863
if (handle == 0)
sys/dev/ofw/fdt.c
871
OF_child(int handle)
sys/dev/ofw/fdt.c
873
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
880
OF_parent(int handle)
sys/dev/ofw/fdt.c
882
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
898
OF_getnodebyname(int handle, const char *name)
sys/dev/ofw/fdt.c
900
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
905
if (handle == 0)
sys/dev/ofw/fdt.c
940
OF_getproplen(int handle, char *prop)
sys/dev/ofw/fdt.c
942
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
967
OF_getprop(int handle, char *prop, void *buf, int buflen)
sys/dev/ofw/fdt.c
969
void *node = (char *)tree.header + handle;
sys/dev/ofw/fdt.c
999
OF_getpropbool(int handle, char *prop)
sys/dev/ofw/ofw_misc.c
52
regmap_register(int node, bus_space_tag_t tag, bus_space_handle_t handle,
sys/dev/ofw/ofw_misc.c
61
rm->rm_handle = handle;
sys/dev/ofw/openfirm.h
51
int OF_getproplen(int handle, char *prop);
sys/dev/ofw/openfirm.h
52
int OF_getprop(int handle, char *prop, void *buf, int buflen);
sys/dev/ofw/openfirm.h
53
int OF_getpropbool(int handle, char *);
sys/dev/ofw/openfirm.h
54
uint32_t OF_getpropint(int handle, char *, uint32_t);
sys/dev/ofw/openfirm.h
56
uint64_t OF_getpropint64(int handle, char *, uint64_t);
sys/dev/ofw/openfirm.h
66
void OF_close(int handle);
sys/dev/ofw/openfirm.h
67
int OF_read(int handle, void *addr, int len);
sys/dev/ofw/openfirm.h
68
int OF_write(int handle, void *addr, int len);
sys/dev/ofw/openfirm.h
69
int OF_seek(int handle, u_quad_t pos);
sys/dev/pci/cmpci.c
1203
cmpci_malloc(void *handle, int direction, size_t size, int type,
sys/dev/pci/cmpci.c
1208
if (cmpci_alloc_dmamem(handle, size, type, flags, &addr))
sys/dev/pci/cmpci.c
1214
cmpci_free(void *handle, void *addr, int type)
sys/dev/pci/cmpci.c
1216
cmpci_free_dmamem(handle, addr, type);
sys/dev/pci/cmpci.c
1569
cmpci_set_port(void *handle, mixer_ctrl_t *cp)
sys/dev/pci/cmpci.c
1571
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
1680
cmpci_get_port(void *handle, mixer_ctrl_t *cp)
sys/dev/pci/cmpci.c
1682
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
1746
cmpci_round_buffersize(void *handle, int direction, size_t bufsize)
sys/dev/pci/cmpci.c
1755
cmpci_trigger_output(void *handle, void *start, void *end, int blksize,
sys/dev/pci/cmpci.c
1758
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
1821
cmpci_trigger_input(void *handle, void *start, void *end, int blksize,
sys/dev/pci/cmpci.c
1824
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
521
cmpci_intr(void *handle)
sys/dev/pci/cmpci.c
523
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
605
cmpci_open(void *handle, int flags)
sys/dev/pci/cmpci.c
611
cmpci_close(void *handle)
sys/dev/pci/cmpci.c
616
cmpci_set_params(void *handle, int setmode, int usemode,
sys/dev/pci/cmpci.c
620
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
804
cmpci_round_blocksize(void *handle, int block)
sys/dev/pci/cmpci.c
810
cmpci_halt_output(void *handle)
sys/dev/pci/cmpci.c
812
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
838
cmpci_halt_input(void *handle)
sys/dev/pci/cmpci.c
840
struct cmpci_softc *sc = handle;
sys/dev/pci/cmpci.c
856
cmpci_query_devinfo(void *handle, mixer_devinfo_t *dip)
sys/dev/pci/cmpci.c
866
struct cmpci_softc *sc = handle;
sys/dev/pci/drm/amd/amdgpu/aldebaran.c
112
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/aldebaran.c
127
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/aldebaran.c
151
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/aldebaran.c
36
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/aldebaran.c
450
reset_ctl->handle = adev;
sys/dev/pci/drm/amd/amdgpu/aldebaran.c
50
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
212
static bool aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank, enum aca_smu_type type)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
214
const struct aca_bank_ops *bank_ops = handle->bank_ops;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
218
return handle->hwip == ACA_HWIP_TYPE_UMC;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
220
if (!aca_bank_hwip_is_matched(bank, handle->hwip))
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
226
return bank_ops->aca_bank_is_valid(handle, bank, type, handle->data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
295
int aca_error_cache_log_bank_error(struct aca_handle *handle, struct aca_bank_info *info,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
298
struct aca_error_cache *error_cache = &handle->error_cache;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
302
if (!handle || !info || type >= ACA_ERROR_TYPE_COUNT)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
31
typedef int bank_handler_t(struct aca_handle *handle, struct aca_bank *bank, enum aca_smu_type type, void *data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
318
static int aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank, enum aca_smu_type type)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
320
const struct aca_bank_ops *bank_ops = handle->bank_ops;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
328
return bank_ops->aca_bank_parser(handle, bank, type,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
329
handle->data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
332
static int handler_aca_log_bank_error(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
337
ret = aca_bank_parser(handle, bank, type);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
347
struct aca_handle *handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
353
list_for_each_entry(handle, &mgr->list, node) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
354
if (!aca_bank_is_valid(handle, bank, type))
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
357
ret = handler(handle, bank, type, data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
539
static int aca_log_aca_error(struct aca_handle *handle, enum aca_error_type type, struct ras_err_data *err_data)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
541
struct aca_error_cache *error_cache = &handle->error_cache;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
561
static int __aca_get_error_data(struct amdgpu_device *adev, struct aca_handle *handle, enum aca_error_type type,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
586
aca_log_aca_error(handle, ACA_ERROR_TYPE_DEFERRED, err_data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
588
return aca_log_aca_error(handle, type, err_data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
591
static bool aca_handle_is_valid(struct aca_handle *handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
593
if (!handle->mask || !list_empty(&handle->node))
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
599
int amdgpu_aca_get_error_data(struct amdgpu_device *adev, struct aca_handle *handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
603
if (!handle || !err_data)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
606
if (aca_handle_is_valid(handle))
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
609
if ((type < 0) || (!(BIT(type) & handle->mask)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
612
return __aca_get_error_data(adev, handle, type, err_data, qctx);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
623
static void aca_init_error_cache(struct aca_handle *handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
625
struct aca_error_cache *error_cache = &handle->error_cache;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
648
static void aca_fini_error_cache(struct aca_handle *handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
650
struct aca_error_cache *error_cache = &handle->error_cache;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
657
static int add_aca_handle(struct amdgpu_device *adev, struct aca_handle_manager *mgr, struct aca_handle *handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
660
memset(handle, 0, sizeof(*handle));
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
662
handle->adev = adev;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
663
handle->mgr = mgr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
664
handle->name = name;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
665
handle->hwip = ras_info->hwip;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
666
handle->mask = ras_info->mask;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
667
handle->bank_ops = ras_info->bank_ops;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
668
handle->data = data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
669
aca_init_error_cache(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
671
INIT_LIST_HEAD(&handle->node);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
672
list_add_tail(&handle->node, &mgr->list);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
681
struct aca_handle *handle = container_of(attr, struct aca_handle, aca_attr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
685
return amdgpu_ras_aca_sysfs_read(dev, attr, handle, buf, handle->data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
688
static int add_aca_sysfs(struct amdgpu_device *adev, struct aca_handle *handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
693
struct device_attribute *aca_attr = &handle->aca_attr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
695
snprintf(handle->attr_name, sizeof(handle->attr_name) - 1, "aca_%s", handle->name);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
697
aca_attr->attr.name = handle->attr_name;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
707
int amdgpu_aca_add_handle(struct amdgpu_device *adev, struct aca_handle *handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
716
ret = add_aca_handle(adev, &aca->mgr, handle, name, ras_info, data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
720
return add_aca_sysfs(adev, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
723
static void remove_aca_handle(struct aca_handle *handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
725
struct aca_handle_manager *mgr = handle->mgr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
727
aca_fini_error_cache(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
728
list_del(&handle->node);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
732
static void remove_aca_sysfs(struct aca_handle *handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
735
struct amdgpu_device *adev = handle->adev;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
736
struct device_attribute *aca_attr = &handle->aca_attr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
745
void amdgpu_aca_remove_handle(struct aca_handle *handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
747
if (!handle || list_empty(&handle->node))
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
750
remove_aca_sysfs(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
751
remove_aca_handle(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
764
struct aca_handle *handle, *tmp;
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
769
list_for_each_entry_safe(handle, tmp, &mgr->list, node)
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
770
amdgpu_aca_remove_handle(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
921
static int handler_aca_bank_dump(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
928
return handler_aca_log_bank_error(handle, bank, type, NULL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.h
186
int (*aca_bank_parser)(struct aca_handle *handle, struct aca_bank *bank, enum aca_smu_type type, void *data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.h
187
bool (*aca_bank_is_valid)(struct aca_handle *handle, struct aca_bank *bank, enum aca_smu_type type,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.h
222
int amdgpu_aca_add_handle(struct amdgpu_device *adev, struct aca_handle *handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.h
224
void amdgpu_aca_remove_handle(struct aca_handle *handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.h
225
int amdgpu_aca_get_error_data(struct amdgpu_device *adev, struct aca_handle *handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.h
230
int aca_error_cache_log_bank_error(struct aca_handle *handle, struct aca_bank_info *info,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1002
acpi_handle_debug(xcc_info->handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1014
obj = acpi_evaluate_dsm_typed(xcc_info->handle, &amd_xcc_dsm_guid, 0,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1019
acpi_handle_debug(xcc_info->handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1058
obj = acpi_evaluate_dsm_typed(xcc_info->handle, &amd_xcc_dsm_guid, 0,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1067
obj = acpi_evaluate_dsm_typed(xcc_info->handle, &amd_xcc_dsm_guid, 0,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
107
acpi_handle handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1072
acpi_handle_debug(xcc_info->handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1091
amdgpu_acpi_get_node_id(xcc_info->handle, &xcc_info->numa_info);
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1137
xcc_info->handle = acpi_device_handle(acpi_dev);
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
125
acpi_handle handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1338
amdgpu_acpi_priv.atif.handle = atif_handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1339
acpi_get_name(amdgpu_acpi_priv.atif.handle, ACPI_FULL_PATHNAME, &buffer);
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1343
amdgpu_acpi_priv.atif.handle = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1373
amdgpu_acpi_priv.atcs.handle = atcs_handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1374
acpi_get_name(amdgpu_acpi_priv.atcs.handle, ACPI_FULL_PATHNAME, &buffer);
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1378
amdgpu_acpi_priv.atcs.handle = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1439
if (!atif->handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1441
if (!atcs->handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1448
if (!atif->handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
1450
if (!atcs->handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
173
status = acpi_evaluate_object(atif->handle, NULL, &atif_arg,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
564
status = acpi_evaluate_object(atcs->handle, NULL, &atcs_arg, &buffer);
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
67
acpi_handle handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
922
static acpi_status amdgpu_acpi_get_node_id(acpi_handle handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
932
status = acpi_evaluate_integer(handle, "_PXM", NULL, &pxm);
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
982
obj = acpi_evaluate_dsm_typed(xcc_info->handle, &amd_xcc_dsm_guid, 0,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
987
acpi_handle_debug(xcc_info->handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c
997
obj = acpi_evaluate_dsm_typed(xcc_info->handle, &amd_xcc_dsm_guid, 0,
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2426
uint32_t handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2430
&handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2433
obj = drm_gem_object_lookup(adev->kfd.client.file, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2444
(*mem)->gem_handle = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2451
drm_gem_handle_delete(adev->kfd.client.file, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
233
uint32_t handle = args->in.list_handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
256
handle = r;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
260
amdgpu_bo_list_destroy(fpriv, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
261
handle = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
271
old = idr_replace(&fpriv->bo_list_handles, list, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
288
args->out.list_handle = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
133
gobj = drm_gem_object_lookup(p->filp, data->handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1367
cs->out.handle = seq;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1510
fence = amdgpu_ctx_get_fence(ctx, entity, wait->in.handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1587
r = drm_syncobj_get_handle(filp, syncobj, &info->out.handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1596
r = drm_syncobj_get_fd(syncobj, (int *)&info->out.handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
1615
info->out.handle = fd;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
431
fence = amdgpu_ctx_get_fence(ctx, entity, deps[i].handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
457
uint32_t handle, u64 point,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
463
r = drm_syncobj_find_fence(p->filp, handle, point, flags, &fence);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
466
handle, point, r);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
485
r = amdgpu_syncobj_lookup_and_add(p, deps[i].handle, 0, 0);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
503
r = amdgpu_syncobj_lookup_and_add(p, syncobj_deps[i].handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
536
drm_syncobj_find(p->filp, deps[i].handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c
578
syncobj_deps[i].handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
1120
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
1358
uint32_t handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
1384
r = drm_gem_handle_create(file_priv, gobj, &handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
1390
args->handle = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
294
int handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
298
idr_for_each_entry(&file->object_idr, gobj, handle) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
518
uint32_t handle, initial_domain;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
591
r = drm_gem_handle_create(filp, gobj, &handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
598
args->out.handle = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
614
uint32_t handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
670
r = drm_gem_handle_create(filp, gobj, &handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
674
args->handle = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
689
uint32_t handle, uint64_t *offset_p)
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
694
gobj = drm_gem_object_lookup(filp, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
713
uint32_t handle = args->in.handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
716
return amdgpu_mode_dumb_mmap(filp, dev, handle, &args->out.addr_ptr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
753
uint32_t handle = args->in.handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
758
gobj = drm_gem_object_lookup(filp, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
788
DRM_DEBUG("%d\n", args->handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
789
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c
991
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.h
54
uint32_t handle, uint64_t *offset_p);
sys/dev/pci/drm/amd/amdgpu/amdgpu_jpeg.c
188
static int amdgpu_jpeg_dec_set_reg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1115
struct drm_amdgpu_info_num_handles handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1121
handle.uvd_max_handles = adev->uvd.max_handles;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1122
handle.uvd_used_handles = amdgpu_uvd_used_handles(adev);
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1124
return copy_to_user(out, &handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1125
min((size_t)size, sizeof(handle))) ? -EFAULT : 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1503
int handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c
1539
idr_for_each_entry(&fpriv->bo_list_handles, list, handle)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
1416
struct aca_handle *handle, char *buf, void *data)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
1418
struct ras_manager *obj = container_of(handle, struct ras_manager, aca_handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.h
988
struct aca_handle *handle, char *buf, void *data);
sys/dev/pci/drm/amd/amdgpu/amdgpu_reset.c
103
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_reset.h
76
void *handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
1201
int amdgpu_uvd_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
1213
msg[2] = cpu_to_le32(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
1229
int amdgpu_uvd_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
1249
msg[2] = cpu_to_le32(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
526
uint32_t handle = atomic_read(&adev->uvd.handles[i]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
528
if (handle != 0 && adev->uvd.filp[i] == filp) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
531
r = amdgpu_uvd_get_destroy_msg(ring, handle, false,
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
820
int32_t *msg, msg_type, handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
839
handle = msg[2];
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
841
if (handle == 0) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
854
if (atomic_read(&adev->uvd.handles[i]) == handle) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
856
handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
860
if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
878
if (atomic_read(&adev->uvd.handles[i]) == handle) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
887
DRM_ERROR("Invalid UVD handle 0x%x!\n", handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
893
atomic_cmpxchg(&adev->uvd.handles[i], handle, 0);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.h
80
int amdgpu_uvd_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.h
82
int amdgpu_uvd_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
415
uint32_t handle = atomic_read(&adev->vce.handles[i]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
417
if (!handle || adev->vce.filp[i] != filp)
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
420
r = amdgpu_vce_get_destroy_msg(ring, handle, false, NULL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
438
static int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
472
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
530
static int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
554
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
701
uint32_t handle, uint32_t *allocated)
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
707
if (atomic_read(&p->adev->vce.handles[i]) == handle) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
718
if (!atomic_cmpxchg(&p->adev->vce.handles[i], 0, handle)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
746
uint32_t tmp, handle = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
826
handle = amdgpu_ib_get_value(ib, idx + 2);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
827
session_idx = amdgpu_vce_validate_handle(p, handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
85
static int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
87
static int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
983
uint32_t tmp, handle = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
998
handle = amdgpu_ib_get_value(ib, idx + 2);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
999
session_idx = amdgpu_vce_validate_handle(p, handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
1020
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
665
static int amdgpu_vcn_dec_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
684
msg[4] = cpu_to_le32(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
700
static int amdgpu_vcn_dec_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
719
msg[4] = cpu_to_le32(handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
921
static int amdgpu_vcn_enc_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
953
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
988
static int amdgpu_vcn_enc_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.c
36
int (*run_func)(void *handle, uint32_t inst_mask);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h
86
int (*prepare_suspend)(void *handle, uint32_t inst_mask);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h
87
int (*suspend)(void *handle, uint32_t inst_mask);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h
88
int (*prepare_resume)(void *handle, uint32_t inst_mask);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h
89
int (*resume)(void *handle, uint32_t inst_mask);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xgmi.c
1195
static int xgmi_v6_4_0_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/amdgpu_xgmi.c
1198
struct amdgpu_device *adev = handle->adev;
sys/dev/pci/drm/amd/amdgpu/amdgpu_xgmi.c
1224
ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE, count);
sys/dev/pci/drm/amd/amdgpu/amdgpu_xgmi.c
1229
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type, count);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2362
uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2373
if (!handle) {
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2386
obj = drm_gem_object_lookup(file_priv, handle);
sys/dev/pci/drm/amd/amdgpu/dce_v10_0.c
2388
DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, amdgpu_crtc->crtc_id);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2335
uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2346
if (!handle) {
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2359
obj = drm_gem_object_lookup(file_priv, handle);
sys/dev/pci/drm/amd/amdgpu/dce_v6_0.c
2361
DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, amdgpu_crtc->crtc_id);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2281
uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2292
if (!handle) {
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2305
obj = drm_gem_object_lookup(file_priv, handle);
sys/dev/pci/drm/amd/amdgpu/dce_v8_0.c
2307
DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, amdgpu_crtc->crtc_id);
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
4809
static bool gfx_v8_0_rlc_is_idle(void *handle)
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
4811
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
4819
static int gfx_v8_0_wait_for_rlc_idle(void *handle)
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
4822
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/gfx_v8_0.c
4825
if (gfx_v8_0_rlc_is_idle(handle))
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
4986
static int gfx_v9_4_3_xcp_resume(void *handle, uint32_t inst_mask)
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
4988
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
5018
static int gfx_v9_4_3_xcp_suspend(void *handle, uint32_t inst_mask)
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
5020
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
853
static int gfx_v9_4_3_aca_bank_parser(struct aca_handle *handle,
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
876
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type, 1ULL);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
880
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
890
static bool gfx_v9_4_3_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/gfxhub_v1_2.c
643
static int gfxhub_v1_2_xcp_resume(void *handle, uint32_t inst_mask)
sys/dev/pci/drm/amd/amdgpu/gfxhub_v1_2.c
645
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/gfxhub_v1_2.c
661
static int gfxhub_v1_2_xcp_suspend(void *handle, uint32_t inst_mask)
sys/dev/pci/drm/amd/amdgpu/gfxhub_v1_2.c
663
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c
1382
static int jpeg_v4_0_3_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c
1397
ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE,
sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c
1402
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c
1418
static bool jpeg_v4_0_3_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c
1429
if (aca_bank_check_error_codes(handle->adev, bank,
sys/dev/pci/drm/amd/amdgpu/jpeg_v5_0_1.c
1011
ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE,
sys/dev/pci/drm/amd/amdgpu/jpeg_v5_0_1.c
1016
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
sys/dev/pci/drm/amd/amdgpu/jpeg_v5_0_1.c
1033
static bool jpeg_v5_0_1_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/jpeg_v5_0_1.c
1044
if (aca_bank_check_error_codes(handle->adev, bank,
sys/dev/pci/drm/amd/amdgpu/jpeg_v5_0_1.c
996
static int jpeg_v5_0_1_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/mmhub_v1_8.c
775
static int mmhub_v1_8_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/mmhub_v1_8.c
790
ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE,
sys/dev/pci/drm/amd/amdgpu/mmhub_v1_8.c
795
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
sys/dev/pci/drm/amd/amdgpu/mmhub_v1_8.c
815
static bool mmhub_v1_8_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/mmhub_v1_8.c
826
if (aca_bank_check_error_codes(handle->adev, bank,
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2389
static int sdma_v4_4_2_xcp_resume(void *handle, uint32_t inst_mask)
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2391
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2402
static int sdma_v4_4_2_xcp_suspend(void *handle, uint32_t inst_mask)
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2404
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2528
static int sdma_v4_4_2_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2543
ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE,
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2548
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2561
static bool sdma_v4_4_2_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
2572
if (aca_bank_check_error_codes(handle->adev, bank,
sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c
115
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c
138
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c
221
struct amdgpu_device *tmp_adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c
280
reset_ctl->handle = adev;
sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c
37
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/sienna_cichlid.c
97
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c
114
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c
129
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c
222
struct amdgpu_device *tmp_adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c
277
reset_ctl->handle = adev;
sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c
34
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c
46
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/smu_v13_0_10.c
96
struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle;
sys/dev/pci/drm/amd/amdgpu/umc_v12_0.c
457
static int umc_v12_0_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/umc_v12_0.c
460
struct amdgpu_device *adev = handle->adev;
sys/dev/pci/drm/amd/amdgpu/umc_v12_0.c
495
return aca_error_cache_log_bank_error(handle, &info, err_type, count);
sys/dev/pci/drm/amd/amdgpu/uvd_v6_0.c
208
static int uvd_v6_0_enc_get_create_msg(struct amdgpu_ring *ring, uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/uvd_v6_0.c
231
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/uvd_v6_0.c
273
uint32_t handle,
sys/dev/pci/drm/amd/amdgpu/uvd_v6_0.c
296
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
216
static int uvd_v7_0_enc_get_create_msg(struct amdgpu_ring *ring, u32 handle,
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
239
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
280
static int uvd_v7_0_enc_get_destroy_msg(struct amdgpu_ring *ring, u32 handle,
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
303
ib->ptr[ib->length_dw++] = handle;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
2001
static int vcn_v4_0_3_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
2016
ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE,
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
2021
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
2036
static bool vcn_v4_0_3_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
2047
if (aca_bank_check_error_codes(handle->adev, bank,
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
1626
static int vcn_v5_0_1_aca_bank_parser(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
1641
ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE,
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
1646
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
1661
static bool vcn_v5_0_1_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
1672
if (aca_bank_check_error_codes(handle->adev, bank,
sys/dev/pci/drm/amd/amdgpu/vi.c
1830
static int vi_common_set_clockgating_state_by_smu(void *handle,
sys/dev/pci/drm/amd/amdgpu/vi.c
1835
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1166
args->handle = MAKE_HANDLE(args->gpu_id, idr_handle);
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1202
if (p->signal_handle && (p->signal_handle == args->handle)) {
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1208
pdd = kfd_process_device_data_by_id(p, GET_GPU_ID(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1216
pdd, GET_IDR_HANDLE(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1230
pdd, GET_IDR_HANDLE(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1274
pdd = kfd_process_device_data_by_id(p, GET_GPU_ID(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1288
GET_IDR_HANDLE(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1391
pdd = kfd_process_device_data_by_id(p, GET_GPU_ID(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1398
GET_IDR_HANDLE(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1595
args->handle = MAKE_HANDLE(args->gpu_id, idr_handle);
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1617
dev = kfd_device_by_id(GET_GPU_ID(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
1630
GET_IDR_HANDLE(args->handle));
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
1098
int handle);
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
1100
int handle);
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
735
#define GET_GPU_ID(handle) (handle >> 32)
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
736
#define GET_IDR_HANDLE(handle) (handle & 0xFFFFFFFF)
sys/dev/pci/drm/amd/amdkfd/kfd_process.c
1799
int handle)
sys/dev/pci/drm/amd/amdkfd/kfd_process.c
1801
if (handle < 0)
sys/dev/pci/drm/amd/amdkfd/kfd_process.c
1804
return idr_find(&pdd->alloc_idr, handle);
sys/dev/pci/drm/amd/amdkfd/kfd_process.c
1811
int handle)
sys/dev/pci/drm/amd/amdkfd/kfd_process.c
1813
if (handle >= 0)
sys/dev/pci/drm/amd/amdkfd/kfd_process.c
1814
idr_remove(&pdd->alloc_idr, handle);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
104
struct dc_link *link = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
219
psp_set_srm(hdcp_work->hdcp.config.psp.handle, hdcp_work->srm,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
42
lp_write_i2c(void *handle, uint32_t address, const uint8_t *data, uint32_t size)
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
44
struct dc_link *link = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
494
static bool enable_assr(void *handle, struct dc_link *link)
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
496
struct hdcp_workqueue *hdcp_work = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
498
struct psp_context *psp = hdcp.config.psp.handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
526
static void update_config(void *handle, struct cp_psp_stream_config *config)
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
528
struct hdcp_workqueue *hdcp_work = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
53
lp_read_i2c(void *handle, uint32_t address, uint8_t offset, uint8_t *data, uint32_t size)
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
55
struct dc_link *link = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
656
if (!psp_set_srm(work->hdcp.config.psp.handle, work->srm_temp, pos + count, &srm_version)) {
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
66
lp_write_dpcd(void *handle, uint32_t address, const uint8_t *data, uint32_t size)
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
68
struct dc_link *link = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
682
srm = psp_get_srm(work->hdcp.config.psp.handle, &srm_version, &srm_size);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
74
lp_read_dpcd(void *handle, uint32_t address, uint8_t *data, uint32_t size)
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
76
struct dc_link *link = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
772
config->psp.handle = &adev->psp;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
785
config->ddc.handle = dc_get_link_at_index(dc, i);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
811
cp_psp->handle = hdcp_work;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
82
void *handle,
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
90
struct dc_link *link = handle;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
96
void *handle,
sys/dev/pci/drm/amd/display/dc/dm_cp_psp.h
51
bool (*enable_assr)(void *handle, struct dc_link *link);
sys/dev/pci/drm/amd/display/dc/dm_cp_psp.h
52
void (*update_stream_config)(void *handle, struct cp_psp_stream_config *config);
sys/dev/pci/drm/amd/display/dc/dm_cp_psp.h
56
void *handle;
sys/dev/pci/drm/amd/display/dc/link/link_dpms.c
724
cp_psp->funcs.update_stream_config(cp_psp->handle, &config);
sys/dev/pci/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1294
result = cp_psp->funcs.enable_assr(cp_psp->handle, link);
sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h
2886
uint32_t handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
172
success = hdcp->config.ddc.funcs.read_dpcd(hdcp->config.ddc.handle,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
189
hdcp->config.ddc.handle,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
244
hdcp->config.ddc.handle,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
263
hdcp->config.ddc.handle,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
685
return hdcp->config.ddc.funcs.write_dpcd(hdcp->config.ddc.handle, cp_irq_addrs,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
711
hdcp->config.ddc.handle,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_ddc.c
748
hdcp->config.ddc.handle,
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
125
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
172
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
253
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
295
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
328
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
369
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
399
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
441
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
477
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
503
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
51
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
550
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
583
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
615
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
675
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
721
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
754
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
789
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
834
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
865
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
87
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
918
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
962
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_psp.c
998
struct psp_context *psp = hdcp->config.psp.handle;
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
150
void *handle;
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
152
bool (*read_i2c)(void *handle,
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
157
bool (*write_i2c)(void *handle,
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
161
bool (*read_dpcd)(void *handle,
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
165
bool (*write_dpcd)(void *handle,
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
170
void *handle,
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
178
void *handle,
sys/dev/pci/drm/amd/display/modules/inc/mod_hdcp.h
189
void *handle;
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
409
int (*pre_set_power_state)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
410
int (*set_power_state)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
411
void (*post_set_power_state)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
412
void (*display_configuration_changed)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
413
void (*print_power_state)(void *handle, void *ps);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
414
bool (*vblank_too_short)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
415
void (*enable_bapm)(void *handle, bool enable);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
416
int (*check_state_equal)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
421
int (*set_fan_control_mode)(void *handle, u32 mode);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
422
int (*get_fan_control_mode)(void *handle, u32 *fan_mode);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
423
int (*set_fan_speed_pwm)(void *handle, u32 speed);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
424
int (*get_fan_speed_pwm)(void *handle, u32 *speed);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
425
int (*force_clock_level)(void *handle, enum pp_clock_type type, uint32_t mask);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
426
int (*print_clock_levels)(void *handle, enum pp_clock_type type, char *buf);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
427
int (*emit_clock_levels)(void *handle, enum pp_clock_type type, char *buf, int *offset);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
428
int (*force_performance_level)(void *handle, enum amd_dpm_forced_level level);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
429
int (*get_sclk_od)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
430
int (*set_sclk_od)(void *handle, uint32_t value);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
431
int (*get_mclk_od)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
432
int (*set_mclk_od)(void *handle, uint32_t value);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
433
int (*read_sensor)(void *handle, int idx, void *value, int *size);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
434
int (*get_apu_thermal_limit)(void *handle, uint32_t *limit);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
435
int (*set_apu_thermal_limit)(void *handle, uint32_t limit);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
436
enum amd_dpm_forced_level (*get_performance_level)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
437
enum amd_pm_state_type (*get_current_power_state)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
438
int (*get_fan_speed_rpm)(void *handle, uint32_t *rpm);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
439
int (*set_fan_speed_rpm)(void *handle, uint32_t rpm);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
440
int (*get_pp_num_states)(void *handle, struct pp_states_info *data);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
441
int (*get_pp_table)(void *handle, char **table);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
442
int (*set_pp_table)(void *handle, const char *buf, size_t size);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
443
void (*debugfs_print_current_performance_level)(void *handle, struct seq_file *m);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
444
int (*switch_power_profile)(void *handle, enum PP_SMC_POWER_PROFILE type, bool en);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
445
int (*pause_power_profile)(void *handle, bool pause);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
447
struct amd_vce_state *(*get_vce_clock_state)(void *handle, u32 idx);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
448
int (*dispatch_tasks)(void *handle, enum amd_pp_task task_id,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
450
int (*load_firmware)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
451
int (*wait_for_fw_loading_complete)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
452
int (*set_powergating_by_smu)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
456
int (*set_clockgating_by_smu)(void *handle, uint32_t msg_id);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
457
int (*set_power_limit)(void *handle, uint32_t n);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
458
int (*get_power_limit)(void *handle, uint32_t *limit,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
461
int (*get_power_profile_mode)(void *handle, char *buf);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
462
int (*set_power_profile_mode)(void *handle, long *input, uint32_t size);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
463
int (*set_fine_grain_clk_vol)(void *handle, uint32_t type, long *input, uint32_t size);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
464
int (*odn_edit_dpm_table)(void *handle, enum PP_OD_DPM_TABLE_COMMAND type,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
466
int (*set_mp1_state)(void *handle, enum pp_mp1_state mp1_state);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
467
int (*smu_i2c_bus_access)(void *handle, bool acquire);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
468
int (*gfx_state_change_set)(void *handle, uint32_t state);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
470
u32 (*get_sclk)(void *handle, bool low);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
471
u32 (*get_mclk)(void *handle, bool low);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
472
int (*display_configuration_change)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
474
int (*get_display_power_level)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
476
int (*get_current_clocks)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
478
int (*get_clock_by_type)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
481
int (*get_clock_by_type_with_latency)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
484
int (*get_clock_by_type_with_voltage)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
487
int (*set_watermarks_for_clocks_ranges)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
489
int (*display_clock_voltage_request)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
491
int (*get_display_mode_validation_clocks)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
493
int (*notify_smu_enable_pwe)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
494
int (*enable_mgpu_fan_boost)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
495
int (*set_active_display_count)(void *handle, uint32_t count);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
496
int (*set_hard_min_dcefclk_by_freq)(void *handle, uint32_t clock);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
497
int (*set_hard_min_fclk_by_freq)(void *handle, uint32_t clock);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
498
int (*set_min_deep_sleep_dcefclk)(void *handle, uint32_t clock);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
499
int (*get_asic_baco_capability)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
500
int (*get_asic_baco_state)(void *handle, int *state);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
501
int (*set_asic_baco_state)(void *handle, int state);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
502
int (*get_ppfeature_status)(void *handle, char *buf);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
503
int (*set_ppfeature_status)(void *handle, uint64_t ppfeature_masks);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
504
int (*asic_reset_mode_2)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
505
int (*asic_reset_enable_gfx_features)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
506
int (*set_df_cstate)(void *handle, enum pp_df_cstate state);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
507
int (*set_xgmi_pstate)(void *handle, uint32_t pstate);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
508
ssize_t (*get_gpu_metrics)(void *handle, void **table);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
509
ssize_t (*get_temp_metrics)(void *handle, enum smu_temp_metric_type type, void *table);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
510
bool (*temp_metrics_is_supported)(void *handle, enum smu_temp_metric_type type);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
511
ssize_t (*get_xcp_metrics)(void *handle, int xcp_id, void *table);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
512
ssize_t (*get_pm_metrics)(void *handle, void *pmmetrics, size_t size);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
513
int (*set_watermarks_for_clock_ranges)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
515
int (*display_disable_memory_clock_switch)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
517
int (*get_max_sustainable_clocks_by_dc)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
519
int (*get_uclk_dpm_states)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
522
int (*get_dpm_clock_table)(void *handle,
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
524
int (*get_smu_prv_buf_details)(void *handle, void **addr, size_t *size);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
525
void (*pm_compute_clocks)(void *handle);
sys/dev/pci/drm/amd/include/kgd_pp_interface.h
526
int (*notify_rlc_state)(void *handle, bool en);
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1236
static void kv_dpm_enable_bapm(void *handle, bool enable)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1238
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1668
static void kv_dpm_powergate_uvd(void *handle, bool gate)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1670
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1695
static void kv_dpm_powergate_vce(void *handle, bool gate)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1697
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1871
static int kv_dpm_force_performance_level(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1875
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1896
static int kv_dpm_pre_set_power_state(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1898
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1912
static int kv_dpm_set_power_state(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1914
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1987
static void kv_dpm_post_set_power_state(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
1989
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2854
kv_dpm_debugfs_print_current_performance_level(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2857
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2882
kv_dpm_print_power_state(void *handle, void *request_ps)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2887
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2915
static void kv_dpm_display_configuration_changed(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2920
static u32 kv_dpm_get_sclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2922
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2932
static u32 kv_dpm_get_mclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2934
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2941
static int kv_dpm_get_temp(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
2945
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
3216
static int kv_check_state_equal(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
3226
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
3259
static int kv_dpm_read_sensor(void *handle, int idx,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
3262
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
3293
static int kv_set_powergating_by_smu(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
3300
kv_dpm_powergate_uvd(handle, gate);
sys/dev/pci/drm/amd/pm/legacy-dpm/kv_dpm.c
3303
kv_dpm_powergate_vce(handle, gate);
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
760
struct amd_vce_state* amdgpu_get_vce_clock_state(void *handle, u32 idx)
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
762
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
965
void amdgpu_legacy_dpm_compute_clocks(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.c
967
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.h
33
struct amd_vce_state* amdgpu_get_vce_clock_state(void *handle, u32 idx);
sys/dev/pci/drm/amd/pm/legacy-dpm/legacy_dpm.h
35
void amdgpu_legacy_dpm_compute_clocks(void *handle);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3077
static bool si_dpm_vblank_too_short(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3079
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3919
static int si_dpm_force_performance_level(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
3922
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6632
static int si_dpm_get_fan_speed_pwm(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6637
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6658
static int si_dpm_set_fan_speed_pwm(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6661
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6692
static int si_dpm_set_fan_control_mode(void *handle, u32 mode)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6694
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6715
static int si_dpm_get_fan_control_mode(void *handle, u32 *fan_mode)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
6717
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7019
static int si_dpm_pre_set_power_state(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7021
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7073
static int si_dpm_set_power_state(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7075
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7177
static void si_dpm_post_set_power_state(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7179
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7195
static void si_dpm_display_configuration_changed(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7197
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7576
static void si_dpm_debugfs_print_current_performance_level(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7579
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7932
static int si_dpm_get_temp(void *handle)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7936
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7951
static u32 si_dpm_get_sclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7953
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7963
static u32 si_dpm_get_mclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7965
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7975
static void si_dpm_print_power_state(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
7978
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
8017
static int si_check_state_equal(void *handle,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
8027
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
8061
static int si_dpm_read_sensor(void *handle, int idx,
sys/dev/pci/drm/amd/pm/legacy-dpm/si_dpm.c
8064
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1026
static int pp_display_configuration_change(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1029
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1038
static int pp_get_display_power_level(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1041
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1049
static int pp_get_current_clocks(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1054
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1097
static int pp_get_clock_by_type(void *handle, enum amd_pp_clock_type type, struct amd_pp_clocks *clocks)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1099
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1110
static int pp_get_clock_by_type_with_latency(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1114
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1122
static int pp_get_clock_by_type_with_voltage(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1126
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1134
static int pp_set_watermarks_for_clocks_ranges(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1137
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1146
static int pp_display_clock_voltage_request(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1149
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1157
static int pp_get_display_mode_validation_clocks(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1160
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1174
static int pp_dpm_powergate_mmhub(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1176
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1189
static int pp_dpm_powergate_gfx(void *handle, bool gate)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1191
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1204
static void pp_dpm_powergate_acp(void *handle, bool gate)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1206
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1219
static void pp_dpm_powergate_sdma(void *handle, bool gate)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1221
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1234
static int pp_set_powergating_by_smu(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1244
pp_dpm_powergate_uvd(handle, gate);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1247
pp_dpm_powergate_vce(handle, gate);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1255
pp_dpm_powergate_mmhub(handle);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1258
ret = pp_dpm_powergate_gfx(handle, gate);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1261
pp_dpm_powergate_acp(handle, gate);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1264
pp_dpm_powergate_sdma(handle, gate);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1272
static int pp_notify_smu_enable_pwe(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1274
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1289
static int pp_enable_mgpu_fan_boost(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1291
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1305
static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1307
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1322
static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1324
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1339
static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1341
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1356
static int pp_set_active_display_count(void *handle, uint32_t count)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1358
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1366
static int pp_get_asic_baco_capability(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1368
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1380
static int pp_get_asic_baco_state(void *handle, int *state)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1382
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1395
static int pp_set_asic_baco_state(void *handle, int state)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1397
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1411
static int pp_get_ppfeature_status(void *handle, char *buf)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1413
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1426
static int pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1428
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1441
static int pp_asic_reset_mode_2(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1443
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1456
static int pp_smu_i2c_bus_access(void *handle, bool acquire)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1458
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1471
static int pp_set_df_cstate(void *handle, enum pp_df_cstate state)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1473
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1486
static int pp_set_xgmi_pstate(void *handle, uint32_t pstate)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1488
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1501
static ssize_t pp_get_gpu_metrics(void *handle, void **table)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1503
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1514
static int pp_gfx_state_change_set(void *handle, uint32_t state)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1516
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1530
static int pp_get_prv_buffer_details(void *handle, void **addr, size_t *size)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1532
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1551
static void pp_pm_compute_clocks(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1553
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1558
pp_display_configuration_change(handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
1562
pp_dpm_dispatch_tasks(handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
311
static int pp_dpm_load_fw(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
313
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
326
static int pp_dpm_fw_loading_complete(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
331
static int pp_set_clockgating_by_smu(void *handle, uint32_t msg_id)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
333
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
370
static int pp_dpm_force_performance_level(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
373
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
389
void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
391
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
399
static uint32_t pp_dpm_get_sclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
401
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
413
static uint32_t pp_dpm_get_mclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
415
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
427
static void pp_dpm_powergate_vce(void *handle, bool gate)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
429
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
441
static void pp_dpm_powergate_uvd(void *handle, bool gate)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
443
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
455
static int pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
458
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
466
static enum amd_pm_state_type pp_dpm_get_current_power_state(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
468
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
498
static int pp_dpm_set_fan_control_mode(void *handle, uint32_t mode)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
500
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
516
static int pp_dpm_get_fan_control_mode(void *handle, uint32_t *fan_mode)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
518
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
533
static int pp_dpm_set_fan_speed_pwm(void *handle, uint32_t speed)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
535
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
549
static int pp_dpm_get_fan_speed_pwm(void *handle, uint32_t *speed)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
551
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
565
static int pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
567
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
581
static int pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
583
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
597
static int pp_dpm_get_pp_num_states(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
600
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
633
static int pp_dpm_get_pp_table(void *handle, char **table)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
635
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
644
static int amd_powerplay_reset(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
646
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
660
static int pp_dpm_set_pp_table(void *handle, const char *buf, size_t size)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
662
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
680
ret = amd_powerplay_reset(handle);
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
690
static int pp_dpm_force_clock_level(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
693
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
711
static int pp_dpm_emit_clock_levels(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
716
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
727
static int pp_dpm_print_clock_levels(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
730
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
742
static int pp_dpm_get_sclk_od(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
744
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
756
static int pp_dpm_set_sclk_od(void *handle, uint32_t value)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
758
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
771
static int pp_dpm_get_mclk_od(void *handle)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
773
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
785
static int pp_dpm_set_mclk_od(void *handle, uint32_t value)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
787
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
799
static int pp_dpm_read_sensor(void *handle, int idx,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
802
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
832
pp_dpm_get_vce_clock_state(void *handle, unsigned idx)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
834
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
844
static int pp_get_power_profile_mode(void *handle, char *buf)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
846
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
856
static int pp_set_power_profile_mode(void *handle, long *input, uint32_t size)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
858
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
871
static int pp_set_fine_grain_clk_vol(void *handle, uint32_t type, long *input, uint32_t size)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
873
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
884
static int pp_odn_edit_dpm_table(void *handle, enum PP_OD_DPM_TABLE_COMMAND type,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
887
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
900
static int pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
902
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
916
static int pp_dpm_switch_power_profile(void *handle,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
919
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
958
static int pp_set_power_limit(void *handle, uint32_t limit)
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
960
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
988
static int pp_get_power_limit(void *handle, uint32_t *limit,
sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c
992
struct pp_hwmgr *hwmgr = handle;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c
211
amdgpu_bo_free_kernel(&priv->smu_tables.entry[SMU10_WMTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c
214
amdgpu_bo_free_kernel(&priv->smu_tables.entry[SMU10_CLOCKTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c
258
&priv->smu_tables.entry[SMU10_WMTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c
273
&priv->smu_tables.entry[SMU10_CLOCKTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c
287
amdgpu_bo_free_kernel(&priv->smu_tables.entry[SMU10_WMTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu10_smumgr.h
38
struct amdgpu_bo *handle;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
515
&smu_data->header_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
530
&smu_data->smu_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
535
amdgpu_bo_free_kernel(&smu_data->header_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
553
amdgpu_bo_free_kernel(&smu_data->header_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
558
amdgpu_bo_free_kernel(&smu_data->smu_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu7_smumgr.h
36
struct amdgpu_bo *handle;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
779
&smu8_smu->toc_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
789
&smu8_smu->smu_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
837
amdgpu_bo_free_kernel(&smu8_smu->smu_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
841
amdgpu_bo_free_kernel(&smu8_smu->toc_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
858
amdgpu_bo_free_kernel(&smu8_smu->toc_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c
861
amdgpu_bo_free_kernel(&smu8_smu->smu_buffer.handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/smu8_smumgr.h
66
struct amdgpu_bo *handle; /* as bo handle used when release bo */
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
233
&priv->smu_tables.entry[PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
248
&priv->smu_tables.entry[WMTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
264
&priv->smu_tables.entry[AVFSTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
281
&priv->smu_tables.entry[TOOLSTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
296
&priv->smu_tables.entry[AVFSFUSETABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
311
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TOOLSTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
315
amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
319
amdgpu_bo_free_kernel(&priv->smu_tables.entry[WMTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
323
amdgpu_bo_free_kernel(&priv->smu_tables.entry[PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
337
amdgpu_bo_free_kernel(&priv->smu_tables.entry[PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
340
amdgpu_bo_free_kernel(&priv->smu_tables.entry[WMTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
343
amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
347
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TOOLSTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
350
amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSFUSETABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega10_smumgr.h
34
struct amdgpu_bo *handle;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
235
&priv->smu_tables.entry[TABLE_PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
249
&priv->smu_tables.entry[TABLE_WATERMARKS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
264
&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
278
&priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
293
&priv->smu_tables.entry[TABLE_OVERDRIVE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
307
&priv->smu_tables.entry[TABLE_SMU_METRICS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
319
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
323
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
328
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
332
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
336
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
351
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
354
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
358
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
361
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
364
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
367
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_SMU_METRICS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega12_smumgr.h
35
struct amdgpu_bo *handle;
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
444
&priv->smu_tables.entry[TABLE_PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
458
&priv->smu_tables.entry[TABLE_WATERMARKS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
472
&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
486
&priv->smu_tables.entry[TABLE_OVERDRIVE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
500
&priv->smu_tables.entry[TABLE_SMU_METRICS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
514
&priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
530
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_SMU_METRICS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
534
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
538
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
542
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
546
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
564
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
567
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
570
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
573
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
576
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_SMU_METRICS].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
579
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].handle,
sys/dev/pci/drm/amd/pm/powerplay/smumgr/vega20_smumgr.h
34
struct amdgpu_bo *handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
194
static u32 smu_get_mclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
196
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
208
static u32 smu_get_sclk(void *handle, bool low)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
210
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2304
static int smu_display_configuration_change(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2307
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2333
static int smu_enable_umd_pstate(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2341
struct smu_context *smu = (struct smu_context*)(handle);
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2491
static int smu_handle_dpm_task(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2495
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2502
static int smu_switch_power_profile(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2506
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2539
static int smu_pause_power_profile(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2542
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2568
static enum amd_dpm_forced_level smu_get_performance_level(void *handle)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2570
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2582
static int smu_force_performance_level(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2585
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2611
static int smu_set_display_count(void *handle, uint32_t count)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2613
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2647
static int smu_force_ppclk_levels(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2651
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2697
static int smu_set_mp1_state(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2700
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2713
static int smu_set_df_cstate(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2716
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2740
static int smu_set_watermarks_for_clock_ranges(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2743
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2826
static int smu_load_microcode(void *handle)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2828
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2868
static int smu_set_fan_speed_rpm(void *handle, uint32_t speed)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2870
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2905
int smu_get_power_limit(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2910
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2988
static int smu_set_power_limit(void *handle, uint32_t limit)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
2990
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3098
static int smu_print_ppclk_levels(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3102
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3112
static int smu_emit_ppclk_levels(void *handle, enum pp_clock_type type, char *buf, int *offset)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3114
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3131
static int smu_od_edit_dpm_table(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3135
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3148
static int smu_read_sensor(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3153
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3229
static int smu_get_apu_thermal_limit(void *handle, uint32_t *limit)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3232
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3240
static int smu_set_apu_thermal_limit(void *handle, uint32_t limit)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3243
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3251
static int smu_get_power_profile_mode(void *handle, char *buf)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3253
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3264
static int smu_set_power_profile_mode(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3268
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3300
static int smu_get_fan_control_mode(void *handle, u32 *fan_mode)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3302
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3318
static int smu_set_fan_control_mode(void *handle, u32 value)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3320
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3351
static int smu_get_fan_speed_pwm(void *handle, u32 *speed)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3353
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3370
static int smu_set_fan_speed_pwm(void *handle, u32 speed)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3372
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3397
static int smu_get_fan_speed_rpm(void *handle, uint32_t *speed)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3399
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3416
static int smu_set_deep_sleep_dcefclk(void *handle, uint32_t clk)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3418
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3426
static int smu_get_clock_by_type_with_latency(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3430
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3462
static int smu_display_clock_voltage_request(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3465
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3478
static int smu_display_disable_memory_clock_switch(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3481
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3493
static int smu_set_xgmi_pstate(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3496
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3511
static int smu_get_baco_capability(void *handle)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3513
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3524
static int smu_baco_set_state(void *handle, int state)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3526
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3583
static int smu_mode2_reset(void *handle)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3585
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3613
static int smu_enable_gfx_features(void *handle)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3615
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3630
static int smu_get_max_sustainable_clocks_by_dc(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3633
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3645
static int smu_get_uclk_dpm_states(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3649
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3661
static enum amd_pm_state_type smu_get_current_power_state(void *handle)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3663
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3675
static int smu_get_dpm_clock_table(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3678
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3690
static ssize_t smu_sys_get_gpu_metrics(void *handle, void **table)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3692
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3703
static ssize_t smu_sys_get_pm_metrics(void *handle, void *pm_metrics,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3706
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3717
static int smu_enable_mgpu_fan_boost(void *handle)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3719
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3731
static int smu_gfx_state_change_set(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3734
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3765
static int smu_get_prv_buffer_details(void *handle, void **addr, size_t *size)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3767
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3883
static ssize_t smu_sys_get_temp_metrics(void *handle, enum smu_temp_metric_type type, void *table)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3885
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
389
static int smu_dpm_set_power_gate(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3914
static bool smu_temp_metrics_is_supported(void *handle, enum smu_temp_metric_type type)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3916
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3928
static ssize_t smu_sys_get_xcp_metrics(void *handle, int xcp_id, void *table)
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
3930
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
394
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
575
static int smu_get_power_num_states(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
613
static int smu_sys_get_pp_table(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
616
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
633
static int smu_sys_set_pp_table(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
637
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
69
static int smu_set_fan_speed_pwm(void *handle, u32 speed);
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
70
static int smu_set_fan_control_mode(void *handle, u32 value);
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
71
static int smu_set_power_limit(void *handle, uint32_t limit);
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
72
static int smu_set_fan_speed_rpm(void *handle, uint32_t speed);
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
74
static int smu_set_mp1_state(void *handle, enum pp_mp1_state mp1_state);
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
80
static int smu_od_edit_dpm_table(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
84
static int smu_sys_get_pp_feature_mask(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
87
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
95
static int smu_sys_set_pp_feature_mask(void *handle,
sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
98
struct smu_context *smu = handle;
sys/dev/pci/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1732
int smu_get_power_limit(void *handle,
sys/dev/pci/drm/apple/iomfb.h
95
u64 handle;
sys/dev/pci/drm/apple/iomfb_internal.h
14
#define DCP_THUNK_VOID(func, handle) \
sys/dev/pci/drm/apple/iomfb_internal.h
18
dcp_push(dcp, oob, &dcp_methods[handle], 0, 0, NULL, cb, cookie); \
sys/dev/pci/drm/apple/iomfb_internal.h
21
#define DCP_THUNK_OUT(func, handle, T) \
sys/dev/pci/drm/apple/iomfb_internal.h
25
dcp_push(dcp, oob, &dcp_methods[handle], 0, sizeof(T), NULL, cb, cookie); \
sys/dev/pci/drm/apple/iomfb_internal.h
28
#define DCP_THUNK_IN(func, handle, T) \
sys/dev/pci/drm/apple/iomfb_internal.h
32
dcp_push(dcp, oob, &dcp_methods[handle], sizeof(T), 0, data, cb, cookie); \
sys/dev/pci/drm/apple/iomfb_internal.h
35
#define DCP_THUNK_INOUT(func, handle, T_in, T_out) \
sys/dev/pci/drm/apple/iomfb_internal.h
39
dcp_push(dcp, oob, &dcp_methods[handle], sizeof(T_in), sizeof(T_out), data, \
sys/dev/pci/drm/apple/iomfb_template.c
798
u32 handle;
sys/dev/pci/drm/apple/iomfb_template.c
811
handle = 0;
sys/dev/pci/drm/apple/iomfb_template.c
812
dcp_set_display_device(dcp, false, &handle, dcp_on_set_power_state,
sys/dev/pci/drm/apple/iomfb_template.c
815
handle = 2;
sys/dev/pci/drm/apple/iomfb_template.c
816
dcp_set_display_device(dcp, false, &handle,
sys/dev/pci/drm/apple/parser.c
1001
int parse_system_log_mnits(struct dcp_parse_ctx *handle, struct dcp_system_ev_mnits *entry)
sys/dev/pci/drm/apple/parser.c
101
ret |= skip(handle);
sys/dev/pci/drm/apple/parser.c
1010
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
1011
char *key = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
1015
ret = parse_int(it.handle, &mnits);
sys/dev/pci/drm/apple/parser.c
1017
ret = parse_int(it.handle, &idac);
sys/dev/pci/drm/apple/parser.c
1019
const char * value = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
1025
ret = parse_int(it.handle, &timestamp);
sys/dev/pci/drm/apple/parser.c
1027
skip(it.handle);
sys/dev/pci/drm/apple/parser.c
106
handle->pos += sizeof(s64);
sys/dev/pci/drm/apple/parser.c
111
handle->pos += tag->size;
sys/dev/pci/drm/apple/parser.c
122
static int skip_pair(struct dcp_parse_ctx *handle)
sys/dev/pci/drm/apple/parser.c
126
ret = skip(handle);
sys/dev/pci/drm/apple/parser.c
130
return skip(handle);
sys/dev/pci/drm/apple/parser.c
156
static char *parse_string(struct dcp_parse_ctx *handle)
sys/dev/pci/drm/apple/parser.c
158
const struct dcp_parse_tag *tag = parse_tag_of_type(handle, DCP_TYPE_STRING);
sys/dev/pci/drm/apple/parser.c
165
in = parse_bytes(handle, tag->size);
sys/dev/pci/drm/apple/parser.c
176
static int parse_int(struct dcp_parse_ctx *handle, s64 *value)
sys/dev/pci/drm/apple/parser.c
178
const void *tag = parse_tag_of_type(handle, DCP_TYPE_INT64);
sys/dev/pci/drm/apple/parser.c
184
in = parse_bytes(handle, sizeof(s64));
sys/dev/pci/drm/apple/parser.c
193
static int parse_bool(struct dcp_parse_ctx *handle, bool *b)
sys/dev/pci/drm/apple/parser.c
195
const struct dcp_parse_tag *tag = parse_tag_of_type(handle, DCP_TYPE_BOOL);
sys/dev/pci/drm/apple/parser.c
204
static int parse_blob(struct dcp_parse_ctx *handle, size_t size, u8 const **blob)
sys/dev/pci/drm/apple/parser.c
206
const struct dcp_parse_tag *tag = parse_tag_of_type(handle, DCP_TYPE_BLOB);
sys/dev/pci/drm/apple/parser.c
215
out = parse_bytes(handle, tag->size);
sys/dev/pci/drm/apple/parser.c
225
struct dcp_parse_ctx *handle;
sys/dev/pci/drm/apple/parser.c
229
static int iterator_begin(struct dcp_parse_ctx *handle, struct iterator *it,
sys/dev/pci/drm/apple/parser.c
236
.handle = handle,
sys/dev/pci/drm/apple/parser.c
240
tag = parse_tag_of_type(it->handle, type);
sys/dev/pci/drm/apple/parser.c
248
#define dcp_parse_foreach_in_array(handle, it) \
sys/dev/pci/drm/apple/parser.c
249
for (iterator_begin(handle, &it, false); it.idx < it.len; ++it.idx)
sys/dev/pci/drm/apple/parser.c
250
#define dcp_parse_foreach_in_dict(handle, it) \
sys/dev/pci/drm/apple/parser.c
251
for (iterator_begin(handle, &it, true); it.idx < it.len; ++it.idx)
sys/dev/pci/drm/apple/parser.c
273
static int parse_dimension(struct dcp_parse_ctx *handle, struct dimension *dim)
sys/dev/pci/drm/apple/parser.c
278
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
279
char *key = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
284
ret = parse_int(it.handle, &dim->active);
sys/dev/pci/drm/apple/parser.c
286
ret = parse_int(it.handle, &dim->total);
sys/dev/pci/drm/apple/parser.c
288
ret = parse_int(it.handle, &dim->front_porch);
sys/dev/pci/drm/apple/parser.c
290
ret = parse_int(it.handle, &dim->sync_width);
sys/dev/pci/drm/apple/parser.c
292
ret = parse_int(it.handle, &dim->precise_sync_rate);
sys/dev/pci/drm/apple/parser.c
294
skip(it.handle);
sys/dev/pci/drm/apple/parser.c
344
static int parse_color_modes(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
353
dcp_parse_foreach_in_array(handle, outer_it) {
sys/dev/pci/drm/apple/parser.c
358
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
359
char *key = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
364
ret = parse_int(it.handle, &cmode.colorimetry);
sys/dev/pci/drm/apple/parser.c
366
ret = parse_int(it.handle, &cmode.depth);
sys/dev/pci/drm/apple/parser.c
368
ret = parse_int(it.handle, &cmode.dynamic_range);
sys/dev/pci/drm/apple/parser.c
370
ret = parse_int(it.handle, &cmode.eotf);
sys/dev/pci/drm/apple/parser.c
372
ret = parse_int(it.handle, &cmode.id);
sys/dev/pci/drm/apple/parser.c
374
ret = parse_bool(it.handle, &is_virtual);
sys/dev/pci/drm/apple/parser.c
376
ret = parse_int(it.handle, &cmode.pixel_encoding);
sys/dev/pci/drm/apple/parser.c
378
ret = parse_int(it.handle, &cmode.score);
sys/dev/pci/drm/apple/parser.c
380
skip(it.handle);
sys/dev/pci/drm/apple/parser.c
393
trace_iomfb_color_mode(handle->dcp, cmode.id, cmode.score,
sys/dev/pci/drm/apple/parser.c
427
static int parse_mode(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
439
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
440
char *key = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
445
skip(it.handle);
sys/dev/pci/drm/apple/parser.c
447
ret = parse_dimension(it.handle, &horiz);
sys/dev/pci/drm/apple/parser.c
449
ret = parse_dimension(it.handle, &vert);
sys/dev/pci/drm/apple/parser.c
451
ret = parse_color_modes(it.handle, out);
sys/dev/pci/drm/apple/parser.c
453
ret = parse_int(it.handle, &id);
sys/dev/pci/drm/apple/parser.c
455
ret = parse_bool(it.handle, &is_virtual);
sys/dev/pci/drm/apple/parser.c
457
ret = parse_int(it.handle, score);
sys/dev/pci/drm/apple/parser.c
459
skip(it.handle);
sys/dev/pci/drm/apple/parser.c
550
trace_iomfb_timing_mode(handle->dcp, id, *score, horiz.active,
sys/dev/pci/drm/apple/parser.c
557
struct dcp_display_mode *enumerate_modes(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
567
ret = iterator_begin(handle, &it, false);
sys/dev/pci/drm/apple/parser.c
581
ret = parse_mode(it.handle, mode, &score, width_mm, height_mm, notch_height);
sys/dev/pci/drm/apple/parser.c
602
int parse_display_attributes(struct dcp_parse_ctx *handle, int *width_mm,
sys/dev/pci/drm/apple/parser.c
609
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
610
char *key = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
615
ret = parse_int(it.handle, &width_cm);
sys/dev/pci/drm/apple/parser.c
617
ret = parse_int(it.handle, &height_cm);
sys/dev/pci/drm/apple/parser.c
619
skip(it.handle);
sys/dev/pci/drm/apple/parser.c
635
int parse_epic_service_init(struct dcp_parse_ctx *handle, const char **name,
sys/dev/pci/drm/apple/parser.c
647
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
648
char *key = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
656
*name = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
662
*class = parse_string(it.handle);
sys/dev/pci/drm/apple/parser.c
668
ret = parse_int(it.handle, unit);
sys/dev/pci/drm/apple/parser.c
672
skip(it.handle);
sys/dev/pci/drm/apple/parser.c
697
static int parse_sample_rate_bit(struct dcp_parse_ctx *handle, unsigned int *ratebit)
sys/dev/pci/drm/apple/parser.c
700
int ret = parse_int(handle, &rate);
sys/dev/pci/drm/apple/parser.c
718
static int parse_sample_fmtbit(struct dcp_parse_ctx *handle, u64 *fmtbit)
sys/dev/pci/drm/apple/parser.c
721
int ret = parse_int(handle, &sample_size);
sys/dev/pci/drm/apple/parser.c
779
static int parse_chmap(struct dcp_parse_ctx *handle, struct snd_pcm_chmap_elem *chmap)
sys/dev/pci/drm/apple/parser.c
785
skip(handle);
sys/dev/pci/drm/apple/parser.c
791
dcp_parse_foreach_in_array(handle, it) {
sys/dev/pci/drm/apple/parser.c
793
if (consume_string(it.handle, chan_position_names[i].label))
sys/dev/pci/drm/apple/parser.c
797
ret = skip(it.handle);
sys/dev/pci/drm/apple/parser.c
81
static int skip(struct dcp_parse_ctx *handle)
sys/dev/pci/drm/apple/parser.c
811
static int parse_chan_layout_element(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
819
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
820
if (consume_string(it.handle, "ActiveChannelCount"))
sys/dev/pci/drm/apple/parser.c
821
ret = parse_int(it.handle, &nchans);
sys/dev/pci/drm/apple/parser.c
822
else if (consume_string(it.handle, "ChannelLayout"))
sys/dev/pci/drm/apple/parser.c
823
ret = parse_chmap(it.handle, chmap);
sys/dev/pci/drm/apple/parser.c
825
ret = skip_pair(it.handle);
sys/dev/pci/drm/apple/parser.c
83
const struct dcp_parse_tag *tag = parse_tag(handle);
sys/dev/pci/drm/apple/parser.c
837
static int parse_nchans_mask(struct dcp_parse_ctx *handle, unsigned int *mask)
sys/dev/pci/drm/apple/parser.c
844
dcp_parse_foreach_in_array(handle, it) {
sys/dev/pci/drm/apple/parser.c
847
ret = parse_chan_layout_element(it.handle, &nchans, NULL);
sys/dev/pci/drm/apple/parser.c
856
static int parse_avep_element(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
864
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
865
if (consume_string(handle, "StreamSampleRate"))
sys/dev/pci/drm/apple/parser.c
866
ret = parse_sample_rate_bit(it.handle, &mask.rates);
sys/dev/pci/drm/apple/parser.c
867
else if (consume_string(handle, "SampleSize"))
sys/dev/pci/drm/apple/parser.c
868
ret = parse_sample_fmtbit(it.handle, &mask.formats);
sys/dev/pci/drm/apple/parser.c
869
else if (consume_string(handle, "AudioChannelLayoutElements"))
sys/dev/pci/drm/apple/parser.c
870
ret = parse_nchans_mask(it.handle, &mask.nchans);
sys/dev/pci/drm/apple/parser.c
872
ret = skip_pair(it.handle);
sys/dev/pci/drm/apple/parser.c
878
trace_avep_sound_mode(handle->dcp, mask.rates, mask.formats, mask.nchans);
sys/dev/pci/drm/apple/parser.c
893
static int parse_mode_in_avep_element(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
902
dcp_parse_foreach_in_dict(handle, it) {
sys/dev/pci/drm/apple/parser.c
903
if (consume_string(it.handle, "AudioChannelLayoutElements")) {
sys/dev/pci/drm/apple/parser.c
907
dcp_parse_foreach_in_array(it.handle, inner_it) {
sys/dev/pci/drm/apple/parser.c
908
save_handle = *it.handle;
sys/dev/pci/drm/apple/parser.c
909
ret = parse_chan_layout_element(inner_it.handle,
sys/dev/pci/drm/apple/parser.c
922
*inner_it.handle = save_handle;
sys/dev/pci/drm/apple/parser.c
923
ret = parse_chan_layout_element(inner_it.handle,
sys/dev/pci/drm/apple/parser.c
928
} else if (consume_string(it.handle, "ElementData")) {
sys/dev/pci/drm/apple/parser.c
93
ret |= skip(handle); /* key */
sys/dev/pci/drm/apple/parser.c
931
ret = parse_blob(it.handle, sizeof(*cookie), &blob);
sys/dev/pci/drm/apple/parser.c
938
ret = skip_pair(it.handle);
sys/dev/pci/drm/apple/parser.c
94
ret |= skip(handle); /* value */
sys/dev/pci/drm/apple/parser.c
947
int parse_sound_constraints(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
960
dcp_parse_foreach_in_array(handle, it) {
sys/dev/pci/drm/apple/parser.c
961
ret = parse_avep_element(it.handle, sieve, hits);
sys/dev/pci/drm/apple/parser.c
971
int parse_sound_mode(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.c
980
dcp_parse_foreach_in_array(handle, it) {
sys/dev/pci/drm/apple/parser.c
981
save_handle = *it.handle;
sys/dev/pci/drm/apple/parser.c
982
ret = parse_avep_element(it.handle, sieve, NULL);
sys/dev/pci/drm/apple/parser.h
102
struct dcp_display_mode *enumerate_modes(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.h
105
int parse_display_attributes(struct dcp_parse_ctx *handle, int *width_mm,
sys/dev/pci/drm/apple/parser.h
107
int parse_epic_service_init(struct dcp_parse_ctx *handle, const char **name,
sys/dev/pci/drm/apple/parser.h
121
int parse_sound_constraints(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.h
124
int parse_sound_mode(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/apple/parser.h
135
int parse_system_log_mnits(struct dcp_parse_ctx *handle,
sys/dev/pci/drm/drm_client.c
187
u32 format, u32 *handle)
sys/dev/pci/drm/drm_client.c
209
obj = drm_gem_object_lookup(client->file, dumb_args.handle);
sys/dev/pci/drm/drm_client.c
217
*handle = dumb_args.handle;
sys/dev/pci/drm/drm_client.c
352
u32 handle)
sys/dev/pci/drm/drm_client.c
361
fb_req.handles[0] = handle;
sys/dev/pci/drm/drm_client.c
398
u32 handle;
sys/dev/pci/drm/drm_client.c
402
&handle);
sys/dev/pci/drm/drm_client.c
406
ret = drm_client_buffer_addfb(buffer, width, height, format, handle);
sys/dev/pci/drm/drm_client.c
414
drm_mode_destroy_dumb(client->dev, handle, client->file);
sys/dev/pci/drm/drm_crtc_internal.h
112
int drm_mode_destroy_dumb(struct drm_device *dev, u32 handle,
sys/dev/pci/drm/drm_dumb_buffers.c
129
args->handle,
sys/dev/pci/drm/drm_dumb_buffers.c
132
return drm_gem_dumb_map_offset(file_priv, dev, args->handle,
sys/dev/pci/drm/drm_dumb_buffers.c
136
int drm_mode_destroy_dumb(struct drm_device *dev, u32 handle,
sys/dev/pci/drm/drm_dumb_buffers.c
142
return drm_gem_handle_delete(file_priv, handle);
sys/dev/pci/drm/drm_dumb_buffers.c
150
return drm_mode_destroy_dumb(dev, args->handle, file_priv);
sys/dev/pci/drm/drm_dumb_buffers.c
92
args->handle = 0;
sys/dev/pci/drm/drm_framebuffer.c
138
r.handles[0] = or->handle;
sys/dev/pci/drm/drm_framebuffer.c
558
r->handle = 0;
sys/dev/pci/drm/drm_framebuffer.c
563
ret = fb->funcs->create_handle(fb, file_priv, &r->handle);
sys/dev/pci/drm/drm_gem.c
1026
drm_gem_object_lookup(struct drm_file *filp, u32 handle)
sys/dev/pci/drm/drm_gem.c
1030
objects_lookup(filp, &handle, 1, &obj);
sys/dev/pci/drm/drm_gem.c
1047
long drm_gem_dma_resv_wait(struct drm_file *filep, u32 handle,
sys/dev/pci/drm/drm_gem.c
1053
obj = drm_gem_object_lookup(filep, handle);
sys/dev/pci/drm/drm_gem.c
1055
DRM_DEBUG("Failed to look up GEM BO %d\n", handle);
sys/dev/pci/drm/drm_gem.c
1082
ret = drm_gem_handle_delete(file_priv, args->handle);
sys/dev/pci/drm/drm_gem.c
1098
obj = drm_gem_object_lookup(file_priv, args->handle);
sys/dev/pci/drm/drm_gem.c
1133
u32 handle;
sys/dev/pci/drm/drm_gem.c
1148
ret = drm_gem_handle_create_tail(file_priv, obj, &handle);
sys/dev/pci/drm/drm_gem.c
1152
args->handle = handle;
sys/dev/pci/drm/drm_gem.c
1165
int handle, ret;
sys/dev/pci/drm/drm_gem.c
1173
handle = args->new_handle;
sys/dev/pci/drm/drm_gem.c
1175
obj = drm_gem_object_lookup(file_priv, args->handle);
sys/dev/pci/drm/drm_gem.c
1179
if (args->handle == handle) {
sys/dev/pci/drm/drm_gem.c
1187
ret = idr_alloc(&file_priv->object_idr, obj, handle, handle + 1,
sys/dev/pci/drm/drm_gem.c
1196
handle);
sys/dev/pci/drm/drm_gem.c
1199
idr_remove(&file_priv->object_idr, handle);
sys/dev/pci/drm/drm_gem.c
1204
drm_prime_remove_buf_handle(&file_priv->prime, args->handle);
sys/dev/pci/drm/drm_gem.c
1210
idr_remove(&file_priv->object_idr, args->handle);
sys/dev/pci/drm/drm_gem.c
543
drm_gem_handle_delete(struct drm_file *filp, u32 handle)
sys/dev/pci/drm/drm_gem.c
550
obj = idr_replace(&filp->object_idr, NULL, handle);
sys/dev/pci/drm/drm_gem.c
556
drm_gem_object_release_handle(handle, obj, filp);
sys/dev/pci/drm/drm_gem.c
560
idr_remove(&filp->object_idr, handle);
sys/dev/pci/drm/drm_gem.c
581
u32 handle, u64 *offset)
sys/dev/pci/drm/drm_gem.c
586
obj = drm_gem_object_lookup(file, handle);
sys/dev/pci/drm/drm_gem.c
628
u32 handle;
sys/dev/pci/drm/drm_gem.c
651
handle = ret;
sys/dev/pci/drm/drm_gem.c
665
obj = idr_replace(&file_priv->object_idr, obj, handle);
sys/dev/pci/drm/drm_gem.c
668
*handlep = handle;
sys/dev/pci/drm/drm_gem.c
675
idr_remove(&file_priv->object_idr, handle);
sys/dev/pci/drm/drm_gem.c
936
static int objects_lookup(struct drm_file *filp, u32 *handle, int count,
sys/dev/pci/drm/drm_gem.c
946
obj = idr_find(&filp->object_idr, handle[i]);
sys/dev/pci/drm/drm_gem_dma_helper.c
153
uint32_t handle;
sys/dev/pci/drm/drm_gem_dma_helper.c
156
args->handle = 0;
sys/dev/pci/drm/drm_gem_dma_helper.c
162
error = drm_gem_handle_create(file_priv, &obj->base, &handle);
sys/dev/pci/drm/drm_gem_dma_helper.c
169
args->handle = handle;
sys/dev/pci/drm/drm_gem_framebuffer_helper.c
20
unsigned int *handle)
sys/dev/pci/drm/drm_gem_framebuffer_helper.c
22
return drm_gem_handle_create(file, fb->obj[0], handle);
sys/dev/pci/drm/drm_internal.h
89
struct dma_buf *dma_buf, uint32_t handle);
sys/dev/pci/drm/drm_internal.h
91
uint32_t handle);
sys/dev/pci/drm/drm_ioc32.c
227
drm_drawable_t handle;
sys/dev/pci/drm/drm_mtrr.c
62
drm_mtrr_del(int handle, unsigned long offset, size_t size, int flags)
sys/dev/pci/drm/drm_plane.c
1200
.handles = { req->handle },
sys/dev/pci/drm/drm_plane.c
1216
if (req->handle) {
sys/dev/pci/drm/drm_plane.c
1326
ret = crtc->funcs->cursor_set2(crtc, file_priv, req->handle,
sys/dev/pci/drm/drm_plane.c
1329
ret = crtc->funcs->cursor_set(crtc, file_priv, req->handle,
sys/dev/pci/drm/drm_prime.c
108
member->handle = handle;
sys/dev/pci/drm/drm_prime.c
132
if (handle > pos->handle)
sys/dev/pci/drm/drm_prime.c
144
uint32_t handle)
sys/dev/pci/drm/drm_prime.c
153
if (member->handle == handle)
sys/dev/pci/drm/drm_prime.c
155
else if (member->handle < handle)
sys/dev/pci/drm/drm_prime.c
166
uint32_t *handle)
sys/dev/pci/drm/drm_prime.c
176
*handle = member->handle;
sys/dev/pci/drm/drm_prime.c
189
uint32_t handle)
sys/dev/pci/drm/drm_prime.c
198
if (member->handle == handle) {
sys/dev/pci/drm/drm_prime.c
205
} else if (member->handle < handle) {
sys/dev/pci/drm/drm_prime.c
295
uint32_t *handle)
sys/dev/pci/drm/drm_prime.c
308
dma_buf, handle);
sys/dev/pci/drm/drm_prime.c
331
ret = drm_gem_handle_create_tail(file_priv, obj, handle);
sys/dev/pci/drm/drm_prime.c
337
dma_buf, *handle);
sys/dev/pci/drm/drm_prime.c
350
drm_gem_handle_delete(file_priv, *handle);
sys/dev/pci/drm/drm_prime.c
370
&args->handle);
sys/dev/pci/drm/drm_prime.c
373
return drm_gem_prime_fd_to_handle(dev, file_priv, args->fd, &args->handle);
sys/dev/pci/drm/drm_prime.c
433
struct drm_file *file_priv, uint32_t handle,
sys/dev/pci/drm/drm_prime.c
441
obj = drm_gem_object_lookup(file_priv, handle);
sys/dev/pci/drm/drm_prime.c
447
dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle);
sys/dev/pci/drm/drm_prime.c
486
dmabuf, handle);
sys/dev/pci/drm/drm_prime.c
514
struct drm_file *file_priv, uint32_t handle,
sys/dev/pci/drm/drm_prime.c
524
dmabuf = drm_gem_prime_handle_to_dmabuf(dev, file_priv, handle, flags);
sys/dev/pci/drm/drm_prime.c
547
args->handle, args->flags,
sys/dev/pci/drm/drm_prime.c
550
return drm_gem_prime_handle_to_fd(dev, file_priv, args->handle,
sys/dev/pci/drm/drm_prime.c
90
uint32_t handle;
sys/dev/pci/drm/drm_prime.c
97
struct dma_buf *dma_buf, uint32_t handle)
sys/dev/pci/drm/drm_privacy_screen_x86.c
21
static acpi_status __init acpi_set_handle(acpi_handle handle, u32 level,
sys/dev/pci/drm/drm_privacy_screen_x86.c
24
*(acpi_handle *)return_value = handle;
sys/dev/pci/drm/drm_syncobj.c
1571
syncobj = drm_syncobj_find(file_private, args->handle);
sys/dev/pci/drm/drm_syncobj.c
253
u32 handle)
sys/dev/pci/drm/drm_syncobj.c
260
syncobj = idr_find(&file_private->syncobj_idr, handle);
sys/dev/pci/drm/drm_syncobj.c
443
u32 handle, u64 point, u64 flags,
sys/dev/pci/drm/drm_syncobj.c
446
struct drm_syncobj *syncobj = drm_syncobj_find(file_private, handle);
sys/dev/pci/drm/drm_syncobj.c
607
struct drm_syncobj *syncobj, u32 *handle)
sys/dev/pci/drm/drm_syncobj.c
626
*handle = ret;
sys/dev/pci/drm/drm_syncobj.c
632
u32 *handle, uint32_t flags)
sys/dev/pci/drm/drm_syncobj.c
641
ret = drm_syncobj_get_handle(file_private, syncobj, handle);
sys/dev/pci/drm/drm_syncobj.c
647
u32 handle)
sys/dev/pci/drm/drm_syncobj.c
652
syncobj = idr_remove(&file_private->syncobj_idr, handle);
sys/dev/pci/drm/drm_syncobj.c
715
u32 handle, int *p_fd)
sys/dev/pci/drm/drm_syncobj.c
717
struct drm_syncobj *syncobj = drm_syncobj_find(file_private, handle);
sys/dev/pci/drm/drm_syncobj.c
729
int fd, u32 *handle)
sys/dev/pci/drm/drm_syncobj.c
755
*handle = ret;
sys/dev/pci/drm/drm_syncobj.c
765
int fd, int handle, u64 point)
sys/dev/pci/drm/drm_syncobj.c
773
syncobj = drm_syncobj_find(file_private, handle);
sys/dev/pci/drm/drm_syncobj.c
796
int handle, u64 point, int *p_fd)
sys/dev/pci/drm/drm_syncobj.c
806
ret = drm_syncobj_find_fence(file_private, handle, point, 0, &fence);
sys/dev/pci/drm/drm_syncobj.c
880
&args->handle, args->flags);
sys/dev/pci/drm/drm_syncobj.c
895
return drm_syncobj_destroy(file_private, args->handle);
sys/dev/pci/drm/drm_syncobj.c
920
return drm_syncobj_export_sync_file(file_private, args->handle,
sys/dev/pci/drm/drm_syncobj.c
926
return drm_syncobj_handle_to_fd(file_private, args->handle,
sys/dev/pci/drm/drm_syncobj.c
954
args->handle,
sys/dev/pci/drm/drm_syncobj.c
961
&args->handle);
sys/dev/pci/drm/i915/display/intel_bios.c
651
if (devdata && devdata->child.handle == DEVICE_HANDLE_LFP2)
sys/dev/pci/drm/i915/display/intel_bios.c
655
devdata && devdata->child.handle != DEVICE_HANDLE_LFP1);
sys/dev/pci/drm/i915/display/intel_display_irq.c
1112
{ .fault = MTL_PLANE_ATS_FAULT, .handle = handle_plane_ats_fault, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1113
{ .fault = MTL_PIPEDMC_ATS_FAULT, .handle = handle_pipedmc_ats_fault, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1114
{ .fault = GEN12_PIPEDMC_FAULT, .handle = handle_pipedmc_fault, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1115
{ .fault = GEN11_PIPE_PLANE5_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_5, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1116
{ .fault = GEN9_PIPE_PLANE4_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_4, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1117
{ .fault = GEN9_PIPE_PLANE3_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_3, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1118
{ .fault = GEN9_PIPE_PLANE2_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_2, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1119
{ .fault = GEN9_PIPE_PLANE1_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_1, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
112
if (handler->handle(crtc, handler->plane_id))
sys/dev/pci/drm/i915/display/intel_display_irq.c
1120
{ .fault = GEN9_PIPE_CURSOR_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1125
{ .fault = GEN12_PIPEDMC_FAULT, .handle = handle_pipedmc_fault, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1126
{ .fault = GEN11_PIPE_PLANE7_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_7, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1127
{ .fault = GEN11_PIPE_PLANE6_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_6, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1128
{ .fault = GEN11_PIPE_PLANE5_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_5, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1129
{ .fault = GEN9_PIPE_PLANE4_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_4, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1130
{ .fault = GEN9_PIPE_PLANE3_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_3, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1131
{ .fault = GEN9_PIPE_PLANE2_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_2, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1132
{ .fault = GEN9_PIPE_PLANE1_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_1, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1133
{ .fault = GEN9_PIPE_CURSOR_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1138
{ .fault = GEN11_PIPE_PLANE7_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_7, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1139
{ .fault = GEN11_PIPE_PLANE6_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_6, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1140
{ .fault = GEN11_PIPE_PLANE5_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_5, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1141
{ .fault = GEN9_PIPE_PLANE4_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_4, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1142
{ .fault = GEN9_PIPE_PLANE3_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_3, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1143
{ .fault = GEN9_PIPE_PLANE2_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_2, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1144
{ .fault = GEN9_PIPE_PLANE1_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_1, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1145
{ .fault = GEN9_PIPE_CURSOR_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1150
{ .fault = GEN9_PIPE_PLANE4_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_4, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1151
{ .fault = GEN9_PIPE_PLANE3_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_3, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1152
{ .fault = GEN9_PIPE_PLANE2_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_2, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1153
{ .fault = GEN9_PIPE_PLANE1_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_1, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1154
{ .fault = GEN9_PIPE_CURSOR_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1159
{ .fault = GEN8_PIPE_SPRITE_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1160
{ .fault = GEN8_PIPE_PRIMARY_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1161
{ .fault = GEN8_PIPE_CURSOR_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1782
{ .fault = SPRITEB_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE1, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1783
{ .fault = SPRITEA_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1784
{ .fault = PLANEA_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1785
{ .fault = CURSORA_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1786
{ .fault = SPRITED_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE1, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1787
{ .fault = SPRITEC_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1788
{ .fault = PLANEB_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1789
{ .fault = CURSORB_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1790
{ .fault = SPRITEF_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE1, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1791
{ .fault = SPRITEE_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1792
{ .fault = PLANEC_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
1793
{ .fault = CURSORC_INVALID_GTT_STATUS, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
725
{ .fault = ERR_INT_SPRITE_A_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
726
{ .fault = ERR_INT_PRIMARY_A_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
727
{ .fault = ERR_INT_CURSOR_A_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
728
{ .fault = ERR_INT_SPRITE_B_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
729
{ .fault = ERR_INT_PRIMARY_B_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
730
{ .fault = ERR_INT_CURSOR_B_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
731
{ .fault = ERR_INT_SPRITE_C_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
732
{ .fault = ERR_INT_PRIMARY_C_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
733
{ .fault = ERR_INT_CURSOR_C_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
75
bool (*handle)(struct intel_crtc *crtc, enum plane_id plane_id);
sys/dev/pci/drm/i915/display/intel_display_irq.c
842
{ .fault = GTT_FAULT_SPRITE_A_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
843
{ .fault = GTT_FAULT_SPRITE_B_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_SPRITE0, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
844
{ .fault = GTT_FAULT_PRIMARY_A_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
845
{ .fault = GTT_FAULT_PRIMARY_B_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_PRIMARY, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
846
{ .fault = GTT_FAULT_CURSOR_A_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_display_irq.c
847
{ .fault = GTT_FAULT_CURSOR_B_FAULT, .handle = handle_plane_fault, .plane_id = PLANE_CURSOR, },
sys/dev/pci/drm/i915/display/intel_fb.c
2126
unsigned int *handle)
sys/dev/pci/drm/i915/display/intel_fb.c
2137
return drm_gem_handle_create(file, obj, handle);
sys/dev/pci/drm/i915/display/intel_vbt_defs.h
475
u16 handle;
sys/dev/pci/drm/i915/gem/i915_gem_busy.c
123
obj = i915_gem_object_lookup_rcu(file, args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
131
if (lut->handle != iter.index)
sys/dev/pci/drm/i915/gem/i915_gem_create.c
215
return i915_gem_publish(obj, file, &args->size, &args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_create.c
239
return i915_gem_publish(obj, file, &args->size, &args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_create.c
497
return i915_gem_publish(obj, file, &args->size, &args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_domain.c
308
obj = i915_gem_object_lookup_rcu(file, args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_domain.c
373
obj = i915_gem_object_lookup(file, args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_domain.c
563
obj = i915_gem_object_lookup(file, args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
1048
eb_get_vma(const struct i915_execbuffer *eb, unsigned long handle)
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
1051
if (handle >= -eb->lut_size)
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
1053
return &eb->vma[handle];
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
1058
head = &eb->buckets[hash_32(handle, eb->lut_size)];
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
1060
if (ev->handle == handle)
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
2857
syncobj = drm_syncobj_find(eb->file, user_fence.handle);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
2985
syncobj = drm_syncobj_find(eb->file, user_fence.handle);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
45
u32 handle;
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
574
ev->handle = entry->handle;
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
576
&eb->buckets[hash_32(entry->handle,
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
838
u32 handle, struct i915_vma *vma)
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
851
lut->handle = handle;
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
858
err = radix_tree_insert(&ctx->handles_vma, handle, vma);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
865
if (idr_find(&eb->file->object_idr, handle) == obj) {
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
868
radix_tree_delete(&ctx->handles_vma, handle);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
887
static struct i915_vma *eb_lookup_vma(struct i915_execbuffer *eb, u32 handle)
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
897
vma = radix_tree_lookup(&eb->gem_context->handles_vma, handle);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
904
obj = i915_gem_object_lookup(eb->file, handle);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
930
err = __eb_add_lut(eb, handle, vma);
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c
950
vma = eb_lookup_vma(eb, eb->exec[i].handle);
sys/dev/pci/drm/i915/gem/i915_gem_mman.c
1200
u32 handle,
sys/dev/pci/drm/i915/gem/i915_gem_mman.c
1207
obj = i915_gem_object_lookup(file, handle);
sys/dev/pci/drm/i915/gem/i915_gem_mman.c
1224
u32 handle,
sys/dev/pci/drm/i915/gem/i915_gem_mman.c
1239
return __assign_mmap_offset_handle(file, handle, mmap_type, offset);
sys/dev/pci/drm/i915/gem/i915_gem_mman.c
1311
return __assign_mmap_offset_handle(file, args->handle, type, &args->offset);
sys/dev/pci/drm/i915/gem/i915_gem_mman.c
92
obj = i915_gem_object_lookup(file, args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_mman.h
30
u32 handle, u64 *offset);
sys/dev/pci/drm/i915/gem/i915_gem_object.c
289
vma = radix_tree_delete(&ctx->handles_vma, lut->handle);
sys/dev/pci/drm/i915/gem/i915_gem_object.h
103
return idr_find(&file->object_idr, handle);
sys/dev/pci/drm/i915/gem/i915_gem_object.h
116
i915_gem_object_lookup(struct drm_file *file, u32 handle)
sys/dev/pci/drm/i915/gem/i915_gem_object.h
121
obj = i915_gem_object_lookup_rcu(file, handle);
sys/dev/pci/drm/i915/gem/i915_gem_object.h
130
drm_gem_object_lookup(struct drm_file *file, u32 handle);
sys/dev/pci/drm/i915/gem/i915_gem_object.h
98
i915_gem_object_lookup_rcu(struct drm_file *file, u32 handle)
sys/dev/pci/drm/i915/gem/i915_gem_object_types.h
34
u32 handle;
sys/dev/pci/drm/i915/gem/i915_gem_tiling.c
353
obj = i915_gem_object_lookup(file, args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_tiling.c
437
obj = i915_gem_object_lookup_rcu(file, args->handle);
sys/dev/pci/drm/i915/gem/i915_gem_userptr.c
472
u32 __maybe_unused handle;
sys/dev/pci/drm/i915/gem/i915_gem_userptr.c
549
ret = drm_gem_handle_create(file, &obj->base, &handle);
sys/dev/pci/drm/i915/gem/i915_gem_userptr.c
556
args->handle = handle;
sys/dev/pci/drm/i915/gt/intel_gt_pm.h
53
static inline void intel_gt_pm_put(struct intel_gt *gt, intel_wakeref_t handle)
sys/dev/pci/drm/i915/gt/intel_gt_pm.h
55
intel_wakeref_untrack(&gt->wakeref, handle);
sys/dev/pci/drm/i915/gt/intel_gt_pm.h
69
static inline void intel_gt_pm_put_async(struct intel_gt *gt, intel_wakeref_t handle)
sys/dev/pci/drm/i915/gt/intel_gt_pm.h
71
intel_wakeref_untrack(&gt->wakeref, handle);
sys/dev/pci/drm/i915/gvt/opregion.c
176
v->child0.handle = DEVICE_TYPE_EFP1;
sys/dev/pci/drm/i915/gvt/opregion.c
184
v->child1.handle = DEVICE_TYPE_EFP2;
sys/dev/pci/drm/i915/gvt/opregion.c
192
v->child2.handle = DEVICE_TYPE_EFP3;
sys/dev/pci/drm/i915/gvt/opregion.c
200
v->child3.handle = DEVICE_TYPE_EFP4;
sys/dev/pci/drm/i915/gvt/opregion.c
69
u16 handle;
sys/dev/pci/drm/i915/i915_gem.c
1044
obj = i915_gem_object_lookup(file_priv, args->handle);
sys/dev/pci/drm/i915/i915_gem.c
476
obj = i915_gem_object_lookup(file, args->handle);
sys/dev/pci/drm/i915/i915_gem.c
757
obj = i915_gem_object_lookup(file, args->handle);
sys/dev/pci/drm/i915/i915_gem.c
826
obj = i915_gem_object_lookup(file, args->handle);
sys/dev/pci/drm/i915/intel_wakeref.h
305
intel_wakeref_t handle)
sys/dev/pci/drm/i915/intel_wakeref.h
307
intel_ref_tracker_free(&wf->debug, handle);
sys/dev/pci/drm/i915/intel_wakeref.h
318
intel_wakeref_t handle)
sys/dev/pci/drm/include/drm/drm_crtc.h
437
uint32_t handle, uint32_t width, uint32_t height);
sys/dev/pci/drm/include/drm/drm_crtc.h
459
uint32_t handle, uint32_t width, uint32_t height,
sys/dev/pci/drm/include/drm/drm_drv.h
302
uint32_t handle, uint32_t flags, int *prime_fd);
sys/dev/pci/drm/include/drm/drm_drv.h
309
int prime_fd, uint32_t *handle);
sys/dev/pci/drm/include/drm/drm_drv.h
376
struct drm_device *dev, uint32_t handle,
sys/dev/pci/drm/include/drm/drm_framebuffer.h
76
unsigned int *handle);
sys/dev/pci/drm/include/drm/drm_gem.h
570
int drm_gem_handle_delete(struct drm_file *filp, u32 handle);
sys/dev/pci/drm/include/drm/drm_gem.h
589
struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
sys/dev/pci/drm/include/drm/drm_gem.h
590
long drm_gem_dma_resv_wait(struct drm_file *filep, u32 handle,
sys/dev/pci/drm/include/drm/drm_gem.h
597
u32 handle, u64 *offset);
sys/dev/pci/drm/include/drm/drm_gem_framebuffer_helper.h
23
unsigned int *handle);
sys/dev/pci/drm/include/drm/drm_prime.h
71
struct drm_file *file_priv, int prime_fd, uint32_t *handle);
sys/dev/pci/drm/include/drm/drm_prime.h
73
struct drm_file *file_priv, uint32_t handle,
sys/dev/pci/drm/include/drm/drm_prime.h
76
struct drm_file *file_priv, uint32_t handle, uint32_t flags,
sys/dev/pci/drm/include/drm/drm_syncobj.h
119
u32 handle);
sys/dev/pci/drm/include/drm/drm_syncobj.h
127
u32 handle, u64 point, u64 flags,
sys/dev/pci/drm/include/drm/drm_syncobj.h
133
struct drm_syncobj *syncobj, u32 *handle);
sys/dev/pci/drm/include/drm/gpu_scheduler.h
669
u32 handle,
sys/dev/pci/drm/include/drm/ttm/ttm_backup.h
23
ttm_backup_handle_to_page_ptr(unsigned long handle)
sys/dev/pci/drm/include/drm/ttm/ttm_backup.h
25
return (struct vm_page *)(handle << 1 | 1);
sys/dev/pci/drm/include/drm/ttm/ttm_backup.h
56
void ttm_backup_drop(struct file *backup, pgoff_t handle);
sys/dev/pci/drm/include/drm/ttm/ttm_backup.h
59
pgoff_t handle, bool intr);
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
1038
__u64 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
1042
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
1047
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
1051
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
1067
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
202
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
641
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
707
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
722
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
738
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
762
__u64 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
828
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
907
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/amdgpu_drm.h
981
__u64 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
1020
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
216
void *handle; /**< Handle of map */
sys/dev/pci/drm/include/uapi/drm/drm.h
230
void *handle; /**< User-space: "Handle" to pass to mmap() */
sys/dev/pci/drm/include/uapi/drm/drm.h
428
drm_context_t handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
444
drm_drawable_t handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
455
drm_drawable_t handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
549
unsigned long handle; /**< Used for binding / unbinding */
sys/dev/pci/drm/include/uapi/drm/drm.h
560
unsigned long handle; /**< From drm_agp_buffer */
sys/dev/pci/drm/include/uapi/drm/drm.h
590
unsigned long handle; /**< Used for mapping / unmapping */
sys/dev/pci/drm/include/uapi/drm/drm.h
611
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
626
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
643
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
658
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
921
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
931
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
937
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm.h
946
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm_mode.h
1084
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm_mode.h
1092
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm_mode.h
1103
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm_mode.h
663
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm_mode.h
810
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/drm_mode.h
821
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1015
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1099
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1115
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1193
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1244
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1329
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1575
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1587
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1593
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1686
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1744
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1775
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
1821
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
2760
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
3690
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
927
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
933
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
949
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
965
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/i915_drm.h
993
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
816
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
835
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
857
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
863
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
869
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
877
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
883
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
888
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
894
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
907
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
920
__u32 handle; /* buffer */
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
942
__u32 handle;
sys/dev/pci/drm/include/uapi/drm/radeon_drm.h
977
__u32 handle;
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
438
__u64 handle; /* from KFD */
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
449
__u64 handle; /* to KFD */
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
468
__u64 handle; /* to KFD */
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
479
__u64 handle; /* to KFD */
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
512
__u64 handle; /* from KFD */
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
518
__u64 handle; /* to KFD */
sys/dev/pci/drm/radeon/radeon.h
1694
uint32_t handle, struct radeon_fence **fence);
sys/dev/pci/drm/radeon/radeon.h
1696
uint32_t handle, struct radeon_fence **fence);
sys/dev/pci/drm/radeon/radeon.h
1737
uint32_t handle, struct radeon_fence **fence);
sys/dev/pci/drm/radeon/radeon.h
1739
uint32_t handle, struct radeon_fence **fence);
sys/dev/pci/drm/radeon/radeon.h
555
uint32_t handle, uint64_t *offset_p);
sys/dev/pci/drm/radeon/radeon_acpi.c
114
static union acpi_object *radeon_atif_call(acpi_handle handle, int function,
sys/dev/pci/drm/radeon/radeon_acpi.c
138
status = acpi_evaluate_object(handle, "ATIF", &atif_arg, &buffer);
sys/dev/pci/drm/radeon/radeon_acpi.c
209
static int radeon_atif_verify_interface(acpi_handle handle,
sys/dev/pci/drm/radeon/radeon_acpi.c
217
info = radeon_atif_call(handle, ATIF_FUNCTION_VERIFY_INTERFACE, NULL);
sys/dev/pci/drm/radeon/radeon_acpi.c
256
static int radeon_atif_get_notification_params(acpi_handle handle,
sys/dev/pci/drm/radeon/radeon_acpi.c
264
info = radeon_atif_call(handle, ATIF_FUNCTION_GET_SYSTEM_PARAMETERS, NULL);
sys/dev/pci/drm/radeon/radeon_acpi.c
318
static int radeon_atif_get_sbios_requests(acpi_handle handle,
sys/dev/pci/drm/radeon/radeon_acpi.c
325
info = radeon_atif_call(handle, ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS, NULL);
sys/dev/pci/drm/radeon/radeon_acpi.c
362
acpi_handle handle;
sys/dev/pci/drm/radeon/radeon_acpi.c
377
handle = ACPI_HANDLE(&rdev->pdev->dev);
sys/dev/pci/drm/radeon/radeon_acpi.c
378
count = radeon_atif_get_sbios_requests(handle, &req);
sys/dev/pci/drm/radeon/radeon_acpi.c
437
static union acpi_object *radeon_atcs_call(acpi_handle handle, int function,
sys/dev/pci/drm/radeon/radeon_acpi.c
461
status = acpi_evaluate_object(handle, "ATCS", &atcs_arg, &buffer);
sys/dev/pci/drm/radeon/radeon_acpi.c
503
static int radeon_atcs_verify_interface(acpi_handle handle,
sys/dev/pci/drm/radeon/radeon_acpi.c
511
info = radeon_atcs_call(handle, ATCS_FUNCTION_VERIFY_INTERFACE, NULL);
sys/dev/pci/drm/radeon/radeon_acpi.c
567
acpi_handle handle;
sys/dev/pci/drm/radeon/radeon_acpi.c
572
handle = ACPI_HANDLE(&rdev->pdev->dev);
sys/dev/pci/drm/radeon/radeon_acpi.c
573
if (!handle)
sys/dev/pci/drm/radeon/radeon_acpi.c
579
info = radeon_atcs_call(handle, ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION, NULL);
sys/dev/pci/drm/radeon/radeon_acpi.c
602
acpi_handle handle;
sys/dev/pci/drm/radeon/radeon_acpi.c
612
handle = ACPI_HANDLE(&rdev->pdev->dev);
sys/dev/pci/drm/radeon/radeon_acpi.c
613
if (!handle)
sys/dev/pci/drm/radeon/radeon_acpi.c
633
info = radeon_atcs_call(handle, ATCS_FUNCTION_PCIE_PERFORMANCE_REQUEST, &params);
sys/dev/pci/drm/radeon/radeon_acpi.c
709
acpi_handle handle;
sys/dev/pci/drm/radeon/radeon_acpi.c
715
handle = ACPI_HANDLE(&rdev->pdev->dev);
sys/dev/pci/drm/radeon/radeon_acpi.c
718
if (!ASIC_IS_AVIVO(rdev) || !rdev->bios || !handle)
sys/dev/pci/drm/radeon/radeon_acpi.c
722
ret = radeon_atcs_verify_interface(handle, atcs);
sys/dev/pci/drm/radeon/radeon_acpi.c
728
ret = radeon_atif_verify_interface(handle, atif);
sys/dev/pci/drm/radeon/radeon_acpi.c
773
ret = radeon_atif_get_notification_params(handle,
sys/dev/pci/drm/radeon/radeon_cs.c
110
gobj = drm_gem_object_lookup(p->filp, r->handle);
sys/dev/pci/drm/radeon/radeon_cs.c
113
r->handle);
sys/dev/pci/drm/radeon/radeon_cursor.c
278
uint32_t handle,
sys/dev/pci/drm/radeon/radeon_cursor.c
290
if (!handle) {
sys/dev/pci/drm/radeon/radeon_cursor.c
303
obj = drm_gem_object_lookup(file_priv, handle);
sys/dev/pci/drm/radeon/radeon_cursor.c
305
DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, radeon_crtc->crtc_id);
sys/dev/pci/drm/radeon/radeon_gem.c
408
uint32_t handle;
sys/dev/pci/drm/radeon/radeon_gem.c
422
r = drm_gem_handle_create(filp, gobj, &handle);
sys/dev/pci/drm/radeon/radeon_gem.c
430
args->handle = handle;
sys/dev/pci/drm/radeon/radeon_gem.c
445
uint32_t handle;
sys/dev/pci/drm/radeon/radeon_gem.c
508
r = drm_gem_handle_create(filp, gobj, &handle);
sys/dev/pci/drm/radeon/radeon_gem.c
514
args->handle = handle;
sys/dev/pci/drm/radeon/radeon_gem.c
544
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
560
uint32_t handle, uint64_t *offset_p)
sys/dev/pci/drm/radeon/radeon_gem.c
565
gobj = drm_gem_object_lookup(filp, handle);
sys/dev/pci/drm/radeon/radeon_gem.c
584
return radeon_mode_dumb_mmap(filp, dev, args->handle, &args->addr_ptr);
sys/dev/pci/drm/radeon/radeon_gem.c
596
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
625
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
656
DRM_DEBUG("%d \n", args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
657
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
675
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
815
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
870
gobj = drm_gem_object_lookup(filp, args->handle);
sys/dev/pci/drm/radeon/radeon_gem.c
933
uint32_t handle;
sys/dev/pci/drm/radeon/radeon_gem.c
947
r = drm_gem_handle_create(file_priv, gobj, &handle);
sys/dev/pci/drm/radeon/radeon_gem.c
953
args->handle = handle;
sys/dev/pci/drm/radeon/radeon_mode.h
829
uint32_t handle,
sys/dev/pci/drm/radeon/radeon_test.c
266
uint32_t handle = ring->idx ^ 0xdeafbeef;
sys/dev/pci/drm/radeon/radeon_test.c
270
r = radeon_uvd_get_create_msg(rdev, ring->idx, handle, NULL);
sys/dev/pci/drm/radeon/radeon_test.c
276
r = radeon_uvd_get_destroy_msg(rdev, ring->idx, handle, fence);
sys/dev/pci/drm/radeon/radeon_test.c
284
r = radeon_vce_get_create_msg(rdev, ring->idx, handle, NULL);
sys/dev/pci/drm/radeon/radeon_test.c
290
r = radeon_vce_get_destroy_msg(rdev, ring->idx, handle, fence);
sys/dev/pci/drm/radeon/radeon_uvd.c
259
uint32_t handle = atomic_read(&rdev->uvd.handles[i]);
sys/dev/pci/drm/radeon/radeon_uvd.c
260
if (handle != 0) {
sys/dev/pci/drm/radeon/radeon_uvd.c
266
R600_RING_TYPE_UVD_INDEX, handle, &fence);
sys/dev/pci/drm/radeon/radeon_uvd.c
333
uint32_t handle = atomic_read(&rdev->uvd.handles[i]);
sys/dev/pci/drm/radeon/radeon_uvd.c
334
if (handle != 0 && rdev->uvd.filp[i] == filp) {
sys/dev/pci/drm/radeon/radeon_uvd.c
340
R600_RING_TYPE_UVD_INDEX, handle, &fence);
sys/dev/pci/drm/radeon/radeon_uvd.c
469
int32_t *msg, msg_type, handle;
sys/dev/pci/drm/radeon/radeon_uvd.c
488
handle = msg[2];
sys/dev/pci/drm/radeon/radeon_uvd.c
490
if (handle == 0) {
sys/dev/pci/drm/radeon/radeon_uvd.c
508
if (atomic_read(&p->rdev->uvd.handles[i]) == handle) {
sys/dev/pci/drm/radeon/radeon_uvd.c
509
DRM_ERROR("Handle 0x%x already in use!\n", handle);
sys/dev/pci/drm/radeon/radeon_uvd.c
513
if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) {
sys/dev/pci/drm/radeon/radeon_uvd.c
534
if (atomic_read(&p->rdev->uvd.handles[i]) == handle) {
sys/dev/pci/drm/radeon/radeon_uvd.c
543
DRM_ERROR("Invalid UVD handle 0x%x!\n", handle);
sys/dev/pci/drm/radeon/radeon_uvd.c
549
atomic_cmpxchg(&p->rdev->uvd.handles[i], handle, 0);
sys/dev/pci/drm/radeon/radeon_uvd.c
767
uint32_t handle, struct radeon_fence **fence)
sys/dev/pci/drm/radeon/radeon_uvd.c
785
writel((__force u32)cpu_to_le32(handle), &msg[2]);
sys/dev/pci/drm/radeon/radeon_uvd.c
803
uint32_t handle, struct radeon_fence **fence)
sys/dev/pci/drm/radeon/radeon_uvd.c
821
writel((__force u32)cpu_to_le32(handle), &msg[2]);
sys/dev/pci/drm/radeon/radeon_vce.c
349
uint32_t handle = atomic_read(&rdev->vce.handles[i]);
sys/dev/pci/drm/radeon/radeon_vce.c
350
if (!handle || rdev->vce.filp[i] != filp)
sys/dev/pci/drm/radeon/radeon_vce.c
356
handle, NULL);
sys/dev/pci/drm/radeon/radeon_vce.c
376
uint32_t handle, struct radeon_fence **fence)
sys/dev/pci/drm/radeon/radeon_vce.c
395
ib.ptr[ib.length_dw++] = cpu_to_le32(handle);
sys/dev/pci/drm/radeon/radeon_vce.c
443
uint32_t handle, struct radeon_fence **fence)
sys/dev/pci/drm/radeon/radeon_vce.c
462
ib.ptr[ib.length_dw++] = cpu_to_le32(handle);
sys/dev/pci/drm/radeon/radeon_vce.c
549
uint32_t handle, bool *allocated)
sys/dev/pci/drm/radeon/radeon_vce.c
557
if (atomic_read(&p->rdev->vce.handles[i]) == handle) {
sys/dev/pci/drm/radeon/radeon_vce.c
568
if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) {
sys/dev/pci/drm/radeon/radeon_vce.c
590
uint32_t tmp = 0, handle = 0;
sys/dev/pci/drm/radeon/radeon_vce.c
612
handle = radeon_get_ib_value(p, p->idx + 2);
sys/dev/pci/drm/radeon/radeon_vce.c
613
session_idx = radeon_vce_validate_handle(p, handle,
sys/dev/pci/drm/radeon/radeon_vce.c
709
atomic_cmpxchg(&p->rdev->vce.handles[i], handle, 0);
sys/dev/pci/drm/scheduler/sched_main.c
938
u32 handle,
sys/dev/pci/drm/scheduler/sched_main.c
944
ret = drm_syncobj_find_fence(file, handle, point, 0, &fence);
sys/dev/pci/drm/ttm/ttm_backup.c
113
unsigned long handle = 0;
sys/dev/pci/drm/ttm/ttm_backup.c
125
handle = ttm_backup_shmem_idx_to_handle(idx);
sys/dev/pci/drm/ttm/ttm_backup.c
146
return handle;
sys/dev/pci/drm/ttm/ttm_backup.c
22
static pgoff_t ttm_backup_handle_to_shmem_idx(pgoff_t handle)
sys/dev/pci/drm/ttm/ttm_backup.c
24
return handle - 1;
sys/dev/pci/drm/ttm/ttm_backup.c
33
void ttm_backup_drop(struct file *backup, pgoff_t handle)
sys/dev/pci/drm/ttm/ttm_backup.c
37
loff_t start = ttm_backup_handle_to_shmem_idx(handle);
sys/dev/pci/drm/ttm/ttm_backup.c
57
pgoff_t handle, bool intr)
sys/dev/pci/drm/ttm/ttm_backup.c
64
pgoff_t idx = ttm_backup_handle_to_shmem_idx(handle);
sys/dev/pci/drm/ttm/ttm_pool.c
1128
unsigned long handle;
sys/dev/pci/drm/ttm/ttm_pool.c
1211
handle = shandle;
sys/dev/pci/drm/ttm/ttm_pool.c
1212
tt->pages[i] = ttm_backup_handle_to_page_ptr(handle);
sys/dev/pci/drm/ttm/ttm_pool.c
677
unsigned long handle = ttm_backup_page_ptr_to_handle(p);
sys/dev/pci/drm/ttm/ttm_pool.c
685
if (handle == 0) {
sys/dev/pci/drm/ttm/ttm_pool.c
691
handle, ctx->interruptible);
sys/dev/pci/drm/ttm/ttm_pool.c
695
ttm_backup_drop(backup, handle);
sys/dev/pci/drm/ttm/ttm_pool.c
822
unsigned long handle = ttm_backup_page_ptr_to_handle(p);
sys/dev/pci/drm/ttm/ttm_pool.c
824
if (handle != 0)
sys/dev/pci/drm/ttm/ttm_pool.c
825
ttm_backup_drop(backup, handle);
sys/dev/pci/gcu.c
69
&sc->handle, &sc->addr, &sc->size, 0)) {
sys/dev/pci/gcu_var.h
25
bus_space_handle_t handle;
sys/dev/pci/i82365_pci.c
156
pcic_write(&sc->handle[0], PCIC_CIRRUS_EXTENDED_INDEX,
sys/dev/pci/i82365_pci.c
158
if ((pcic_read(&sc->handle[0], PCIC_CIRRUS_EXTENDED_DATA) &
sys/dev/pci/i82365_pci.c
187
h = &sc->handle[i];
sys/dev/pci/if_bnxtreg.h
64655
uint16_t handle;
sys/dev/pci/if_bnxtreg.h
65304
uint32_t handle;
sys/dev/pci/if_em_soc.c
115
bus_space_write_4(gcu->tag, gcu->handle, MDIO_COMMAND_REG, data);
sys/dev/pci/if_em_soc.c
119
data = bus_space_read_4(gcu->tag, gcu->handle,
sys/dev/pci/if_em_soc.c
67
bus_space_write_4(gcu->tag, gcu->handle, MDIO_COMMAND_REG, data);
sys/dev/pci/if_em_soc.c
71
data = bus_space_read_4(gcu->tag, gcu->handle,
sys/dev/pci/if_em_soc.c
85
data = bus_space_read_4(gcu->tag, gcu->handle, MDIO_STATUS_REG);
sys/dev/pci/if_icereg.h
11366
uint16_t handle;
sys/dev/pci/mfii.c
858
uint16_t handle;
sys/dev/pci/mfii.c
862
handle = handles->pd_handles[target];
sys/dev/pci/mfii.c
865
return (handle);
sys/dev/pci/mpii.c
1908
u_int16_t handle;
sys/dev/pci/mpii.c
1943
handle = lemtoh16(&pe->dev_handle);
sys/dev/pci/mpii.c
1944
if (mpii_find_dev(sc, handle)) {
sys/dev/pci/mpii.c
1946
"configured\n", DEVNAME(sc), handle);
sys/dev/pci/mpii.c
1952
dev->dev_handle = handle;
sys/dev/pci/mpii.c
2116
mpii_sas_remove_device(struct mpii_softc *sc, u_int16_t handle)
sys/dev/pci/mpii.c
2129
htolem16(&stq->dev_handle, handle);
sys/dev/pci/mpii.c
2145
htolem16(&soq->dev_handle, handle);
sys/dev/pci/mpii.c
2571
mpii_find_dev(struct mpii_softc *sc, u_int16_t handle)
sys/dev/pci/mpii.c
2579
if (sc->sc_devs[i]->dev_handle == handle)
sys/dev/pci/pci_map.c
368
bus_space_handle_t handle;
sys/dev/pci/pci_map.c
395
if (bus_space_map(tag, base, size, flags, &handle))
sys/dev/pci/pci_map.c
401
*handlep = handle;
sys/dev/pci/qle.c
1027
u_int32_t handle;
sys/dev/pci/qle.c
1043
handle = status->handle;
sys/dev/pci/qle.c
1044
if (handle > sc->sc_maxcmds) {
sys/dev/pci/qle.c
1046
handle, sc->sc_maxcmds);
sys/dev/pci/qle.c
1049
ccb = &sc->sc_ccbs[handle];
sys/dev/pci/qle.c
1053
DEVNAME(sc), handle);
sys/dev/pci/qle.c
1059
"(handle %d, ccb %p, xs->io %p)", handle, ccb,
sys/dev/pci/qle.c
1180
handle = req->req_handle;
sys/dev/pci/qle.c
1181
if (handle > sc->sc_maxcmds) {
sys/dev/pci/qle.c
1183
handle, sc->sc_maxcmds);
sys/dev/pci/qle.c
1186
ccb = &sc->sc_ccbs[handle];
sys/dev/pci/qlereg.h
482
u_int32_t handle;
sys/dev/pci/qlereg.h
523
u_int32_t handle;
sys/dev/pcmcia/pcmciachip.h
100
((*(tag)->mem_alloc)((handle), (size), (pcmhp)))
sys/dev/pcmcia/pcmciachip.h
102
#define pcmcia_chip_mem_free(tag, handle, pcmhp) \
sys/dev/pcmcia/pcmciachip.h
103
((*(tag)->mem_free)((handle), (pcmhp)))
sys/dev/pcmcia/pcmciachip.h
105
#define pcmcia_chip_mem_map(tag, handle, kind, card_addr, size, pcmhp, \
sys/dev/pcmcia/pcmciachip.h
107
((*(tag)->mem_map)((handle), (kind), (card_addr), (size), (pcmhp), \
sys/dev/pcmcia/pcmciachip.h
110
#define pcmcia_chip_mem_unmap(tag, handle, window) \
sys/dev/pcmcia/pcmciachip.h
111
((*(tag)->mem_unmap)((handle), (window)))
sys/dev/pcmcia/pcmciachip.h
114
#define pcmcia_chip_io_alloc(tag, handle, start, size, align, pcihp) \
sys/dev/pcmcia/pcmciachip.h
115
((*(tag)->io_alloc)((handle), (start), (size), (align), (pcihp)))
sys/dev/pcmcia/pcmciachip.h
117
#define pcmcia_chip_io_free(tag, handle, pcihp) \
sys/dev/pcmcia/pcmciachip.h
118
((*(tag)->io_free)((handle), (pcihp)))
sys/dev/pcmcia/pcmciachip.h
120
#define pcmcia_chip_io_map(tag, handle, width, card_addr, size, pcihp, \
sys/dev/pcmcia/pcmciachip.h
122
((*(tag)->io_map)((handle), (width), (card_addr), (size), (pcihp), \
sys/dev/pcmcia/pcmciachip.h
125
#define pcmcia_chip_io_unmap(tag, handle, window) \
sys/dev/pcmcia/pcmciachip.h
126
((*(tag)->io_unmap)((handle), (window)))
sys/dev/pcmcia/pcmciachip.h
129
#define pcmcia_chip_intr_establish(tag, handle, pf, ipl, fct, arg, xname) \
sys/dev/pcmcia/pcmciachip.h
130
((*(tag)->intr_establish)((handle), (pf), (ipl), (fct), (arg), (xname)))
sys/dev/pcmcia/pcmciachip.h
132
#define pcmcia_chip_intr_disestablish(tag, handle, ih) \
sys/dev/pcmcia/pcmciachip.h
133
((*(tag)->intr_disestablish)((handle), (ih)))
sys/dev/pcmcia/pcmciachip.h
135
#define pcmcia_chip_intr_string(tag, handle, ih) \
sys/dev/pcmcia/pcmciachip.h
136
((*(tag)->intr_string)((handle), (ih)))
sys/dev/pcmcia/pcmciachip.h
139
#define pcmcia_chip_socket_enable(tag, handle) \
sys/dev/pcmcia/pcmciachip.h
140
((*(tag)->socket_enable)((handle)))
sys/dev/pcmcia/pcmciachip.h
141
#define pcmcia_chip_socket_disable(tag, handle) \
sys/dev/pcmcia/pcmciachip.h
142
((*(tag)->socket_disable)((handle)))
sys/dev/pcmcia/pcmciachip.h
99
#define pcmcia_chip_mem_alloc(tag, handle, size, pcmhp) \
sys/dev/pv/hyperv.c
1638
uint32_t *handle)
sys/dev/pv/hyperv.c
1699
*handle = atomic_inc_int_nv(&sc->sc_handle);
sys/dev/pv/hyperv.c
1703
hdr->chm_gpadl = *handle;
sys/dev/pv/hyperv.c
1720
cmd->chm_gpadl = *handle;
sys/dev/pv/hyperv.c
1761
KASSERT(*handle == rsp.chm_gpadl);
sys/dev/pv/hyperv.c
1767
hv_handle_free(struct hv_channel *ch, uint32_t handle)
sys/dev/pv/hyperv.c
1777
cmd.chm_gpadl = handle;
sys/dev/sdmmc/sdmmcchip.h
55
#define sdmmc_chip_host_reset(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
56
((tag)->host_reset((handle)))
sys/dev/sdmmc/sdmmcchip.h
58
#define sdmmc_chip_host_ocr(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
59
((tag)->host_ocr((handle)))
sys/dev/sdmmc/sdmmcchip.h
60
#define sdmmc_chip_host_maxblklen(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
61
((tag)->host_maxblklen((handle)))
sys/dev/sdmmc/sdmmcchip.h
63
#define sdmmc_chip_card_detect(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
64
((tag)->card_detect((handle)))
sys/dev/sdmmc/sdmmcchip.h
66
#define sdmmc_chip_bus_power(tag, handle, ocr) \
sys/dev/sdmmc/sdmmcchip.h
67
((tag)->bus_power((handle), (ocr)))
sys/dev/sdmmc/sdmmcchip.h
68
#define sdmmc_chip_bus_clock(tag, handle, freq, timing) \
sys/dev/sdmmc/sdmmcchip.h
69
((tag)->bus_clock((handle), (freq), (timing)))
sys/dev/sdmmc/sdmmcchip.h
70
#define sdmmc_chip_bus_width(tag, handle, width) \
sys/dev/sdmmc/sdmmcchip.h
71
((tag)->bus_width((handle), (width)))
sys/dev/sdmmc/sdmmcchip.h
73
#define sdmmc_chip_exec_command(tag, handle, cmdp) \
sys/dev/sdmmc/sdmmcchip.h
74
((tag)->exec_command((handle), (cmdp)))
sys/dev/sdmmc/sdmmcchip.h
76
#define sdmmc_chip_card_intr_mask(tag, handle, enable) \
sys/dev/sdmmc/sdmmcchip.h
77
((tag)->card_intr_mask((handle), (enable)))
sys/dev/sdmmc/sdmmcchip.h
78
#define sdmmc_chip_card_intr_ack(tag, handle) \
sys/dev/sdmmc/sdmmcchip.h
79
((tag)->card_intr_ack((handle)))
sys/dev/sdmmc/sdmmcchip.h
81
#define sdmmc_chip_signal_voltage(tag, handle, voltage) \
sys/dev/sdmmc/sdmmcchip.h
82
((tag)->signal_voltage((handle), (voltage)))
sys/dev/sdmmc/sdmmcchip.h
83
#define sdmmc_chip_execute_tuning(tag, handle, timing) \
sys/dev/sdmmc/sdmmcchip.h
84
((tag)->execute_tuning((handle), (timing)))
sys/net/if_spppsubr.c
68
# define UNTIMEOUT(fun, arg, handle) \
sys/net/if_spppsubr.c
69
timeout_del(&(handle))
usr.bin/ssh/misc.h
39
int handle; /* Handle for dynamic listen ports */
usr.bin/ssh/mux.c
674
channel_update_permission(ssh, rfwd->handle,
usr.bin/ssh/mux.c
682
channel_update_permission(ssh, rfwd->handle, -1);
usr.bin/ssh/mux.c
853
fwd.handle = channel_request_remote_forwarding(ssh, &fwd);
usr.bin/ssh/mux.c
854
if (fwd.handle < 0)
usr.bin/ssh/readconf.c
414
fwd->handle = newfwd->handle;
usr.bin/ssh/sftp-client.c
1313
sftp_fsync(struct sftp_conn *conn, u_char *handle, u_int handle_len)
usr.bin/ssh/sftp-client.c
1331
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
usr.bin/ssh/sftp-client.c
1435
sftp_fstatvfs(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
usr.bin/ssh/sftp-client.c
1455
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
usr.bin/ssh/sftp-client.c
1499
u_int len, const u_char *handle, u_int handle_len)
usr.bin/ssh/sftp-client.c
1508
(r = sshbuf_put_string(msg, handle, handle_len)) != 0 ||
usr.bin/ssh/sftp-client.c
1521
u_char *handle;
usr.bin/ssh/sftp-client.c
1550
if ((handle = get_handle(conn, id, &handle_len,
usr.bin/ssh/sftp-client.c
1554
*handlep = handle;
usr.bin/ssh/sftp-client.c
1578
u_char *handle;
usr.bin/ssh/sftp-client.c
1623
&handle, &handle_len) != 0)
usr.bin/ssh/sftp-client.c
1646
sftp_close(conn, handle, handle_len);
usr.bin/ssh/sftp-client.c
1647
free(handle);
usr.bin/ssh/sftp-client.c
1693
req->len, handle, handle_len);
usr.bin/ssh/sftp-client.c
1767
req->offset, req->len, handle, handle_len);
usr.bin/ssh/sftp-client.c
1821
sftp_close(conn, handle, handle_len);
usr.bin/ssh/sftp-client.c
1826
sftp_close(conn, handle, handle_len);
usr.bin/ssh/sftp-client.c
1828
if (sftp_close(conn, handle, handle_len) != 0 || interrupted)
usr.bin/ssh/sftp-client.c
1857
free(handle);
usr.bin/ssh/sftp-client.c
2011
u_char type, *handle, *data;
usr.bin/ssh/sftp-client.c
2077
&handle, &handle_len) != 0) {
usr.bin/ssh/sftp-client.c
2118
(r = sshbuf_put_string(msg, handle,
usr.bin/ssh/sftp-client.c
2200
sftp_fsetstat(conn, handle, handle_len, &t);
usr.bin/ssh/sftp-client.c
2210
sftp_fsetstat(conn, handle, handle_len, &a);
usr.bin/ssh/sftp-client.c
2213
(void)sftp_fsync(conn, handle, handle_len);
usr.bin/ssh/sftp-client.c
2215
if (sftp_close(conn, handle, handle_len) != 0)
usr.bin/ssh/sftp-client.c
2218
free(handle);
usr.bin/ssh/sftp-client.c
286
u_char *handle;
usr.bin/ssh/sftp-client.c
317
if ((r = sshbuf_get_string(msg, &handle, len)) != 0)
usr.bin/ssh/sftp-client.c
321
return handle;
usr.bin/ssh/sftp-client.c
651
sftp_close(struct sftp_conn *conn, const u_char *handle, u_int handle_len)
usr.bin/ssh/sftp-client.c
663
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
usr.bin/ssh/sftp-client.c
685
u_char type, *handle;
usr.bin/ssh/sftp-client.c
702
handle = get_handle(conn, id, &handle_len,
usr.bin/ssh/sftp-client.c
704
if (handle == NULL) {
usr.bin/ssh/sftp-client.c
723
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
usr.bin/ssh/sftp-client.c
804
sftp_close(conn, handle, handle_len);
usr.bin/ssh/sftp-client.c
805
free(handle);
usr.bin/ssh/sftp-client.c
928
sftp_fstat(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
usr.bin/ssh/sftp-client.c
936
send_string_request(conn, id, SSH2_FXP_FSTAT, handle,
usr.bin/ssh/sftp-client.c
962
sftp_fsetstat(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
usr.bin/ssh/sftp-client.c
970
send_string_attrs_request(conn, id, SSH2_FXP_FSETSTAT, handle,
usr.bin/ssh/sftp-server.c
1027
int handle, fd, r;
usr.bin/ssh/sftp-server.c
1030
if ((r = get_handle(iqueue, &handle)) != 0 ||
usr.bin/ssh/sftp-server.c
1034
debug("request %u: fsetstat handle %d", id, handle);
usr.bin/ssh/sftp-server.c
1035
fd = handle_to_fd(handle);
usr.bin/ssh/sftp-server.c
1039
char *name = handle_to_name(handle);
usr.bin/ssh/sftp-server.c
1081
int r, handle, status = SSH2_FX_FAILURE;
usr.bin/ssh/sftp-server.c
1092
handle = handle_new(HANDLE_DIR, path, 0, 0, dirp);
usr.bin/ssh/sftp-server.c
1093
if (handle < 0) {
usr.bin/ssh/sftp-server.c
1096
send_handle(id, handle);
usr.bin/ssh/sftp-server.c
1112
int r, handle;
usr.bin/ssh/sftp-server.c
1114
if ((r = get_handle(iqueue, &handle)) != 0)
usr.bin/ssh/sftp-server.c
1118
handle_to_name(handle), handle);
usr.bin/ssh/sftp-server.c
1119
dirp = handle_to_dir(handle);
usr.bin/ssh/sftp-server.c
1120
path = handle_to_name(handle);
usr.bin/ssh/sftp-server.c
1384
int r, handle, fd;
usr.bin/ssh/sftp-server.c
1387
if ((r = get_handle(iqueue, &handle)) != 0)
usr.bin/ssh/sftp-server.c
1390
id, handle_to_name(handle), handle);
usr.bin/ssh/sftp-server.c
1391
if ((fd = handle_to_fd(handle)) < 0) {
usr.bin/ssh/sftp-server.c
1423
int handle, fd, r, status = SSH2_FX_OP_UNSUPPORTED;
usr.bin/ssh/sftp-server.c
1425
if ((r = get_handle(iqueue, &handle)) != 0)
usr.bin/ssh/sftp-server.c
1427
debug3("request %u: fsync (handle %u)", id, handle);
usr.bin/ssh/sftp-server.c
1428
verbose("fsync \"%s\"", handle_to_name(handle));
usr.bin/ssh/sftp-server.c
1429
if ((fd = handle_to_fd(handle)) < 0)
usr.bin/ssh/sftp-server.c
1431
else if (handle_is_ok(handle, HANDLE_FILE)) {
usr.bin/ssh/sftp-server.c
360
handle_to_string(int handle, u_char **stringp, int *hlenp)
usr.bin/ssh/sftp-server.c
365
put_u32(*stringp, handle);
usr.bin/ssh/sftp-server.c
371
handle_from_string(const u_char *handle, u_int hlen)
usr.bin/ssh/sftp-server.c
377
val = get_u32(handle);
usr.bin/ssh/sftp-server.c
385
handle_to_name(int handle)
usr.bin/ssh/sftp-server.c
387
if (handle_is_ok(handle, HANDLE_DIR)||
usr.bin/ssh/sftp-server.c
388
handle_is_ok(handle, HANDLE_FILE))
usr.bin/ssh/sftp-server.c
389
return handles[handle].name;
usr.bin/ssh/sftp-server.c
394
handle_to_dir(int handle)
usr.bin/ssh/sftp-server.c
396
if (handle_is_ok(handle, HANDLE_DIR))
usr.bin/ssh/sftp-server.c
397
return handles[handle].dirp;
usr.bin/ssh/sftp-server.c
402
handle_to_fd(int handle)
usr.bin/ssh/sftp-server.c
404
if (handle_is_ok(handle, HANDLE_FILE))
usr.bin/ssh/sftp-server.c
405
return handles[handle].fd;
usr.bin/ssh/sftp-server.c
410
handle_to_flags(int handle)
usr.bin/ssh/sftp-server.c
412
if (handle_is_ok(handle, HANDLE_FILE))
usr.bin/ssh/sftp-server.c
413
return handles[handle].flags;
usr.bin/ssh/sftp-server.c
418
handle_update_read(int handle, ssize_t bytes)
usr.bin/ssh/sftp-server.c
420
if (handle_is_ok(handle, HANDLE_FILE) && bytes > 0)
usr.bin/ssh/sftp-server.c
421
handles[handle].bytes_read += bytes;
usr.bin/ssh/sftp-server.c
425
handle_update_write(int handle, ssize_t bytes)
usr.bin/ssh/sftp-server.c
427
if (handle_is_ok(handle, HANDLE_FILE) && bytes > 0)
usr.bin/ssh/sftp-server.c
428
handles[handle].bytes_write += bytes;
usr.bin/ssh/sftp-server.c
432
handle_bytes_read(int handle)
usr.bin/ssh/sftp-server.c
434
if (handle_is_ok(handle, HANDLE_FILE))
usr.bin/ssh/sftp-server.c
435
return (handles[handle].bytes_read);
usr.bin/ssh/sftp-server.c
440
handle_bytes_write(int handle)
usr.bin/ssh/sftp-server.c
442
if (handle_is_ok(handle, HANDLE_FILE))
usr.bin/ssh/sftp-server.c
443
return (handles[handle].bytes_write);
usr.bin/ssh/sftp-server.c
448
handle_close(int handle)
usr.bin/ssh/sftp-server.c
452
if (handle_is_ok(handle, HANDLE_FILE)) {
usr.bin/ssh/sftp-server.c
453
ret = close(handles[handle].fd);
usr.bin/ssh/sftp-server.c
454
free(handles[handle].name);
usr.bin/ssh/sftp-server.c
455
handle_unused(handle);
usr.bin/ssh/sftp-server.c
456
} else if (handle_is_ok(handle, HANDLE_DIR)) {
usr.bin/ssh/sftp-server.c
457
ret = closedir(handles[handle].dirp);
usr.bin/ssh/sftp-server.c
458
free(handles[handle].name);
usr.bin/ssh/sftp-server.c
459
handle_unused(handle);
usr.bin/ssh/sftp-server.c
467
handle_log_close(int handle, char *emsg)
usr.bin/ssh/sftp-server.c
469
if (handle_is_ok(handle, HANDLE_FILE)) {
usr.bin/ssh/sftp-server.c
472
handle_to_name(handle),
usr.bin/ssh/sftp-server.c
473
(unsigned long long)handle_bytes_read(handle),
usr.bin/ssh/sftp-server.c
474
(unsigned long long)handle_bytes_write(handle));
usr.bin/ssh/sftp-server.c
478
handle_to_name(handle));
usr.bin/ssh/sftp-server.c
495
u_char *handle;
usr.bin/ssh/sftp-server.c
500
if ((r = sshbuf_get_string(queue, &handle, &hlen)) != 0)
usr.bin/ssh/sftp-server.c
503
*hp = handle_from_string(handle, hlen);
usr.bin/ssh/sftp-server.c
504
free(handle);
usr.bin/ssh/sftp-server.c
594
send_handle(uint32_t id, int handle)
usr.bin/ssh/sftp-server.c
599
handle_to_string(handle, &string, &hlen);
usr.bin/ssh/sftp-server.c
600
debug("request %u: sent handle %d", id, handle);
usr.bin/ssh/sftp-server.c
737
int r, handle, fd, flags, mode, status = SSH2_FX_FAILURE;
usr.bin/ssh/sftp-server.c
759
handle = handle_new(HANDLE_FILE, name, fd, flags, NULL);
usr.bin/ssh/sftp-server.c
760
if (handle < 0) {
usr.bin/ssh/sftp-server.c
763
send_handle(id, handle);
usr.bin/ssh/sftp-server.c
776
int r, handle, ret, status = SSH2_FX_FAILURE;
usr.bin/ssh/sftp-server.c
778
if ((r = get_handle(iqueue, &handle)) != 0)
usr.bin/ssh/sftp-server.c
781
debug3("request %u: close handle %u", id, handle);
usr.bin/ssh/sftp-server.c
782
handle_log_close(handle, NULL);
usr.bin/ssh/sftp-server.c
783
ret = handle_close(handle);
usr.bin/ssh/sftp-server.c
794
int r, handle, fd, ret, status = SSH2_FX_FAILURE;
usr.bin/ssh/sftp-server.c
797
if ((r = get_handle(iqueue, &handle)) != 0 ||
usr.bin/ssh/sftp-server.c
803
id, handle_to_name(handle), handle, (unsigned long long)off, len);
usr.bin/ssh/sftp-server.c
804
if ((fd = handle_to_fd(handle)) == -1)
usr.bin/ssh/sftp-server.c
818
error_f("seek \"%.100s\": %s", handle_to_name(handle),
usr.bin/ssh/sftp-server.c
827
error_f("read \"%.100s\": %s", handle_to_name(handle),
usr.bin/ssh/sftp-server.c
835
handle_update_read(handle, ret);
usr.bin/ssh/sftp-server.c
848
int r, handle, fd, ret, status;
usr.bin/ssh/sftp-server.c
851
if ((r = get_handle(iqueue, &handle)) != 0 ||
usr.bin/ssh/sftp-server.c
857
id, handle_to_name(handle), handle, (unsigned long long)off, len);
usr.bin/ssh/sftp-server.c
858
fd = handle_to_fd(handle);
usr.bin/ssh/sftp-server.c
863
if (!(handle_to_flags(handle) & O_APPEND) &&
usr.bin/ssh/sftp-server.c
866
error_f("seek \"%.100s\": %s", handle_to_name(handle),
usr.bin/ssh/sftp-server.c
874
handle_to_name(handle), strerror(errno));
usr.bin/ssh/sftp-server.c
877
handle_update_write(handle, ret);
usr.bin/ssh/sftp-server.c
931
int fd, r, handle, status = SSH2_FX_FAILURE;
usr.bin/ssh/sftp-server.c
933
if ((r = get_handle(iqueue, &handle)) != 0)
usr.bin/ssh/sftp-server.c
936
id, handle_to_name(handle), handle);
usr.bin/ssh/sftp-server.c
937
fd = handle_to_fd(handle);
usr.bin/ssh/ssh-pkcs11.c
121
dlclose(p->handle);
usr.bin/ssh/ssh-pkcs11.c
1833
void *handle = NULL;
usr.bin/ssh/ssh-pkcs11.c
1858
if ((handle = dlopen(provider_id, RTLD_NOW)) == NULL) {
usr.bin/ssh/ssh-pkcs11.c
1862
if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL)
usr.bin/ssh/ssh-pkcs11.c
1866
p->handle = handle;
usr.bin/ssh/ssh-pkcs11.c
1979
if (handle)
usr.bin/ssh/ssh-pkcs11.c
1980
dlclose(handle);
usr.bin/ssh/ssh-pkcs11.c
56
void *handle;
usr.bin/ssh/ssh.c
1927
rfwd->handle, -1);
usr.bin/ssh/ssh.c
1936
rfwd->handle, rfwd->allocated_port);
usr.bin/ssh/ssh.c
1939
channel_update_permission(ssh, rfwd->handle, -1);
usr.bin/ssh/ssh.c
2096
if ((options.remote_forwards[i].handle =
usr.bin/top/machine.c
311
static struct handle handle;
usr.bin/top/machine.c
415
struct handle *
usr.bin/top/machine.c
497
handle.next_proc = pref;
usr.bin/top/machine.c
498
return &handle;
usr.bin/top/machine.c
543
skip_processes(struct handle *hndl, int n)
usr.bin/top/machine.c
549
format_next_process(struct handle *hndl, const char *(*get_userid)(uid_t, int),
usr.bin/top/machine.h
92
extern struct handle
usr.bin/top/machine.h
95
extern void skip_processes(struct handle *, int);
usr.bin/top/machine.h
96
extern char *format_next_process(struct handle *,
usr.bin/top/top.c
386
struct handle *processes;
usr.bin/uudecode/uudecode.c
190
void *handle;
usr.bin/uudecode/uudecode.c
222
handle = setmode(p);
usr.bin/uudecode/uudecode.c
223
if (handle == NULL) {
usr.bin/uudecode/uudecode.c
227
mode = getmode(handle, 0) & 0666;
usr.bin/uudecode/uudecode.c
228
free(handle);
usr.sbin/acme-client/parse.h
56
char *handle;
usr.sbin/acme-client/parse.y
1022
d->handle = s;
usr.sbin/acme-client/parse.y
1034
if (strncmp(d->handle, s, DOMAIN_MAXLEN) == 0) {
usr.sbin/acme-client/parse.y
1116
printf("domain %s {\n", d->handle);
usr.sbin/acme-client/parse.y
271
if ((ip = ip_valid(domain->handle)) != NULL) {
usr.sbin/acme-client/parse.y
276
if ((s = strdup(domain->handle)) ==
usr.sbin/nsd/simdzone/include/zone.h
345
FILE *handle;
usr.sbin/nsd/simdzone/src/generic/parser.h
273
assert(parser->file->handle);
usr.sbin/nsd/simdzone/src/generic/parser.h
312
parser->file->handle);
usr.sbin/nsd/simdzone/src/generic/parser.h
314
if (!count && ferror(parser->file->handle))
usr.sbin/nsd/simdzone/src/generic/parser.h
320
parser->file->end_of_file = feof(parser->file->handle) != 0;
usr.sbin/nsd/simdzone/src/zone.c
158
assert(!is_string || file->handle == NULL);
usr.sbin/nsd/simdzone/src/zone.c
164
assert(!is_stdin || (!file->handle || file->handle == stdin));
usr.sbin/nsd/simdzone/src/zone.c
176
if (file->handle && file->handle != stdin)
usr.sbin/nsd/simdzone/src/zone.c
177
(void)fclose(file->handle);
usr.sbin/nsd/simdzone/src/zone.c
178
file->handle = NULL;
usr.sbin/nsd/simdzone/src/zone.c
218
file->handle = NULL;
usr.sbin/nsd/simdzone/src/zone.c
268
file->handle = stdin;
usr.sbin/nsd/simdzone/src/zone.c
271
if ((file->handle = fopen(file->name, "rb")))
usr.sbin/smtpd/table_db.c
121
struct dbhandle *handle;
usr.sbin/smtpd/table_db.c
124
handle = xcalloc(1, sizeof *handle);
usr.sbin/smtpd/table_db.c
125
if (strlcpy(handle->pathname, table->t_config, sizeof handle->pathname)
usr.sbin/smtpd/table_db.c
126
>= sizeof handle->pathname)
usr.sbin/smtpd/table_db.c
129
if (stat(handle->pathname, &sb) == -1)
usr.sbin/smtpd/table_db.c
132
handle->mtime = sb.st_mtime;
usr.sbin/smtpd/table_db.c
133
handle->db = dbopen(table->t_config, O_RDONLY, 0600, DB_HASH, NULL);
usr.sbin/smtpd/table_db.c
134
if (handle->db == NULL)
usr.sbin/smtpd/table_db.c
137
return handle;
usr.sbin/smtpd/table_db.c
140
if (handle->db)
usr.sbin/smtpd/table_db.c
141
handle->db->close(handle->db);
usr.sbin/smtpd/table_db.c
142
free(handle);
usr.sbin/smtpd/table_db.c
149
struct dbhandle *handle = hdl;
usr.sbin/smtpd/table_db.c
150
handle->db->close(handle->db);
usr.sbin/smtpd/table_db.c
151
free(handle);
usr.sbin/smtpd/table_db.c
158
struct dbhandle *handle = table->t_handle;
usr.sbin/smtpd/table_db.c
166
if (stat(handle->pathname, &sb) == -1)
usr.sbin/smtpd/table_db.c
170
if (sb.st_mtime != handle->mtime) {
usr.sbin/smtpd/table_db.c
172
handle = table->t_handle;
usr.sbin/smtpd/table_db.c
180
line = table_db_get_entry(handle, key, &len);
usr.sbin/smtpd/table_db.c
182
line = table_db_get_entry_match(handle, key, &len, match);
usr.sbin/smtpd/table_db.c
198
struct dbhandle *handle = table->t_handle;
usr.sbin/smtpd/table_db.c
203
if (handle->iter == 0)
usr.sbin/smtpd/table_db.c
204
r = handle->db->seq(handle->db, &dbk, &dbd, R_FIRST);
usr.sbin/smtpd/table_db.c
206
r = handle->db->seq(handle->db, &dbk, &dbd, R_NEXT);
usr.sbin/smtpd/table_db.c
207
handle->iter = 1;
usr.sbin/smtpd/table_db.c
209
r = handle->db->seq(handle->db, &dbk, &dbd, R_FIRST);
usr.sbin/smtpd/table_db.c
226
struct dbhandle *handle = hdl;
usr.sbin/smtpd/table_db.c
232
for (r = handle->db->seq(handle->db, &dbk, &dbd, R_FIRST); !r;
usr.sbin/smtpd/table_db.c
233
r = handle->db->seq(handle->db, &dbk, &dbd, R_NEXT)) {
usr.sbin/smtpd/table_db.c
247
struct dbhandle *handle = hdl;
usr.sbin/smtpd/table_db.c
258
if (handle->db->get(handle->db, &dbk, &dbv, 0) != 0)
usr.sbin/smtpd/table_db.c
78
struct dbhandle *handle;
usr.sbin/smtpd/table_db.c
80
handle = table_db_open2(table);
usr.sbin/smtpd/table_db.c
81
if (handle == NULL)
usr.sbin/smtpd/table_db.c
84
table_db_close2(handle);
usr.sbin/smtpd/table_db.c
91
struct dbhandle *handle;
usr.sbin/smtpd/table_db.c
93
handle = table_db_open2(table);
usr.sbin/smtpd/table_db.c
94
if (handle == NULL)
usr.sbin/smtpd/table_db.c
98
table->t_handle = handle;
usr.sbin/unbound/dynlibmod/dynlibmod.c
44
static void close_library(const char* fname, __DYNMOD handle) {
usr.sbin/unbound/dynlibmod/dynlibmod.c
46
(void)handle;
usr.sbin/unbound/dynlibmod/dynlibmod.c
61
static void close_library(const char* fname, __DYNMOD handle) {
usr.sbin/unbound/dynlibmod/dynlibmod.c
62
if(!handle) return;
usr.sbin/unbound/dynlibmod/dynlibmod.c
63
if(dlclose(handle) != 0) {
usr.sbin/vmd/psp.c
121
psp_launch_start(uint32_t *handle, int seves)
usr.sbin/vmd/psp.c
139
if (handle)
usr.sbin/vmd/psp.c
140
*handle = ls.handle;
usr.sbin/vmd/psp.c
150
psp_launch_update(uint32_t handle, vaddr_t v, size_t len)
usr.sbin/vmd/psp.c
155
lud.handle = handle;
usr.sbin/vmd/psp.c
177
psp_encrypt_state(uint32_t handle, uint32_t asid, uint32_t vmid,
usr.sbin/vmd/psp.c
183
es.handle = handle;
usr.sbin/vmd/psp.c
198
psp_launch_measure(uint32_t handle)
usr.sbin/vmd/psp.c
206
lm.handle = handle;
usr.sbin/vmd/psp.c
246
psp_launch_finish(uint32_t handle)
usr.sbin/vmd/psp.c
250
lf.handle = handle;
usr.sbin/vmd/psp.c
268
psp_activate(uint32_t handle, uint32_t asid)
usr.sbin/vmd/psp.c
272
act.handle = handle;
usr.sbin/vmd/psp.c
292
psp_guest_shutdown(uint32_t handle)
usr.sbin/vmd/psp.c
296
gshutdown.handle = handle;
usr.sbin/vmd/psp.c
93
psp_get_gstate(uint32_t handle, uint32_t *policy, uint32_t *asid,
usr.sbin/vmd/psp.c
99
gst.handle = handle;
usr.sbin/vmd/sev.c
44
uint32_t handle;
usr.sbin/vmd/sev.c
60
if (psp_launch_start(&handle, vmc->vmc_seves) < 0) {
usr.sbin/vmd/sev.c
64
vm->vm_sev_handle = handle;