/fuchsia/zircon/bootloader/src/ |
H A D | fileio.c | 34 efi_file_protocol* root; local 35 r = sfs->OpenVolume(sfs, &root); 40 r = root->Open(root, &file, L"README.txt", EFI_FILE_MODE_READ, 0); 63 root->Close(root);
|
/fuchsia/zircon/system/ulib/memfs/ |
H A D | memfs-local.cpp | 53 fbl::RefPtr<memfs::VnodeDir> root; local 54 if ((status = memfs::CreateFilesystem("<tmp>", &fs->vfs, &root)) != ZX_OK) { 57 if ((status = fs->vfs.ServeDirectory(fbl::move(root), fbl::move(server))) != ZX_OK) { 79 zx_handle_t root; local 80 status = memfs_create_filesystem_with_page_limit(dispatcher, max_num_pages, &fs, &root); 85 status = fdio_ns_bind(ns, path, root); 88 zx_handle_close(root);
|
/fuchsia/zircon/system/utest/core/resource/ |
H A D | resource.cpp | 25 const zx::unowned_resource root() { function 26 static zx_handle_t root = get_root_resource(); local 27 return zx::unowned_resource(root); 50 status = zx::resource::create(*root(), ZX_RSRC_KIND_MMIO, base, 71 char root_name[] = "root"; 73 // Create a root and verify the fields are still zero, but the name matches. 74 EXPECT_EQ(zx::resource::create(*root(), ZX_RSRC_KIND_ROOT, 0, 0, 85 // the new root resource created for good measure. 109 EXPECT_EQ(zx::resource::create(*root(), ZX_RSRC_KIND_MMIO, mmio_test_base, 119 EXPECT_EQ(zx::resource::create(*root(), ZX_RSRC_KIND_COUN [all...] |
/fuchsia/zircon/bootloader/lib/ |
H A D | loadfile.c | 41 efi_file_protocol* root; local 42 r = sfs->OpenVolume(sfs, &root); 44 xprintf("LoadFile: Cannot open root volume (%s)\n", xefi_strerror(r)); 48 r = root->Open(root, &file, filename, EFI_FILE_MODE_READ, 0); 55 root->Close(root);
|
/fuchsia/zircon/system/private/efi/protocol/ |
H A D | simple-file-system.h | 20 efi_file_protocol** root) EFIAPI;
|
/fuchsia/zircon/system/utest/memfs/ |
H A D | memfs-tests.cpp | 32 zx_handle_t root; local 34 ASSERT_EQ(memfs_create_filesystem(loop.dispatcher(), &vfs, &root), ZX_OK); 35 ASSERT_EQ(zx_handle_close(root), ZX_OK); 51 zx_handle_t root; local 52 ASSERT_EQ(memfs_create_filesystem(loop.dispatcher(), &vfs, &root), ZX_OK); 55 ASSERT_EQ(fdio_create_fd(&root, &type, 1, &fd), ZX_OK); 99 zx_handle_t root; local 102 &vfs, &root), ZX_OK); 105 ASSERT_EQ(fdio_create_fd(&root, &type, 1, &raw_root_fd), ZX_OK); 223 zx_handle_t root; local [all...] |
/fuchsia/zircon/system/dev/misc/builtin/ |
H A D | rules.mk | 13 $(LOCAL_DIR)/root.c \
|
/fuchsia/zircon/system/ulib/digest/include/digest/ |
H A D | merkle-tree.h | 33 // At this point, |digest| contains the root digest for the Merkle tree 42 // data, tree, or root digest have been altered. 51 // child nodes. It does NOT include the root digest, which must be passed 56 // Writes a Merkle tree for the given data and saves its root digest. 62 // length. It checks integrity using the given Merkle tree and trusted root 85 // Completes the Merkle |tree|, from the data leaves up to the |root|, which 96 // integrity using the given root digest. |data_len| must be at no more than 99 uint64_t level, const Digest& root); 112 zx_status_t CreateFinalInternal(const void* data, void* tree, Digest* root); 160 // uint8_t *root [all...] |
/fuchsia/zircon/kernel/dev/pcie/ |
H A D | pcie_bus_driver.cpp | 63 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, void* ctx) -> bool { 64 root->UnplugDownstream(); 76 zx_status_t PcieBusDriver::AddRoot(fbl::RefPtr<PcieRoot>&& root) { argument 77 if (root == nullptr) 89 if (!roots_.insert_or_find(fbl::move(root))) { 90 TRACEF("Failed to add PCIe root for bus %u, root already exists!\n", 91 root->managed_bus_id()); 107 // Scan each root looking for for devices and other bridges. 108 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, voi [all...] |
H A D | pcie_caps.cpp | 111 root.caps_ = PciReg16(static_cast<uint16_t>(base_ + kRootCapsOffset)); 112 root.ctrl_ = PciReg16(static_cast<uint16_t>(base_ + kRootControlOffset)); 113 root.status_ = PciReg32(static_cast<uint16_t>(base_ + kRootStatusOffset));
|
/fuchsia/zircon/system/dev/misc/test/ |
H A D | test.c | 138 test_root_t* root = ctx; local 175 if ((status = device_add(root->zxdev, &args, &device->zxdev)) != ZX_OK) { 191 test_root_t* root = calloc(1, sizeof(test_root_t)); local 192 if (!root) { 198 .ctx = root, 202 return device_add(dev, &args, &root->zxdev);
|
/fuchsia/zircon/system/ulib/digest/ |
H A D | merkle-tree.cpp | 205 zx_status_t MerkleTree::CreateFinal(void* tree, Digest* root) { argument 206 return CreateFinalInternal(nullptr, tree, root); 209 zx_status_t MerkleTree::CreateFinalInternal(const void* data, void* tree, Digest* root) { argument 215 // Must have root to write and a tree to fill if expecting more than one 217 if (!root || (!tree && length_ > kNodeSize)) { 233 // If the top, save the digest as the Merkle tree root and return. 235 *root = digest_.AcquireBytes(); 241 return next_->CreateFinalInternal(tree, next, root); 248 size_t offset, size_t length, const Digest& root) { 270 return VerifyRoot(data, root_len, level, root); 247 Verify(const void* data, size_t data_len, const void* tree, size_t tree_len, size_t offset, size_t length, const Digest& root) argument 408 merkle_tree_verify(const void* data, size_t data_len, void* tree, size_t tree_len, size_t offset, size_t length, const void* root, size_t root_len) argument [all...] |
/fuchsia/zircon/system/uapp/blobfs/ |
H A D | main.cpp | 44 zx::channel root = zx::channel(zx_take_startup_handle(PA_HND(PA_USER0, 0))); local 45 if (!root.is_valid()) { 54 fbl::move(root), fbl::move(loop_quit)) != ZX_OK) {
|
/fuchsia/zircon/system/dev/usb/xhci/ |
H A D | rules.mk | 17 $(LOCAL_DIR)/xhci-root-hub.c \
|
/fuchsia/zircon/system/ulib/fuzz-utils/include/fuzz-utils/ |
H A D | fuzzer.h | 46 void set_root(const char* root) { root_.Set(root); } argument 62 // Constructs a |Path| object to the |path| directory, relative to the root if set. 66 // reset to the root directory.
|
/fuchsia/zircon/system/utest/property/ |
H A D | property.c | 195 zx_handle_t root; local 196 zx_status_t s = zx_job_create(zx_job_default(), 0, &root); 198 EXPECT_EQ(s, ZX_OK, "root job"); // Poison the test 202 s = zx_job_create(root, 0, &child); 205 zx_task_kill(root); 206 zx_handle_close(root); 213 zx_task_kill(root); // Kills child, too 215 zx_handle_close(root); 218 test_jobs[0] = root;
|
/fuchsia/zircon/system/dev/block/zxcrypt/ |
H A D | worker.cpp | 163 zx_handle_t root = zx_vmar_root_self(); local 166 if ((rc = zx_vmar_map(root, flags, 0, block->rw.vmo, offset_vmo, length, &address)) != ZX_OK) { 171 fbl::MakeAutoCall([root, address, length]() { zx_vmar_unmap(root, address, length); });
|
/fuchsia/zircon/system/ulib/fdio/ |
H A D | namespace.c | 62 mxvn_t root; member in struct:fdio_namespace 146 // can't destroy the root 246 mxvn_t* vn = &ns->root; 469 vn_destroy_children_locked(&ns->root); 492 mxvn_t* vn = &ns->root; 494 // the path was "/" so we're trying to bind to the root vnode 511 LOG(1, "BIND: FAILED (root bound)\n"); 533 // vnode that has a remote, or on the root vnode, so we 581 if (ns->root.remote == ZX_HANDLE_INVALID) { 582 io = fdio_dir_create_locked(ns, &ns->root); [all...] |
/fuchsia/zircon/system/core/devmgr/ |
H A D | memfs-private.h | 24 void vfs_global_init(VnodeDir* root); 46 // Create the global root to memfs
|
/fuchsia/zircon/bootloader/lib/efi/ |
H A D | guids.c | 14 #include <efi/protocol/pci-root-bridge-io.h>
|
/fuchsia/zircon/system/ulib/fs-management/ |
H A D | mount.cpp | 35 zx_status_t MountFs(int fd, zx_handle_t root) { argument 39 root, &status); 47 void UnmountHandle(zx_handle_t root, bool wait_until_ready) { argument 55 vfs_unmount_handle(root, wait_until_ready ? ZX_TIME_INFINITE : 0); 90 // Initializes 'handles_' and 'ids_' with the root handle and block device handle.
|
/fuchsia/zircon/kernel/dev/pcie/include/dev/ |
H A D | pcie_bus_driver.h | 98 // Add a root bus to the driver and attempt to scan it for devices. 99 zx_status_t AddRoot(fbl::RefPtr<PcieRoot>&& root); 108 // space to the root, however during downstream scanning we rely on the 110 // we're only surfacing a single root right now anyway we need to mark that 111 // root as MMIO or PIO in the bus driver itself. When we move to userspace 112 // and have a bus driver instance for each root, this will no longer be an 193 using ForeachRootCallback = bool (*)(const fbl::RefPtr<PcieRoot>& root, void* ctx);
|
/fuchsia/zircon/system/uapp/df/ |
H A D | main.cpp | 36 const char* root = "/"; variable 56 *dirs = &root;
|
/fuchsia/zircon/system/ulib/lockdep/include/lockdep/ |
H A D | lock_class_state.h | 303 LoopNode* root = FindSet(node); local 304 SystemCircularLockDependencyDetected(root->ToState());
|
/fuchsia/zircon/kernel/syscalls/ |
H A D | ddk_pci.cpp | 58 auto root = fbl::AdoptRef(new (&ac) PcieRootLUTSwizzle(bus_drv, local 62 TRACEF("Out of memory attemping to create PCIe root to manage bus ID 0x%02x\n", 67 return root; 280 // roots in the system. Do not assume that there is a single root, nor that 282 auto root = PcieRootLUTSwizzle::Create(*pcie, 0, arg->dev_pin_to_global_irq); local 283 if (root == nullptr) 289 zx_status_t ret = pcie->AddRoot(fbl::move(root)); 291 TRACEF("Failed to add root complex to PCIe bus driver! (ret %d)\n", ret);
|