Lines Matching refs:bus

73 	uint8_t		bus;  member
83 gfxp_pci_get_bsf(dev_info_t *dip, uint8_t *bus, uint8_t *dev, uint8_t *func) in gfxp_pci_get_bsf() argument
98 *bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
114 uint8_t bus, dev, func; in gfxp_pci_find_bsf() local
132 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) in gfxp_pci_find_bsf()
137 if ((bus == pci_bsf->bus) && (dev == pci_bsf->slot) && in gfxp_pci_find_bsf()
152 gfxp_pci_init_handle(uint8_t bus, uint8_t slot, uint8_t function, in gfxp_pci_init_handle() argument
169 pci_bsf->bus = bus; in gfxp_pci_init_handle()
196 uint8_t bus, dev, func; in gfxp_pci_read_byte() local
201 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) in gfxp_pci_read_byte()
204 val = (*pci_getb_func)(bus, dev, func, offset); in gfxp_pci_read_byte()
213 uint8_t bus, dev, func; in gfxp_pci_read_word() local
218 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) in gfxp_pci_read_word()
221 val = (*pci_getw_func)(bus, dev, func, offset); in gfxp_pci_read_word()
230 uint8_t bus, dev, func; in gfxp_pci_read_dword() local
235 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) in gfxp_pci_read_dword()
238 val = (*pci_getl_func)(bus, dev, func, offset); in gfxp_pci_read_dword()
246 uint8_t bus, dev, func; in gfxp_pci_write_byte() local
251 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) in gfxp_pci_write_byte()
254 (*pci_putb_func)(bus, dev, func, offset, value); in gfxp_pci_write_byte()
261 uint8_t bus, dev, func; in gfxp_pci_write_word() local
266 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) in gfxp_pci_write_word()
269 (*pci_putw_func)(bus, dev, func, offset, value); in gfxp_pci_write_word()
276 uint8_t bus, dev, func; in gfxp_pci_write_dword() local
281 if (gfxp_pci_get_bsf(dip, &bus, &dev, &func) != DDI_SUCCESS) in gfxp_pci_write_dword()
284 (*pci_putl_func)(bus, dev, func, offset, value); in gfxp_pci_write_dword()