Searched refs:nr_blks (Results 1 – 5 of 5) sorted by relevance
/drivers/lightnvm/ |
D | sysblk.c | 99 u8 *blks, int nr_blks, in sysblk_get_free_blks() argument 105 nr_blks = nvm_bb_tbl_fold(dev, blks, nr_blks); in sysblk_get_free_blks() 106 if (nr_blks < 0) in sysblk_get_free_blks() 107 return nr_blks; in sysblk_get_free_blks() 109 for (i = 0; i < nr_blks; i++) { in sysblk_get_free_blks() 134 u8 *blks, int nr_blks, in sysblk_get_host_blks() argument 139 nr_blks = nvm_bb_tbl_fold(dev, blks, nr_blks); in sysblk_get_host_blks() 140 if (nr_blks < 0) in sysblk_get_host_blks() 141 return nr_blks; in sysblk_get_host_blks() 143 for (i = 0; i < nr_blks; i++) { in sysblk_get_host_blks() [all …]
|
D | gennvm.c | 268 u8 *blks, int nr_blks) in gen_block_bb() argument 275 nr_blks = nvm_bb_tbl_fold(dev, blks, nr_blks); in gen_block_bb() 276 if (nr_blks < 0) in gen_block_bb() 277 return nr_blks; in gen_block_bb() 281 for (i = 0; i < nr_blks; i++) { in gen_block_bb() 350 int ret, nr_blks; in gen_blocks_init() local 353 nr_blks = dev->blks_per_lun * dev->plane_mode; in gen_blocks_init() 354 blks = kmalloc(nr_blks, GFP_KERNEL); in gen_blocks_init() 394 ret = gen_block_bb(gn, ppa, blks, nr_blks); in gen_blocks_init()
|
D | core.c | 438 int nvm_bb_tbl_fold(struct nvm_dev *dev, u8 *blks, int nr_blks) in nvm_bb_tbl_fold() argument 442 if (nr_blks != dev->blks_per_lun * dev->plane_mode) in nvm_bb_tbl_fold()
|
/drivers/s390/char/ |
D | sclp_sdias.c | 163 int sclp_sdias_copy(void *dest, int start_blk, int nr_blks) in sclp_sdias_copy() argument 182 sccb.evbuf.blk_cnt = nr_blks; in sclp_sdias_copy()
|
/drivers/nvme/host/ |
D | lightnvm.c | 398 int nr_blks = nvmdev->blks_per_lun * nvmdev->plane_mode; in nvme_nvm_get_bb_tbl() local 399 int tblsz = sizeof(struct nvme_nvm_bb_tbl) + nr_blks; in nvme_nvm_get_bb_tbl() 431 if (le32_to_cpu(bb_tbl->tblks) != nr_blks) { in nvme_nvm_get_bb_tbl() 435 le32_to_cpu(bb_tbl->tblks), nr_blks); in nvme_nvm_get_bb_tbl()
|