Home
last modified time | relevance | path

Searched refs:cfg_handle (Results 1 – 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_osdep.c51 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, *value); in e1000_write_pci_cfg()
58 pci_config_get16(OS_DEP(hw)->cfg_handle, reg); in e1000_read_pci_cfg()
74 status = pci_lcap_locate((OS_DEP(hw))->cfg_handle, pcie_id, &pcie_cap); in e1000_read_pcie_cap_reg()
78 *value = pci_config_get16(OS_DEP(hw)->cfg_handle, in e1000_read_pcie_cap_reg()
98 status = pci_lcap_locate(OS_DEP(hw)->cfg_handle, pcie_id, &pcie_cap); in e1000_write_pcie_cap_reg()
102 pci_config_put16(OS_DEP(hw)->cfg_handle, in e1000_write_pcie_cap_reg()
H A De1000_osdep.h181 ddi_acc_handle_t cfg_handle; member
H A Digb_main.c489 if (pci_config_setup(devinfo, &osdep->cfg_handle) != DDI_SUCCESS) { in igb_attach()
558 if (igb_check_acc_handle(igb->osdep.cfg_handle) != DDI_FM_OK) { in igb_attach()
861 if (igb->osdep.cfg_handle != NULL) in igb_unconfigure()
862 pci_config_teardown(&igb->osdep.cfg_handle); in igb_unconfigure()
940 pci_config_get16(osdep->cfg_handle, PCI_CONF_VENID); in igb_identify_hardware()
942 pci_config_get16(osdep->cfg_handle, PCI_CONF_DEVID); in igb_identify_hardware()
944 pci_config_get8(osdep->cfg_handle, PCI_CONF_REVID); in igb_identify_hardware()
946 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBSYSID); in igb_identify_hardware()
948 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBVENID); in igb_identify_hardware()
1688 if (igb_check_acc_handle(igb->osdep.cfg_handle) != DDI_FM_OK) in igb_reset()
[all …]
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_osdep.c48 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, *value); in e1000_write_pci_cfg()
55 pci_config_get16(OS_DEP(hw)->cfg_handle, reg); in e1000_read_pci_cfg()
111 *value = pci_config_get16(OS_DEP(hw)->cfg_handle, in e1000_read_pcie_cap_reg()
130 status = pci_lcap_locate(OS_DEP(hw)->cfg_handle, pcie_id, &pcie_cap); in e1000_write_pcie_cap_reg()
134 pci_config_put16(OS_DEP(hw)->cfg_handle, in e1000_write_pcie_cap_reg()
H A De1000g_debug.c377 handle = Adapter->osdep.cfg_handle; in pciconfig_dump()
541 ddi_acc_handle_t handle = Adapter->osdep.cfg_handle; in pciconfig_bar()
H A De1000_osdep.h214 ddi_acc_handle_t cfg_handle; member
H A De1000g_main.c460 if (pci_config_setup(devinfo, &osdep->cfg_handle) != DDI_SUCCESS) { in e1000g_attach()
638 pci_config_get16(osdep->cfg_handle, PCI_CONF_VENID); in e1000g_identify_hardware()
640 pci_config_get16(osdep->cfg_handle, PCI_CONF_DEVID); in e1000g_identify_hardware()
642 pci_config_get8(osdep->cfg_handle, PCI_CONF_REVID); in e1000g_identify_hardware()
644 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBSYSID); in e1000g_identify_hardware()
646 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBVENID); in e1000g_identify_hardware()
1161 if (Adapter->osdep.cfg_handle != NULL) in e1000g_unattach()
1162 pci_config_teardown(&Adapter->osdep.cfg_handle); in e1000g_unattach()
1452 pci_config_put8(Adapter->osdep.cfg_handle, in e1000g_init()
2005 hang_state = pci_config_get16(Adapter->osdep.cfg_handle, in e1000g_flush_desc_rings()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dpcic.c854 &pcic->cfg_handle) != in pcic_attach()
1886 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
1909 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
1925 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
1943 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
1954 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
1973 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
2016 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
2033 ddi_put8(pcic->cfg_handle, in pcic_setup_adapter()
4075 ddi_put8(pcic->cfg_handle, in pcic_set_socket()
[all …]
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_osdep.c35 return (pci_config_get16(OS_DEP(hw)->cfg_handle, reg)); in ixgbe_read_pci_cfg()
41 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, val); in ixgbe_write_pci_cfg()
H A Dixgbe_osdep.h158 ddi_acc_handle_t cfg_handle; member
/illumos-gate/usr/src/uts/i86xpv/io/psm/
H A Dxpv_uppc.c670 ddi_acc_handle_t cfg_handle; in xen_uppc_translate_irq() local
701 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in xen_uppc_translate_irq()
704 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in xen_uppc_translate_irq()
705 iline = pci_config_get8(cfg_handle, PCI_CONF_ILINE); in xen_uppc_translate_irq()
729 pci_config_put8(cfg_handle, in xen_uppc_translate_irq()
732 pci_config_teardown(&cfg_handle); in xen_uppc_translate_irq()
736 pci_config_teardown(&cfg_handle); in xen_uppc_translate_irq()
H A Dmp_platform_xpv.c731 ddi_acc_handle_t cfg_handle; in apic_introp_xlate() local
804 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in apic_introp_xlate()
806 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in apic_introp_xlate()
807 pci_config_teardown(&cfg_handle); in apic_introp_xlate()
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_chip2.c362 handle = bgep->cfg_handle; in bge_chip_cfg_init()
3299 (bgep->cfg_handle, in bge_chip_reset_engine()
3302 pci_config_put32(bgep->cfg_handle, in bge_chip_reset_engine()
3355 pci_config_put16(bgep->cfg_handle, in bge_chip_reset_engine()
3357 pci_config_put16(bgep->cfg_handle, in bge_chip_reset_engine()
3363 pci_config_put16(bgep->cfg_handle, in bge_chip_reset_engine()
3365 pci_config_put16(bgep->cfg_handle, in bge_chip_reset_engine()
3372 val16 = pci_config_get16(bgep->cfg_handle, in bge_chip_reset_engine()
3376 pci_config_put16(bgep->cfg_handle, in bge_chip_reset_engine()
4396 regval = pci_config_get32(bgep->cfg_handle, in bge_chip_start()
[all …]
H A Dbge_main2.c567 (void) bge_check_acc_handle(bgep, bgep->cfg_handle);
574 (void) bge_check_acc_handle(bgep, bgep->cfg_handle);
637 (void) bge_check_acc_handle(bgep, bgep->cfg_handle);
665 (void) bge_check_acc_handle(bgep, bgep->cfg_handle);
1327 bgep->cfg_handle);
1345 bgep->cfg_handle);
1400 (void) bge_check_acc_handle(bgep, bgep->cfg_handle);
3313 pci_config_teardown(&bgep->cfg_handle);
3693 err = pci_config_setup(devinfo, &bgep->cfg_handle);
3717 pci_state_reg = pci_config_get32(bgep->cfg_handle,
[all …]
/illumos-gate/usr/src/uts/i86pc/io/psm/
H A Duppc.c861 ddi_acc_handle_t cfg_handle; in uppc_translate_irq() local
892 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in uppc_translate_irq()
895 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in uppc_translate_irq()
896 iline = pci_config_get8(cfg_handle, PCI_CONF_ILINE); in uppc_translate_irq()
919 pci_config_put8(cfg_handle, in uppc_translate_irq()
922 pci_config_teardown(&cfg_handle); in uppc_translate_irq()
926 pci_config_teardown(&cfg_handle); in uppc_translate_irq()
H A Dpsm_common.c347 ddi_acc_handle_t cfg_handle; in psm_is_pci_bridge() local
350 if (pci_config_setup(dip, &cfg_handle) == DDI_SUCCESS) { in psm_is_pci_bridge()
351 rv = ((pci_config_get8(cfg_handle, PCI_CONF_BASCLASS) == in psm_is_pci_bridge()
352 PCI_CLASS_BRIDGE) && (pci_config_get8(cfg_handle, in psm_is_pci_bridge()
354 pci_config_teardown(&cfg_handle); in psm_is_pci_bridge()
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/hostbridge/
H A Dhb_sun4v.c336 dnode1 = find_dnode(rcs, rcp->cfg_handle); in platform_hb_enum()
379 dnode1 = find_dnode(rcs, rcp->cfg_handle); in platform_hb_enum()
387 hbnode[nhbnode], rcp->id, rcp->cfg_handle); in platform_hb_enum()
H A Dhb_mdesc.h50 uint64_t cfg_handle; /* bus address */ member
H A Dhb_mdesc.c145 hbp->rcs[nrcs].cfg_handle = x; in hb_rc_init()
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_chip.c707 chip->is_pcie = pci_lcap_locate(rgep->cfg_handle, in rge_chip_ident()
730 pci_config_put8(rgep->cfg_handle, PCI_CONF_LATENCY_TIMER, 0x40); in rge_chip_ident()
803 handle = rgep->cfg_handle; in rge_chip_cfg_init()
1767 regval = pci_config_get8(rgep->cfg_handle, regno); in rge_chip_peek_cfg()
1771 regval = pci_config_get16(rgep->cfg_handle, regno); in rge_chip_peek_cfg()
1775 regval = pci_config_get32(rgep->cfg_handle, regno); in rge_chip_peek_cfg()
1779 regval = pci_config_get64(rgep->cfg_handle, regno); in rge_chip_peek_cfg()
1803 pci_config_put8(rgep->cfg_handle, regno, regval); in rge_chip_poke_cfg()
1807 pci_config_put16(rgep->cfg_handle, regno, regval); in rge_chip_poke_cfg()
1811 pci_config_put32(rgep->cfg_handle, regno, regval); in rge_chip_poke_cfg()
[all …]
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_chip.c129 regval = pci_config_get8(ngep->cfg_handle, regno); in nge_chip_peek_cfg()
133 regval = pci_config_get16(ngep->cfg_handle, regno); in nge_chip_peek_cfg()
137 regval = pci_config_get32(ngep->cfg_handle, regno); in nge_chip_peek_cfg()
141 regval = pci_config_get64(ngep->cfg_handle, regno); in nge_chip_peek_cfg()
166 pci_config_put8(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg()
170 pci_config_put16(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg()
174 pci_config_put32(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg()
178 pci_config_put64(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg()
604 handle = ngep->cfg_handle; in nge_chip_cfg_init()
1037 pci_config_put8(ngep->cfg_handle, PCI_CONF_CACHE_LINESZ, in nge_chip_reset()
[all …]
/illumos-gate/usr/src/uts/common/io/hme/
H A Dhme.c1054 ddi_acc_handle_t cfg_handle; in hmeget_promprops() local
1083 0, 0, &hmep->hme_dev_attr, &cfg_handle)) { in hmeget_promprops()
1090 ddi_put16(cfg_handle, &cfg_ptr->command, in hmeget_promprops()
1097 rom_bar = ddi_get32(cfg_handle, &cfg_ptr->base30); in hmeget_promprops()
1098 ddi_put32(cfg_handle, &cfg_ptr->base30, rom_bar | 1); in hmeget_promprops()
1106 ddi_regs_map_free(&cfg_handle); in hmeget_promprops()
1115 ddi_regs_map_free(&cfg_handle); in hmeget_promprops()
1169 ddi_acc_handle_t cfg_handle; in hmeattach() local
1399 0, 0, &hmep->hme_dev_attr, &cfg_handle)) { in hmeattach()
1407 hm_rev = ddi_get8(cfg_handle, &cfg_ptr->revid); in hmeattach()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/
H A Dmp_platform_common.c1422 ddi_acc_handle_t cfg_handle; in apic_handle_pci_pci_bridge() local
1431 (pci_config_setup(dipp, &cfg_handle) != DDI_SUCCESS)) in apic_handle_pci_pci_bridge()
1433 if ((pci_config_get8(cfg_handle, PCI_CONF_BASCLASS) == in apic_handle_pci_pci_bridge()
1434 PCI_CLASS_BRIDGE) && (pci_config_get8(cfg_handle, in apic_handle_pci_pci_bridge()
1436 pci_config_teardown(&cfg_handle); in apic_handle_pci_pci_bridge()
1460 pci_config_teardown(&cfg_handle); in apic_handle_pci_pci_bridge()
H A Dmp_platform_misc.c781 ddi_acc_handle_t cfg_handle; in apic_introp_xlate() local
854 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in apic_introp_xlate()
856 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in apic_introp_xlate()
857 pci_config_teardown(&cfg_handle); in apic_introp_xlate()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_main.c1963 ddi_acc_handle_t cfg_handle; in nxge_test_map_regs() local
1977 cfg_handle = nxgep->dev_regs->nxge_pciregh; in nxge_test_map_regs()
1987 NXGE_PIO_READ16(cfg_handle, &cfg_ptr->vendorid, 0), in nxge_test_map_regs()
1992 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base, 0), in nxge_test_map_regs()
1993 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base14, 0), in nxge_test_map_regs()
1994 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base18, 0), in nxge_test_map_regs()
1999 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base20, 0), in nxge_test_map_regs()
2000 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base24, 0), in nxge_test_map_regs()
2001 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base28, 0), in nxge_test_map_regs()
2007 cfg_handle = nxgep->dev_regs->nxge_pciregh; in nxge_test_map_regs()
[all …]

12