Home
last modified time | relevance | path

Searched refs:dev_hdl (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/uts/sun4v/io/px/
H A Dpx_lib4v.h129 extern uint64_t hvio_iommu_map(devhandle_t dev_hdl, tsbid_t tsbid,
132 extern uint64_t hvio_iommu_demap(devhandle_t dev_hdl, tsbid_t tsbid,
134 extern uint64_t hvio_iommu_getmap(devhandle_t dev_hdl, tsbid_t tsbid,
136 extern uint64_t hvio_iommu_getbypass(devhandle_t dev_hdl, r_addr_t ra,
138 extern uint64_t hvio_dma_sync(devhandle_t dev_hdl, r_addr_t ra,
145 extern uint64_t hvio_msiq_conf(devhandle_t dev_hdl, msiqid_t msiq_id,
147 extern uint64_t hvio_msiq_info(devhandle_t dev_hdl, msiqid_t msiq_id,
149 extern uint64_t hvio_msiq_getvalid(devhandle_t dev_hdl, msiqid_t msiq_id,
151 extern uint64_t hvio_msiq_setvalid(devhandle_t dev_hdl, msiqid_t msiq_id,
153 extern uint64_t hvio_msiq_getstate(devhandle_t dev_hdl, msiqid_t msiq_id,
[all …]
H A Dpx_libhv.c48 static uint64_t hvio_rp_mps(devhandle_t dev_hdl, pci_device_t bdf, int32_t *mps,
52 hvio_get_rp_mps_cap(devhandle_t dev_hdl, pci_device_t bdf, int32_t *mps_cap) in hvio_get_rp_mps_cap() argument
54 return (hvio_rp_mps(dev_hdl, bdf, mps_cap, MPS_GET)); in hvio_get_rp_mps_cap()
58 hvio_set_rp_mps(devhandle_t dev_hdl, pci_device_t bdf, int32_t mps) in hvio_set_rp_mps() argument
60 return (hvio_rp_mps(dev_hdl, bdf, &mps, MPS_SET)); in hvio_set_rp_mps()
64 hvio_rp_mps(devhandle_t dev_hdl, pci_device_t bdf, int32_t *mps, int op) in hvio_rp_mps() argument
71 if ((hvio_config_get(dev_hdl, bdf, PCI_CONF_VENID, 4, in hvio_rp_mps()
78 if ((hvio_config_get(dev_hdl, bdf, PCI_CONF_COMM, 4, in hvio_rp_mps()
85 (void) hvio_config_get(dev_hdl, bdf, PCI_CONF_CAP_PTR, 4, in hvio_rp_mps()
99 (void) hvio_config_get(dev_hdl, bdf, hdr_next_ptr, 4, in hvio_rp_mps()
[all …]
H A Dpx_lib4v.c91 px_lib_dev_init(dev_info_t *dip, devhandle_t *dev_hdl) in px_lib_dev_init() argument
129 *dev_hdl = (devhandle_t)((rp->phys_addr >> 32) & DEVHDLE_MASK); in px_lib_dev_init()
140 DBG(DBG_ATTACH, dip, "px_lib_dev_init: dev_hdl 0x%llx\n", *dev_hdl); in px_lib_dev_init()
/illumos-gate/usr/src/uts/sun4u/io/px/
H A Dpx_lib4u.h305 extern uint64_t hvio_intr_devino_to_sysino(devhandle_t dev_hdl, pxu_t *pxu_p,
307 extern uint64_t hvio_intr_getvalid(devhandle_t dev_hdl, sysino_t sysino,
309 extern uint64_t hvio_intr_setvalid(devhandle_t dev_hdl, sysino_t sysino,
311 extern uint64_t hvio_intr_getstate(devhandle_t dev_hdl, sysino_t sysino,
313 extern uint64_t hvio_intr_setstate(devhandle_t dev_hdl, sysino_t sysino,
315 extern uint64_t hvio_intr_gettarget(devhandle_t dev_hdl, pxu_t *pxu_p,
317 extern uint64_t hvio_intr_settarget(devhandle_t dev_hdl, pxu_t *pxu_p,
320 extern uint64_t hvio_iommu_map(devhandle_t dev_hdl, pxu_t *pxu_p, tsbid_t tsbid,
323 extern uint64_t hvio_iommu_demap(devhandle_t dev_hdl, pxu_t *pxu_p,
325 extern uint64_t hvio_iommu_getmap(devhandle_t dev_hdl, pxu_t *pxu_p,
[all …]
H A Dpx_hlib.c169 static uint64_t msiq_suspend(devhandle_t dev_hdl, pxu_t *pxu_p);
170 static void msiq_resume(devhandle_t dev_hdl, pxu_t *pxu_p);
1787 hvio_iommu_map(devhandle_t dev_hdl, pxu_t *pxu_p, tsbid_t tsbid, pages_t pages, in hvio_iommu_map() argument
1819 CSR_XS(dev_hdl, in hvio_iommu_map()
1839 CSR_XS(dev_hdl, in hvio_iommu_map()
1853 hvio_iommu_demap(devhandle_t dev_hdl, pxu_t *pxu_p, tsbid_t tsbid, in hvio_iommu_demap() argument
1869 CSR_XS(dev_hdl, in hvio_iommu_demap()
1882 hvio_iommu_getmap(devhandle_t dev_hdl, pxu_t *pxu_p, tsbid_t tsbid, in hvio_iommu_getmap() argument
2026 hvio_iommu_getbypass(devhandle_t dev_hdl, pxu_t *pxu_p, r_addr_t ra, in hvio_iommu_getbypass() argument
2047 hvio_intr_devino_to_sysino(devhandle_t dev_hdl, pxu_t *pxu_p, devino_t devino, in hvio_intr_devino_to_sysino() argument
[all …]
H A Dpx_lib4u.c179 px_lib_dev_init(dev_info_t *dip, devhandle_t *dev_hdl) in px_lib_dev_init() argument
280 *dev_hdl = (devhandle_t)csr_base; in px_lib_dev_init()
282 DBG(DBG_ATTACH, dip, "px_lib_dev_init: dev_hdl 0x%llx\n", *dev_hdl); in px_lib_dev_init()
1323 devhandle_t dev_hdl, xbus_dev_hdl; in px_lib_suspend() local
1328 dev_hdl = (devhandle_t)pxu_p->px_address[PX_REG_CSR]; in px_lib_suspend()
1331 if ((ret = hvio_suspend(dev_hdl, pxu_p)) != H_EOK) in px_lib_suspend()
1351 devhandle_t dev_hdl, xbus_dev_hdl; in px_lib_resume() local
1357 dev_hdl = (devhandle_t)pxu_p->px_address[PX_REG_CSR]; in px_lib_resume()
1361 hvio_cb_resume(dev_hdl, xbus_dev_hdl, xbc_ino, pxu_p); in px_lib_resume()
1363 hvio_resume(dev_hdl, pec_ino, pxu_p); in px_lib_resume()
/illumos-gate/usr/src/uts/sun4v/io/fpc/
H A Dfpc-impl-4v.c122 devhandle_t dev_hdl; in fpc_platform_node_init() local
152 dev_hdl = (devhandle_t)((rp->phys_addr >> 32) & DEVHDLE_MASK); in fpc_platform_node_init()
178 (fire_perfreg_handle_t)dev_hdl, jbc, &dummy_data, IS_READ) == in fpc_platform_node_init()
181 (fire_perfreg_handle_t)dev_hdl, imu, &dummy_data, IS_READ) == in fpc_platform_node_init()
200 (void) fpc_set_platform_data_by_number(index, (void *)dev_hdl); in fpc_platform_node_init()
243 devhandle_t dev_hdl = (devhandle_t)handle; in fpc_hv_perfreg_io() local
246 rval = fpc_set_fire_perfreg(dev_hdl, hv_if_index, *reg_data); in fpc_hv_perfreg_io()
248 rval = fpc_get_fire_perfreg(dev_hdl, hv_if_index, reg_data); in fpc_hv_perfreg_io()
H A Dfpc-impl-4v.h42 extern int fpc_get_fire_perfreg(devhandle_t dev_hdl, int regid, uint64_t *data);
43 extern int fpc_set_fire_perfreg(devhandle_t dev_hdl, int regid, uint64_t data);
/illumos-gate/usr/src/uts/intel/io/acpica/
H A Dacpica_ec.c404 ACPI_HANDLE dev_hdl; in ec_probe_ecdt() local
428 status = AcpiGetHandle(NULL, (char *)ecdt->Id, &dev_hdl); in ec_probe_ecdt()
439 ec.ec_dev_hdl = dev_hdl; in ec_probe_ecdt()
469 ACPI_HANDLE dev_hdl; in ec_probe_ns() local
478 dev_hdl = NULL; in ec_probe_ns()
479 (void) AcpiGetDevices("PNP0C09", &ec_find, (void *)&dev_hdl, NULL); in ec_probe_ns()
480 if (dev_hdl == NULL) { in ec_probe_ns()
493 status = AcpiEvaluateObjectTyped(dev_hdl, "_CRS", NULL, &crs, in ec_probe_ns()
537 status = AcpiEvaluateObject(dev_hdl, "_GPE", NULL, &buf); in ec_probe_ns()
578 ec.ec_dev_hdl = dev_hdl; in ec_probe_ns()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dhypervisor_api.h396 extern uint64_t hvio_intr_devino_to_sysino(uint64_t dev_hdl, uint32_t devino,
442 extern uint64_t hvldc_intr_getcookie(uint64_t dev_hdl, uint32_t devino,
444 extern uint64_t hvldc_intr_setcookie(uint64_t dev_hdl, uint32_t devino,
446 extern uint64_t hvldc_intr_getvalid(uint64_t dev_hdl, uint32_t devino,
448 extern uint64_t hvldc_intr_setvalid(uint64_t dev_hdl, uint32_t devino,
450 extern uint64_t hvldc_intr_getstate(uint64_t dev_hdl, uint32_t devino,
452 extern uint64_t hvldc_intr_setstate(uint64_t dev_hdl, uint32_t devino,
454 extern uint64_t hvldc_intr_gettarget(uint64_t dev_hdl, uint32_t devino,
456 extern uint64_t hvldc_intr_settarget(uint64_t dev_hdl, uint32_t devino,
/illumos-gate/usr/src/cmd/devctl/
H A Ddevctl.c447 devctl_hdl_t dev_hdl = NULL; in bus_devcreate() local
460 if (devctl_bus_dev_create(bus_dcp, ddef_hdl, 0, &dev_hdl)) { in bus_devcreate()
464 } else if (devctl_get_pathname(dev_hdl, devctl_device, MAXPATHLEN) in bus_devcreate()
475 if (dev_hdl) in bus_devcreate()
476 devctl_release(dev_hdl); in bus_devcreate()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/
H A Dpsvcpolicy.c230 devctl_hdl_t dev_hdl = NULL; in create_i2c_node() local
246 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) in create_i2c_node()
249 if (devctl_get_pathname(dev_hdl, dev_path, MAXPATHLEN) == NULL) in create_i2c_node()
258 if (dev_hdl) devctl_release(dev_hdl); in create_i2c_node()
271 devctl_hdl_t dev_hdl; in delete_i2c_node() local
273 dev_hdl = devctl_device_acquire(nd, 0); in delete_i2c_node()
274 if (dev_hdl == NULL) { in delete_i2c_node()
278 rv = devctl_device_remove(dev_hdl); in delete_i2c_node()
285 devctl_release(dev_hdl); in delete_i2c_node()
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzcons.c335 devctl_hdl_t dev_hdl = NULL; in init_console_dev() local
395 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl) == -1) { in init_console_dev()
458 if (dev_hdl) in init_console_dev()
459 devctl_release(dev_hdl); in init_console_dev()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c2851 devctl_hdl_t dev_hdl; in create_i2c_node() local
2885 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) in create_i2c_node()
2888 if (devctl_get_pathname(dev_hdl, dev_path, MAXPATHLEN) == NULL) in create_i2c_node()
2891 devctl_release(dev_hdl); in create_i2c_node()
2903 devctl_hdl_t dev_hdl; in delete_i2c_node() local
2919 dev_hdl = devctl_device_acquire(buf, 0); in delete_i2c_node()
2920 if (dev_hdl == NULL) { in delete_i2c_node()
2928 if (devctl_device_remove(dev_hdl)) { in delete_i2c_node()
2930 devctl_device_remove(dev_hdl); in delete_i2c_node()
2932 devctl_release(dev_hdl); in delete_i2c_node()
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_cs.c70 devctl_hdl_t bus_hdl, dev_hdl; in do_devctl_dev_create() local
102 if (devctl_bus_dev_create(bus_hdl, ddef_hdl, 0, &dev_hdl)) { in do_devctl_dev_create()
124 devctl_get_pathname(dev_hdl, dev_path, pathlen); in do_devctl_dev_create()
125 devctl_release(dev_hdl); in do_devctl_dev_create()
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_lib.h57 extern int px_lib_dev_init(dev_info_t *dip, devhandle_t *dev_hdl);
H A Dpx.c227 devhandle_t dev_hdl = 0; in px_attach() local
266 if (px_lib_dev_init(dip, &dev_hdl) != DDI_SUCCESS) in px_attach()
270 px_p->px_dev_hdl = dev_hdl; in px_attach()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvnet_gen.c1720 mdeg_handle_t dev_hdl = 0; in vgen_mdeg_reg() local
1752 rv = mdeg_register(parentp, &vdev_match, vgen_mdeg_cb, vgenp, &dev_hdl); in vgen_mdeg_reg()
1767 vgenp->mdeg_dev_hdl = dev_hdl; in vgen_mdeg_reg()
1773 if (dev_hdl != 0) { in vgen_mdeg_reg()
1774 (void) mdeg_unregister(dev_hdl); in vgen_mdeg_reg()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas.c866 uint16_t dev_hdl; in mptsas_iport_attach() local
1028 rval = mptsas_get_sas_device_page0(mpt, page_address, &dev_hdl, in mptsas_iport_attach()
6268 uint16_t dev_hdl; in mptsas_update_sata_bridge() local
6283 rval = mptsas_get_sas_device_page0(mpt, page_address, &dev_hdl, in mptsas_update_sata_bridge()
15507 uint16_t dev_hdl; in mptsas_create_virt_lun() local
15687 &dev_hdl, &dev_sas_wwn, &dev_info, &physport, in mptsas_create_virt_lun()
15700 &dev_hdl, &pdev_sas_wwn, &pdev_info, &physport, in mptsas_create_virt_lun()
15865 uint16_t dev_hdl; in mptsas_create_phys_lun() local
16008 &dev_hdl, &dev_sas_wwn, &dev_info, in mptsas_create_phys_lun()
16022 &dev_hdl, &pdev_sas_wwn, &pdev_info, &physport, in mptsas_create_phys_lun()
[all …]