Lines Matching refs:bar
496 // Get bar info from the device via the dispatcher and make sure it makes sense
502 // A bar can be MMIO, PIO, or unused. In the MMIO case it can be passed
504 zx_pci_bar_t bar = {};
505 bar.size = info->size;
506 bar.type = (info->is_mmio) ? ZX_PCI_BAR_TYPE_MMIO : ZX_PCI_BAR_TYPE_PIO;
514 // Create a VMO mapping to the address / size of the mmio region this bar
525 snprintf(name, sizeof(name), "pci-%02x:%02x.%1x-bar%u",
529 // Now that the vmo has been created for the bar, create a handle to
539 bar.addr = info->bus_addr;
545 status = out_bar.copy_to_user(bar);