Home
last modified time | relevance | path

Searched refs:blks (Results 1 – 17 of 17) sorted by relevance

/drivers/lightnvm/
Dsysblk.c99 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()
110 if (blks[i] == NVM_BLK_T_HOST) in sysblk_get_free_blks()
113 if (blks[i] != NVM_BLK_T_FREE) 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()
144 if (blks[i] != NVM_BLK_T_HOST) in sysblk_get_host_blks()
166 u8 *blks; in nvm_get_all_sysblks() local
171 blks = kmalloc(nr_blks, GFP_KERNEL); in nvm_get_all_sysblks()
172 if (!blks) in nvm_get_all_sysblks()
[all …]
Dgennvm.c268 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()
282 if (blks[i] == 0) in gen_block_bb()
351 u8 *blks; in gen_blocks_init() local
354 blks = kmalloc(nr_blks, GFP_KERNEL); in gen_blocks_init()
355 if (!blks) in gen_blocks_init()
362 kfree(blks); in gen_blocks_init()
390 ret = nvm_get_bb_tbl(dev, ppa, blks); in gen_blocks_init()
394 ret = gen_block_bb(gn, ppa, blks, nr_blks); in gen_blocks_init()
409 kfree(blks); in gen_blocks_init()
Dcore.c438 int nvm_bb_tbl_fold(struct nvm_dev *dev, u8 *blks, int nr_blks) in nvm_bb_tbl_fold() argument
447 blktype = blks[offset]; in nvm_bb_tbl_fold()
451 if (blks[offset + pl] & in nvm_bb_tbl_fold()
453 blktype = blks[offset + pl]; in nvm_bb_tbl_fold()
458 blks[blk] = blktype; in nvm_bb_tbl_fold()
465 int nvm_get_bb_tbl(struct nvm_dev *dev, struct ppa_addr ppa, u8 *blks) in nvm_get_bb_tbl() argument
469 return dev->ops->get_bb_tbl(dev, ppa, blks); in nvm_get_bb_tbl()
Drrpc.c143 int secs, pgs, blks, luns; in linear_to_generic_addr() local
156 div_u64_rem(ppa, dev->blks_per_lun, &blks); in linear_to_generic_addr()
157 l.g.blk = blks; in linear_to_generic_addr()
/drivers/scsi/fnic/
Dvnic_wq.c32 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local
36 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
44 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
Dvnic_rq.c32 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); in vnic_rq_alloc_bufs() local
36 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
44 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
/drivers/net/ethernet/cisco/enic/
Dvnic_rq.c35 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); in vnic_rq_alloc_bufs() local
37 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
43 for (i = 0; i < blks; i++) { in vnic_rq_alloc_bufs()
Dvnic_wq.c35 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local
37 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
43 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
/drivers/scsi/snic/
Dvnic_wq.c47 unsigned int blks = VNIC_WQ_BUF_BLKS_NEEDED(count); in vnic_wq_alloc_bufs() local
49 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
58 for (i = 0; i < blks; i++) { in vnic_wq_alloc_bufs()
/drivers/scsi/
Dst.c762 int transfer, blks; in st_flush_write_buffer() local
781 blks = transfer / STp->block_size; in st_flush_write_buffer()
782 cmd[2] = blks >> 16; in st_flush_write_buffer()
783 cmd[3] = blks >> 8; in st_flush_write_buffer()
784 cmd[4] = blks; in st_flush_write_buffer()
805 STps->drv_block += blks; in st_flush_write_buffer()
814 STps->drv_block += blks; in st_flush_write_buffer()
1623 ssize_t i, do_count, blks, transfer; in st_write() local
1761 blks = transfer = do_count; in st_write()
1764 blks = STbp->buffer_bytes; in st_write()
[all …]
Dosst.c3054 int offset, transfer, blks = 0; in osst_flush_write_buffer() local
3093 blks = (offset + STp->block_size - 1) / STp->block_size; in osst_flush_write_buffer()
3113 name, blks, STp->frame_seq_number, in osst_flush_write_buffer()
3114 STp->logical_blk_num - blks, STp->logical_blk_num - 1); in osst_flush_write_buffer()
3117 STp->logical_blk_num - blks, STp->block_size, blks); in osst_flush_write_buffer()
3125 STp->logical_blk_num++, 0, blks=1); in osst_flush_write_buffer()
3128 osst_init_aux(STp, OS_FRAME_TYPE_HEADER, 0, 0, 0, blks=0); in osst_flush_write_buffer()
3136 name, offset, transfer, blks); in osst_flush_write_buffer()
3248 int blks; in osst_write_frame() local
3283 blks = STp->buffer->buffer_bytes / STp->block_size; in osst_write_frame()
[all …]
/drivers/net/wireless/ti/wlcore/
Dhw_ops.h39 u32 blks, u32 spare_blks) in wlcore_hw_set_tx_desc_blocks() argument
44 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
Dwlcore.h63 u32 blks, u32 spare_blks);
/drivers/nvme/host/
Dlightnvm.c391 u8 *blks) in nvme_nvm_get_bb_tbl() argument
439 memcpy(blks, bb_tbl->blk, nvmdev->blks_per_lun * nvmdev->plane_mode); in nvme_nvm_get_bb_tbl()
/drivers/net/wireless/ti/wl12xx/
Dmain.c1312 u32 blks, u32 spare_blks) in wl12xx_set_tx_desc_blocks() argument
1315 desc->wl128x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks()
1318 desc->wl127x_mem.total_mem_blocks = blks; in wl12xx_set_tx_desc_blocks()
/drivers/net/wireless/ti/wl18xx/
Dmain.c1085 u32 blks, u32 spare_blks) in wl18xx_set_tx_desc_blocks() argument
1087 desc->wl18xx_mem.total_mem_blocks = blks; in wl18xx_set_tx_desc_blocks()
/drivers/net/ethernet/broadcom/
Dcnic.c1195 int total_mem, blks, i; in cnic_alloc_bnx2x_context() local
1198 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1200 blks++; in cnic_alloc_bnx2x_context()
1202 if (blks > cp->ethdev->ctx_tbl_len) in cnic_alloc_bnx2x_context()
1205 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL); in cnic_alloc_bnx2x_context()
1209 cp->ctx_blks = blks; in cnic_alloc_bnx2x_context()
1218 for (i = 0; i < blks; i++) { in cnic_alloc_bnx2x_context()