Home
last modified time | relevance | path

Searched refs:DEVI (Results 1 – 25 of 112) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/sys/
H A Dddi_impldefs.h301 #define DEVI(dev_info_type) ((struct dev_info *)(dev_info_type)) macro
325 #define DDI_CF1(devi) (DEVI(devi)->devi_addr != NULL)
326 #define DDI_CF2(devi) (DEVI(devi)->devi_ops != NULL)
327 #define DDI_DRV_UNLOADED(devi) (DEVI(devi)->devi_ops == &mod_nodev_ops)
371 ((DEVI(dip)->devi_state & DEVI_DEVICE_OFFLINE) == DEVI_DEVICE_OFFLINE)
374 ASSERT(mutex_owned(&DEVI(dip)->devi_lock)); \
375 if (DEVI(dip)->devi_state & DEVI_DEVICE_DEGRADED) { \
376 mutex_exit(&DEVI(dip)->devi_lock); \
378 mutex_enter(&DEVI(dip)->devi_lock); \
381 DEVI(dip)->devi_state &= ~(DEVI_DEVICE_DOWN | \
[all …]
H A Depm.h239 #define PPM(dip) ((dev_info_t *)DEVI(dip)->devi_pm_ppm)
586 #define PM_GET_PM_INFO(dip) (DEVI(dip)->devi_pm_info)
587 #define PM_GET_PM_SCAN(dip) (DEVI(dip)->devi_pm_scan)
589 #define PM_NUMCMPTS(dip) (DEVI(dip)->devi_pm_num_components)
590 #define PM_CP(dip, comp) (&DEVI(dip)->devi_pm_components[comp])
602 #define PM_ISBC(dip) (DEVI(dip)->devi_pm_flags & PMC_BC)
607 #define PM_SKBU(dip) (DEVI(dip)->devi_pm_flags & PMC_SKIP_BRINGUP)
612 #define PM_ISCPU(dip) (DEVI(dip)->devi_pm_flags & PMC_CPU_DEVICE)
853 mutex_enter(&DEVI(dip)->devi_pm_lock); }
857 mutex_exit(&DEVI(dip)->devi_pm_lock); }
[all …]
H A Dddi_hp_impl.h93 ((DEVI(dip)->devi_ops->devo_bus_ops) && \
94 (DEVI(dip)->devi_ops->devo_bus_ops->busops_rev >= BUSO_REV_10) && \
95 (DEVI(dip)->devi_ops->devo_bus_ops->bus_hp_op))
H A Dpcie_pwr.h79 ((pcie_pm_t *)(DEVI(dip)->devi_nex_pm))
91 (DEVI(dip)->devi_nex_pm = (pminfo_p))
94 (DEVI(dip)->devi_nex_pm = NULL)
H A Dsunmdi.h136 #define MDI_VHCI(dip) (DEVI(dip)->devi_mdi_component & MDI_COMPONENT_VHCI)
137 #define MDI_PHCI(dip) (DEVI(dip)->devi_mdi_component & MDI_COMPONENT_PHCI)
138 #define MDI_CLIENT(dip) (DEVI(dip)->devi_mdi_component & MDI_COMPONENT_CLIENT)
/illumos-gate/usr/src/uts/common/os/
H A Ddevcfg.c381 devi->devi_parent = DEVI(pdip); in i_ddi_alloc_node()
382 devi->devi_bus_ctl = DEVI(pdip); in i_ddi_alloc_node()
427 struct dev_info *devi = DEVI(dip); in i_ddi_free_node()
441 impl_ddi_free_nodeid(DEVI(dip)->devi_nodeid); in i_ddi_free_node()
452 if (DEVI(dip)->devi_compat_names) in i_ddi_free_node()
453 kmem_free(DEVI(dip)->devi_compat_names, in i_ddi_free_node()
454 DEVI(dip)->devi_compat_length); in i_ddi_free_node()
455 if (DEVI(dip)->devi_rebinding_name) in i_ddi_free_node()
456 kmem_free(DEVI(dip)->devi_rebinding_name, in i_ddi_free_node()
457 strlen(DEVI(dip)->devi_rebinding_name) + 1); in i_ddi_free_node()
[all …]
H A Dddi_intr_impl.c56 if (DEVI(dip)->devi_intr_p) in i_ddi_intr_devi_init()
59 DEVI(dip)->devi_intr_p = kmem_zalloc(sizeof (devinfo_intr_t), KM_SLEEP); in i_ddi_intr_devi_init()
70 devinfo_intr_t *intr_p = DEVI(dip)->devi_intr_p; in i_ddi_intr_devi_fini()
98 kmem_free(DEVI(dip)->devi_intr_p, sizeof (devinfo_intr_t)); in i_ddi_intr_devi_fini()
99 DEVI(dip)->devi_intr_p = NULL; in i_ddi_intr_devi_fini()
105 devinfo_intr_t *intr_p = DEVI(dip)->devi_intr_p; in i_ddi_intr_get_supported_types()
127 devinfo_intr_t *intr_p = DEVI(dip)->devi_intr_p; in i_ddi_intr_set_supported_types()
136 devinfo_intr_t *intr_p = DEVI(dip)->devi_intr_p; in i_ddi_intr_get_supported_nintrs()
160 devinfo_intr_t *intr_p = DEVI(dip)->devi_intr_p; in i_ddi_intr_set_supported_nintrs()
169 devinfo_intr_t *intr_p = DEVI(dip)->devi_intr_p; in i_ddi_intr_get_current_type()
[all …]
H A Dsunndi.c200 ASSERT(DEVI(ddip)->devi_ops->devo_bus_ops != NULL); in ndi_post_event()
201 ASSERT(DEVI(ddip)->devi_ops->devo_bus_ops->busops_rev >= BUSO_REV_6); in ndi_post_event()
202 ASSERT(DEVI(ddip)->devi_ops->devo_bus_ops->bus_post_event != NULL); in ndi_post_event()
207 return ((*(DEVI(ddip)->devi_ops->devo_bus_ops->bus_post_event)) in ndi_post_event()
221 ASSERT(DEVI(ddip)->devi_ops->devo_bus_ops != NULL); in ndi_busop_remove_eventcall()
222 ASSERT(DEVI(ddip)->devi_ops->devo_bus_ops->busops_rev >= BUSO_REV_6); in ndi_busop_remove_eventcall()
224 if (DEVI(ddip)->devi_ops->devo_bus_ops->bus_remove_eventcall == NULL) in ndi_busop_remove_eventcall()
230 return ((*(DEVI(ddip)->devi_ops->devo_bus_ops->bus_remove_eventcall)) in ndi_busop_remove_eventcall()
252 ASSERT(DEVI(ddip)->devi_ops->devo_bus_ops != NULL); in ndi_busop_add_eventcall()
253 ASSERT(DEVI(ddip)->devi_ops->devo_bus_ops->busops_rev >= BUSO_REV_6); in ndi_busop_add_eventcall()
[all …]
H A Dndifm.c223 struct dev_info *devi = DEVI(dip); in ndi_fmc_insert()
294 struct dev_info *devi = DEVI(dip); in ndi_fmc_remove()
372 fmhdl = DEVI(dip)->devi_fmhdl; in ndi_fmc_entry_error()
474 fmhdl = DEVI(dip)->devi_fmhdl; in ndi_fmc_error()
532 fmhdl = DEVI(dip)->devi_fmhdl; in ndi_fmc_entry_error_all()
614 hdl = DEVI(dip)->devi_fmhdl; in ndi_fm_handler_dispatch()
678 dev_info_t *pdip = (dev_info_t *)DEVI(dip)->devi_parent; in i_ndi_busop_fm_init()
684 if (DEVI(pdip)->devi_ops->devo_bus_ops->busops_rev < BUSO_REV_6) in i_ndi_busop_fm_init()
687 if (DEVI(pdip)->devi_ops->devo_bus_ops->bus_fm_init == NULL) in i_ndi_busop_fm_init()
690 pcap = (*DEVI(pdip)->devi_ops->devo_bus_ops->bus_fm_init) in i_ndi_busop_fm_init()
[all …]
H A Dautoconf.c332 di_dfs((dev_info_t *)DEVI(devi)->devi_child, f, arg); in di_dfs()
333 di_dfs((dev_info_t *)DEVI(devi)->devi_sibling, f, arg); in di_dfs()
393 DEVI(top_devinfo)->devi_major = major; in create_devinfo_tree()
438 DEVI(top_devinfo)->devi_ops = ndi_hold_driver(top_devinfo); in i_ddi_init_root()
439 ASSERT(DEV_OPS_HELD(DEVI(top_devinfo)->devi_ops)); in i_ddi_init_root()
440 DEVI(top_devinfo)->devi_instance = e_ddi_assign_instance(top_devinfo); in i_ddi_init_root()
442 (void) i_ddi_load_drvconf(DEVI(top_devinfo)->devi_major); in i_ddi_init_root()
444 mutex_enter(&(DEVI(top_devinfo)->devi_lock)); in i_ddi_init_root()
446 mutex_exit(&(DEVI(top_devinfo)->devi_lock)); in i_ddi_init_root()
451 mutex_enter(&(DEVI(top_devinfo)->devi_lock)); in i_ddi_init_root()
[all …]
H A Ddacf_clnt.c119 mutex_enter(&(DEVI(dip)->devi_lock)); in dacfc_match_create_minor()
121 mutex_exit(&(DEVI(dip)->devi_lock)); in dacfc_match_create_minor()
133 mutex_exit(&(DEVI(dip)->devi_lock)); in dacfc_match_create_minor()
163 dacf_rsrv_make(pa_rsrv, r, dmdp, &(DEVI(dip)->devi_dacf_tasks)); in dacfc_match_create_minor()
188 dacf_rsrv_make(pd_rsrv, r, dmdp, &(DEVI(dip)->devi_dacf_tasks)); in dacfc_match_create_minor()
223 opsp = &DEVI(devi)->devi_dacf_tasks; in dacfc_postattach()
276 opsp = &DEVI(devi)->devi_dacf_tasks; in dacfc_predetach()
H A Dsunddi.c149 pdip = (dev_info_t *)DEVI(dp)->devi_parent; in ddi_map()
150 return ((DEVI(pdip)->devi_ops->devo_bus_ops->bus_map)(pdip, in ddi_map()
204 "property", DEVI(dip)->devi_name, in ddi_map_regs()
205 DEVI(dip)->devi_instance, chosen_reg); in ddi_map_regs()
630 if ((d = (dev_info_t *)DEVI(d)->devi_bus_ctl) == NULL) in ddi_ctlops()
633 fp = DEVI(d)->devi_ops->devo_bus_ops->bus_ctl; in ddi_ctlops()
657 dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_ctl; in ddi_dma_mctl()
658 fp = DEVI(dip)->devi_ops->devo_bus_ops->bus_dma_ctl; in ddi_dma_mctl()
704 dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_allochdl; in ddi_dma_allochdl()
706 funcp = DEVI(dip)->devi_ops->devo_bus_ops->bus_dma_allochdl; in ddi_dma_allochdl()
[all …]
H A Dddifm.c161 mutex_enter(&(DEVI(dip)->devi_lock)); in ddi_fm_service_impact()
209 mutex_exit(&(DEVI(dip)->devi_lock)); in ddi_fm_service_impact()
382 fmhdl = DEVI(eqdip)->devi_fmhdl; in fm_dev_ereport_postv()
520 struct i_ddi_fmhdl *hdl = DEVI(dip)->devi_fmhdl; in i_ddi_fm_handler_enter()
535 struct i_ddi_fmhdl *hdl = DEVI(dip)->devi_fmhdl; in i_ddi_fm_handler_exit()
544 struct i_ddi_fmhdl *hdl = DEVI(dip)->devi_fmhdl; in i_ddi_fm_handler_owned()
578 pdip = (dev_info_t *)DEVI(dip)->devi_parent; in ddi_fm_handler_register()
598 pfmhdl = DEVI(pdip)->devi_fmhdl; in ddi_fm_handler_register()
633 pdip = (dev_info_t *)DEVI(dip)->devi_parent; in ddi_fm_handler_unregister()
644 pfmhdl = DEVI(pdip)->devi_fmhdl; in ddi_fm_handler_unregister()
[all …]
H A Dsunpm.c513 (DEVI(dip)->devi_pm_flags & (PMC_DEV_THRESH|PMC_COMP_THRESH))) {\
525 (DEVI(dip)->devi_pm_flags & (PMC_DEV_THRESH|PMC_COMP_THRESH))) {\
737 DEVI(dip)->devi_pm_scan = scanp; in pm_scan_init()
768 DEVI(dip)->devi_pm_scan = NULL; in pm_scan_fini()
1149 if (DEVI(dip)->devi_pm_noinvolpm == 0) { in pm_noinvol()
1151 if (DEVI(dip)->devi_pm_volpmd != 0) { in pm_noinvol()
1156 DEVI(pdip)->devi_pm_noinvolpm, in pm_noinvol()
1157 DEVI(pdip)->devi_pm_volpmd)) in pm_noinvol()
1162 ASSERT(DEVI(dip)->devi_pm_volpmd == 0); in pm_noinvol()
1173 if (DEVI(dip)->devi_pm_noinvolpm != DEVI(dip)->devi_pm_volpmd) in pm_noinvol()
[all …]
H A Dddi_hp_ndi.c118 DDIHP_LIST_APPEND(ddi_hp_cn_handle_t, (DEVI(dip)->devi_hp_hdlp), in ndi_hp_register()
290 head = DEVI(dip)->devi_hp_hdlp; in ndi_hp_walk_cn()
304 if (DEVI(dip)->devi_hp_hdlp != head) { in ndi_hp_walk_cn()
309 head = DEVI(dip)->devi_hp_hdlp; in ndi_hp_walk_cn()
372 ndi_rele_devi((dev_info_t *)DEVI(dip)); in ddihp_cn_run_event()
H A Dddi_hp_impl.c353 rv = (*(DEVI(dip)->devi_ops->devo_bus_ops->bus_hp_op))( in ddihp_modctl()
467 DDIHP_LIST_REMOVE(ddi_hp_cn_handle_t, (DEVI(dip)->devi_hp_hdlp), hdlp); in ddihp_cn_unregister()
487 for (hdlp = DEVI(dip)->devi_hp_hdlp; hdlp; hdlp = hdlp->next) { in ddihp_cn_name_to_handle()
529 rv = (*(DEVI(dip)->devi_ops->devo_bus_ops->bus_hp_op))( in ddihp_connector_ops()
861 rv = (*(DEVI(dip)->devi_ops->devo_bus_ops->bus_hp_op))( in ddihp_cn_pre_change_state()
941 rv = (*(DEVI(dip)->devi_ops->devo_bus_ops->bus_hp_op))( in ddihp_cn_handle_state_change()
952 (void) (*(DEVI(dip)->devi_ops->devo_bus_ops->bus_hp_op))( in ddihp_cn_handle_state_change()
1019 for (h = DEVI(dip)->devi_hp_hdlp; h; h = h->next) { in ddihp_cn_change_children_state()
/illumos-gate/usr/src/uts/common/contract/
H A Ddevice.c837 if (mutex_tryenter(&(DEVI(dip)->devi_ct_lock)) != 0) in contract_device_destroy()
854 list_remove(&(DEVI(dip)->devi_ct), ctd); in contract_device_destroy()
859 mutex_exit(&(DEVI(dip)->devi_ct_lock)); in contract_device_destroy()
1098 mutex_enter(&DEVI(dip)->devi_ct_lock); in contract_device_ack_nack()
1103 mutex_exit(&DEVI(dip)->devi_ct_lock); in contract_device_ack_nack()
1128 mutex_exit(&DEVI(dip)->devi_ct_lock); in contract_device_ack_nack()
1234 mutex_enter(&(DEVI(dip)->devi_ct_lock)); in contract_device_create()
1236 mutex_exit(&(DEVI(dip)->devi_ct_lock)); in contract_device_create()
1287 mutex_enter(&(DEVI(dip)->devi_ct_lock)); in contract_device_create()
1289 mutex_exit(&(DEVI(dip)->devi_ct_lock)); in contract_device_create()
[all …]
/illumos-gate/usr/src/uts/intel/io/
H A Diommulib.c279 DEVI(dip)->devi_iommulib_handle = IOMMU_HANDLE_UNUSED; in iommulib_nexus_register()
281 DEVI(dip)->devi_iommulib_nex_handle = nexp; in iommulib_nexus_register()
470 DEVI(dip)->devi_iommulib_handle = IOMMU_HANDLE_UNUSED; in iommulib_iommu_register()
552 ASSERT(DEVI(dip)->devi_iommulib_nex_handle != NULL); in iommulib_nex_open()
553 ASSERT(DEVI(rdip)->devi_iommulib_handle == NULL); in iommulib_nex_open()
557 DEVI(rdip)->devi_iommulib_handle = IOMMU_HANDLE_UNUSED; in iommulib_nex_open()
582 DEVI(rdip)->devi_iommulib_handle = IOMMU_HANDLE_UNUSED; in iommulib_nex_open()
587 unitp->ilu_nex = DEVI(dip)->devi_iommulib_nex_handle; in iommulib_nex_open()
589 DEVI(rdip)->devi_iommulib_handle = unitp; in iommulib_nex_open()
593 atomic_inc_uint(&DEVI(dip)->devi_iommulib_nex_handle->nex_ref); in iommulib_nex_open()
[all …]
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_driver.c81 ASSERT((DEVI(dip)->devi_cpr_flags & DCF_CPR_SUSPENDED) == 0); in cpr_suspend_devices()
105 DEVI(dip)->devi_cpr_flags |= DCF_CPR_SUSPENDED; in cpr_suspend_devices()
125 DEVI(dip)->devi_cpr_flags |= DCF_CPR_SUSPENDED; in cpr_suspend_devices()
162 did_suspend = DEVI(dip)->devi_cpr_flags & DCF_CPR_SUSPENDED;
164 DEVI(dip)->devi_cpr_flags &= ~DCF_CPR_SUSPENDED;
285 if (DEVI(dip)->devi_pm_flags & (PMC_NEEDS_SR|PMC_PARENTAL_SR))
287 if (DEVI(dip)->devi_pm_flags & PMC_NO_SR)
/illumos-gate/usr/src/uts/sparc/ml/
H A Dsparc_ddi.S103 ! dip = (dev_info_t *)DEVI(dip)->devi_bus_ctl;
117 ! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_allochdl;
128 ! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_freehdl;
139 ! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_bindhdl;
150 ! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_unbindhdl;
161 ! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_flush;
172 ! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_win;
194 ! dip = DEVI(dip)->devi_bus_dma_flush;
209 ! funcp = DEVI(dip)->devi_bus_dma_unbindfunc;
212 ! hdip = (dev_info_t *)DEVI(dip)->devi_bus_dma_unbindhdl;
[all …]
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_ddi.c53 funcp = DEVI(dip)->devi_ops->devo_bus_ops->bus_dma_allochdl; in fc_ddi_dma_alloc_handle()
110 funcp = DEVI(dip)->devi_ops->devo_bus_ops->bus_dma_bindhdl; in fc_ddi_dma_buf_bind_handle()
123 funcp = DEVI(dip)->devi_ops->devo_bus_ops->bus_dma_unbindhdl; in fc_ddi_dma_unbind_handle()
136 funcp = DEVI(dip)->devi_ops->devo_bus_ops->bus_dma_freehdl; in fc_ddi_dma_free_handle()
158 funcp = DEVI(dip)->devi_ops->devo_bus_ops->bus_dma_flush; in fc_ddi_dma_sync()
/illumos-gate/usr/src/uts/sparc/os/
H A Dddi_arch.c154 pdip = (dev_info_t *)DEVI(dip)->devi_bus_map_fault; in i_ddi_map_fault()
157 return ((*(DEVI(pdip)->devi_ops->devo_bus_ops->bus_map_fault))(pdip, in i_ddi_map_fault()
167 if (rnumber >= sparc_pd_getnreg(DEVI(dip))) in i_ddi_rnumber_to_regspec()
170 return (sparc_pd_getreg(DEVI(dip), rnumber)); in i_ddi_rnumber_to_regspec()
/illumos-gate/usr/src/uts/intel/os/
H A Dddi_arch.c181 if (rnumber >= sparc_pd_getnreg(DEVI(dip))) in i_ddi_rnumber_to_regspec()
184 return (sparc_pd_getreg(DEVI(dip), rnumber)); in i_ddi_rnumber_to_regspec()
279 pdip = (dev_info_t *)DEVI(dip)->devi_bus_map_fault; in i_ddi_map_fault()
282 return ((*(DEVI(pdip)->devi_ops->devo_bus_ops->bus_map_fault))(pdip, in i_ddi_map_fault()
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus.c417 struct dev_info *devi = DEVI(dip); in cardbus_attach()
584 struct dev_info *devi = DEVI(dip); in cardbus_load_cardbus()
1251 cop = DEVI(dip)->devi_ops->devo_cb_ops; in cardbus_initchild()
1356 DEVI(child)->devi_nodeid, name); in cardbus_name_child()
1855 register dev_info_t *pdip = (dev_info_t *)DEVI(dip)->devi_parent; in cardbus_bus_map()
1871 (void *) DEVI(pdip)->devi_ops->devo_bus_ops->bus_map, in cardbus_bus_map()
1874 rc = (DEVI(pdip)->devi_ops->devo_bus_ops->bus_map) in cardbus_bus_map()
1920 (void *) DEVI(pdip)->devi_ops->devo_bus_ops->bus_dma_allochdl); in cardbus_dma_allochdl()
1941 (void *) DEVI(pdip)->devi_ops->devo_bus_ops->bus_dma_freehdl); in cardbus_dma_freehdl()
1963 (void *) DEVI(pdip)->devi_ops->devo_bus_ops->bus_dma_bindhdl); in cardbus_dma_bindhdl()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_quiesce.c174 if (DEVI(dip)->devi_pm_flags & (PMC_NEEDS_SR|PMC_PARENTAL_SR)) in sbdp_is_real_device()
176 if (DEVI(dip)->devi_pm_flags & PMC_NO_SR) in sbdp_is_real_device()
330 if ((dname = DEVI(dip)->devi_binding_name) != NULL) in sbdp_suspend_devices_()
375 struct dev_info *devi = DEVI(dip); in sbdp_suspend_devices_enter()
384 struct dev_info *devi = DEVI(dip); in sbdp_suspend_devices_exit()
431 if (DEVI(dip)->devi_binding_name != NULL) {

12345