Home
last modified time | relevance | path

Searched refs:cdip (Results 1 – 25 of 73) sorted by relevance

123

/titanic_41/usr/src/uts/common/io/pciex/
H A Dpcie_pwr.c86 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,
273 dev_info_t *cdip; in pcie_bus_power() local
288 cdip = bpc->bpc_dip; in pcie_bus_power()
296 cdip = bphc->bphc_dip; in pcie_bus_power()
313 ddi_driver_name(cdip), ddi_get_instance(cdip), in pcie_bus_power()
324 if (!PCIE_IS_COMPS_COUNTED(cdip)) { in pcie_bus_power()
329 (void) pm_busy_component(cdip, 0); in pcie_bus_power()
348 ddi_driver_name(cdip), ddi_get_instance(cdip), in pcie_bus_power()
358 if (!PCIE_IS_COMPS_COUNTED(cdip)) { in pcie_bus_power()
[all …]
H A Dpcie.c441 pcie_init_cfghdl(dev_info_t *cdip) in pcie_init_cfghdl() argument
446 bus_p = PCIE_DIP2BUS(cdip); in pcie_init_cfghdl()
451 if (pci_config_setup(cdip, &eh) != DDI_SUCCESS) { in pcie_init_cfghdl()
462 pcie_fini_cfghdl(dev_info_t *cdip) in pcie_fini_cfghdl() argument
464 pcie_bus_t *bus_p = PCIE_DIP2BUS(cdip); in pcie_fini_cfghdl()
480 pcie_initchild(dev_info_t *cdip) in pcie_initchild() argument
486 bus_p = PCIE_DIP2BUS(cdip); in pcie_initchild()
489 ddi_driver_name(cdip)); in pcie_initchild()
494 if (pcie_init_cfghdl(cdip) != DDI_SUCCESS) in pcie_initchild()
514 devid = ddi_prop_get_int(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, in pcie_initchild()
[all …]
/titanic_41/usr/src/uts/i86pc/io/pciex/
H A Dnpe_misc.c295 dev_info_t *cdip = ddi_get_child(dip); in npe_enable_htmsi_children() local
310 for (; cdip != NULL; cdip = ddi_get_next_sibling(cdip)) { in npe_enable_htmsi_children()
311 if (pci_config_setup(cdip, &cfg_hdl) != DDI_SUCCESS) { in npe_enable_htmsi_children()
314 ddi_node_name(cdip)); in npe_enable_htmsi_children()
330 dev_info_t *cdip = ddi_get_child(dip); in npe_save_htconfig_children() local
336 for (; cdip != NULL; cdip = ddi_get_next_sibling(cdip)) { in npe_save_htconfig_children()
337 if (ddi_driver_major(cdip) != DDI_MAJOR_T_NONE) in npe_save_htconfig_children()
340 if (pci_config_setup(cdip, &cfg_hdl) != DDI_SUCCESS) in npe_save_htconfig_children()
350 if (pci_save_config_regs(cdip) != DDI_SUCCESS) { in npe_save_htconfig_children()
352 "regs for %s\n", ddi_node_name(cdip)); in npe_save_htconfig_children()
[all …]
/titanic_41/usr/src/uts/sun4u/io/pci/
H A Dpci_pwr.c111 pci_pwr_rm_info(pci_pwr_t *pwr_p, dev_info_t *cdip) in pci_pwr_rm_info() argument
123 if ((*prev_infop)->dip == cdip) { in pci_pwr_rm_info()
161 pci_pwr_add_components(pci_pwr_t *pwr_p, dev_info_t *cdip, pci_pwr_chld_t *p) in pci_pwr_add_components() argument
163 int num_comps = PM_NUMCMPTS(cdip); in pci_pwr_add_components()
176 DEBUG3(DBG_PWR, ddi_get_parent(cdip), in pci_pwr_add_components()
178 ddi_node_name(cdip), ddi_get_name_addr(cdip)); in pci_pwr_add_components()
181 ddi_driver_name(cdip), ddi_get_instance(cdip), in pci_pwr_add_components()
534 dev_info_t *cdip; in pci_pwr_resume() local
552 for (cdip = ddi_get_child(dip); cdip != NULL; in pci_pwr_resume()
553 cdip = ddi_get_next_sibling(cdip)) { in pci_pwr_resume()
[all …]
H A Dpci_util.c805 dev_info_t *cdip; in pci_child_cfg_save() local
813 for (cdip = ddi_get_child(dip); cdip != NULL; in pci_child_cfg_save()
814 cdip = ddi_get_next_sibling(cdip)) { in pci_child_cfg_save()
820 if (i_ddi_node_state(cdip) < DS_INITIALIZED) { in pci_child_cfg_save()
822 "%s%d not in CF1\n", ddi_driver_name(cdip), in pci_child_cfg_save()
823 ddi_get_instance(cdip)); in pci_child_cfg_save()
831 if (ddi_prop_exists(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, in pci_child_cfg_save()
841 ret = ndi_prop_create_boolean(DDI_DEV_T_NONE, cdip, in pci_child_cfg_save()
846 ddi_driver_name(cdip), ddi_get_instance(cdip), in pci_child_cfg_save()
850 (void) pci_save_config_regs(cdip); in pci_child_cfg_save()
[all …]
H A Dpci_intr.c146 dev_info_t *cdip; in map_pcidev_cfg_reg() local
151 for (cdip = rdip; cdip && cdip != dip; cdip = ddi_get_parent(cdip)) { in map_pcidev_cfg_reg()
153 uint32_t vendor_id = ddi_getprop(DDI_DEV_T_ANY, cdip, in map_pcidev_cfg_reg()
159 ddi_driver_name(cdip), ddi_get_instance(cdip)); in map_pcidev_cfg_reg()
161 if (ddi_prop_exists(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, in map_pcidev_cfg_reg()
171 pci_dip = cdip; in map_pcidev_cfg_reg()
176 cdip, DDI_PROP_DONTPASS, "device-id", -1); in map_pcidev_cfg_reg()
186 if (pci_config_setup(cdip, &config_handle) != DDI_SUCCESS) { in map_pcidev_cfg_reg()
190 ddi_driver_name(cdip), ddi_get_instance(cdip)); in map_pcidev_cfg_reg()
209 ddi_driver_name(cdip), ddi_get_instance(cdip)); in map_pcidev_cfg_reg()
[all …]
/titanic_41/usr/src/uts/sun4u/opl/io/pcicmu/
H A Dpcmu_util.c557 dev_info_t *cdip; in pcmu_child_cfg_save() local
565 for (cdip = ddi_get_child(dip); cdip != NULL; in pcmu_child_cfg_save()
566 cdip = ddi_get_next_sibling(cdip)) { in pcmu_child_cfg_save()
572 if (i_ddi_node_state(cdip) < DS_INITIALIZED) { in pcmu_child_cfg_save()
574 "%s%d not in CF1\n", ddi_driver_name(cdip), in pcmu_child_cfg_save()
575 ddi_get_instance(cdip)); in pcmu_child_cfg_save()
583 if (ddi_prop_exists(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, in pcmu_child_cfg_save()
593 ret = ndi_prop_create_boolean(DDI_DEV_T_NONE, cdip, in pcmu_child_cfg_save()
598 ddi_driver_name(cdip), ddi_get_instance(cdip), in pcmu_child_cfg_save()
602 (void) pci_save_config_regs(cdip); in pcmu_child_cfg_save()
[all …]
/titanic_41/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_hca.c141 dev_info_t *cdip; in ibnex_hca_bus_config() local
168 cdip = ibnex_config_obp_args(parent, devname); in ibnex_hca_bus_config()
169 if (cdip) { in ibnex_hca_bus_config()
176 node_data = ddi_get_parent_data(cdip); in ibnex_hca_bus_config()
319 dev_info_t *cdip; in ibnex_config_obp_args() local
382 rval = ibnex_get_dip_from_guid(port_guid, index, pkey, &cdip); in ibnex_config_obp_args()
383 if (rval == IBNEX_SUCCESS && cdip != NULL) { in ibnex_config_obp_args()
387 return (cdip); in ibnex_config_obp_args()
391 cdip = ibnex_commsvc_initnode(parent, port_attr, in ibnex_config_obp_args()
402 return (cdip); in ibnex_config_obp_args()
[all …]
H A Dibnex.c1134 dev_info_t *cdip; in ibnex_bus_config() local
1154 cdip = ndi_devi_findchild(parent, devname); in ibnex_bus_config()
1155 if (cdip) in ibnex_bus_config()
1156 node_data = ddi_get_parent_data(cdip); in ibnex_bus_config()
1160 if (cdip == NULL || (node_data != NULL && in ibnex_bus_config()
1610 dev_info_t *cdip; in ibnex_config_port_node() local
1653 rval = ibnex_get_dip_from_guid(port_guid, index, pkey, &cdip); in ibnex_config_port_node()
1654 if ((rval == IBNEX_SUCCESS) && cdip != NULL) { in ibnex_config_port_node()
1661 return (cdip); in ibnex_config_port_node()
1665 cdip = ibnex_commsvc_initnode(parent, in ibnex_config_port_node()
[all …]
/titanic_41/usr/src/uts/common/io/1394/
H A Dnx1394.c154 dev_info_t *ocdip, *cdip = (dev_info_t *)arg; in nx1394_bus_ctl() local
155 dev_info_t *pdip = ddi_get_parent(cdip); in nx1394_bus_ctl()
161 S1394_TNF_SL_HOTPLUG_STACK, "", tnf_opaque, dip, cdip); in nx1394_bus_ctl()
163 i = ddi_prop_lookup_int_array(DDI_DEV_T_ANY, cdip, in nx1394_bus_ctl()
169 ddi_node_name(cdip), ddi_get_instance(cdip)); in nx1394_bus_ctl()
191 ddi_set_name_addr(cdip, addr); in nx1394_bus_ctl()
197 if ((ocdip = ndi_devi_find(pdip, ddi_node_name(cdip), addr)) != in nx1394_bus_ctl()
198 NULL && ocdip != cdip) { in nx1394_bus_ctl()
201 ddi_node_name(cdip), ddi_get_instance(cdip), in nx1394_bus_ctl()
209 ddi_set_name_addr(cdip, NULL); in nx1394_bus_ctl()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dsunmdi.c1103 dev_info_t *cdip = NULL; in i_mdi_devinfo_create() local
1108 cdip = i_mdi_devinfo_find(vh, name, guid); in i_mdi_devinfo_create()
1109 ASSERT(cdip == NULL); in i_mdi_devinfo_create()
1110 if (cdip) { in i_mdi_devinfo_create()
1116 ndi_devi_alloc_sleep(vh->vh_dip, name, DEVI_SID_NODEID, &cdip); in i_mdi_devinfo_create()
1117 if (cdip == NULL) in i_mdi_devinfo_create()
1124 if (ndi_prop_update_string(DDI_DEV_T_NONE, cdip, in i_mdi_devinfo_create()
1131 (ndi_prop_update_string_array(DDI_DEV_T_NONE, cdip, in i_mdi_devinfo_create()
1136 return (cdip); in i_mdi_devinfo_create()
1139 if (cdip) { in i_mdi_devinfo_create()
[all …]
H A Dddi_hp_impl.c746 dev_info_t *cdip; in ddihp_cn_change_children_state() local
784 cdip = h->cn_info.cn_child; in ddihp_cn_change_children_state()
785 ASSERT(cdip); in ddihp_cn_change_children_state()
791 if (ndi_devi_online(cdip, in ddihp_cn_change_children_state()
798 ddi_driver_name(cdip), in ddihp_cn_change_children_state()
799 ddi_get_instance(cdip), in ddihp_cn_change_children_state()
812 if (ndi_devi_offline(cdip, NDI_UNCONFIG) != in ddihp_cn_change_children_state()
819 ddi_driver_name(cdip), in ddihp_cn_change_children_state()
820 ddi_get_instance(cdip), in ddihp_cn_change_children_state()
866 dev_info_t *cdip; in ddihp_port_upgrade_state() local
[all …]
H A Dsunndi.c822 dev_info_t *cdip; in ndi_dc_devi_create() local
832 if ((cdip = (rdip != NULL) ? *rdip : NULL) == NULL) in ndi_dc_devi_create()
833 if ((rv = i_dc_devi_create(dcp, pdip, &cdip)) != 0) in ndi_dc_devi_create()
836 ASSERT(cdip != NULL); in ndi_dc_devi_create()
844 (void) ndi_devi_free(cdip); in ndi_dc_devi_create()
847 *rdip = cdip; in ndi_dc_devi_create()
866 if (e_ddi_offline_notify(cdip) == DDI_FAILURE) { in ndi_dc_devi_create()
874 mutex_enter(&(DEVI(cdip)->devi_lock)); in ndi_dc_devi_create()
875 DEVI_SET_DEVICE_OFFLINE(cdip); in ndi_dc_devi_create()
876 mutex_exit(&(DEVI(cdip)->devi_lock)); in ndi_dc_devi_create()
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dpcie_pwr.h87 #define PCIE_CHILD_COUNTERS(cdip) \ argument
88 (PCIE_PAR_PMINFO(cdip)->pwr_child_counters)
96 #define PCIE_IS_COMPS_COUNTED(cdip) \ argument
97 (PCIE_PMINFO(cdip) && PCIE_PAR_PMINFO(cdip))
192 extern int pcie_pm_add_child(dev_info_t *dip, dev_info_t *cdip);
193 extern int pcie_pm_remove_child(dev_info_t *dip, dev_info_t *cdip);
/titanic_41/usr/src/uts/i86xpv/io/psm/
H A Dxpv_intr.c61 dev_info_t *cdip; in apic_check_msi_support() local
71 for (cdip = ddi_get_child(ddi_root_node()); cdip != NULL; in apic_check_msi_support()
72 cdip = ddi_get_next_sibling(cdip)) { in apic_check_msi_support()
75 " driver: %s, binding: %s, nodename: %s\n", (void *)cdip, in apic_check_msi_support()
76 ddi_driver_name(cdip), ddi_binding_name(cdip), in apic_check_msi_support()
77 ddi_node_name(cdip))); in apic_check_msi_support()
79 if (ddi_getlongprop_buf(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, in apic_check_msi_support()
/titanic_41/usr/src/uts/common/io/pci-ide/
H A Dpci-ide.c108 static int pciide_initchild(dev_info_t *mydip, dev_info_t *cdip);
110 static void pciide_compat_setup(dev_info_t *mydip, dev_info_t *cdip,
292 dev_info_t *cdip; in pciide_ddi_ctlops() local
303 cdip = (dev_info_t *)arg; in pciide_ddi_ctlops()
304 return (pciide_initchild(dip, cdip)); in pciide_ddi_ctlops()
307 cdip = (dev_info_t *)arg; in pciide_ddi_ctlops()
308 pdptr = ddi_get_parent_data(cdip); in pciide_ddi_ctlops()
309 ddi_set_parent_data(cdip, NULL); in pciide_ddi_ctlops()
310 ddi_set_name_addr(cdip, NULL); in pciide_ddi_ctlops()
459 pciide_initchild(dev_info_t *mydip, dev_info_t *cdip) in pciide_initchild() argument
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c1130 dev_info_t *cdip; in vhci_scsi_start() local
1143 cdip = ADDR2DIP(ap); in vhci_scsi_start()
1203 lbp = mdi_get_lb_policy(cdip); in vhci_scsi_start()
1211 if (mdi_set_lb_policy(cdip, LOAD_BALANCE_NONE) != in vhci_scsi_start()
1224 mdi_get_lb_policy(cdip))); in vhci_scsi_start()
1271 (void) mdi_set_lb_policy(cdip, lbp); in vhci_scsi_start()
1297 mdi_get_lb_policy(cdip))); in vhci_scsi_start()
1310 (void) mdi_set_lb_policy(cdip, lbp); in vhci_scsi_start()
1350 rval = mdi_select_path(cdip, NULL, MDI_SELECT_PATH_INSTANCE, in vhci_scsi_start()
1380 (void) mdi_set_lb_policy(cdip, lbp); in vhci_scsi_start()
[all …]
/titanic_41/usr/src/uts/intel/io/
H A Dcpunex.c113 dev_info_t *cdip = (dev_info_t *)arg; in cpunex_bus_ctl() local
117 i = ddi_prop_get_int(DDI_DEV_T_ANY, cdip, in cpunex_bus_ctl()
122 "not found", ddi_node_name(cdip), in cpunex_bus_ctl()
123 ddi_get_instance(cdip)); in cpunex_bus_ctl()
128 ddi_set_name_addr(cdip, caddr); in cpunex_bus_ctl()
/titanic_41/usr/src/uts/sparc/os/
H A Dbootdev.c101 dev_info_t *pdip, *cdip, *idip; in i_devi_to_promname() local
148 cdip = find_alternate_node(pdip, major); in i_devi_to_promname()
150 if (cdip) { in i_devi_to_promname()
151 nodename = ddi_node_name(cdip); in i_devi_to_promname()
164 pdip = cdip; in i_devi_to_promname()
212 dev_info_t *dip, *pdip, *cdip, *alt_dip = NULL; in i_devname_to_promname() local
327 cdip = find_alternate_node(pdip, major); in i_devname_to_promname()
329 if (cdip) { in i_devname_to_promname()
330 nodename = ddi_node_name(cdip); in i_devname_to_promname()
341 if (cdip) { in i_devname_to_promname()
[all …]
/titanic_41/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c796 dev_info_t *cdip; in scsa1394_create_children() local
814 (pnode_t)DEVI_SID_NODEID, &cdip); in scsa1394_create_children()
816 ret = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, in scsa1394_create_children()
819 (void) ndi_devi_free(cdip); in scsa1394_create_children()
823 ret = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, in scsa1394_create_children()
826 ddi_prop_remove_all(cdip); in scsa1394_create_children()
827 (void) ndi_devi_free(cdip); in scsa1394_create_children()
835 ret = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, in scsa1394_create_children()
838 ddi_prop_remove_all(cdip); in scsa1394_create_children()
839 (void) ndi_devi_free(cdip); in scsa1394_create_children()
[all …]
/titanic_41/usr/src/uts/intel/promif/
H A Dprom_emul.c122 dev_info_t *cdip = ddi_get_child(dip); in promif_create_children() local
124 while (cdip) { in promif_create_children()
125 pnp->pn_child = promif_create_node(cdip); in promif_create_children()
126 promif_create_peers(pnp->pn_child, cdip); in promif_create_children()
128 cdip = ddi_get_child(cdip); in promif_create_children()
/titanic_41/usr/src/uts/intel/io/pciex/
H A Dpcie_nvidia.c48 check_if_device_is_pciex(dev_info_t *cdip, uchar_t bus, uchar_t dev, in check_if_device_is_pciex() argument
101 if (cdip && in check_if_device_is_pciex()
104 DDI_DEV_T_NONE, cdip, in check_if_device_is_pciex()
113 if (cdip && (cap == PCI_CAP_ID_PCI_HOTPLUG)) { in check_if_device_is_pciex()
114 (void) ndi_prop_update_int(DDI_DEV_T_NONE, cdip, in check_if_device_is_pciex()
/titanic_41/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c216 dev_info_t *cdip; in pcie_hp_init() local
234 cdip = ddi_get_child(dip); in pcie_hp_init()
235 while (cdip != NULL) { in pcie_hp_init()
236 if ((ret = pcie_hp_register_port(cdip, dip, NULL)) in pcie_hp_init()
241 cdip = ddi_get_next_sibling(cdip); in pcie_hp_init()
391 dev_info_t *cdip; in pcie_read_only_probe() local
406 cdip = pcie_hp_devi_find(dip, (int)dev, (int)func); in pcie_read_only_probe()
407 *pcdip = cdip; in pcie_read_only_probe()
582 dev_info_t *cdip; in pcie_hp_register_ports_for_dev() local
585 for (cdip = ddi_get_child(dip); cdip; in pcie_hp_register_ports_for_dev()
[all …]
/titanic_41/usr/src/uts/sun4u/io/i2c/nexus/
H A Di2bsc.c75 static int i2bsc_initchild(dev_info_t *dip, dev_info_t *cdip);
76 static int i2bsc_uninitchild(dev_info_t *dip, dev_info_t *cdip);
589 i2bsc_initchild(dev_info_t *dip, dev_info_t *cdip) in i2bsc_initchild() argument
601 i2bsc_trace(i2c, 'A', "i2bsc_initchild", "dip/cdip %p/%p", dip, cdip); in i2bsc_initchild()
607 err = ddi_getlongprop_buf(DDI_DEV_T_ANY, cdip, in i2bsc_initchild()
615 err = ddi_getlongprop_buf(DDI_DEV_T_ANY, cdip, in i2bsc_initchild()
642 ddi_set_parent_data(cdip, ppvt); in i2bsc_initchild()
643 ddi_set_name_addr(cdip, name); in i2bsc_initchild()
646 ddi_node_name(cdip)); in i2bsc_initchild()
652 i2bsc_uninitchild(dev_info_t *dip, dev_info_t *cdip) in i2bsc_uninitchild() argument
[all …]
H A Dsmbus.c67 static void smbus_uninitchild(dev_info_t *cdip);
68 static int smbus_initchild(dev_info_t *cdip);
490 smbus_initchild(dev_info_t *cdip) in smbus_initchild() argument
500 ddi_node_name(cdip))); in smbus_initchild()
503 err = ddi_getlongprop_buf(DDI_DEV_T_ANY, cdip, in smbus_initchild()
513 err = ddi_getlongprop_buf(DDI_DEV_T_ANY, cdip, in smbus_initchild()
524 ddi_set_parent_data(cdip, ppvt); in smbus_initchild()
534 ddi_set_name_addr(cdip, name); in smbus_initchild()
537 ddi_node_name(cdip))); in smbus_initchild()
543 smbus_uninitchild(dev_info_t *cdip) in smbus_uninitchild() argument
[all …]

123