Home
last modified time | relevance | path

Searched refs:devhandle (Results 1 – 25 of 65) sorted by relevance

123

/netbsd-src/sys/arch/sparc64/include/
H A Dhypervisor.h130 int64_t hv_intr_devino_to_sysino(uint64_t devhandle, uint64_t devino,
148 int64_t hv_vintr_getcookie(uint64_t devhandle, uint64_t devino,
150 int64_t hv_vintr_setcookie(uint64_t devhandle, uint64_t devino,
152 int64_t hv_vintr_getenabled(uint64_t devhandle, uint64_t devino,
154 int64_t hv_vintr_setenabled(uint64_t devhandle, uint64_t devino,
156 int64_t hv_vintr_getstate(uint64_t devhandle, uint64_t devino,
158 int64_t hv_vintr_setstate(uint64_t devhandle, uint64_t devino,
160 int64_t hv_vintr_gettarget(uint64_t devhandle, uint64_t devino,
162 int64_t hv_vintr_settarget(uint64_t devhandle, uint64_t devino,
205 int64_t hv_pci_iommu_map(uint64_t devhandle, uint64_t tsbid,
[all …]
/netbsd-src/sys/arch/sparc64/dev/
H A Dcbus.c126 CFARGS(.devhandle = devhandle_from_of(selfh, ca.ca_node))); in cbus_attach()
147 uint64_t devhandle = sc->sc_devhandle; in cbus_intr_setstate() local
150 err = hv_vintr_setstate(devhandle, devino, state); in cbus_intr_setstate()
161 uint64_t devhandle = sc->sc_devhandle; in cbus_intr_setenabled() local
164 err = hv_vintr_setenabled(devhandle, devino, enabled); in cbus_intr_setenabled()
176 uint64_t devhandle = sc->sc_devhandle; in cbus_intr_establish() local
195 err = hv_vintr_setenabled(devhandle, devino, INTR_DISABLED); in cbus_intr_establish()
201 err = hv_vintr_setcookie(devhandle, devino, (vaddr_t)ih); in cbus_intr_establish()
209 err = hv_vintr_settarget(devhandle, devino, cpus->ci_cpuid); in cbus_intr_establish()
216 err = hv_vintr_setstate(devhandle, devino, INTR_IDLE); in cbus_intr_establish()
[all …]
H A Dvbus.c101 CFARGS(.devhandle = prom_node_to_devhandle(selfh, in vbus_attach()
146 uint64_t devhandle; in vbus_intr_map() local
187 devhandle = reg[0] & 0x0fffffff; in vbus_intr_map()
189 err = hv_intr_devino_to_sysino(devhandle, devino, sysino); in vbus_intr_map()
H A Debus_mainbus.c178 CFARGS(.devhandle = prom_node_to_devhandle(selfh, in ebus_mainbus_attach()
284 u_int64_t devhandle, devino = INTINO(ihandle); in ebus_mainbus_intr_establish()
300 devhandle = (reg.ur_paddr >> 32) & 0x0fffffff; in ebus_mainbus_intr_establish()
302 err = hv_intr_devino_to_sysino(devhandle, devino, &sysino); in ebus_mainbus_intr_establish()
H A Dvpci.c271 CFARGS(.devhandle = device_handle(sc->sc_dev))); in vpci_init()
375 uint64_t devhandle = pbm->vp_devhandle; in vpci_intr_map() local
382 err = hv_intr_devino_to_sysino(devhandle, devino, &sysino); in vpci_intr_map()
/netbsd-src/sys/arch/sparc64/sparc64/
H A Dintr.c372 sun4v_intr_devino_to_sysino(uint64_t devhandle, uint64_t devino, uint64_t *ino) in sun4v_intr_devino_to_sysino() argument
375 return hv_intr_devino_to_sysino(devhandle, devino, ino); in sun4v_intr_devino_to_sysino()
382 sun4v_intr_setcookie(uint64_t devhandle, uint64_t ino, uint64_t cookie_value) in sun4v_intr_setcookie() argument
387 return hv_vintr_setcookie(devhandle, ino, cookie_value); in sun4v_intr_setcookie()
391 sun4v_intr_setenabled(uint64_t devhandle, uint64_t ino, uint64_t intr_enabled) in sun4v_intr_setenabled() argument
396 return hv_vintr_setenabled(devhandle, ino, intr_enabled); in sun4v_intr_setenabled()
400 sun4v_intr_setstate(uint64_t devhandle, uint64_t ino, uint64_t intr_state) in sun4v_intr_setstate() argument
405 return hv_vintr_setstate(devhandle, ino, intr_state); in sun4v_intr_setstate()
409 sun4v_intr_settarget(uint64_t devhandle, uint64_t ino, uint64_t cpuid) in sun4v_intr_settarget() argument
414 return hv_vintr_settarget(devhandle, ino, cpuid); in sun4v_intr_settarget()
H A Dautoconf.c737 CFARGS(.devhandle = devhandle_from_of(selfh, ma.ma_node))); in mainbus_attach()
821 CFARGS(.devhandle = prom_node_to_devhandle(selfh, in mainbus_attach()
1104 devhandle_t devhandle; in device_register() local
1111 devhandle = device_handle(dev); in device_register()
1112 if (devhandle_type(devhandle) == DEVHANDLE_TYPE_OF) { in device_register()
1113 ofnode = devhandle_to_of(devhandle); in device_register()
1173 * controller's devhandle. Hoist it up one more so in device_register()
1177 devhandle = device_handle(busdev); in device_register()
1178 KASSERT(devhandle_type(devhandle) == DEVHANDLE_TYPE_OF); in device_register()
1179 ofnode = devhandle_to_of(devhandle); in device_register()
[all...]
/netbsd-src/usr.sbin/mmcformat/
H A Duscsi_subr.c378 disc->devhandle = cam_open_device(disc->dev_name, O_RDWR); in uscsi_open()
380 if (disc->devhandle == NULL) { in uscsi_open()
395 if (disc->devhandle != NULL) { in uscsi_close()
396 cam_close_device(disc->devhandle); in uscsi_close()
397 disc->devhandle = NULL; in uscsi_close()
421 cam_dev = (struct cam_device *) disc->devhandle; in uscsi_command()
495 cam_dev = (struct cam_device *) disc->devhandle; in uscsi_identify()
H A Duscsilib.h81 void *devhandle; /* for if a fhandle is not enough */ member
/netbsd-src/sys/arch/macppc/macppc/
H A Dmainbus.c92 CFARGS(.devhandle = devhandle_from_of(selfh, in mainbus_attach()
112 CFARGS(.devhandle = devhandle_from_of(selfh, node))); in mainbus_attach()
125 CFARGS(.devhandle = devhandle_from_of(selfh, node))); in mainbus_attach()
/netbsd-src/sys/dev/pci/
H A Dpci_calls41 * pci-bus-get-child-devhandle
43 * Retrieve the devhandle for the PCI device represented by 'tag'
58 pci-bus-get-child-devhandle {
61 devhandle_t devhandle; /* OUT */
H A Dpci_calls.h71 devhandle_t devhandle; /* OUT */ member
/netbsd-src/sys/dev/i2c/
H A Di2c.c459 devhandle_t devhandle; in iic_attach() local
489 devhandle = devhandle_invalid(); in iic_attach()
492 devhandle = devhandle_from_of(devhandle, in iic_attach()
498 devhandle = in iic_attach()
499 devhandle_from_acpi(devhandle, in iic_attach()
525 .devhandle = devhandle)); in iic_attach()
/netbsd-src/sys/dev/ofw/
H A Dofw_subr.c541 devhandle_t devhandle; in of_device_from_phandle() local
548 devhandle = device_handle(dev); in of_device_from_phandle()
549 if (devhandle_type(devhandle) == DEVHANDLE_TYPE_OF) { in of_device_from_phandle()
550 if (devhandle_to_of(devhandle) == phandle) { in of_device_from_phandle()
H A Dofbus.c186 CFARGS(.devhandle = devhandle_from_of(selfh, in ofbus_attach()
217 CFARGS(.devhandle = devhandle_from_of(selfh, in ofbus_attach()
H A Dofw_pci_subr.c80 args->devhandle = devhandle_from_of(call_handle, phandle); in ofw_pci_bus_get_child_devhandle()
/netbsd-src/sys/sys/
H A Ddevice.h160 struct devhandle { struct
174 typedef struct devhandle devhandle_t; argument
483 devhandle_t devhandle; /* devhandle_t (by value) */ member
496 * .devhandle = my_devhandle)
161 impldevhandle global() argument
/netbsd-src/sys/arch/shark/ofw/
H A Dofisascr.c108 CFARGS(.devhandle = device_handle(dev))); in ofisascrattach()
/netbsd-src/sys/dev/sbus/
H A Dxbox.c152 CFARGS(.devhandle = device_handle(self))); in xbox_attach()
H A Dlebuffer.c128 CFARGS(.devhandle = prom_node_to_devhandle(selfh, node))); in lebufattach()
H A Ddma_sbus.c214 CFARGS(.devhandle = prom_node_to_devhandle(selfh, node))); in dmaattach_sbus()
/netbsd-src/sys/arch/sparc/sparc/
H A Dautoconf.c1289 CFARGS(.devhandle = prom_node_to_devhandle(selfh, in mainbus_attach()
1303 CFARGS(.devhandle = prom_node_to_devhandle(selfh, in mainbus_attach()
1335 CFARGS(.devhandle = in mainbus_attach()
1397 CFARGS(.devhandle = prom_node_to_devhandle(selfh, in mainbus_attach()
1416 CFARGS(.devhandle = prom_node_to_devhandle(selfh, node))); in mainbus_attach()
/netbsd-src/sys/arch/macppc/dev/
H A Dgpio.c123 CFARGS(.devhandle = devhandle_from_of(selfh, child))); in gpio_obio_attach()
H A Duni-n.c167 CFARGS(.devhandle = devhandle_from_of(selfh, child))); in uni_n_attach()
/netbsd-src/sys/arch/sparc/dev/
H A Dsbus.c417 CFARGS(.devhandle = prom_node_to_devhandle(selfh, node))); in sbus_attach_common()
439 CFARGS(.devhandle = prom_node_to_devhandle(selfh, node))); in sbus_attach_common()

123