Lines Matching defs:pci_bsf
118 gfxp_pci_bsf_t *pci_bsf;
138 pci_bsf = (gfxp_pci_bsf_t *)arg;
140 if ((bus == pci_bsf->bus) && (dev == pci_bsf->slot) &&
141 (func == pci_bsf->function)) {
142 pci_bsf->dip = dip;
143 pci_bsf->vendor = vendor_id;
144 pci_bsf->device = device_id;
145 pci_bsf->found = 1;
159 gfxp_pci_bsf_t *pci_bsf;
167 if ((pci_bsf = kmem_zalloc(sizeof (gfxp_pci_bsf_t), KM_SLEEP))
172 pci_bsf->bus = bus;
173 pci_bsf->slot = slot;
174 pci_bsf->function = function;
176 ddi_walk_devs(ddi_root_node(), gfxp_pci_find_bsf, pci_bsf);
178 if (pci_bsf->found) {
179 dip = pci_bsf->dip;
181 if (vendor) *vendor = pci_bsf->vendor;
182 if (device) *device = pci_bsf->device;
189 kmem_free(pci_bsf, sizeof (gfxp_pci_bsf_t));
294 gfxp_pci_bsf_t *pci_bsf;
311 pci_bsf = (gfxp_pci_bsf_t *)arg;
313 if ((vendor_id == pci_bsf->vendor) && (device_id == pci_bsf->device)) {
314 pci_bsf->found = 1;
326 gfxp_pci_bsf_t *pci_bsf;
333 if ((pci_bsf = kmem_zalloc(sizeof (gfxp_pci_bsf_t), KM_SLEEP)) == NULL)
336 pci_bsf->vendor = vendor;
337 pci_bsf->device = device;
338 ddi_walk_devs(ddi_root_node(), gfxp_pci_find_vd, pci_bsf);
340 if (pci_bsf->found) {
346 kmem_free(pci_bsf, sizeof (gfxp_pci_bsf_t));