Searched refs:bar (Results 1 - 16 of 16) sorted by relevance

/fuchsia/zircon/bootloader/src/
H A Dpci.c40 uint32_t bar[6]; member in struct:__anon12
107 uint64_t n = ((uint64_t) pci_hdr.bar[0]) |
108 ((uint64_t) pci_hdr.bar[1]) << 32UL;
120 for (int bar = 0; bar < 6; bar++) {
121 if (pci_hdr.bar[bar]) {
122 printf(" bar[%d]: 0x%08x\n", bar, pci_hd
[all...]
/fuchsia/zircon/system/dev/bus/virtio/backends/
H A Dpci_modern.cpp22 pci_config_read8(pci, cap_field(offset, bar), &cap.bar);
177 // Attempt to map a bar found in a capability structure. If it has already been
180 zx_status_t PciModernBackend::MapBar(uint8_t bar) { argument
181 if (bar >= fbl::count_of(bar_)) {
185 if (bar_[bar].mmio_handle != ZX_HANDLE_INVALID) {
192 zx_status_t s = pci_map_bar(&pci_, bar, ZX_CACHE_POLICY_UNCACHED_DEVICE, &base, &size, &handle);
194 zxlogf(ERROR, "%s: Failed to map bar %u: %d\n", tag(), bar, s);
199 bar_[bar]
[all...]
H A Dpci.h125 zx_status_t MapBar(uint8_t bar);
127 struct bar { struct in class:virtio::PciModernBackend
/fuchsia/zircon/system/utest/fidl-compiler/
H A Dtable_tests.cpp124 [FooAttr="bar"]
127 2: bool bar;
135 [FooAttr="bar"]
/fuchsia/zircon/system/dev/bus/pci/
H A Dproxy.c168 .bar.id = bar_id,
176 *out_bar = resp.bar;
183 zxlogf(ERROR, "Failed to map IO window for bar into process: %d\n", st);
198 // Map a pci device's bar into the process's address space
209 zx_pci_bar_t bar; local
210 zx_status_t status = pci_op_get_bar(ctx, bar_id, &bar);
216 if (bar.type == ZX_PCI_BAR_TYPE_PIO || bar.handle == ZX_HANDLE_INVALID) {
220 status = zx_vmo_set_cache_policy(bar.handle, cache_policy);
222 zx_handle_close(bar
[all...]
H A Dkpci-private.h78 zx_pci_bar_t bar; member in union:__anon265::__anon266
H A Dkpci.c98 // bar to pass back to the devhost making the call.
100 if (req->bar.id >= ZX_PCI_MAX_BAR_REGS) {
106 zx_pci_bar_t bar; local
107 zx_status_t st = zx_pci_get_bar(device->handle, req->bar.id, &bar, &handle);
109 resp.bar = bar;
/fuchsia/zircon/system/dev/display/simple/
H A Dsimple-display.h62 zx_status_t bind_simple_pci_display(zx_device_t* dev, const char* name, uint32_t bar,
66 zx_status_t bind_simple_pci_display_bootloader(zx_device_t* dev, const char* name, uint32_t bar);
H A Dsimple-display.cpp182 zx_status_t bind_simple_pci_display_bootloader(zx_device_t* dev, const char* name, uint32_t bar) { argument
191 return bind_simple_pci_display(dev, name, bar, width, height, stride, format);
194 zx_status_t bind_simple_pci_display(zx_device_t* dev, const char* name, uint32_t bar, argument
207 status = pci_map_bar(&pci, bar, ZX_CACHE_POLICY_WRITE_COMBINING,
210 printf("%s: failed to map pci bar %d: %d\n", name, bar, status);
/fuchsia/zircon/kernel/dev/pcie/include/dev/
H A Dpci_config.h72 static constexpr PciReg32 kBAR(uint bar) { argument
73 DEBUG_ASSERT(bar < PCIE_MAX_BAR_REGS);
74 return PciReg32(static_cast<uint16_t>(0x10 + (bar * sizeof(uint32_t))));
/fuchsia/zircon/system/ulib/virtio/include/virtio/
H A Dvirtio.h73 uint8_t bar; member in struct:virtio_pci_cap
/fuchsia/zircon/kernel/syscalls/
H A Dddk_pci.cpp496 // 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 = {}; local
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);
[all...]
/fuchsia/zircon/scripts/
H A Ddownload-prebuilt130 curl --progress-bar -continue-at=- --location \
/fuchsia/zircon/kernel/dev/pcie/
H A Dpcie_device.cpp393 /* If this was a 64 bit bar, it took two registers to store. Make
665 for (auto& bar : bars_)
666 bar.allocation = nullptr;
/fuchsia/zircon/kernel/arch/x86/
H A Dperf_mon.cpp395 uint32_t bar; local
398 &bar, 32);
400 LTRACEF("perfmon: mchbar: 0x%x\n", bar);
403 perfmon_mchbar_bar = bar & ~15u;
/fuchsia/zircon/make/
H A Dmodule-userlib.mk188 # libraries this way they will have to maintain the pattern where foo.bar in the
189 # MODULE is foo-bar in the MODULE_NAME:

Completed in 173 milliseconds