Home
last modified time | relevance | path

Searched refs:nb_blocks (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/mtd/
H A Dnftlmount.c48 for (block = 0; block < nftl->nb_blocks; block++) { 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()
186 nftl->lastEUN = nftl->nb_blocks - 1; in find_boot_record()
194 nftl->ReplUnitTable = kmalloc_array(nftl->nb_blocks, in find_boot_record()
206 for (; i < nftl->nb_blocks; i++) { in find_boot_record()
214 for (i = 0; i < nftl->nb_blocks; i++) { in find_boot_record()
431 if (length >= nftl->nb_blocks) { in calc_chain_length()
580 for (i = 0; i < s->nb_blocks; i++) { in NFTL_mount()
682 } else if (rep_block >= s->nb_blocks) { in NFTL_mount()
[all …]
H A Dinftlmount.c243 inftl->numvunits, inftl->nb_blocks, in find_boot_record()
257 inftl->nb_blocks = ip->lastUnit + 1; 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()
463 for (i = 0; i < s->nb_blocks; i++) { in INFTL_dumptables()
510 if (block >= s->nb_blocks) in INFTL_dumpVUchains()
513 for (i = 0; i < s->nb_blocks; i++) { in INFTL_dumpVUchains()
547 for (i = 0; i < s->nb_blocks; i++) in INFTL_mount()
598 if (prev_block < s->nb_blocks) in INFTL_mount()
635 ((prev_block >= s->nb_blocks) && in INFTL_mount()
[all …]
H A Dinftlcore.c201 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 Dnftlcore.c197 int silly = nftl->nb_blocks; in NFTL_findfreeblock()
716 while (thisEUN < nftl->nb_blocks) { in nftl_readblock()
/openbmc/linux/include/uapi/linux/
H A Dvirtio_mem.h108 __virtio16 nb_blocks; member
114 __virtio16 nb_blocks; member
120 __virtio16 nb_blocks; member
/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_mem.h110 __virtio16 nb_blocks; member
116 __virtio16 nb_blocks; member
122 __virtio16 nb_blocks; member
/openbmc/qemu/migration/
H A Drdma.c282 int nb_blocks; member
564 if (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()
607 local->nb_blocks++; in rdma_add_block()
694 if (local->nb_blocks > 1) { in rdma_delete_block()
723 local->nb_blocks--; in rdma_delete_block()
725 if (local->nb_blocks && rdma->blockmap) { in rdma_delete_block()
1173 for (i = 0; i < local->nb_blocks; i++) { in qemu_rdma_reg_whole_ram_blocks()
2383 while (rdma->local_ram_blocks.nb_blocks) { in qemu_rdma_cleanup()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvirtio-mem.c654 uint16_t nb_blocks, bool plug) in virtio_mem_state_change_request() argument
656 const uint64_t size = nb_blocks * vmem->block_size; in virtio_mem_state_change_request()
690 const uint16_t nb_blocks = le16_to_cpu(req->u.plug.nb_blocks); in virtio_mem_plug_request() local
693 trace_virtio_mem_plug_request(gpa, nb_blocks); in virtio_mem_plug_request()
694 type = virtio_mem_state_change_request(vmem, gpa, nb_blocks, true); in virtio_mem_plug_request()
702 const uint16_t nb_blocks = le16_to_cpu(req->u.unplug.nb_blocks); in virtio_mem_unplug_request() local
705 trace_virtio_mem_unplug_request(gpa, nb_blocks); in virtio_mem_unplug_request()
706 type = virtio_mem_state_change_request(vmem, gpa, nb_blocks, false); in virtio_mem_unplug_request()
775 const uint16_t nb_blocks = le16_to_cpu(req->u.state.nb_blocks); in virtio_mem_state_request() local
777 const uint64_t size = nb_blocks * vmem->block_size; in virtio_mem_state_request()
[all …]
H A Dtrace-events144 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 Dnftl.h36 unsigned int nb_blocks; /* number of physical blocks */ member
H A Dinftl.h45 unsigned int nb_blocks; /* number of physical blocks */ member
/openbmc/qemu/block/
H A Discsi.c1220 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 Dvirtio_mem.c1401 .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()