Home
last modified time | relevance | path

Searched refs:total_blocks (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/fs/hfsplus/
Dextents.c401 u32 total_blocks, blocks, start; in hfsplus_free_fork() local
404 total_blocks = be32_to_cpu(fork->total_blocks); in hfsplus_free_fork()
405 if (!total_blocks) in hfsplus_free_fork()
415 if (total_blocks == blocks) in hfsplus_free_fork()
423 total_blocks, type); in hfsplus_free_fork()
430 hfsplus_free_extents(sb, ext_entry, total_blocks - start, in hfsplus_free_fork()
431 total_blocks); in hfsplus_free_fork()
432 total_blocks = start; in hfsplus_free_fork()
434 } while (total_blocks > blocks); in hfsplus_free_fork()
449 sbi->total_blocks - sbi->free_blocks + 8) { in hfsplus_file_extend()
[all …]
Dsuper.c318 buf->f_blocks = sbi->total_blocks << sbi->fs_shift; in hfsplus_statfs()
428 sbi->total_blocks = be32_to_cpu(vhdr->total_blocks); in hfsplus_fill_super()
443 last_fs_block = sbi->total_blocks - 1; in hfsplus_fill_super()
485 if (vhdr->attr_file.total_blocks != 0) { in hfsplus_fill_super()
Dhfsplus_raw.h99 __be32 total_blocks; member
120 __be32 total_blocks; member
Dbitmap.c179 if ((offset + count) > sbi->total_blocks) in hfsplus_block_free()
Dinode.c465 hip->alloc_blocks = be32_to_cpu(fork->total_blocks); in hfsplus_inode_read_fork()
485 fork->total_blocks = cpu_to_be32(HFSPLUS_I(inode)->alloc_blocks); in hfsplus_inode_write_fork()
Dhfsplus_fs.h166 u32 total_blocks; member
/Linux-v5.4/fs/hfs/
Dextent.c290 u32 total_blocks, blocks, start; in hfs_free_fork() local
296 total_blocks = be32_to_cpu(file->PyLen); in hfs_free_fork()
299 total_blocks = be32_to_cpu(file->RPyLen); in hfs_free_fork()
302 total_blocks /= HFS_SB(sb)->alloc_blksz; in hfs_free_fork()
303 if (!total_blocks) in hfs_free_fork()
313 if (total_blocks == blocks) in hfs_free_fork()
320 res = __hfs_ext_read_extent(&fd, extent, cnid, total_blocks, type); in hfs_free_fork()
324 hfs_free_extents(sb, extent, total_blocks - start, total_blocks); in hfs_free_fork()
326 total_blocks = start; in hfs_free_fork()
327 } while (total_blocks > blocks); in hfs_free_fork()
/Linux-v5.4/drivers/mtd/
Drfd_ftl.c75 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()
204 for (i=0, blocks_found=0; i<part->total_blocks; i++) { in scan_header()
425 for (block=0; block<part->total_blocks; block++) { in reclaim_block()
487 jiffies % part->total_blocks : part->current_block; in find_free_block()
498 if (++block >= part->total_blocks) in find_free_block()
772 for (i=0; i<part->total_blocks; i++) { in rfd_ftl_remove_dev()
/Linux-v5.4/include/uapi/linux/
Defs_fs_sb.h54 __u32 total_blocks; /* total number of blocks in filesystem */ member
/Linux-v5.4/drivers/net/wireless/ti/wlcore/
Dtx.c196 u32 total_blocks; in wl1271_tx_allocate() local
210 total_blocks = wlcore_hw_calc_tx_blocks(wl, total_len, spare_blocks); in wl1271_tx_allocate()
212 if (total_blocks <= wl->tx_blocks_available) { in wl1271_tx_allocate()
215 wlcore_hw_set_tx_desc_blocks(wl, desc, total_blocks, in wl1271_tx_allocate()
220 wl->tx_blocks_available -= total_blocks; in wl1271_tx_allocate()
221 wl->tx_allocated_blocks += total_blocks; in wl1271_tx_allocate()
228 if (wl->tx_allocated_blocks == total_blocks || in wl1271_tx_allocate()
242 total_len, total_blocks, id); in wl1271_tx_allocate()
/Linux-v5.4/drivers/lightnvm/
Dpblk-sysfs.c53 int free_blocks, free_user_blocks, total_blocks; in pblk_sysfs_rate_limiter() local
66 total_blocks = pblk->rl.total_blocks; in pblk_sysfs_rate_limiter()
79 total_blocks, in pblk_sysfs_rate_limiter()
Dpblk.h294 unsigned long total_blocks; member
Dpblk-init.c689 pblk->rl.total_blocks = nr_free_chks; in pblk_set_provision()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dpio.c226 int total_blocks = (chip_pio_mem_size(dd) / PIO_BLOCK_SIZE) - 1; in init_sc_pools_and_sizes() local
303 if (ab_total > total_blocks) { in init_sc_pools_and_sizes()
307 ab_total, total_blocks); in init_sc_pools_and_sizes()
370 if (fixed_blocks > total_blocks) { in init_sc_pools_and_sizes()
374 fixed_blocks, total_blocks); in init_sc_pools_and_sizes()
379 pool_blocks = total_blocks - fixed_blocks; in init_sc_pools_and_sizes()
434 extra = total_blocks - used_blocks; in init_sc_pools_and_sizes()
/Linux-v5.4/fs/efs/
Dsuper.c239 sb->total_blocks = be32_to_cpu(super->fs_size); in efs_validate_super()
/Linux-v5.4/drivers/scsi/
Dhpsa_cmd.h711 __le32 total_blocks; /* number for sectors on drive */ member
/Linux-v5.4/fs/ocfs2/
Dsuper.c2003 u64 total_blocks; in ocfs2_initialize_super() local
2219 total_blocks = ocfs2_clusters_to_blocks(osb->sb, in ocfs2_initialize_super()
2223 total_blocks); in ocfs2_initialize_super()
/Linux-v5.4/drivers/scsi/smartpqi/
Dsmartpqi.h1256 __le32 total_blocks; /* number for sectors on drive */ member
/Linux-v5.4/drivers/scsi/aacraid/
Daacraid.h334 u32 total_blocks; /* number for sectors on drive */ member