Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/uts/common/io/pciex/
H A Dpcie_pwr.c314 ddi_driver_name(cdip), ddi_get_instance(cdip), in pcie_bus_power()
349 ddi_driver_name(cdip), ddi_get_instance(cdip), in pcie_bus_power()
536 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pcie_add_comps()
565 if (!(PCIE_PMINFO(cdip)) || !PCIE_PAR_PMINFO(cdip)) { in pcie_remove_comps()
582 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pcie_remove_comps()
880 for (cdip = ddi_get_child(dip); cdip != NULL; in pcie_pwr_resume()
881 cdip = ddi_get_next_sibling(cdip)) { in pcie_pwr_resume()
906 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pcie_pwr_resume()
990 for (cdip = ddi_get_child(dip); cdip != NULL; in pcie_pwr_suspend()
991 cdip = ddi_get_next_sibling(cdip)) { in pcie_pwr_suspend()
[all …]
H A Dpcie.c2136 for (; ddi_get_parent(cdip) != dip; cdip = ddi_get_parent(cdip)) in pcie_get_my_childs_dip()
2139 return (cdip); in pcie_get_my_childs_dip()
2145 dev_info_t *cdip; in pcie_get_bdf_for_dma_xfer() local
2228 for (; cdip; cdip = ddi_get_next_sibling(cdip)) in pcie_is_child()
2494 for (; cdip; cdip = ddi_get_next_sibling(cdip)) { in pcie_root_port()
2831 dev_info_t *cdip; in pcie_func_to_dip() local
2833 for (cdip = ddi_get_child(dip); cdip; in pcie_func_to_dip()
2834 cdip = ddi_get_next_sibling(cdip)) { in pcie_func_to_dip()
2840 return (cdip); in pcie_func_to_dip()
3036 for (cdip = ddi_get_child(dip); cdip != NULL; in pcie_link_bw_taskq()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pciex/
H A Dnpe_misc.c246 dev_info_t *cdip = ddi_get_child(dip); in npe_enable_htmsi_children() local
261 for (; cdip != NULL; cdip = ddi_get_next_sibling(cdip)) { in npe_enable_htmsi_children()
265 ddi_node_name(cdip)); in npe_enable_htmsi_children()
281 dev_info_t *cdip = ddi_get_child(dip); in npe_save_htconfig_children() local
287 for (; cdip != NULL; cdip = ddi_get_next_sibling(cdip)) { in npe_save_htconfig_children()
288 if (ddi_driver_major(cdip) != DDI_MAJOR_T_NONE) in npe_save_htconfig_children()
303 "regs for %s\n", ddi_node_name(cdip)); in npe_save_htconfig_children()
309 "property for %s\n", ddi_node_name(cdip)); in npe_save_htconfig_children()
323 dev_info_t *cdip = ddi_get_child(dip); in npe_restore_htconfig_children() local
326 for (; cdip != NULL; cdip = ddi_get_next_sibling(cdip)) { in npe_restore_htconfig_children()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_pwr.c178 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()
562 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pci_pwr_resume()
576 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pci_pwr_resume()
593 dev_info_t *cdip; in pci_pwr_suspend() local
600 for (cdip = ddi_get_child(dip); cdip != NULL; in pci_pwr_suspend()
601 cdip = ddi_get_next_sibling(cdip)) { in pci_pwr_suspend()
[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()
823 ddi_get_instance(cdip)); in pci_child_cfg_save()
846 ddi_driver_name(cdip), ddi_get_instance(cdip), in pci_child_cfg_save()
857 dev_info_t *cdip; in pci_child_cfg_restore() local
865 for (cdip = ddi_get_child(dip); cdip != NULL; in pci_child_cfg_restore()
866 cdip = ddi_get_next_sibling(cdip)) { in pci_child_cfg_restore()
875 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pci_child_cfg_restore()
888 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pci_child_cfg_restore()
[all …]
H A Dpci_intr.c145 dev_info_t *cdip; in map_pcidev_cfg_reg() local
150 for (cdip = rdip; cdip && cdip != dip; cdip = ddi_get_parent(cdip)) { in map_pcidev_cfg_reg()
152 uint32_t vendor_id = ddi_getprop(DDI_DEV_T_ANY, cdip, in map_pcidev_cfg_reg()
158 ddi_driver_name(cdip), ddi_get_instance(cdip)); in map_pcidev_cfg_reg()
170 pci_dip = cdip; in map_pcidev_cfg_reg()
175 cdip, DDI_PROP_DONTPASS, "device-id", -1); in map_pcidev_cfg_reg()
189 ddi_driver_name(cdip), ddi_get_instance(cdip)); in map_pcidev_cfg_reg()
208 ddi_driver_name(cdip), ddi_get_instance(cdip)); in map_pcidev_cfg_reg()
367 dev_info_t *cdip = rdip; in get_my_childs_dip() local
369 for (; ddi_get_parent(cdip) != dip; cdip = ddi_get_parent(cdip)) in get_my_childs_dip()
[all …]
/illumos-gate/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()
575 ddi_get_instance(cdip)); in pcmu_child_cfg_save()
598 ddi_driver_name(cdip), ddi_get_instance(cdip), in pcmu_child_cfg_save()
609 dev_info_t *cdip; in pcmu_child_cfg_restore() local
617 for (cdip = ddi_get_child(dip); cdip != NULL; in pcmu_child_cfg_restore()
618 cdip = ddi_get_next_sibling(cdip)) { in pcmu_child_cfg_restore()
627 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pcmu_child_cfg_restore()
640 ddi_driver_name(cdip), ddi_get_instance(cdip)); in pcmu_child_cfg_restore()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_hca.c141 dev_info_t *cdip; in ibnex_hca_bus_config() local
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
387 return (cdip); in ibnex_config_obp_args()
402 return (cdip); in ibnex_config_obp_args()
463 if (*cdip) in ibnex_get_cdip_info()
476 dev_info_t *cdip; in ibnex_hca_bus_config_one() local
499 if (cdip) { in ibnex_hca_bus_config_one()
503 node_data->node_dip = cdip; in ibnex_hca_bus_config_one()
[all …]
H A Dibnex.c1138 dev_info_t *cdip; in ibnex_bus_config() local
1159 if (cdip) in ibnex_bus_config()
1614 dev_info_t *cdip; in ibnex_config_port_node() local
1665 return (cdip); in ibnex_config_port_node()
1704 return (cdip); in ibnex_config_port_node()
2198 cdip); in ibnex_ioc_create_pi()
2225 cdip, rval); in ibnex_ioc_create_pi()
3068 return (cdip); in ibnex_commsvc_initnode()
3091 return (cdip); in ibnex_commsvc_initnode()
3936 dev_info_t *cdip; in ib_vhci_pi_uninit() local
[all …]
/illumos-gate/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()
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()
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()
225 ddi_node_name(cdip), in nx1394_bus_ctl()
226 ddi_get_instance(cdip)); in nx1394_bus_ctl()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dsunmdi.c3660 if (cdip && !i_ddi_devi_attached(cdip) && in i_mdi_pi_state_change()
3689 cdip && (i_ddi_node_state(cdip) >= in i_mdi_pi_state_change()
4023 if (cdip && !i_ddi_devi_attached(cdip)) { in i_mdi_pi_online()
6392 MDI_DEBUG(5, (MDI_NOTE, cdip ? cdip : pdip, in i_mdi_pi_enable_disable()
6396 MDI_DEBUG(1, (MDI_NOTE, cdip ? cdip : pdip, in i_mdi_pi_enable_disable()
6402 MDI_DEBUG(1, (MDI_NOTE, cdip ? cdip : pdip, in i_mdi_pi_enable_disable()
6413 MDI_DEBUG(4, (MDI_NOTE, cdip ? cdip : pdip, in i_mdi_pi_enable_disable()
6460 MDI_DEBUG(1, (MDI_NOTE, cdip ? cdip : pdip, in i_mdi_pi_enable_disable()
6483 MDI_DEBUG(1, (MDI_NOTE, cdip ? cdip : pdip, in i_mdi_pi_enable_disable()
6491 MDI_DEBUG(5, (MDI_NOTE, cdip ? cdip : pdip, in i_mdi_pi_enable_disable()
[all …]
H A Dddi_hp_impl.c975 dev_info_t *cdip; in ddihp_cn_change_children_state() local
1013 cdip = h->cn_info.cn_child; in ddihp_cn_change_children_state()
1014 ASSERT(cdip); in ddihp_cn_change_children_state()
1020 if (ndi_devi_online(cdip, in ddihp_cn_change_children_state()
1027 ddi_driver_name(cdip), in ddihp_cn_change_children_state()
1028 ddi_get_instance(cdip), in ddihp_cn_change_children_state()
1048 ddi_driver_name(cdip), in ddihp_cn_change_children_state()
1095 dev_info_t *cdip; in ddihp_port_upgrade_state() local
1132 rv = ndi_devi_online(cdip, in ddihp_port_upgrade_state()
1174 dev_info_t *cdip; in ddihp_port_downgrade_state() local
[all …]
H A Dsunndi.c821 dev_info_t *cdip; in ndi_dc_devi_create() local
835 ASSERT(cdip != NULL); in ndi_dc_devi_create()
843 (void) ndi_devi_free(cdip); in ndi_dc_devi_create()
846 *rdip = cdip; in ndi_dc_devi_create()
932 *rdip = cdip; in ndi_dc_devi_create()
941 ddi_node_name(cdip), ddi_get_name_addr(cdip)); in ndi_dc_devi_create()
955 dev_info_t *cdip; in i_dc_devi_create() local
1034 cdip, np, val, nelms); in i_dc_devi_create()
1047 cdip, np, val, nelms); in i_dc_devi_create()
1064 (void) ndi_devi_free(cdip); in i_dc_devi_create()
[all …]
/illumos-gate/usr/src/uts/common/io/pci-ide/
H A Dpci-ide.c292 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()
497 ddi_set_name_addr(cdip, name); in pciide_initchild()
502 pciide_compat_setup(mydip, cdip, dev); in pciide_initchild()
505 if (PCIIDE_NATIVE_MODE(cdip)) { in pciide_initchild()
[all …]
/illumos-gate/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()
/illumos-gate/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);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c1131 dev_info_t *cdip; in vhci_scsi_start() local
1677 ddi_driver_name(cdip), ddi_get_instance(cdip), in vhci_scsi_reset_target()
2146 dev_info_t *cdip; in vhci_scsi_get_name_bus_addr() local
2154 cdip = sd->sd_dev; in vhci_scsi_get_name_bus_addr()
2688 dev_info_t *cdip; in vhci_run_cmd() local
2753 ddi_driver_name(cdip), ddi_get_instance(cdip))); in vhci_run_cmd()
3546 ddi_pathname(cdip, cpath), ddi_driver_name(cdip), in vhci_intr()
5946 cdip = NULL; in vhci_ctl()
7559 ddi_driver_name(cdip), ddi_get_instance(cdip))); in vhci_pgr_validate_and_register()
7806 ddi_driver_name(cdip), ddi_get_instance(cdip))); in vhci_pgr_validate_and_register()
[all …]
/illumos-gate/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 …]
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c796 dev_info_t *cdip; in scsa1394_create_children() local
819 (void) ndi_devi_free(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()
838 ddi_prop_remove_all(cdip); in scsa1394_create_children()
839 (void) ndi_devi_free(cdip); in scsa1394_create_children()
846 ddi_prop_remove_all(cdip); in scsa1394_create_children()
847 (void) ndi_devi_free(cdip); in scsa1394_create_children()
868 ddi_prop_remove_all(cdip); in scsa1394_create_children()
920 for (cdip = ddi_get_child(dip); cdip != NULL; cdip = cdip_next) { in scsa1394_disconnect()
[all …]
/illumos-gate/usr/src/uts/intel/promif/
H A Dprom_emul.c124 dev_info_t *cdip = ddi_get_child(dip); in promif_create_children() local
126 while (cdip) { in promif_create_children()
127 pnp->pn_child = promif_create_node(cdip); in promif_create_children()
128 promif_create_peers(pnp->pn_child, cdip); in promif_create_children()
130 cdip = ddi_get_child(cdip); in promif_create_children()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c217 dev_info_t *cdip; in pcie_hp_init() local
235 cdip = ddi_get_child(dip); in pcie_hp_init()
236 while (cdip != NULL) { in pcie_hp_init()
237 if ((ret = pcie_hp_register_port(cdip, dip, NULL)) in pcie_hp_init()
242 cdip = ddi_get_next_sibling(cdip); in pcie_hp_init()
392 dev_info_t *cdip; in pcie_read_only_probe() local
408 *pcdip = cdip; in pcie_read_only_probe()
583 dev_info_t *cdip; in pcie_hp_register_ports_for_dev() local
586 for (cdip = ddi_get_child(dip); cdip; in pcie_hp_register_ports_for_dev()
587 cdip = ddi_get_next_sibling(cdip)) { in pcie_hp_register_ports_for_dev()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/i2c/nexus/
H A Dsmbus.c490 smbus_initchild(dev_info_t *cdip) in smbus_initchild() argument
500 ddi_node_name(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
547 ppvt = ddi_get_parent_data(cdip); in smbus_uninitchild()
548 ddi_set_parent_data(cdip, NULL); in smbus_uninitchild()
550 ddi_set_name_addr(cdip, NULL); in smbus_uninitchild()
638 smbus_dip_to_addr(dev_info_t *cdip) in smbus_dip_to_addr() argument
[all …]
/illumos-gate/usr/src/uts/common/io/usb/usb_ia/
H A Dusb_ia.c415 dev_info_t *cdip, *mdip; in usb_ia_bus_unconfig() local
450 for (cdip = ddi_get_child(dip); cdip && (cdip != mdip); ) in usb_ia_bus_unconfig()
451 cdip = ddi_get_next_sibling(cdip); in usb_ia_bus_unconfig()
453 if (cdip != mdip) { in usb_ia_bus_unconfig()
456 } else if (cdip) { in usb_ia_bus_unconfig()
461 (void) ddi_initchild(ddi_get_parent(cdip), cdip); in usb_ia_bus_unconfig()
806 dev_info_t *cdip; in usb_ia_create_children() local
827 cdip = usba_ready_interface_node(usb_ia->ia_dip, first_if + i); in usb_ia_create_children()
830 if (cdip != NULL) { in usb_ia_create_children()
831 (void) usba_bind_driver(cdip); in usb_ia_create_children()
[all …]

123