Lines Matching refs:pbar

215 		struct pptbar *pbar;  in ppt_ioctl()  local
223 pbar = &ppt->pptd_bars[barg.pbq_baridx]; in ppt_ioctl()
225 if (pbar->base == 0 || pbar->size == 0) { in ppt_ioctl()
228 barg.pbq_type = pbar->type; in ppt_ioctl()
229 barg.pbq_base = pbar->base; in ppt_ioctl()
230 barg.pbq_size = pbar->size; in ppt_ioctl()
239 struct pptbar *pbar; in ppt_ioctl() local
251 pbar = &ppt->pptd_bars[rnum]; in ppt_ioctl()
252 if (pbar->type != PCI_ADDR_IO || pbar->io_handle == NULL) { in ppt_ioctl()
255 addr = pbar->io_ptr + bio.pbi_off; in ppt_ioctl()
259 bio.pbi_data = ddi_get32(pbar->io_handle, addr); in ppt_ioctl()
262 bio.pbi_data = ddi_get16(pbar->io_handle, addr); in ppt_ioctl()
265 bio.pbi_data = ddi_get8(pbar->io_handle, addr); in ppt_ioctl()
278 struct pptbar *pbar; in ppt_ioctl() local
290 pbar = &ppt->pptd_bars[rnum]; in ppt_ioctl()
291 if (pbar->type != PCI_ADDR_IO || pbar->io_handle == NULL) { in ppt_ioctl()
294 addr = pbar->io_ptr + bio.pbi_off; in ppt_ioctl()
298 ddi_put32(pbar->io_handle, addr, bio.pbi_data); in ppt_ioctl()
301 ddi_put16(pbar->io_handle, addr, bio.pbi_data); in ppt_ioctl()
304 ddi_put8(pbar->io_handle, addr, bio.pbi_data); in ppt_ioctl()
383 struct pptbar *pbar = &ppt->pptd_bars[i]; in ppt_bar_wipe() local
384 if (pbar->type == PCI_ADDR_IO && pbar->io_handle != NULL) { in ppt_bar_wipe()
385 ddi_regs_map_free(&pbar->io_handle); in ppt_bar_wipe()
407 struct pptbar *pbar; in ppt_bar_crawl() local
417 pbar = &ppt->pptd_bars[rnum]; in ppt_bar_crawl()
419 if (pbar->base != 0 || pbar->size != 0) { in ppt_bar_crawl()
429 pbar->ddireg = i + 1; in ppt_bar_crawl()
431 pbar->type = reg->pci_phys_hi & PCI_ADDR_MASK; in ppt_bar_crawl()
432 pbar->base = ((uint64_t)reg->pci_phys_mid << 32) | in ppt_bar_crawl()
434 pbar->size = ((uint64_t)reg->pci_size_hi << 32) | in ppt_bar_crawl()
436 if (pbar->type == PCI_ADDR_IO) { in ppt_bar_crawl()
438 &pbar->io_ptr, 0, 0, &ppt_attr, &pbar->io_handle); in ppt_bar_crawl()