| /drivers/mtd/ |
| A D | rfd_ftl.c | 75 u_int total_blocks; /* number of erase units */ member 159 part->total_blocks = (u32)part->mbd.mtd->size / part->block_size; in scan_header() 161 if (part->total_blocks < 2) in scan_header() 176 (part->total_blocks - 1) - 1) / SECTORS_PER_TRACK; in scan_header() 188 part->blocks = kcalloc(part->total_blocks, sizeof(struct block), in scan_header() 201 for (i=0, blocks_found=0; i<part->total_blocks; i++) { in scan_header() 422 for (block=0; block<part->total_blocks; block++) { in reclaim_block() 484 jiffies % part->total_blocks : part->current_block; in find_free_block() 495 if (++block >= part->total_blocks) in find_free_block() 798 for (i=0; i<part->total_blocks; i++) { in rfd_ftl_remove_dev()
|
| /drivers/staging/media/atomisp/pci/isp/kernels/bnlm/ |
| A D | ia_css_bnlm.host.c | 41 const u32 total_blocks = ISP_VEC_NELEMS / block_size; in bnlm_lut_encode() local 61 for (i = 0; i < total_blocks * block_size; i++) { in bnlm_lut_encode() 74 for (blk = 1; blk < total_blocks; blk++) { in bnlm_lut_encode()
|
| /drivers/infiniband/hw/mlx5/ |
| A D | umr.c | 700 size_t total_blocks; in _mlx5r_umr_update_mr_pas() local 708 total_blocks = ib_umem_num_dma_blocks(mr->umem, 1UL << mr->page_shift); in _mlx5r_umr_update_mr_pas() 709 if (start_block > total_blocks) in _mlx5r_umr_update_mr_pas() 714 total_blocks = nblocks; in _mlx5r_umr_update_mr_pas() 716 entry = mlx5r_umr_create_xlt(dev, &sg, total_blocks, ent_size, flags); in _mlx5r_umr_update_mr_pas() 1086 size_t total_blocks; in mlx5r_umr_dmabuf_update_pgsz() local 1097 total_blocks = ib_umem_num_dma_blocks(mr->umem, 1UL << mr->page_shift); in mlx5r_umr_dmabuf_update_pgsz() 1098 if (zapped_blocks && zapped_blocks < total_blocks) { in mlx5r_umr_dmabuf_update_pgsz() 1106 total_blocks - zapped_blocks, in mlx5r_umr_dmabuf_update_pgsz()
|
| /drivers/net/wireless/ti/wlcore/ |
| A D | tx.c | 193 u32 total_blocks; in wl1271_tx_allocate() local 207 total_blocks = wlcore_hw_calc_tx_blocks(wl, total_len, spare_blocks); in wl1271_tx_allocate() 209 if (total_blocks <= wl->tx_blocks_available) { in wl1271_tx_allocate() 212 wlcore_hw_set_tx_desc_blocks(wl, desc, total_blocks, in wl1271_tx_allocate() 217 wl->tx_blocks_available -= total_blocks; in wl1271_tx_allocate() 218 wl->tx_allocated_blocks += total_blocks; in wl1271_tx_allocate() 225 if (wl->tx_allocated_blocks == total_blocks || in wl1271_tx_allocate() 239 total_len, total_blocks, id); in wl1271_tx_allocate()
|
| /drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_3.0/ |
| A D | ia_css_xnr3.host.c | 188 const unsigned int total_blocks = 4; in ia_css_xnr3_vmem_encode() local 220 for (i = 0; i < total_blocks; i++) { in ia_css_xnr3_vmem_encode()
|
| /drivers/md/dm-vdo/indexer/ |
| A D | index-layout.c | 200 u64 total_blocks; member 212 u64 total_blocks; member 246 sls->total_blocks = 3 + sls->sub_index_blocks; in compute_sizes() 247 sls->total_size = sls->total_blocks * sls->block_size; in compute_sizes() 406 layout->total_blocks = sls->total_blocks; in initialize_layout() 672 .region_blocks = layout->total_blocks, in make_layout_region_table() 1319 layout->total_blocks = table->header.region_blocks; in reconstitute_layout() 1345 if (++next_block != (first_block + layout->total_blocks)) { in reconstitute_layout()
|
| /drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
| A D | ia_css_eed1_8.host.c | 86 const unsigned int total_blocks = 4; in ia_css_eed1_8_vmem_encode() local 162 for (i = 0; i < total_blocks; i++) { in ia_css_eed1_8_vmem_encode()
|
| /drivers/infiniband/hw/hfi1/ |
| A D | pio.c | 184 int total_blocks = (chip_pio_mem_size(dd) / PIO_BLOCK_SIZE) - 1; in init_sc_pools_and_sizes() local 261 if (ab_total > total_blocks) { in init_sc_pools_and_sizes() 265 ab_total, total_blocks); in init_sc_pools_and_sizes() 328 if (fixed_blocks > total_blocks) { in init_sc_pools_and_sizes() 332 fixed_blocks, total_blocks); in init_sc_pools_and_sizes() 337 pool_blocks = total_blocks - fixed_blocks; in init_sc_pools_and_sizes() 392 extra = total_blocks - used_blocks; in init_sc_pools_and_sizes()
|
| /drivers/platform/mellanox/ |
| A D | mlxbf-pmc.c | 157 u32 total_blocks; member 2158 for (i = 0; i < pmc->total_blocks; ++i) { in mlxbf_pmc_map_counters() 2313 ret = device_property_read_u32(dev, "block_num", &pmc->total_blocks); in mlxbf_pmc_probe() 2319 pmc->total_blocks); in mlxbf_pmc_probe() 2320 if (ret != pmc->total_blocks) in mlxbf_pmc_probe()
|
| /drivers/usb/gadget/function/ |
| A D | f_midi2.c | 146 unsigned int total_blocks; /* total number of blocks of all EPs */ member 1359 len = sizeof(gtb_header_desc) + sizeof(gtb_desc) * midi2->total_blocks; in assign_block_descriptors() 1948 midi2->total_blocks + 1); in f_midi2_bind() 2847 bp->gtb_id = ++midi2->total_blocks; in f_midi2_alloc() 2851 midi2->string_defs = kcalloc(midi2->total_blocks + 1, in f_midi2_alloc()
|
| /drivers/scsi/ |
| A D | hpsa_cmd.h | 725 __le32 total_blocks; /* number for sectors on drive */ member
|
| /drivers/scsi/smartpqi/ |
| A D | smartpqi.h | 1523 __le32 total_blocks; /* number for sectors on drive */ member
|
| /drivers/scsi/aacraid/ |
| A D | aacraid.h | 336 u32 total_blocks; /* number for sectors on drive */ member
|