/openbmc/linux/drivers/mtd/ |
H A D | nftlmount.c | 42 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize; in find_boot_record() 48 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record() 160 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize; in find_boot_record() 164 if ((nftl->nb_boot_blocks + 2) >= nftl->nb_blocks) { in find_boot_record() 167 nftl->nb_boot_blocks, nftl->nb_blocks); in find_boot_record() 172 if (nftl->numvunits > (nftl->nb_blocks - nftl->nb_boot_blocks - 2)) { in find_boot_record() 175 nftl->numvunits, nftl->nb_blocks, nftl->nb_boot_blocks); in find_boot_record() 183 nftl->nb_blocks = le16_to_cpu(mh->NumEraseUnits) + le16_to_cpu(mh->FirstPhysicalEUN); in find_boot_record() 186 nftl->lastEUN = nftl->nb_blocks - 1; in find_boot_record() 189 nftl->EUNtable = kmalloc_array(nftl->nb_blocks, sizeof(u16), in find_boot_record() [all …]
|
H A D | inftlmount.c | 50 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 55 for (block = 0; block < inftl->nb_blocks; block++) { in find_boot_record() 171 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 238 if (inftl->numvunits > (inftl->nb_blocks - in find_boot_record() 243 inftl->numvunits, inftl->nb_blocks, in find_boot_record() 257 inftl->nb_blocks = ip->lastUnit + 1; in find_boot_record() 260 inftl->PUtable = kmalloc_array(inftl->nb_blocks, sizeof(u16), in find_boot_record() 265 inftl->VUtable = kmalloc_array(inftl->nb_blocks, sizeof(u16), in find_boot_record() 276 for (; i < inftl->nb_blocks; i++) in find_boot_record() 283 for (i = 0; i < inftl->nb_blocks; i++) { in find_boot_record() [all …]
|
H A D | inftlcore.c | 201 int silly = inftl->nb_blocks; in INFTL_findfreeblock() 266 while (thisEUN < inftl->nb_blocks) { in INFTL_foldchain() 412 for (chain = 0; chain < inftl->nb_blocks; chain++) { in INFTL_makefreeblock() 580 if (prev_block < inftl->nb_blocks) in INFTL_findwriteunit() 653 while (thisEUN < inftl->nb_blocks) { in INFTL_trydeletechain() 713 BUG_ON(thisEUN >= inftl->nb_blocks); in INFTL_trydeletechain() 758 while (thisEUN < inftl->nb_blocks) { in INFTL_deleteblock() 867 while (thisEUN < inftl->nb_blocks) { in inftl_readblock()
|
H A D | nftlcore.c | 197 int silly = nftl->nb_blocks; in NFTL_findfreeblock() 716 while (thisEUN < nftl->nb_blocks) { in nftl_readblock()
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_mem.h | 108 __virtio16 nb_blocks; member 114 __virtio16 nb_blocks; member 120 __virtio16 nb_blocks; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_mem.h | 110 __virtio16 nb_blocks; member 116 __virtio16 nb_blocks; member 122 __virtio16 nb_blocks; member
|
/openbmc/qemu/migration/ |
H A D | rdma.c | 282 int nb_blocks; member 562 local->block = g_new0(RDMALocalBlock, local->nb_blocks + 1); in rdma_add_block() 564 if (local->nb_blocks) { in rdma_add_block() 566 for (int x = 0; x < local->nb_blocks; x++) { in rdma_add_block() 574 memcpy(local->block, old, sizeof(RDMALocalBlock) * local->nb_blocks); in rdma_add_block() 578 block = &local->block[local->nb_blocks]; in rdma_add_block() 584 block->index = local->nb_blocks; in rdma_add_block() 599 trace_rdma_add_block(block_name, local->nb_blocks, in rdma_add_block() 607 local->nb_blocks++; in rdma_add_block() 639 trace_qemu_rdma_init_ram_blocks(local->nb_blocks); in qemu_rdma_init_ram_blocks() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-mem.c | 661 uint16_t nb_blocks, bool plug) in virtio_mem_state_change_request() argument 663 const uint64_t size = nb_blocks * vmem->block_size; in virtio_mem_state_change_request() 697 const uint16_t nb_blocks = le16_to_cpu(req->u.plug.nb_blocks); in virtio_mem_plug_request() local 700 trace_virtio_mem_plug_request(gpa, nb_blocks); in virtio_mem_plug_request() 701 type = virtio_mem_state_change_request(vmem, gpa, nb_blocks, true); in virtio_mem_plug_request() 709 const uint16_t nb_blocks = le16_to_cpu(req->u.unplug.nb_blocks); in virtio_mem_unplug_request() local 712 trace_virtio_mem_unplug_request(gpa, nb_blocks); in virtio_mem_unplug_request() 713 type = virtio_mem_state_change_request(vmem, gpa, nb_blocks, false); in virtio_mem_unplug_request() 782 const uint16_t nb_blocks = le16_to_cpu(req->u.state.nb_blocks); in virtio_mem_state_request() local 784 const uint64_t size = nb_blocks * vmem->block_size; in virtio_mem_state_request() [all …]
|
H A D | trace-events | 144 virtio_mem_plug_request(uint64_t addr, uint16_t nb_blocks) "addr=0x%" PRIx64 " nb_blocks=%" PRIu16 145 virtio_mem_unplug_request(uint64_t addr, uint16_t nb_blocks) "addr=0x%" PRIx64 " nb_blocks=%" PRIu16 149 virtio_mem_state_request(uint64_t addr, uint16_t nb_blocks) "addr=0x%" PRIx64 " nb_blocks=%" PRIu16
|
/openbmc/linux/include/linux/mtd/ |
H A D | nftl.h | 36 unsigned int nb_blocks; /* number of physical blocks */ member
|
H A D | inftl.h | 45 unsigned int nb_blocks; /* number of physical blocks */ member
|
/openbmc/qemu/block/ |
H A D | iscsi.c | 1220 uint64_t nb_blocks; in iscsi_co_pwrite_zeroes() local 1247 nb_blocks = bytes / iscsilun->block_size; in iscsi_co_pwrite_zeroes() 1264 assert(nb_blocks <= UINT32_MAX); in iscsi_co_pwrite_zeroes() 1267 nb_blocks, 0, !!(flags & BDRV_REQ_MAY_UNMAP), in iscsi_co_pwrite_zeroes() 1274 assert(nb_blocks <= UINT16_MAX); in iscsi_co_pwrite_zeroes() 1277 nb_blocks, 0, !!(flags & BDRV_REQ_MAY_UNMAP), in iscsi_co_pwrite_zeroes()
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_mem.c | 1401 .u.plug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_plug_request() 1439 .u.unplug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_unplug_request() 2640 .u.state.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_state_request()
|