Lines Matching refs:func

83 gfxp_pci_get_bsf(dev_info_t *dip, uint8_t *bus, uint8_t *dev, uint8_t *func)  in gfxp_pci_get_bsf()  argument
100 *func = PCI_REG_FUNC_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()
138 (func == pci_bsf->function)) { in gfxp_pci_find_bsf()
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()