/illumos-gate/usr/src/uts/sun4u/sys/pci/ |
H A D | db21554_debug.h | 99 #define DB_DEBUG0(func_id, dip, fmt) \ argument 100 db_debug(func_id, dip, fmt, 0, 0, 0, 0, 0); 101 #define DB_DEBUG1(func_id, dip, fmt, a1) \ argument 103 #define DB_DEBUG2(func_id, dip, fmt, a1, a2) \ argument 106 db_debug(func_id, dip, fmt, (uintptr_t)(a1), \ 109 db_debug(func_id, dip, fmt, (uintptr_t)(a1), \ 113 db_debug(func_id, dip, fmt, (uintptr_t)(a1), \ 119 #define DB_DEBUG0(func_id, dip, fmt) 120 #define DB_DEBUG1(func_id, dip, fmt, a1) 121 #define DB_DEBUG2(func_id, dip, fmt, a1, a2) [all …]
|
H A D | pci_debug.h | 93 #define DEBUG0(flag, dip, fmt) \ argument 94 pci_debug(flag, dip, fmt, 0, 0, 0, 0, 0); 95 #define DEBUG1(flag, dip, fmt, a1) \ argument 97 #define DEBUG2(flag, dip, fmt, a1, a2) \ argument 99 #define DEBUG3(flag, dip, fmt, a1, a2, a3) \ argument 100 pci_debug(flag, dip, fmt, (uintptr_t)(a1), \ 103 pci_debug(flag, dip, fmt, (uintptr_t)(a1), \ 114 #define DEBUG0(flag, dip, fmt) argument 115 #define DEBUG1(flag, dip, fmt, a1) argument 116 #define DEBUG2(flag, dip, fmt, a1, a2) argument [all …]
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_pec.c | 56 dev_info_t *dip = px_p->px_dip; in px_pec_attach() local 69 "%s%d", NAMEINST(dip)); in px_pec_attach() 73 "%s@%s", NAMEADDR(dip)); in px_pec_attach() 158 hdl.ih_dip = dip; in px_pec_msg_add_intr() 163 if ((ret = px_add_msiq_intr(dip, dip, &hdl, in px_pec_msg_add_intr() 186 if ((ret = px_add_msiq_intr(dip, dip, &hdl, in px_pec_msg_add_intr() 210 if ((ret = px_add_msiq_intr(dip, dip, &hdl, in px_pec_msg_add_intr() 252 hdl.ih_dip = dip; in px_pec_msg_rem_intr() 259 (void) px_rem_msiq_intr(dip, dip, &hdl, MSG_REC, in px_pec_msg_rem_intr() 276 (void) px_rem_msiq_intr(dip, dip, &hdl, MSG_REC, in px_pec_msg_rem_intr() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vnet_dds.c | 449 ddi_driver_name(dip), ddi_get_instance(dip)); in vdds_process_dds_msg_task() 725 warg->dip = dip; in vdds_match_niu_nexus() 761 warg->dip = dip; in vdds_match_niu_node() 797 dip); in vdds_new_nexus_node() 805 dip); in vdds_new_nexus_node() 850 dip); in vdds_new_nexus_node() 859 dip); in vdds_new_nexus_node() 865 cba->dip = dip; in vdds_new_nexus_node() 914 dip); in vdds_new_niu_node() 922 dip); in vdds_new_niu_node() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | driver_lyr.c | 189 if (dip != NULL) { in ident_hash_func() 258 lip->li_dip = dip; in ident_alloc() 528 dev_info_t *dip; in ldi_vp_from_dev() local 1008 dev_info_t *dip; in ldi_usage_walker_tgt_helper() local 1039 dev_info_t *dip; in ldi_usage_walker_helper() local 1151 dip = ddi_get_next(dip); in ldi_usage_walker_helper() 3298 ASSERT(dip); in ldi_ev_device_match() 3344 ASSERT(dip); in ldi_invoke_notify() 3504 ASSERT(dip); in ldi_ev_notify() 3575 ASSERT(dip); in ldi_invoke_finalize() [all …]
|
H A D | sunndi.c | 482 if (i_ddi_devi_attached(dip) && !DEVI_BUSY_OWNED(dip)) in ndi_devctl_device_online() 492 ddi_driver_name(dip), ddi_get_instance(dip), name, in ndi_devctl_device_online() 529 ddi_driver_name(dip), ddi_get_instance(dip), name, in ndi_devctl_device_offline() 566 ddi_driver_name(dip), ddi_get_instance(dip), name, in ndi_devctl_device_remove() 582 dev_info_t *dip; in ndi_devctl_device_getstate() local 605 if (dip == NULL) { in ndi_devctl_device_getstate() 642 pdip = ddi_get_parent(dip); in ndi_dc_return_dev_state() 1105 if (dip == NULL) in ndi_set_bus_state() 1116 DEVI_SET_BUS_ACTIVE(dip); in ndi_set_bus_state() 1117 DEVI_SET_BUS_UP(dip); in ndi_set_bus_state() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | grbeep.c | 199 instance = ddi_get_instance(dip); in grbeep_attach() 217 grbeeptr->grbeep_dip = dip; in grbeep_attach() 236 ddi_report_dev(dip); in grbeep_attach() 239 (void *)dip)); in grbeep_attach() 258 grbeeptr = grbeep_obtain_state(dip); in grbeep_detach() 333 dev_info_t *dip = (dev_info_t *)arg; in grbeep_freq() local 367 dev_info_t *dip = (dev_info_t *)arg; in grbeep_on() local 392 dev_info_t *dip = (dev_info_t *)arg; in grbeep_off() local 429 if (ddi_regs_map_setup(dip, 2, in grbeep_map_regs() 442 if (ddi_regs_map_setup(dip, 3, in grbeep_map_regs() [all …]
|
H A D | sbd_io.c | 57 ASSERT(e_ddi_branch_held(dip)); in sbd_attach_io() 78 ASSERT(e_ddi_branch_held(dip)); in sbd_detach_io() 90 sbd_errno_decode(rv, ep, dip); in sbd_detach_io() 101 dev_info_t *dip; in sbd_init_io_unit() local 212 dev_info_t *dip; in sbd_io_status() local 227 if (dip == NULL) in sbd_io_status() 310 dev_info_t *dip; in sbd_io_cnt() local 316 if (dip == NULL) in sbd_io_cnt() 337 dev_info_t *dip; in sbd_check_io_refs() local 341 dip = devlist[i].dv_dip; in sbd_check_io_refs() [all …]
|
H A D | bbc_beep.c | 194 instance = ddi_get_instance(dip); in bbc_beep_attach() 212 bbc_beeptr->bbc_beep_dip = dip; in bbc_beep_attach() 231 ddi_report_dev(dip); in bbc_beep_attach() 234 (void *)dip)); in bbc_beep_attach() 327 dev_info_t *dip = (dev_info_t *)arg; in bbc_beep_freq() local 366 dev_info_t *dip = (dev_info_t *)arg; in bbc_beep_on() local 374 (void *)dip)); in bbc_beep_on() 385 dev_info_t *dip = (dev_info_t *)arg; in bbc_beep_off() local 393 (void *)dip)); in bbc_beep_off() 417 if (ddi_regs_map_setup(dip, 0, in bbc_beep_map_regs() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | pcmcia.h | 175 #define GET_ADAPTER(f, dip, conf) (*(f)->pcif_get_adapter) (dip, conf) argument 176 #define GET_SOCKET(f, dip, sock) (*(f)->pcif_get_socket)(dip, sock) argument 177 #define GET_STATUS(f, dip, status) (*(f)->pcif_get_status)(dip, status) argument 178 #define GET_WINDOW(f, dip, window) (*(f)->pcif_get_window)(dip, window) argument 181 #define GET_CONFIG(f, dip, conf) INQUIRE_ADAPTER(f, dip, conf) argument 182 #define INQUIRE_SOCKET(f, dip, sock) (*(f)->pcif_inquire_socket)(dip, \ argument 184 #define GET_PAGE(f, dip, page) (*(f)->pcif_get_page)(dip, page) argument 188 #define SET_PAGE(f, dip, page) (*(f)->pcif_set_page)(dip, page) argument 189 #define SET_WINDOW(f, dip, window) (*(f)->pcif_set_window)(dip, window) argument 190 #define SET_SOCKET(f, dip, socket) (*(f)->pcif_set_socket)(dip, socket) argument [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_pci.c | 212 dev_info_t *dip; member 223 dev_info_t *dip; member 1023 ddi_node_name(dip), ddi_get_name_addr(dip)); in ppb_removechild() 1205 ddi_driver_name(dip), ddi_get_instance(dip)); in ppb_pwr_teardown() 1215 ddi_driver_name(dip), ddi_get_instance(dip)); in ppb_pwr_teardown() 1222 ddi_driver_name(dip), ddi_get_instance(dip)); in ppb_pwr_teardown() 1289 ddi_driver_name(dip), ddi_get_instance(dip)); in ppb_pwr() 1339 ddi_driver_name(dip), ddi_get_instance(dip)); in ppb_pwr() 1384 ddi_driver_name(dip), ddi_get_instance(dip), lvl); in ppb_pwr() 1399 ddi_driver_name(dip), ddi_get_instance(dip)); in ppb_pwr() [all …]
|
H A D | simba.c | 230 dev_info_t *dip; member 249 dev_info_t *dip; member 885 for (i = 0, dip = ddi_get_child(simba_p->dip); dip != NULL; in simba_save_config_regs() 886 dip = ddi_get_next_sibling(dip)) { in simba_save_config_regs() 901 dip = ddi_get_child(simba_p->dip); in simba_save_config_regs() 903 dip = ddi_get_next_sibling(dip)) { in simba_save_config_regs() 932 dip); in simba_save_config_regs() 934 statep->dip = dip; in simba_save_config_regs() 989 dip = statep->dip; in simba_restore_config_regs() 990 if (!dip) { in simba_restore_config_regs() [all …]
|
H A D | db21554.c | 538 dbp->dip = dip; in db_attach() 555 ddi_driver_name(dip), ddi_get_instance(dip)); in db_attach() 866 dev_info_t *dip = dbp->dip; in db_orientation() local 939 dev_info_t *dip = dbp->dip; in db_enable_io() local 2452 for (i = 0, dip = ddi_get_child(dbp->dip); dip != NULL; in db_save_config_regs() 2453 dip = ddi_get_next_sibling(dip)) { in db_save_config_regs() 2473 ddi_get_name(dip), ddi_get_instance(dip)); in db_save_config_regs() 2478 dip = ddi_get_child(dbp->dip); in db_save_config_regs() 2480 dip = ddi_get_next_sibling(dip)) { in db_save_config_regs() 2495 statep->dip = dip; in db_save_config_regs() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/usb_mid/ |
H A D | usb_mid.c | 446 ndi_devi_enter(dip); in usb_mid_bus_config() 454 ndi_devi_exit(dip); in usb_mid_bus_config() 485 ndi_devi_enter(dip); in usb_mid_bus_unconfig() 518 ndi_devi_exit(dip); in usb_mid_bus_unconfig() 618 usb_mid->mi_dip = dip; in usb_mid_attach() 697 ddi_report_dev(dip); in usb_mid_attach() 1058 ddi_driver_name(dip), ddi_get_instance(dip), in usb_mid_busop_get_eventcookie() 1083 ddi_driver_name(dip), ddi_get_instance(dip), in usb_mid_busop_add_eventcall() 1127 ddi_driver_name(dip), ddi_get_instance(dip), in usb_mid_busop_remove_eventcall() 1152 ddi_driver_name(dip), ddi_get_instance(dip), in usb_mid_busop_post_event() [all …]
|
/illumos-gate/usr/src/uts/i86pc/i86hvm/io/xpv/ |
H A D | xpv_support.c | 186 dev_info_t *dip; in xpv_enumerate() local 201 xendev_enum_all(dip, B_TRUE); in xpv_enumerate() 317 for (; dip != NULL; dip = ddi_get_next_sibling(dip)) { in xen_suspend_devices() 358 dip = start; in xen_resume_devices() 361 dip = next; in xen_resume_devices() 408 last = dip; in xen_resume_devices() 420 name = ddi_node_name(dip); in check_xpvd() 424 xpvd_dip = dip; in check_xpvd() 725 if (ddi_create_minor_node(dip, ddi_get_name(dip), S_IFCHR, in xpv_attach() 729 xpv_dip = dip; in xpv_attach() [all …]
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 698 ddi_get_instance(dip)); in pcieb_ctlops() 1030 pcie_uninitchild(dip); in pcieb_uninitchild() 1032 pcieb_plat_uninitchild(dip); in pcieb_uninitchild() 1041 ddi_prop_remove_all(dip); in pcieb_uninitchild() 1424 ddi_get_instance(dip)); in pcieb_fm_init_child() 1692 ret = pcie_intr(dip); in pcieb_intr_handler() 1730 ddi_driver_name(dip), ddi_get_instance(dip), sts); in pcieb_intr_handler() 1855 ASSERT(PCIE_PMINFO(dip)); in pcieb_pwr_setup() 1921 if (!PCIE_PMINFO(dip) || !(pwr_p = PCIE_NEXUS_PMINFO(dip))) in pcieb_pwr_teardown() 1999 ASSERT(PCIE_PMINFO(dip)); in pcieb_pwr_disable() [all …]
|
H A D | pcieb.h | 165 extern void pcieb_set_pci_perf_parameters(dev_info_t *dip, 167 extern void pcieb_plat_attach_workaround(dev_info_t *dip); 173 extern int pcieb_plat_pcishpc_probe(dev_info_t *dip, 181 extern boolean_t pcieb_plat_pwr_disable(dev_info_t *dip); 186 extern void pcieb_intel_rber_workaround(dev_info_t *dip); 187 extern void pcieb_intel_sw_workaround(dev_info_t *dip); 188 extern void pcieb_intel_mps_workaround(dev_info_t *dip); 189 extern void pcieb_init_osc(dev_info_t *dip); 191 extern int pcishpc_init(dev_info_t *dip); 192 extern int pcishpc_uninit(dev_info_t *dip); [all …]
|
/illumos-gate/usr/src/uts/sun4u/opl/sys/pcicmu/ |
H A D | pcmu_util.h | 83 #define PCMU_DBG0(flag, dip, fmt) \ argument 84 pcmu_debug(flag, dip, fmt, 0, 0, 0, 0, 0); 86 #define PCMU_DBG1(flag, dip, fmt, a1) \ argument 89 #define PCMU_DBG2(flag, dip, fmt, a1, a2) \ argument 93 pcmu_debug(flag, dip, fmt, (uintptr_t)(a1), \ 97 pcmu_debug(flag, dip, fmt, (uintptr_t)(a1), \ 102 pcmu_debug(flag, dip, fmt, (uintptr_t)(a1), \ 110 #define PCMU_DBG0(flag, dip, fmt) argument 111 #define PCMU_DBG1(flag, dip, fmt, a1) argument 112 #define PCMU_DBG2(flag, dip, fmt, a1, a2) argument [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_ddi_impl.c | 85 translate_devid(dev_info_t *dip) in translate_devid() argument 93 if ((devid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in translate_devid() 96 if ((venid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in translate_devid() 100 (void) ddi_prop_update_int(DDI_DEV_T_NONE, dip, "device-id", devid); in translate_devid() 101 (void) ddi_prop_update_int(DDI_DEV_T_NONE, dip, "vendor-id", venid); in translate_devid() 105 (void) ddi_prop_update_int(DDI_DEV_T_NONE, dip, "class-clode", in translate_devid() 108 ssvid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in translate_devid() 111 (void) ddi_prop_update_int(DDI_DEV_T_NONE, dip, in translate_devid() 114 ssid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in translate_devid() 117 (void) ddi_prop_update_int(DDI_DEV_T_NONE, dip, "subsystem-id", in translate_devid() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_quiesce.c | 248 if (dip == NULL) in dr_resolve_devname() 285 if (dip == NULL) in dr_check_dip() 331 if (dip == NULL) in dr_check_devices() 359 for (; dip != NULL; dip = ddi_get_next_sibling(dip)) { in dr_suspend_devices() 362 ndi_devi_enter(dip); in dr_suspend_devices() 364 ndi_devi_exit(dip); in dr_suspend_devices() 367 ndi_devi_exit(dip); in dr_suspend_devices() 437 dip = start; in dr_resume_devices() 440 dip = next; in dr_resume_devices() 506 ndi_devi_exit(dip); in dr_resume_devices() [all …]
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_quiesce.c | 249 if (dip == NULL) in dr_resolve_devname() 286 if (dip == NULL) in dr_check_dip() 332 if (dip == NULL) in dr_check_devices() 360 for (; dip != NULL; dip = ddi_get_next_sibling(dip)) { in dr_suspend_devices() 363 ndi_devi_enter(dip); in dr_suspend_devices() 365 ndi_devi_exit(dip); in dr_suspend_devices() 368 ndi_devi_exit(dip); in dr_suspend_devices() 438 dip = start; in dr_resume_devices() 441 dip = next; in dr_resume_devices() 507 ndi_devi_exit(dip); in dr_resume_devices() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnx/ |
H A D | bnxmod.c | 160 dev_info_t *dip; in bnx_attach_attach() local 162 dip = umdevice->os_param.dip; in bnx_attach_attach() 177 rc = ddi_dev_regsize(dip, 1, ®Size); in bnx_attach_attach() 186 rc = ddi_regs_map_setup(dip, in bnx_attach_attach() 249 rc = ddi_create_minor_node(dip, (char *)ddi_driver_name(dip), in bnx_attach_attach() 252 rc = ddi_create_minor_node(dip, ddi_get_name(dip), in bnx_attach_attach() 263 ddi_report_dev(dip); in bnx_attach_attach() 338 umdevice->os_param.dip = dip; in bnx_attach() 414 if (umdevice->os_param.dip != dip) { in bnx_detach() 470 bnx_quiesce(dev_info_t *dip) in bnx_quiesce() argument [all …]
|
/illumos-gate/usr/src/uts/sparc/io/pciex/ |
H A D | pcieb_sparc.c | 65 pcieb_plat_attach_workaround(dev_info_t *dip) in pcieb_plat_attach_workaround() argument 92 cdip = pcie_get_my_childs_dip(dip, rdip); in pcieb_plat_intr_ops() 113 ddi_driver_name(dip), intr); in pcieb_plat_intr_ops() 141 pcieb_plat_pwr_disable(dev_info_t *dip) in pcieb_plat_pwr_disable() argument 149 pcieb_plat_msi_supported(dev_info_t *dip) in pcieb_plat_msi_supported() argument 200 dev_info_t *dip = pcieb->pcieb_dip; in pcieb_attach_plx_workarounds() local 201 pcie_bus_t *bus_p = PCIE_DIP2BUS(dip); in pcieb_attach_plx_workarounds() 337 dev_info_t *dip = pcieb->pcieb_dip; in plx_ro_disable() local 479 dev_info_t *dip = pcieb_p->pcieb_dip; in pcieb_print_plx_seeprom_crc_data() local 505 ddi_driver_name(dip), ddi_get_instance(dip), in pcieb_print_plx_seeprom_crc_data() [all …]
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | sbbcvar.h | 54 dev_info_t *dip; /* Interrupt parent dip */ member 99 dev_info_t *dip; /* device information */ member 136 #define SBBC_DBG0(flag, dip, fmt) \ argument 137 sbbc_dbg(flag, dip, fmt, 0, 0, 0, 0, 0); 138 #define SBBC_DBG1(flag, dip, fmt, a1) \ argument 140 #define SBBC_DBG2(flag, dip, fmt, a1, a2) \ argument 142 #define SBBC_DBG3(flag, dip, fmt, a1, a2, a3) \ argument 154 #define SBBC_DBG0(flag, dip, fmt) argument 155 #define SBBC_DBG1(flag, dip, fmt, a1) argument 156 #define SBBC_DBG2(flag, dip, fmt, a1, a2) argument [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib.c | 98 static void rds_read_config_values(dev_info_t *dip); 254 rdsib_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) in rdsib_attach() argument 269 rdsib_dev_info = dip; in rdsib_attach() 270 rds_read_config_values(dip); in rdsib_attach() 318 rdsib_detach(dev_info_t *dip, ddi_detach_cmd_t cmd) in rdsib_detach() argument 327 ddi_remove_minor_node(dip, "rdsib"); in rdsib_detach() 369 rds_read_config_values(dev_info_t *dip) in rds_read_config_values() argument 374 UserBufferSize = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in rds_read_config_values() 389 DataRecvBufferLWM = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in rds_read_config_values() 392 CtrlRecvBufferLWM = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in rds_read_config_values() [all …]
|