Home
last modified time | relevance | path

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

/Linux-v5.4/fs/squashfs/
Dsuper.c70 struct squashfs_sb_info *msblk; in squashfs_fill_super() local
81 sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL); in squashfs_fill_super()
86 msblk = sb->s_fs_info; in squashfs_fill_super()
88 msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE); in squashfs_fill_super()
89 msblk->devblksize_log2 = ffz(~msblk->devblksize); in squashfs_fill_super()
91 mutex_init(&msblk->meta_index_mutex); in squashfs_fill_super()
99 msblk->bytes_used = sizeof(*sblk); in squashfs_fill_super()
121 msblk->decompressor = supported_squashfs_filesystem( in squashfs_fill_super()
126 if (msblk->decompressor == NULL) in squashfs_fill_super()
131 msblk->bytes_used = le64_to_cpu(sblk->bytes_used); in squashfs_fill_super()
[all …]
Dfile.c51 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in locate_meta_index() local
54 mutex_lock(&msblk->meta_index_mutex); in locate_meta_index()
58 if (msblk->meta_index == NULL) in locate_meta_index()
62 if (msblk->meta_index[i].inode_number == inode->i_ino && in locate_meta_index()
63 msblk->meta_index[i].offset >= offset && in locate_meta_index()
64 msblk->meta_index[i].offset <= index && in locate_meta_index()
65 msblk->meta_index[i].locked == 0) { in locate_meta_index()
67 msblk->meta_index[i].offset); in locate_meta_index()
68 meta = &msblk->meta_index[i]; in locate_meta_index()
77 mutex_unlock(&msblk->meta_index_mutex); in locate_meta_index()
[all …]
Ddecompressor_multi_percpu.c26 void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, in squashfs_decompressor_create() argument
39 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
53 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create()
59 void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) in squashfs_decompressor_destroy() argument
62 (struct squashfs_stream __percpu *) msblk->stream; in squashfs_decompressor_destroy()
66 if (msblk->stream) { in squashfs_decompressor_destroy()
69 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
75 int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, in squashfs_decompress() argument
79 (struct squashfs_stream __percpu *) msblk->stream; in squashfs_decompress()
81 int res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, in squashfs_decompress()
[all …]
Ddecompressor_single.c27 void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, in squashfs_decompressor_create() argument
37 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
52 void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) in squashfs_decompressor_destroy() argument
54 struct squashfs_stream *stream = msblk->stream; in squashfs_decompressor_destroy()
57 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
62 int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, in squashfs_decompress() argument
66 struct squashfs_stream *stream = msblk->stream; in squashfs_decompress()
69 res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, in squashfs_decompress()
75 msblk->decompressor->name); in squashfs_decompress()
Dblock.c36 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_block_length() local
43 if (msblk->devblksize - *offset == 1) { in get_block_length()
56 if (*offset == msblk->devblksize) { in get_block_length()
81 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_data() local
83 int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data()
84 u64 cur_index = index >> msblk->devblksize_log2; in squashfs_read_data()
87 bh = kcalloc(((output->length + msblk->devblksize - 1) in squashfs_read_data()
88 >> msblk->devblksize_log2) + 1, sizeof(*bh), GFP_KERNEL); in squashfs_read_data()
106 (index + length) > msblk->bytes_used) in squashfs_read_data()
113 bytes += msblk->devblksize; in squashfs_read_data()
[all …]
Ddecompressor_multi.c62 void *squashfs_decompressor_create(struct squashfs_sb_info *msblk, in squashfs_decompressor_create() argument
88 decomp_strm->stream = msblk->decompressor->init(msblk, in squashfs_decompressor_create()
106 void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) in squashfs_decompressor_destroy() argument
108 struct squashfs_stream *stream = msblk->stream; in squashfs_decompressor_destroy()
116 msblk->decompressor->free(decomp_strm->stream); in squashfs_decompressor_destroy()
127 static struct decomp_stream *get_decomp_stream(struct squashfs_sb_info *msblk, in get_decomp_stream() argument
156 decomp_strm->stream = msblk->decompressor->init(msblk, in get_decomp_stream()
183 int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, in squashfs_decompress() argument
187 struct squashfs_stream *stream = msblk->stream; in squashfs_decompress()
188 struct decomp_stream *decomp_stream = get_decomp_stream(msblk, stream); in squashfs_decompress()
[all …]
Ddecompressor.h25 static inline void *squashfs_comp_opts(struct squashfs_sb_info *msblk, in squashfs_comp_opts() argument
28 return msblk->decompressor->comp_opts ? in squashfs_comp_opts()
29 msblk->decompressor->comp_opts(msblk, buff, length) : NULL; in squashfs_comp_opts()
Dlz4_wrapper.c32 static void *lz4_comp_opts(struct squashfs_sb_info *msblk, in lz4_comp_opts() argument
52 static void *lz4_init(struct squashfs_sb_info *msblk, void *buff) in lz4_init() argument
54 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lz4_init()
91 static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, in lz4_uncompress() argument
100 avail = min(bytes, msblk->devblksize - offset); in lz4_uncompress()
Ddecompressor.c90 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_comp_opts() local
120 comp_opts = squashfs_comp_opts(msblk, buffer, length); in get_comp_opts()
131 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_decompressor_setup() local
137 stream = squashfs_decompressor_create(msblk, comp_opts); in squashfs_decompressor_setup()
Dxz_wrapper.c38 static void *squashfs_xz_comp_opts(struct squashfs_sb_info *msblk, in squashfs_xz_comp_opts() argument
69 opts->dict_size = max_t(int, msblk->block_size, in squashfs_xz_comp_opts()
81 static void *squashfs_xz_init(struct squashfs_sb_info *msblk, void *buff) in squashfs_xz_init() argument
119 static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void *strm, in squashfs_xz_uncompress() argument
136 avail = min(length, msblk->devblksize - offset); in squashfs_xz_uncompress()
Dlzo_wrapper.c28 static void *lzo_init(struct squashfs_sb_info *msblk, void *buff) in lzo_init() argument
30 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lzo_init()
65 static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, in lzo_uncompress() argument
75 avail = min(bytes, msblk->devblksize - offset); in lzo_uncompress()
Dfragment.c38 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_frag_lookup() local
43 if (fragment >= msblk->fragments) in squashfs_frag_lookup()
48 start_block = le64_to_cpu(msblk->fragment_index[block]); in squashfs_frag_lookup()
Dnamei.c68 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_dir_index_using_name() local
109 msblk->directory_table; in get_dir_index_using_name()
132 struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info; in squashfs_lookup() local
135 u64 block = squashfs_i(dir)->start + msblk->directory_table; in squashfs_lookup()
227 squashfs_i(dir)->start + msblk->directory_table, in squashfs_lookup()
Dzstd_wrapper.c29 static void *zstd_init(struct squashfs_sb_info *msblk, void *buff) in zstd_init() argument
36 msblk->block_size, SQUASHFS_METADATA_SIZE); in zstd_init()
61 static int zstd_uncompress(struct squashfs_sb_info *msblk, void *strm, in zstd_uncompress() argument
85 int avail = min(length, msblk->devblksize - offset); in zstd_uncompress()
Dxattr.c31 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_listxattr() local
33 + msblk->xattr_table; in squashfs_listxattr()
40 if (msblk->xattr_id_table == NULL) in squashfs_listxattr()
109 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_xattr_get() local
111 + msblk->xattr_table; in squashfs_xattr_get()
162 msblk->xattr_table; in squashfs_xattr_get()
Ddir.c42 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_dir_index_using_offset() local
85 msblk->directory_table; in get_dir_index_using_offset()
100 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in squashfs_readdir() local
101 u64 block = squashfs_i(inode)->start + msblk->directory_table; in squashfs_readdir()
Dcache.c334 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_metadata() local
344 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0); in squashfs_read_metadata()
382 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_fragment() local
384 return squashfs_cache_get(sb, msblk->fragment_cache, start_block, in squashfs_get_fragment()
397 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_datablock() local
399 return squashfs_cache_get(sb, msblk->read_page, start_block, length); in squashfs_get_datablock()
Did.c35 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_id() local
38 u64 start_block = le64_to_cpu(msblk->id_table[block]); in squashfs_get_id()
Dxattr_id.c31 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_xattr_lookup() local
34 u64 start_block = le64_to_cpu(msblk->xattr_id_table[block]); in squashfs_xattr_lookup()
Dsymlink.c37 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_symlink_readpage() local
71 entry = squashfs_cache_get(sb, msblk->block_cache, block, 0); in squashfs_symlink_readpage()
Dzlib_wrapper.c52 static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm, in zlib_uncompress() argument
65 int avail = min(length, msblk->devblksize - offset); in zlib_uncompress()
Dexport.c41 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_inode_lookup() local
44 u64 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup()
Dfile_direct.c30 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in squashfs_readpage_block() local
33 int mask = (1 << (msblk->block_log - PAGE_SHIFT)) - 1; in squashfs_readpage_block()
Dinode.c103 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_inode() local
104 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
124 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
394 if (xattr_id != SQUASHFS_INVALID_XATTR && msblk->xattr_id_table) { in squashfs_read_inode()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dcnic.c4797 struct status_block_msix *msblk = cp->status_blk.bnx2; in cnic_start_bnx2_hw() local
4802 &msblk->status_completion_producer_index; in cnic_start_bnx2_hw()
4803 cp->kcq1.status_idx_ptr = &msblk->status_idx; in cnic_start_bnx2_hw()
4804 cp->kwq_con_idx_ptr = &msblk->status_cmd_consumer_index; in cnic_start_bnx2_hw()