/titanic_41/usr/src/uts/common/os/ |
H A D | devcfg.c | 99 dev_info_t *dip; member 221 static void ndi_devi_exit_and_wait(dev_info_t *dip, 223 static int ndi_devi_unbind_driver(dev_info_t *dip); 225 static int i_ddi_check_retire(dev_info_t *dip); 418 i_ddi_free_node(dev_info_t *dip) in i_ddi_free_node() argument 420 struct dev_info *devi = DEVI(dip); in i_ddi_free_node() 433 if (i_ndi_dev_is_auto_assigned_node(dip)) in i_ddi_free_node() 434 impl_ddi_free_nodeid(DEVI(dip)->devi_nodeid); in i_ddi_free_node() 436 if (ndi_dev_is_persistent_node(dip)) { in i_ddi_free_node() 445 if (DEVI(dip)->devi_compat_names) in i_ddi_free_node() [all …]
|
H A D | sunpm.c | 321 #define PM_MIN_SCAN(dip) (PM_ISCPU(dip) ? pm_cpu_min_scan : \ argument 503 #define PM_MAJOR(dip) ddi_driver_major(dip) argument 504 #define PM_IS_NEXUS(dip) ((PM_MAJOR(dip) == DDI_MAJOR_T_NONE) ? 0 : \ argument 505 NEXUS_DRV(devopsp[PM_MAJOR(dip)])) 509 #define PM_INCR_NOTLOWEST(dip) { \ argument 511 if (!PM_IS_NEXUS(dip) || \ 512 (DEVI(dip)->devi_pm_flags & (PMC_DEV_THRESH|PMC_COMP_THRESH))) {\ 514 pm_ppm_notify_all_lowest(dip, PM_NOT_ALL_LOWEST);\ 517 pmf, PM_DEVICE(dip), pm_comps_notlowest)) \ 521 #define PM_DECR_NOTLOWEST(dip) { \ argument [all …]
|
H A D | ddi_hp_ndi.c | 64 ndi_hp_register(dev_info_t *dip, ddi_hp_cn_info_t *info_p) in ndi_hp_register() argument 70 (void *)dip, (void *)info_p)); in ndi_hp_register() 77 if ((dip == NULL) || (info_p == NULL)) in ndi_hp_register() 80 if (!NEXUS_HAS_HP_OP(dip)) { in ndi_hp_register() 84 ndi_devi_enter(dip, &count); in ndi_hp_register() 86 hdlp = ddihp_cn_name_to_handle(dip, info_p->cn_name); in ndi_hp_register() 89 ndi_devi_exit(dip, count); in ndi_hp_register() 100 hdlp->cn_dip = dip; in ndi_hp_register() 108 "ddi_cn_getstate failed\n", (void *)dip, (void *)hdlp)); in ndi_hp_register() 116 DDIHP_LIST_APPEND(ddi_hp_cn_handle_t, (DEVI(dip)->devi_hp_hdlp), in ndi_hp_register() [all …]
|
H A D | ddi_intr_impl.c | 49 i_ddi_intr_devi_init(dev_info_t *dip) in i_ddi_intr_devi_init() argument 54 (void *)dip)); in i_ddi_intr_devi_init() 56 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() 61 supported_types = i_ddi_intr_get_supported_types(dip); in i_ddi_intr_devi_init() 64 i_ddi_intr_set_supported_types(dip, supported_types); in i_ddi_intr_devi_init() 68 i_ddi_intr_devi_fini(dev_info_t *dip) in i_ddi_intr_devi_fini() argument 70 devinfo_intr_t *intr_p = DEVI(dip)->devi_intr_p; in i_ddi_intr_devi_fini() 73 (void *)dip)); in i_ddi_intr_devi_fini() 75 if ((intr_p == NULL) || i_ddi_intr_get_current_nintrs(dip)) in i_ddi_intr_devi_fini() [all …]
|
H A D | ddi_hp_impl.c | 68 static boolean_t ddihp_check_status_prop(dev_info_t *dip); 82 dev_info_t *dip; in ddihp_modctl() local 88 dip = e_ddi_hold_devi_by_path(path, 0); in ddihp_modctl() 90 if (dip == NULL) in ddihp_modctl() 94 "cn_name %s arg %p rval %p\n", (void *)dip, hp_op, path, cn_name, in ddihp_modctl() 97 if (!NEXUS_HAS_HP_OP(dip)) { in ddihp_modctl() 98 ddi_release_devi(dip); in ddihp_modctl() 103 ndi_devi_enter(dip, &count); in ddihp_modctl() 105 hdlp = ddihp_cn_name_to_handle(dip, cn_name); in ddihp_modctl() 114 rv = (*(DEVI(dip)->devi_ops->devo_bus_ops->bus_hp_op))( in ddihp_modctl() [all …]
|
/titanic_41/usr/src/uts/common/io/pciex/ |
H A D | pcie_pwr.c | 83 static int pcie_pwr_change(dev_info_t *dip, pcie_pwr_t *pwr_p, int new); 86 static void pcie_add_comps(dev_info_t *dip, dev_info_t *cdip, 88 static void pcie_remove_comps(dev_info_t *dip, dev_info_t *cdip, 90 static void pcie_pm_subrelease(dev_info_t *dip, pcie_pwr_t *pwr_p); 91 static boolean_t pcie_is_pcie(dev_info_t *dip); 107 pcie_power(dev_info_t *dip, int component, int level) in pcie_power() argument 109 pcie_pwr_t *pwr_p = PCIE_NEXUS_PMINFO(dip); in pcie_power() 115 if (dip) in pcie_power() 127 ddi_driver_name(dip), ddi_get_instance(dip), pwr_p->pwr_func_lvl, in pcie_power() 131 ddi_driver_name(dip), ddi_get_instance(dip), level); in pcie_power() [all …]
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | ddi_impldefs.h | 85 typedef int (*ddi_cb_func_t)(dev_info_t *dip, ddi_cb_action_t action, 362 #define DEVI_IS_DEVICE_OFFLINE(dip) \ argument 363 ((DEVI(dip)->devi_state & DEVI_DEVICE_OFFLINE) == DEVI_DEVICE_OFFLINE) 365 #define DEVI_SET_DEVICE_ONLINE(dip) { \ argument 366 ASSERT(mutex_owned(&DEVI(dip)->devi_lock)); \ 367 if (DEVI(dip)->devi_state & DEVI_DEVICE_DEGRADED) { \ 368 mutex_exit(&DEVI(dip)->devi_lock); \ 369 e_ddi_undegrade_finalize(dip); \ 370 mutex_enter(&DEVI(dip)->devi_lock); \ 373 DEVI(dip)->devi_state &= ~(DEVI_DEVICE_DOWN | \ [all …]
|
H A D | epm.h | 235 #define PPM(dip) ((dev_info_t *)DEVI(dip)->devi_pm_ppm) argument 584 #define PM_GET_PM_INFO(dip) (DEVI(dip)->devi_pm_info) argument 585 #define PM_GET_PM_SCAN(dip) (DEVI(dip)->devi_pm_scan) argument 587 #define PM_NUMCMPTS(dip) (DEVI(dip)->devi_pm_num_components) argument 588 #define PM_CP(dip, comp) (&DEVI(dip)->devi_pm_components[comp]) argument 593 #define PM_ISDIRECT(dip) \ argument 594 (((pm_info_t *)PM_GET_PM_INFO(dip))->pmi_dev_pm_state & PM_DIRECT) 600 #define PM_ISBC(dip) (DEVI(dip)->devi_pm_flags & PMC_BC) argument 605 #define PM_SKBU(dip) (DEVI(dip)->devi_pm_flags & PMC_SKIP_BRINGUP) argument 610 #define PM_ISCPU(dip) (DEVI(dip)->devi_pm_flags & PMC_CPU_DEVICE) argument [all …]
|
H A D | pcie_impl.h | 35 #define PCI_GET_BDF(dip) \ argument 36 PCIE_DIP2BUS(dip)->bus_bdf 37 #define PCI_GET_SEC_BUS(dip) \ argument 38 PCIE_DIP2BUS(dip)->bus_bdg_secbus 39 #define PCI_GET_PCIE2PCI_SECBUS(dip) \ argument 40 PCIE_DIP2BUS(dip)->bus_pcie2pci_secbus 46 #define PCIE_DIP2BUS(dip) \ argument 47 (ndi_port_type(dip, B_TRUE, DEVI_PORT_TYPE_PCI) ? \ 48 PCIE_DIP2UPBUS(dip) : \ 49 ndi_port_type(dip, B_FALSE, DEVI_PORT_TYPE_PCI) ? \ [all …]
|
H A D | sunndi.h | 64 ndi_prop_create_boolean(dev_t match_dev, dev_info_t *dip, char *name); 70 ndi_prop_update_int(dev_t match_dev, dev_info_t *dip, char *name, int data); 73 ndi_prop_update_int_array(dev_t match_dev, dev_info_t *dip, char *name, 77 ndi_prop_update_int64(dev_t match_dev, dev_info_t *dip, char *name, 81 ndi_prop_update_int64_array(dev_t match_dev, dev_info_t *dip, char *name, 88 ndi_prop_update_string(dev_t match_dev, dev_info_t *dip, char *name, 92 ndi_prop_update_string_array(dev_t match_dev, dev_info_t *dip, 99 ndi_prop_update_byte_array(dev_t match_dev, dev_info_t *dip, 106 ndi_prop_remove(dev_t dev, dev_info_t *dip, char *name); 109 ndi_prop_remove_all(dev_info_t *dip); [all …]
|
/titanic_41/usr/src/uts/common/io/usb/usba/ |
H A D | usba10_calls.c | 51 dev_info_t *dip, in usba10_usb_register_client() argument 58 dip, version, dev_data, parse_level, flags)); in usba10_usb_register_client() 64 dev_info_t *dip, in usba10_usb_unregister_client() argument 67 usb_unregister_client(dip, dev_data); in usba10_usb_unregister_client() 73 dev_info_t *dip, in usba10_usb_free_descr_tree() argument 76 usb_free_descr_tree(dip, dev_data); in usba10_usb_free_descr_tree() 94 dev_info_t *dip, in usba10_usb_get_ep_data() argument 102 dip, dev_datap, interface, alternate, type, direction)); in usba10_usb_get_ep_data() 108 dev_info_t *dip, in usba10_usb_get_string_descr() argument 114 return (usb_get_string_descr(dip, langid, index, buf, buflen)); in usba10_usb_get_string_descr() [all …]
|
/titanic_41/usr/src/uts/sun4v/io/px/ |
H A D | px_lib4v.c | 87 px_lib_dev_init(dev_info_t *dip, devhandle_t *dev_hdl) in px_lib_dev_init() argument 92 px_t *px_p = DIP_TO_STATE(dip); in px_lib_dev_init() 96 DBG(DBG_ATTACH, dip, "px_lib_dev_init: dip 0x%p\n", dip); in px_lib_dev_init() 112 ret = ddi_prop_lookup_byte_array(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in px_lib_dev_init() 115 DBG(DBG_ATTACH, dip, "px_lib_dev_init failed ret=%d\n", ret); in px_lib_dev_init() 132 (void) ddi_prop_update_int(makedevice(ddi_driver_major(dip), in px_lib_dev_init() 133 PCI_MINOR_NUM(ddi_get_instance(dip), PCI_DEVCTL_MINOR)), dip, in px_lib_dev_init() 136 DBG(DBG_ATTACH, dip, "px_lib_dev_init: dev_hdl 0x%llx\n", *dev_hdl); in px_lib_dev_init() 142 if (!ddi_prop_exists(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, in px_lib_dev_init() 144 DBG(DBG_ATTACH, dip, "px_lib_dev_init: " in px_lib_dev_init() [all …]
|
/titanic_41/usr/src/uts/common/cpr/ |
H A D | cpr_driver.c | 71 cpr_suspend_devices(dev_info_t *dip) in cpr_suspend_devices() argument 76 for (; dip != NULL; dip = ddi_get_next_sibling(dip)) { in cpr_suspend_devices() 77 if (cpr_suspend_devices(ddi_get_child(dip))) in cpr_suspend_devices() 79 if (!cpr_is_real_device(dip)) in cpr_suspend_devices() 82 devi_string(dip, buf)); in cpr_suspend_devices() 83 ASSERT((DEVI(dip)->devi_cpr_flags & DCF_CPR_SUSPENDED) == 0); in cpr_suspend_devices() 86 i_cpr_save_configuration(dip); in cpr_suspend_devices() 90 if (!i_ddi_devi_attached(dip)) { in cpr_suspend_devices() 96 cpr_device == ddi_driver_major(dip))) { in cpr_suspend_devices() 98 error = devi_detach(dip, DDI_SUSPEND); in cpr_suspend_devices() [all …]
|
/titanic_41/usr/src/uts/sun4/io/px/ |
H A D | px_lib.h | 37 #define DIP_TO_HANDLE(dip) ((px_t *)DIP_TO_STATE(dip))->px_dev_hdl argument 57 extern int px_lib_dev_init(dev_info_t *dip, devhandle_t *dev_hdl); 58 extern int px_lib_dev_fini(dev_info_t *dip); 59 extern int px_lib_map_vconfig(dev_info_t *dip, ddi_map_req_t *mp, 63 extern int px_lib_intr_devino_to_sysino(dev_info_t *dip, devino_t devino, 65 extern int px_lib_intr_getvalid(dev_info_t *dip, sysino_t sysino, 67 extern int px_lib_intr_setvalid(dev_info_t *dip, sysino_t sysino, 69 extern int px_lib_intr_getstate(dev_info_t *dip, sysino_t sysino, 71 extern int px_lib_intr_setstate(dev_info_t *dip, sysino_t sysino, 73 extern int px_lib_intr_gettarget(dev_info_t *dip, sysino_t sysino, [all …]
|
H A D | px.c | 52 static int px_attach(dev_info_t *dip, ddi_attach_cmd_t cmd); 53 static int px_detach(dev_info_t *dip, ddi_detach_cmd_t cmd); 56 static int px_info(dev_info_t *dip, ddi_info_cmd_t infocmd, 59 static int px_pwr_setup(dev_info_t *dip); 60 static void px_pwr_teardown(dev_info_t *dip); 191 px_info(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg, void **result) in px_info() argument 224 px_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) in px_attach() argument 227 int instance = DIP_TO_INST(dip); in px_attach() 235 DBG(DBG_ATTACH, dip, "DDI_ATTACH\n"); in px_attach() 246 ddi_driver_name(dip), instance); in px_attach() [all …]
|
/titanic_41/usr/src/uts/common/io/usb/usba10/ |
H A D | usba10.c | 78 dev_info_t *dip, in usb_register_client() argument 85 dip, version, dev_data, parse_level, flags)); in usb_register_client() 91 dev_info_t *dip, in usb_unregister_client() argument 94 usba10_usb_unregister_client(dip, dev_data); in usb_unregister_client() 100 dev_info_t *dip, in usb_free_descr_tree() argument 103 usba10_usb_free_descr_tree(dip, dev_data); in usb_free_descr_tree() 122 dev_info_t *dip, in usb_get_ep_data() argument 130 dip, dev_datap, interface, alternate, type, direction)); in usb_get_ep_data() 136 dev_info_t *dip, in usb_get_string_descr() argument 142 return (usba10_usb_get_string_descr(dip, langid, index, buf, buflen)); in usb_get_string_descr() [all …]
|
/titanic_41/usr/src/uts/sun4u/io/px/ |
H A D | px_lib4u.c | 106 px_lib_map_regs(pxu_t *pxu_p, dev_info_t *dip) in px_lib_map_regs() argument 111 DBG(DBG_ATTACH, dip, "px_lib_map_regs: pxu_p:0x%p, dip 0x%p\n", in px_lib_map_regs() 112 pxu_p, dip); in px_lib_map_regs() 121 if (ddi_regs_map_setup(dip, reg_bank, &pxu_p->px_address[reg_bank], in px_lib_map_regs() 131 if (ddi_regs_map_setup(dip, reg_bank, &pxu_p->px_address[reg_bank], in px_lib_map_regs() 140 DBG(DBG_ATTACH, dip, "reg_bank 0x%x address 0x%p\n", in px_lib_map_regs() 148 ddi_driver_name(dip), ddi_get_instance(dip), reg_bank); in px_lib_map_regs() 179 px_lib_dev_init(dev_info_t *dip, devhandle_t *dev_hdl) in px_lib_dev_init() argument 186 px_t *px_p = DIP_TO_STATE(dip); in px_lib_dev_init() 189 DBG(DBG_ATTACH, dip, "px_lib_dev_init: dip 0x%p", dip); in px_lib_dev_init() [all …]
|
/titanic_41/usr/src/uts/common/io/cardbus/ |
H A D | cardbus.c | 83 static int cardbus_bus_map(dev_info_t *dip, dev_info_t *rdip, 93 static void cardbus_removechild(dev_info_t *dip); 95 static int cardbus_dma_allochdl(dev_info_t *dip, dev_info_t *rdip, 98 static int cardbus_dma_freehdl(dev_info_t *dip, dev_info_t *rdip, 100 static int cardbus_dma_bindhdl(dev_info_t *dip, dev_info_t *rdip, 103 static int cardbus_dma_unbindhdl(dev_info_t *dip, dev_info_t *rdip, 105 static int cardbus_dma_flush(dev_info_t *dip, dev_info_t *rdip, 108 static int cardbus_dma_win(dev_info_t *dip, dev_info_t *rdip, 111 static int cardbus_dma_map(dev_info_t *dip, dev_info_t *rdip, 114 static int cardbus_prop_op(dev_t dev, dev_info_t *dip, dev_info_t *ch_dip, [all …]
|
H A D | cardbus_cfg.c | 120 dev_info_t *dip; member 134 dev_info_t *dip; /* Associated with the attach point */ member 154 dev_info_t *dip; /* Associated with the attach point */ member 164 static cardbus_phdl_t *cardbus_find_phdl(dev_info_t *dip); 165 static cardbus_phdl_t *cardbus_create_phdl(dev_info_t *dip); 166 static int cardbus_destroy_phdl(dev_info_t *dip); 172 static int cardbus_isa_bridge_ranges(dev_info_t *dip, cardbus_phdl_t *entry, 202 static int cardbus_update_reg_prop(dev_info_t *dip, uint32_t regvalue, 204 static int cardbus_set_standard_props(dev_info_t *parent, dev_info_t *dip, 206 static int cardbus_set_isa_props(dev_info_t *parent, dev_info_t *dip, [all …]
|
/titanic_41/usr/src/uts/common/io/pciex/hotplug/ |
H A D | pcie_hp.c | 60 static int pcie_hp_list_occupants(dev_info_t *dip, void *arg); 61 static int pcie_hp_register_port(dev_info_t *dip, dev_info_t *pdip, 63 static int pcie_hp_register_ports_for_dev(dev_info_t *dip, int device_num); 66 static int pcie_hp_match_dev_func(dev_info_t *dip, void *hdl); 67 static boolean_t pcie_hp_match_dev(dev_info_t *dip, int dev_num); 70 static int pcie_hp_create_port_name_num(dev_info_t *dip, 72 static int pcie_hp_check_hardware_existence(dev_info_t *dip, int dev_num, 212 pcie_hp_init(dev_info_t *dip, caddr_t arg) in pcie_hp_init() argument 214 pcie_bus_t *bus_p = PCIE_DIP2BUS(dip); in pcie_hp_init() 220 ret = pciehpc_init(dip, arg); in pcie_hp_init() [all …]
|
/titanic_41/usr/src/uts/intel/sys/ |
H A D | iommulib.h | 62 dev_info_t *dip, dev_info_t *rdip, ddi_dma_attr_t *attr, 66 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle); 68 int (*ilops_dma_bindhdl)(iommulib_handle_t handle, dev_info_t *dip, 74 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle); 76 int (*ilops_dma_sync)(iommulib_handle_t handle, dev_info_t *dip, 80 int (*ilops_dma_win)(iommulib_handle_t handle, dev_info_t *dip, 86 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle, 90 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle, 111 #define IOMMU_USED(dip) \ argument 112 (DEVI(dip)->devi_iommulib_handle != NULL && \ [all …]
|
/titanic_41/usr/src/uts/common/contract/ |
H A D | device.c | 364 static void ct_barrier_acquire(dev_info_t *dip); 365 static void ct_barrier_release(dev_info_t *dip); 366 static int ct_barrier_held(dev_info_t *dip); 367 static int ct_barrier_empty(dev_info_t *dip); 368 static void ct_barrier_wait_for_release(dev_info_t *dip); 369 static int ct_barrier_wait_for_empty(dev_info_t *dip, int secs); 370 static void ct_barrier_decr(dev_info_t *dip); 371 static void ct_barrier_incr(dev_info_t *dip); 504 dev_info_t *dip; in ctmpl_device_set() local 558 dip = NULL; in ctmpl_device_set() [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | dma_engine.c | 83 i_dmae_init(dev_info_t *dip) in i_dmae_init() argument 94 return (d37A_init(dip)); in i_dmae_init() 107 i_dmae_acquire(dev_info_t *dip, int chnl, int (*dmae_waitfp)(), caddr_t arg) in i_dmae_acquire() argument 110 dip = dip; in i_dmae_acquire() 147 i_dmae_free(dev_info_t *dip, int chnl) in i_dmae_free() argument 150 dip = dip; in i_dmae_free() 173 i_dmae_get_best_mode(dev_info_t *dip, struct ddi_dmae_req *dmaereqp) in i_dmae_get_best_mode() argument 176 dip = dip; in i_dmae_get_best_mode() 222 i_dmae_prog(dev_info_t *dip, struct ddi_dmae_req *dmaereqp, in i_dmae_prog() argument 229 dip = dip; in i_dmae_prog() [all …]
|
/titanic_41/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 137 dlpi_impl_t *dip; in dlpi_open() local 155 if ((dip = calloc(1, sizeof (dlpi_impl_t))) == NULL) in dlpi_open() 159 dip->dli_timeout = DLPI_DEF_TIMEOUT; in dlpi_open() 160 dip->dli_ppa = ifsp.ifsp_ppa; in dlpi_open() 161 dip->dli_oflags = flags; in dlpi_open() 162 dip->dli_notifylistp = NULL; in dlpi_open() 163 dip->dli_note_processing = B_FALSE; in dlpi_open() 165 dip->dli_oflags |= DLPI_DEVONLY; in dlpi_open() 168 if (strlcpy(dip->dli_linkname, linkname, sizeof (dip->dli_linkname)) >= in dlpi_open() 169 sizeof (dip->dli_linkname)) { in dlpi_open() [all …]
|
/titanic_41/usr/src/uts/common/sys/usb/usba/ |
H A D | usba10.h | 50 dev_info_t *dip, 62 dev_info_t *dip, 71 dev_info_t *dip, 75 usb_get_max_isoc_pkts(dev_info_t *dip); 78 usb_is_pm_enabled(dev_info_t *dip); 88 dev_info_t *dip, 95 dev_info_t *dip, 100 dev_info_t *dip, 123 dev_info_t *dip, 131 dev_info_t *dip, [all …]
|