Home
last modified time | relevance | path

Searched refs:bus (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_boot.c191 if (bus_debug((bus))) dump_memlists_impl((tag), (bus))
681 ASSERT(pci_bus_res[bus].sub_bus >= bus); in setup_bus_res()
682 memlist_insert(&pci_bus_res[bus].bus_avail, bus, in setup_bus_res()
683 pci_bus_res[bus].sub_bus - bus + 1); in setup_bus_res()
1405 int bus; in pci_reprogram() local
1415 for (bus = 0; bus <= pci_boot_maxbus; bus++) { in pci_reprogram()
1416 pci_prd_slot_name(bus, pci_bus_res[bus].dip); in pci_reprogram()
1428 for (bus = 0; bus <= pci_boot_maxbus; bus++) { in pci_reprogram()
1453 for (bus = 0; bus <= pci_boot_maxbus; bus++) { in pci_reprogram()
1876 newundo->bus = bus; in add_undofix_entry()
[all …]
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dpci_cfgspace_impl.h44 extern uint8_t pci_mech1_getb(int bus, int dev, int func, int reg);
45 extern uint16_t pci_mech1_getw(int bus, int dev, int func, int reg);
46 extern uint32_t pci_mech1_getl(int bus, int dev, int func, int reg);
58 extern void pci_mech1_amd_putb(int bus, int dev, int func, int reg,
60 extern void pci_mech1_amd_putw(int bus, int dev, int func, int reg,
62 extern void pci_mech1_amd_putl(int bus, int dev, int func, int reg,
68 extern uint8_t pci_mech2_getb(int bus, int dev, int func, int reg);
69 extern uint16_t pci_mech2_getw(int bus, int dev, int func, int reg);
70 extern uint32_t pci_mech2_getl(int bus, int dev, int func, int reg);
94 extern uint8_t pci_orion_getb(int bus, int dev, int func, int reg);
[all …]
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Dnhm_pci_cfg.c91 nhm_get_hdl(int bus, int dev, int func) in nhm_get_hdl() argument
96 if (bus >= SOCKET_BUS(MAX_CPU_NODES) && bus <= SOCKET_BUS(0) && in nhm_get_hdl()
98 slot = SOCKET_BUS(0) - bus; in nhm_get_hdl()
112 hdl = nhm_get_hdl(bus, dev, func); in nhm_pci_getb()
121 hdl = nhm_get_hdl(bus, dev, func); in nhm_pci_getw()
130 hdl = nhm_get_hdl(bus, dev, func); in nhm_pci_getl()
139 hdl = nhm_get_hdl(bus, dev, func); in nhm_pci_putb()
140 cmi_pci_putb(bus, dev, func, reg, hdl, val); in nhm_pci_putb()
148 hdl = nhm_get_hdl(bus, dev, func); in nhm_pci_putw()
149 cmi_pci_putw(bus, dev, func, reg, hdl, val); in nhm_pci_putw()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci_prd_i86pc.c105 int bus; in acpi_pci_probe() local
110 for (bus = 0; bus <= pci_bios_maxbus; bus++) { in acpi_pci_probe()
139 int bus; in acpi_trim_bus_ranges() local
148 for (bus = 0; bus < PCI_MAX_BUS_NUM; bus++) { in acpi_trim_bus_ranges()
211 *res = acpi_io_res[bus]; in acpi_find_bus_res()
357 acpi_dbg(bus, in acpi_wr_cb()
374 acpi_dbg(bus, in acpi_wr_cb()
392 acpi_dbg(bus, in acpi_wr_cb()
409 acpi_dbg(bus, in acpi_wr_cb()
843 int bus; in pci_prd_fini() local
[all …]
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/
H A Dnb_pci_cfg.c128 nb_get_hdl(int bus, int dev, int func) in nb_get_hdl() argument
138 } else if (bus == 0 && dev == 21 && func == 0) { in nb_get_hdl()
153 hdl = nb_get_hdl(bus, dev, func); in nb_pci_getb()
162 hdl = nb_get_hdl(bus, dev, func); in nb_pci_getw()
171 hdl = nb_get_hdl(bus, dev, func); in nb_pci_getl()
180 hdl = nb_get_hdl(bus, dev, func); in nb_pci_putb()
181 cmi_pci_putb(bus, dev, func, reg, hdl, val); in nb_pci_putb()
189 hdl = nb_get_hdl(bus, dev, func); in nb_pci_putw()
190 cmi_pci_putw(bus, dev, func, reg, hdl, val); in nb_pci_putw()
198 hdl = nb_get_hdl(bus, dev, func); in nb_pci_putl()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dpci_io.c26 #define CONFIG_CMD(bus, device_fn, where) (0x80000000 | (bus << 16) | (device_fn << 8) | (where &… argument
31 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_read_config_byte()
36 int pcibios_read_config_word (unsigned int bus, in pcibios_read_config_word() argument
39 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_read_config_word()
47 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_read_config_dword()
55 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pcibios_write_config_byte()
144 int pcibios_read_config_byte(unsigned int bus, in pcibios_read_config_byte() argument
171 int pcibios_read_config_word(unsigned int bus, in pcibios_read_config_word() argument
229 unsigned long bx = (bus << 8) | device_fn; in pcibios_write_config_byte()
256 unsigned long bx = (bus << 8) | device_fn; in pcibios_write_config_word()
[all …]
H A Dpci.c265 unsigned int devfn, bus, buses; in scan_pci_bus() local
278 first_bus = dev->bus; in scan_pci_bus()
284 dev->bus = 0; in scan_pci_bus()
295 for (bus = first_bus; bus < buses; ++bus) { in scan_pci_bus()
315 bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in scan_pci_bus()
323 pcibios_read_config_byte(bus, devfn, i, &byte); in scan_pci_bus()
344 dev->bus = bus; in scan_pci_bus()
351 pcibios_read_config_dword(bus, devfn, in scan_pci_bus()
357 pcibios_read_config_dword(bus, devfn, in scan_pci_bus()
405 pci_command, new_command, p->bus, p->devfn); in adjust_pci_device()
[all …]
H A Dpci.h278 unsigned char bus; member
286 extern int pcibios_read_config_byte(unsigned int bus, unsigned int device_fn, unsigned int where, u…
287 extern int pcibios_write_config_byte (unsigned int bus, unsigned int device_fn, unsigned int where,…
288 extern int pcibios_read_config_word(unsigned int bus, unsigned int device_fn, unsigned int where, u…
292 extern unsigned long pcibios_bus_base(unsigned int bus);
299 return pcibios_read_config_byte(dev->bus, dev->devfn, where, value); in pci_read_config_byte()
304 return pcibios_write_config_byte(dev->bus, dev->devfn, where, value); in pci_write_config_byte()
309 return pcibios_read_config_word(dev->bus, dev->devfn, where, value); in pci_read_config_word()
314 return pcibios_write_config_word(dev->bus, dev->devfn, where, value); in pci_write_config_word()
319 return pcibios_read_config_dword(dev->bus, dev->devfn, where, value); in pci_read_config_dword()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_pci.c74 uint8_t bus; member
99 *bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
115 uint8_t bus, dev, func; in gfxp_pci_find_bsf() local
138 if ((bus == pci_bsf->bus) && (dev == pci_bsf->slot) && in gfxp_pci_find_bsf()
170 pci_bsf->bus = bus; in gfxp_pci_init_handle()
197 uint8_t bus, dev, func; in gfxp_pci_read_byte() local
214 uint8_t bus, dev, func; in gfxp_pci_read_word() local
231 uint8_t bus, dev, func; in gfxp_pci_read_dword() local
247 uint8_t bus, dev, func; in gfxp_pci_write_byte() local
262 uint8_t bus, dev, func; in gfxp_pci_write_word() local
[all …]
/illumos-gate/usr/src/uts/intel/io/pciex/
H A Dpcie_nvidia.c68 cap = (*pci_getb_func)(bus, dev, func, capsp); in check_if_device_is_pciex()
74 "capability found\n", bus, dev, func); in check_if_device_is_pciex()
94 slot_cap = (*pci_getl_func)(bus, dev, func, in check_if_device_is_pciex()
118 capsp = (*pci_getb_func)(bus, dev, func, in check_if_device_is_pciex()
132 look_for_any_pciex_device(uchar_t bus) in look_for_any_pciex_device() argument
148 venid = (*pci_getw_func)(bus, dev, func, in look_for_any_pciex_device()
154 header = (*pci_getb_func)(bus, dev, func, in look_for_any_pciex_device()
186 if (look_for_any_pciex_device(bus) == B_FALSE) in create_pcie_root_bus()
219 devloc = (uint_t)bus << PCI_REG_BUS_SHIFT | in add_nvidia_isa_bridge_props()
225 base = (*pci_getl_func)(bus, dev, func, in add_nvidia_isa_bridge_props()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_mech2.c54 pci_mech2_config_enable(uchar_t bus, uchar_t function) in pci_mech2_config_enable() argument
63 outb(PCI_FORW_PORT, bus); in pci_mech2_config_enable()
76 pci_mech2_getb(int bus, int device, int function, int reg) in pci_mech2_getb() argument
84 tmp = pci_mech2_config_enable(bus, function); in pci_mech2_getb()
92 pci_mech2_getw(int bus, int device, int function, int reg) in pci_mech2_getw() argument
100 tmp = pci_mech2_config_enable(bus, function); in pci_mech2_getw()
108 pci_mech2_getl(int bus, int device, int function, int reg) in pci_mech2_getl() argument
116 tmp = pci_mech2_config_enable(bus, function); in pci_mech2_getl()
131 tmp = pci_mech2_config_enable(bus, function); in pci_mech2_putb()
144 tmp = pci_mech2_config_enable(bus, function); in pci_mech2_putw()
[all …]
H A Dpci_cfgacc_x86.c107 uint8_t bus, dev, func; in pci_cfgacc_io() local
110 bus = PCI_BDF_BUS(req->bdf); in pci_cfgacc_io()
118 (*pci_putb_func)(bus, dev, func, in pci_cfgacc_io()
126 (*pci_putw_func)(bus, dev, func, in pci_cfgacc_io()
216 uint8_t bus; in pci_cfgacc_check_io() local
218 bus = PCI_BDF_BUS(req->bdf); in pci_cfgacc_check_io()
221 (bus < mcfg_bus_start) || (bus > mcfg_bus_end) || in pci_cfgacc_check_io()
279 uchar_t bus; in pci_cfgacc_find_workaround() local
288 bus = PCI_BDF_BUS(bdf); in pci_cfgacc_find_workaround()
289 if ((bus != 0) && (bus >= entry->secbus) && in pci_cfgacc_find_workaround()
[all …]
H A Dpci_neptune.c140 pci_neptune_getb(int bus, int device, int function, int reg) in pci_neptune_getb() argument
146 val = pci_mech1_getb(bus, device, function, reg); in pci_neptune_getb()
153 pci_neptune_getw(int bus, int device, int function, int reg) in pci_neptune_getw() argument
159 val = pci_mech1_getw(bus, device, function, reg); in pci_neptune_getw()
166 pci_neptune_getl(int bus, int device, int function, int reg) in pci_neptune_getl() argument
172 val = pci_mech1_getl(bus, device, function, reg); in pci_neptune_getl()
179 pci_neptune_putb(int bus, int device, int function, int reg, uint8_t val) in pci_neptune_putb() argument
183 pci_mech1_putb(bus, device, function, reg, val); in pci_neptune_putb()
189 pci_neptune_putw(int bus, int device, int function, int reg, uint16_t val) in pci_neptune_putw() argument
193 pci_mech1_putw(bus, device, function, reg, val); in pci_neptune_putw()
[all …]
H A Dpci_mech1.c50 pci_mech1_getb(int bus, int device, int function, int reg) in pci_mech1_getb() argument
63 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getb()
70 pci_mech1_getw(int bus, int device, int function, int reg) in pci_mech1_getw() argument
84 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getw()
91 pci_mech1_getl(int bus, int device, int function, int reg) in pci_mech1_getl() argument
105 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getl()
112 pci_mech1_putb(int bus, int device, int function, int reg, uint8_t val) in pci_mech1_putb() argument
124 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_putb()
130 pci_mech1_putw(int bus, int device, int function, int reg, uint16_t val) in pci_mech1_putw() argument
142 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_putw()
[all …]
H A Dpci_orion.c181 pci_orion_getb(int bus, int device, int function, int reg) in pci_orion_getb() argument
187 val = pci_mech1_getb(bus, device, function, reg); in pci_orion_getb()
194 pci_orion_getw(int bus, int device, int function, int reg) in pci_orion_getw() argument
200 val = pci_mech1_getw(bus, device, function, reg); in pci_orion_getw()
207 pci_orion_getl(int bus, int device, int function, int reg) in pci_orion_getl() argument
213 val = pci_mech1_getl(bus, device, function, reg); in pci_orion_getl()
220 pci_orion_putb(int bus, int device, int function, int reg, uint8_t val) in pci_orion_putb() argument
224 pci_mech1_putb(bus, device, function, reg, val); in pci_orion_putb()
230 pci_orion_putw(int bus, int device, int function, int reg, uint16_t val) in pci_orion_putw() argument
234 pci_mech1_putw(bus, device, function, reg, val); in pci_orion_putw()
[all …]
H A Dpci_mech1_amd.c96 pci_mech1_amd_getb(int bus, int device, int function, int reg) in pci_mech1_amd_getb() argument
110 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg)); in pci_mech1_amd_getb()
117 pci_mech1_amd_getw(int bus, int device, int function, int reg) in pci_mech1_amd_getw() argument
131 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg)); in pci_mech1_amd_getw()
138 pci_mech1_amd_getl(int bus, int device, int function, int reg) in pci_mech1_amd_getl() argument
152 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg)); in pci_mech1_amd_getl()
159 pci_mech1_amd_putb(int bus, int device, int function, int reg, uint8_t val) in pci_mech1_amd_putb() argument
167 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg)); in pci_mech1_amd_putb()
173 pci_mech1_amd_putw(int bus, int device, int function, int reg, uint16_t val) in pci_mech1_amd_putw() argument
181 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg)); in pci_mech1_amd_putw()
[all …]
/illumos-gate/usr/src/cmd/fm/dicts/
H A DSUN4U.dict67 fault.io.datapath fault.io.pci.bus=38
75 fault.io.hbus fault.io.pci.bus=46
79 fault.io.hbus fault.io.pci.bus fault.io.pci.device=50
83 fault.io.datapath fault.io.hbus fault.io.pci.bus=54
91 fault.io.pci.bus fault.io.schizo=62
107 fault.io.hbus fault.io.pci.bus fault.io.schizo=78
123 fault.io.pci.bus fault.io.xmits=94
139 fault.io.hbus fault.io.pci.bus fault.io.xmits=110
193 fault.io.pci.bus fault.io.psycho=164
197 fault.io.hbus fault.io.pci.bus fault.io.psycho=168
[all …]
H A DPCIEX.dict31 fault.io.pciex.bus-noresp fault.io.pciex.device-noresp=2
32 fault.io.pciex.bus-linkerr fault.io.pciex.device-interr=3
33 fault.io.pci.bus-linkerr fault.io.pciex.device-interr=4
40 fault.io.pci.bus-linkerr fault.io.pci.device-interr fault.io.pciex.device-interr=11
41 fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.device-noresp=12
42 fault.io.pciex.bus-linkerr fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.de…
43 fault.io.pciex.bus-linkerr fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.de…
44 fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.device-invreq fault.io.pciex.…
45 fault.io.pciex.bus-noresp fault.io.pciex.device-interr=16
47 fault.io.pciex.bus-linkerr-corr fault.io.pciex.device-interr-corr=18
[all …]
/illumos-gate/usr/src/uts/common/io/rtw/
H A Drtwphy.c74 return (*bus->b_write)(bus->b_regs, rfchipid, addr, val); in rtw_rfbus_write()
445 struct rtw_rfbus *bus; in rtw_sa2400_create() local
456 bus = &sa->sa_bus; in rtw_sa2400_create()
481 bus->b_regs = regs; in rtw_sa2400_create()
482 bus->b_write = rf_write; in rtw_sa2400_create()
570 struct rtw_rfbus *bus; in rtw_max2820_pwrstate() local
573 bus = &mx->mx_bus; in rtw_max2820_pwrstate()
593 struct rtw_rfbus *bus; in rtw_max2820_create() local
604 bus = &mx->mx_bus; in rtw_max2820_create()
629 bus->b_regs = regs; in rtw_max2820_create()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dmptbl.c202 int bus, count; in mpt_count_ioint_entries() local
205 for (bus = 0; bus <= PCI_BUSMAX; bus++) in mpt_count_ioint_entries()
206 count += pci_count_lintr(bus); in mpt_count_ioint_entries()
216 mpt_generate_pci_int(int bus, int slot, int pin, int pirq_pin, int ioapic_irq, in mpt_generate_pci_int() argument
231 mpie->src_bus_id = bus; in mpt_generate_pci_int()
242 int pin, bus; in mpt_build_ioint_entries() local
289 for (bus = 0; bus <= PCI_BUSMAX; bus++) in mpt_build_ioint_entries()
290 pci_walk_lintr(bus, mpt_generate_pci_int, &mpie); in mpt_build_ioint_entries()
310 int ioints, bus; in mptable_build() local
325 for (bus = 1; bus <= PCI_BUSMAX; bus++) { in mptable_build()
[all …]
H A Dpci_emul.c980 pdi->pi_bus = bus; in pci_emul_init()
1336 int bus, slot, func; in init_pci() local
1349 for (bus = 0; bus < MAXBUSES; bus++) { in init_pci()
1355 bi = pci_businfo[bus]; in init_pci()
1440 for (bus = 0; bus < MAXBUSES; bus++) { in init_pci()
1547 if (bus != 0) in pci_bus_write_dsdt()
1570 if (bus == 0) { in pci_bus_write_dsdt()
1681 int bus; in pci_write_dsdt() local
1692 for (bus = 0; bus < MAXBUSES; bus++) in pci_write_dsdt()
1701 assert(bus >= 0 && bus < MAXBUSES); in pci_bus_configured()
[all …]
/illumos-gate/usr/src/uts/intel/sys/
H A Dpci_cfgspace.h45 extern uint8_t (*pci_getb_func)(int bus, int dev, int func, int reg);
46 extern uint16_t (*pci_getw_func)(int bus, int dev, int func, int reg);
47 extern uint32_t (*pci_getl_func)(int bus, int dev, int func, int reg);
48 extern void (*pci_putb_func)(int bus, int dev, int func, int reg, uint8_t val);
49 extern void (*pci_putw_func)(int bus, int dev, int func, int reg, uint16_t val);
50 extern void (*pci_putl_func)(int bus, int dev, int func, int reg, uint32_t val);
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dbus.c67 bp = dp->p.bus; in bus_get_attributes()
100 descriptor_t *bus = NULL; in bus_get_descriptor_by_name() local
108 if (libdiskmgt_str_eq(name, buses[i]->p.bus->name)) { in bus_get_descriptor_by_name()
109 bus = buses[i]; in bus_get_descriptor_by_name()
117 if (bus == NULL) { in bus_get_descriptor_by_name()
121 return (bus); in bus_get_descriptor_by_name()
134 return (desc->p.bus->name); in bus_get_name()
175 bp = desc->p.bus; in get_assoc_buses()
199 if (libdiskmgt_str_eq(name, allbuses[i]->p.bus->pname)) { in get_assoc_buses()
202 libdiskmgt_str_eq(bp->pname, allbuses[i]->p.bus->name)) { in get_assoc_buses()
[all …]
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_dbg_fw_funcs.c5293 struct dbg_bus_data *bus = &dev_data->bus; in ecore_dbg_bus_enable_trigger() local
5338 struct dbg_bus_data *bus = &dev_data->bus; in ecore_dbg_bus_add_trigger_state() local
5401 struct dbg_bus_data *bus = &dev_data->bus; in ecore_dbg_bus_add_constraint() local
5408 if (bus->trigger_en && !bus->adding_filter && !bus->next_trigger_state) in ecore_dbg_bus_add_constraint()
5488 struct dbg_bus_data *bus = &dev_data->bus; in ecore_config_dbg_block_client_mask() local
5528 struct dbg_bus_data *bus = &dev_data->bus; in ecore_config_dbg_block_framing_mode() local
5577 struct dbg_bus_data *bus = &dev_data->bus; in ecore_config_storm_inputs() local
5627 struct dbg_bus_data *bus = &dev_data->bus; in ecore_assign_hw_ids() local
5687 struct dbg_bus_data *bus = &dev_data->bus; in ecore_config_block_inputs() local
5726 struct dbg_bus_data *bus = &dev_data->bus; in ecore_dbg_bus_start() local
[all …]
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_mac.c180 struct e1000_bus_info *bus = &hw->bus; in e1000_get_bus_info_pci_generic() local
199 bus->speed = e1000_bus_speed_66; in e1000_get_bus_info_pci_generic()
235 struct e1000_bus_info *bus = &hw->bus; in e1000_get_bus_info_pcie_generic() local
280 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_multi_port_pcie() local
298 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_multi_port_pci() local
308 bus->func = 0; in e1000_set_lan_id_multi_port_pci()
320 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_single_port() local
322 bus->func = 0; in e1000_set_lan_id_single_port()
435 if (hw->bus.func == E1000_FUNC_1) in e1000_check_alt_mac_addr_generic()
437 if (hw->bus.func == E1000_FUNC_2) in e1000_check_alt_mac_addr_generic()
[all …]

12345678910>>...16