Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 82) sorted by relevance

1234

/linux-4.19.296/drivers/s390/char/
Dtape_char.c98 tapechar_check_idalbuffer(struct tape_device *device, size_t block_size) in tapechar_check_idalbuffer() argument
103 device->char_data.idal_buf->size == block_size) in tapechar_check_idalbuffer()
106 if (block_size > MAX_BLOCKSIZE) { in tapechar_check_idalbuffer()
108 block_size, MAX_BLOCKSIZE); in tapechar_check_idalbuffer()
113 new = idal_buffer_alloc(block_size, 0); in tapechar_check_idalbuffer()
133 size_t block_size; in tapechar_read() local
149 if (device->char_data.block_size != 0) { in tapechar_read()
150 if (count < device->char_data.block_size) { in tapechar_read()
155 block_size = device->char_data.block_size; in tapechar_read()
157 block_size = count; in tapechar_read()
[all …]
Dtape_proc.c61 if (device->char_data.block_size == 0) in tape_proc_show()
64 seq_printf(m, "%i\t", device->char_data.block_size); in tape_proc_show()
Dsclp_cmd.c385 unsigned long long start, size, addr, block_size; in add_memory_merged() local
404 block_size = memory_block_size_bytes(); in add_memory_merged()
405 align_to_block_size(&start, &size, block_size); in add_memory_merged()
408 for (addr = start; addr < start + size; addr += block_size) in add_memory_merged()
409 add_memory(numa_pfn_to_nid(PFN_DOWN(addr)), addr, block_size); in add_memory_merged()
/linux-4.19.296/fs/befs/
Dsuper.c34 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
76 if ((befs_sb->block_size != 1024) in befs_check_sb()
77 && (befs_sb->block_size != 2048) in befs_check_sb()
78 && (befs_sb->block_size != 4096) in befs_check_sb()
79 && (befs_sb->block_size != 8192)) { in befs_check_sb()
80 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
84 if (befs_sb->block_size > PAGE_SIZE) { in befs_check_sb()
86 "than system pagesize(%lu)", befs_sb->block_size, in befs_check_sb()
96 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb()
Dbefs.h34 u32 block_size; member
145 return BEFS_SB(sb)->block_size / sizeof(befs_disk_inode_addr); in befs_iaddrs_per_block()
Ddatastream.c148 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ? in befs_read_lsymlink()
149 BEFS_SB(sb)->block_size : len - bytes_read; in befs_read_lsymlink()
182 if (ds->size & (befs_sb->block_size - 1)) in befs_count_blocks()
208 dbl_bytes / (befs_sb->block_size * BEFS_DBLINDIR_BRUN_LEN); in befs_count_blocks()
/linux-4.19.296/fs/nfsd/
Dblocklayoutxdr.c116 u32 block_size) in nfsd4_block_decode_layoutupdate() argument
151 if (bex.foff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
157 if (bex.len & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
163 if (bex.soff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
188 u32 block_size) in nfsd4_scsi_decode_layoutupdate() argument
216 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
223 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
Dblocklayoutxdr.h58 u32 block_size);
60 u32 block_size);
/linux-4.19.296/fs/squashfs/
Dlzo_wrapper.c43 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lzo_init() local
48 stream->input = vmalloc(block_size); in lzo_init()
51 stream->output = vmalloc(block_size); in lzo_init()
Dlz4_wrapper.c56 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lz4_init() local
62 stream->input = vmalloc(block_size); in lz4_init()
65 stream->output = vmalloc(block_size); in lz4_init()
Dsuper.c147 msblk->block_size = le32_to_cpu(sblk->block_size); in squashfs_fill_super()
148 if (msblk->block_size > SQUASHFS_FILE_MAX_SIZE) in squashfs_fill_super()
155 if (PAGE_SIZE > msblk->block_size) { in squashfs_fill_super()
157 "currently not supported!\n", msblk->block_size); in squashfs_fill_super()
167 if (msblk->block_size != (1 << msblk->block_log)) in squashfs_fill_super()
188 TRACE("Block size %d\n", msblk->block_size); in squashfs_fill_super()
212 squashfs_max_decompressors(), msblk->block_size); in squashfs_fill_super()
281 SQUASHFS_CACHED_FRAGMENTS, msblk->block_size); in squashfs_fill_super()
361 buf->f_bsize = msblk->block_size; in squashfs_statfs()
Dsquashfs_fs_sb.h35 int block_size; member
74 unsigned int block_size; member
Dcache.c237 int block_size) in squashfs_cache_init() argument
257 cache->block_size = block_size; in squashfs_cache_init()
258 cache->pages = block_size >> PAGE_SHIFT; in squashfs_cache_init()
/linux-4.19.296/fs/isofs/
Dcompress.c54 int i, block_size = block_end - block_start; in zisofs_uncompress_block() local
59 int needblocks = (block_size + (block_start & bufmask) + bufmask) in zisofs_uncompress_block()
66 if (block_size > deflateBound(1UL << zisofs_block_shift)) { in zisofs_uncompress_block()
71 if (block_size == 0) { in zisofs_uncompress_block()
147 block_size); in zisofs_uncompress_block()
148 block_size -= stream.avail_in; in zisofs_uncompress_block()
/linux-4.19.296/fs/reiserfs/
Dtail_conversion.c213 unsigned long block_size = sb->s_blocksize; in indirect2direct() local
228 tail_len = (n_new_file_size & (block_size - 1)); in indirect2direct()
294 return block_size - round_tail_len; in indirect2direct()
317 return block_size - round_tail_len; in indirect2direct()
Ditem_ops.c19 static int sd_bytes_number(struct item_head *ih, int block_size) in sd_bytes_number() argument
114 static int direct_bytes_number(struct item_head *ih, int block_size) in direct_bytes_number() argument
205 static int indirect_bytes_number(struct item_head *ih, int block_size) in indirect_bytes_number() argument
207 return ih_item_len(ih) / UNFM_P_SIZE * block_size; in indirect_bytes_number()
349 static int direntry_bytes_number(struct item_head *ih, int block_size) in direntry_bytes_number() argument
636 static int errcatch_bytes_number(struct item_head *ih, int block_size) in errcatch_bytes_number() argument
/linux-4.19.296/drivers/misc/c2port/
Dcore.c331 return sprintf(buf, "%d\n", ops->block_size); in c2port_show_flash_block_size()
341 return sprintf(buf, "%d\n", ops->blocks_num * ops->block_size); in c2port_show_flash_size()
637 if (offset >= ops->block_size * ops->blocks_num) in __c2port_read_flash_data()
640 if (ops->block_size * ops->blocks_num - offset < nread) in __c2port_read_flash_data()
641 nread = ops->block_size * ops->blocks_num - offset; in __c2port_read_flash_data()
749 if (ops->block_size * ops->blocks_num - offset < nwrite) in __c2port_write_flash_data()
750 nwrite = ops->block_size * ops->blocks_num - offset; in __c2port_write_flash_data()
753 if (offset >= ops->block_size * ops->blocks_num) in __c2port_write_flash_data()
919 bin_attr_flash_data.size = ops->blocks_num * ops->block_size; in c2port_device_register()
940 name, ops->blocks_num, ops->block_size, in c2port_device_register()
[all …]
/linux-4.19.296/fs/ntfs/
Ddir.c358 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
365 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name()
368 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name()
378 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
836 dir_ni->itype.index.block_size) {
843 dir_ni->itype.index.block_size);
846 index_end = (u8*)ia + dir_ni->itype.index.block_size;
856 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) {
1311 ~(s64)(ndir->itype.index.block_size - 1))); in ntfs_readdir()
1327 ~(s64)(ndir->itype.index.block_size - 1)) >> in ntfs_readdir()
[all …]
Dinode.c410 ni->itype.index.block_size = 0; in __ntfs_init_inode()
862 ni->itype.index.block_size = le32_to_cpu(ir->index_block_size); in ntfs_read_locked_inode()
863 if (ni->itype.index.block_size & in ntfs_read_locked_inode()
864 (ni->itype.index.block_size - 1)) { in ntfs_read_locked_inode()
867 ni->itype.index.block_size); in ntfs_read_locked_inode()
870 if (ni->itype.index.block_size > PAGE_SIZE) { in ntfs_read_locked_inode()
874 ni->itype.index.block_size, in ntfs_read_locked_inode()
879 if (ni->itype.index.block_size < NTFS_BLOCK_SIZE) { in ntfs_read_locked_inode()
883 ni->itype.index.block_size, in ntfs_read_locked_inode()
889 ffs(ni->itype.index.block_size) - 1; in ntfs_read_locked_inode()
[all …]
Dindex.c315 idx_ni->itype.index.block_size) { in ntfs_index_lookup()
322 idx_ni->itype.index.block_size); in ntfs_index_lookup()
325 index_end = (u8*)ia + idx_ni->itype.index.block_size; in ntfs_index_lookup()
335 if (index_end > (u8*)ia + idx_ni->itype.index.block_size) { in ntfs_index_lookup()
/linux-4.19.296/fs/ufs/
Dsuper.c786 unsigned block_size, super_block_size; in ufs_fill_super() local
848 uspi->s_fsize = block_size = 512; in ufs_fill_super()
858 uspi->s_fsize = block_size = 512; in ufs_fill_super()
868 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
879 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
891 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
902 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
917 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
933 uspi->s_fsize = block_size = 2048; in ufs_fill_super()
949 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
[all …]
/linux-4.19.296/drivers/media/usb/gspca/
Djl2005bcd.c45 int block_size; /* block size of camera */ member
358 bytes_left = buffer[0x07] * dev->block_size - act_len; in jl2005c_dostream()
429 sd->block_size = 0x80; in sd_config()
433 sd->block_size = 0x200; in sd_config()
/linux-4.19.296/fs/pstore/
Dram_core.c128 int ecc_block_size = prz->ecc_info.block_size; in persistent_ram_update_ecc()
171 int size = prz->ecc_info.block_size; in persistent_ram_ecc_old()
182 block += prz->ecc_info.block_size; in persistent_ram_ecc_old()
198 prz->ecc_info.block_size = ecc_info->block_size ?: 128; in persistent_ram_init_ecc()
204 prz->ecc_info.block_size + in persistent_ram_init_ecc()
/linux-4.19.296/drivers/memstick/core/
Dms_block.h80 unsigned short block_size; member
174 int block_size; member
/linux-4.19.296/include/linux/platform_data/
Ddma-dw.h65 unsigned int block_size; member

1234