/fuchsia/zircon/bootloader/src/ |
H A D | diskio.c | 57 static void print_path(efi_boot_services* bs, efi_device_path_protocol* path) { argument 59 efi_status status = bs->LocateProtocol(&DevicePathToTextProtocol, NULL, (void**) &ptt); 71 bs->FreePool(txt); 77 efi_boot_services* bs; member in struct:__anon4 96 disk->bs->CloseProtocol(disk->h, &DiskIoProtocol, disk->img, NULL); 102 efi_boot_services* bs = sys->BootServices; local 108 status = bs->OpenProtocol(img, &LoadedImageProtocol, (void**) &li, img, NULL, 115 status = bs->OpenProtocol(li->DeviceHandle, &DevicePathProtocol, 124 print_path(bs, li->FilePath); 126 print_path(bs, imgdevpat 296 efi_boot_services* bs = sys->BootServices; local [all...] |
H A D | pci.c | 56 efi_status xefi_find_pci_mmio(efi_boot_services* bs, uint8_t cls, uint8_t sub, uint8_t ifc, uint64_t* mmio) { argument 59 efi_status status = bs->LocateHandleBuffer(ByProtocol, &PciRootBridgeIoProtocol, 69 status = bs->HandleProtocol(handles[i], &PciRootBridgeIoProtocol, (void**)&iodev); 95 bs->SetMem(&pci_hdr, sizeof(pci_hdr), 0); 149 bs->FreePool(handles);
|
H A D | netifc.c | 173 efi_boot_services* bs = gSys->BootServices; local 185 ret = bs->LocateHandle(ByProtocol, &SimpleNetworkProtocol, NULL, &sz, handles); 211 ret = bs->HandleProtocol(handles[i], &SimpleNetworkProtocol, (void**)&cur_snp); 252 bs->CloseProtocol(handles[i], &SimpleNetworkProtocol, gImg, NULL); 260 efi_boot_services* bs = gSys->BootServices; local 264 bs->CreateEvent(EVT_TIMER, TPL_CALLBACK, NULL, NULL, &net_timer); 272 if (bs->AllocatePages(AllocateAnyPages, EfiLoaderData, NUM_BUFFER_PAGES, ð_buffers_base)) {
|
H A D | zircon.c | 201 efi_boot_services* bs = sys->BootServices; local 279 bs->LocateProtocol(&GraphicsOutputProtocol, NULL, (void**)&gop); 380 efi_boot_services* bs = sys->BootServices; local 384 efi_status r = bs->AllocatePages(AllocateAnyPages, EfiLoaderData, pages,
|
/fuchsia/zircon/system/dev/block/block/ |
H A D | block.c | 42 BlockServer* bs; member in struct:blkdev 60 BlockServer* bs = bdev->bs; local 61 if (!bdev->dead && (bs != NULL)) { 63 blockserver_serve(bs); 67 if (bdev->bs == bs) { 68 // Only nullify 'bs' if no one has replaced it yet. This is the 71 bdev->bs = NULL; 77 if (bs ! 104 BlockServer* bs; local [all...] |
H A D | server.cpp | 273 BlockServer* bs = new (&ac) BlockServer(dev, bp); local 279 if ((status = fzl::create_fifo(BLOCK_FIFO_MAX_DEPTH, 0, fifo_out, &bs->fifo_)) != ZX_OK) { 280 delete bs; 284 for (size_t i = 0; i < fbl::count_of(bs->groups_); i++) { 285 bs->groups_[i].Initialize(bs->fifo_.get_handle(), static_cast<groupid_t>(i)); 288 // Notably, drop ZX_RIGHT_SIGNAL_PEER, since we use bs->fifo for thread 293 delete bs; 298 bp->ops->query(bp->ctx, &bs->info_, &bs 524 blockserver_shutdown(BlockServer* bs) argument 527 blockserver_free(BlockServer* bs) argument 530 blockserver_serve(BlockServer* bs) argument 533 blockserver_attach_vmo(BlockServer* bs, zx_handle_t raw_vmo, vmoid_t* out) argument [all...] |
H A D | server.h | 229 void blockserver_shutdown(BlockServer* bs); 232 void blockserver_free(BlockServer* bs); 235 zx_status_t blockserver_serve(BlockServer* bs); 238 zx_status_t blockserver_attach_vmo(BlockServer* bs, zx_handle_t vmo, vmoid_t* out);
|
/fuchsia/zircon/scripts/entropy-test/jitterentropy/ |
H A D | test-tunable-config | 12 # (kernel.jitterentropy.ml), memory block size (kernel.jitterentropy.bs), and memory block count 27 echo " --bs-seq '<N1> <N2> ... <Nk>'" >&2 35 echo " : --bs-seq '64' --bc-seq '512'" >&2 37 echo " : 'ml' varying, and 'bs' and 'bc' help constant." >&2 86 --bs-seq) 87 if [[ $# -lt 2 ]]; then echo "--bs-seq missing seq" >&2; HELP; fi 111 for bs in "${BS_SEQ[@]}"; do for bc in "${BC_SEQ[@]}"; do 114 CMDLINE+=" kernel.jitterentropy.bs=$bs kernel.jitterentropy.bc=$bc"
|
/fuchsia/zircon/bootloader/include/ |
H A D | xefi.h | 36 efi_status xefi_find_pci_mmio(efi_boot_services* bs, uint8_t cls, uint8_t sub, uint8_t ifc, uint64_t* mmio); 45 efi_boot_services* bs; member in struct:__anon1 54 #define gBS (xefi_global_state.bs)
|
/fuchsia/zircon/third_party/ulib/musl/src/internal/ |
H A D | intscan.c | 71 int bs = "\0\1\2\4\7\3\6\5"[(0x17 * base) >> 5 & 7]; local 73 x = x << bs | val[c]; 74 for (y = x; val[c] < base && y <= ULLONG_MAX >> bs; c = shgetc(f)) 75 y = y << bs | val[c];
|
/fuchsia/zircon/bootloader/build/ |
H A D | mkdiskimg.sh | 14 dd if=/dev/zero of="$1" bs=512 count=93750
|
/fuchsia/zircon/kernel/lib/crypto/entropy/ |
H A D | jitterentropy_collector.cpp | 66 // Testing shows that, with the default parameters below (bs=64, bc=512, 75 uint32_t bs = cmdline_get_uint32("kernel.jitterentropy.bs", 64); local 81 jent_entropy_collector_init(&ec_, mem, len, bs, bc, mem_loops_,
|
/fuchsia/zircon/system/ulib/blobfs/include/blobfs/ |
H A D | writeback.h | 54 explicit WriteTxn(Blobfs* bs) : bs_(bs), vmoid_(VMOID_INVALID) {} argument 125 WritebackWork(Blobfs* bs, fbl::RefPtr<VnodeBlob> vnode); 137 static zx_status_t Create(Blobfs* bs, fbl::unique_ptr<fzl::MappedVmo> buffer, 159 WritebackBuffer(Blobfs* bs, fbl::unique_ptr<fzl::MappedVmo> buffer);
|
H A D | host.h | 145 zx_status_t blobfs_add_blob(Blobfs* bs, int data_fd); 148 zx_status_t blobfs_add_blob_with_merkle(Blobfs* bs, int data_fd, uint64_t length,
|
H A D | blobfs.h | 121 VnodeBlob(Blobfs* bs); 123 VnodeBlob(Blobfs* bs, const Digest& digest); 147 static zx_status_t VerifyBlob(Blobfs* bs, size_t node_index);
|
/fuchsia/zircon/system/ulib/blobfs/ |
H A D | writeback.cpp | 89 WritebackWork::WritebackWork(Blobfs* bs, fbl::RefPtr<VnodeBlob> vn) : argument 90 WriteTxn(bs), closure_(nullptr), sync_(false), vn_(fbl::move(vn)) {} 125 zx_status_t WritebackBuffer::Create(Blobfs* bs, fbl::unique_ptr<fzl::MappedVmo> buffer, argument 127 fbl::unique_ptr<WritebackBuffer> wb(new WritebackBuffer(bs, fbl::move(buffer))); 160 WritebackBuffer::WritebackBuffer(Blobfs* bs, fbl::unique_ptr<fzl::MappedVmo> buffer) : argument 161 bs_(bs), unmounting_(false), buffer_(fbl::move(buffer)),
|
H A D | host.cpp | 133 zx_status_t blobfs_add_mapped_blob_with_merkle(Blobfs* bs, void* blob_data, uint64_t length, argument 157 if ((status = bs->NewBlob(digest, &inode_block)) < 0) { 170 if ((status = bs->AllocateBlocks(inode->num_blocks, 174 } else if ((status = bs->WriteData(inode, merkle.get(), data)) != ZX_OK) { 176 } else if ((status = bs->WriteBitmap(inode->num_blocks, inode->start_block)) != ZX_OK) { 178 } else if ((status = bs->WriteNode(fbl::move(inode_block))) != ZX_OK) { 180 } else if ((status = bs->WriteInfo()) != ZX_OK) { 284 zx_status_t blobfs_add_blob(Blobfs* bs, int data_fd) { argument 299 return blobfs_add_mapped_blob_with_merkle(bs, mapping.data(), 305 zx_status_t blobfs_add_blob_with_merkle(Blobfs* bs, in argument [all...] |
H A D | blobfs.cpp | 315 VnodeBlob::VnodeBlob(Blobfs* bs, const Digest& digest) argument 316 : blobfs_(bs), 321 VnodeBlob::VnodeBlob(Blobfs* bs) argument 322 : blobfs_(bs), 692 zx_status_t VnodeBlob::VerifyBlob(Blobfs* bs, size_t node_index) { argument 693 blobfs_inode_t* inode = bs->GetNode(node_index); 697 fbl::AdoptRef(new (&ac) VnodeBlob(bs, digest));
|
/fuchsia/zircon/third_party/uapp/mkfs-msdosfs/ |
H A D | mkfs_msdos.c | 80 struct bs { struct 186 struct bs* bs; local 530 x1 = sizeof(struct bs); 573 bs = (struct bs*)img; 574 mk1(bs->bsJump[0], 0xeb); 575 mk1(bs->bsJump[1], x1 - 2); 576 mk1(bs->bsJump[2], 0x90); 577 setstr(bs [all...] |
/fuchsia/zircon/scripts/ |
H A D | flash-hikey | 118 dd if=/dev/zero of=${RAMDISK} bs=4096 count=1
|
/fuchsia/zircon/system/utest/fvm-host/ |
H A D | main.cpp | 306 bool AddFileBlobfs(blobfs::Blobfs* bs, size_t size) { argument 315 ASSERT_EQ(blobfs::blobfs_add_blob(bs, datafd.get()), ZX_OK, "Failed to add blob"); 324 fbl::unique_ptr<blobfs::Blobfs> bs; local 325 ASSERT_EQ(blobfs::blobfs_create(&bs, fbl::move(blobfd)), ZX_OK, 329 ASSERT_TRUE(AddFileBlobfs(bs.get(), size));
|