Home
last modified time | relevance | path

Searched refs:bsize (Results 1 – 136 of 136) sorted by relevance

/linux-4.4.14/crypto/
Dcts.c80 int bsize = crypto_blkcipher_blocksize(desc->tfm); in cts_cbc_encrypt() local
81 u8 tmp[bsize], tmp2[bsize]; in cts_cbc_encrypt()
84 int lastn = nbytes - bsize; in cts_cbc_encrypt()
85 u8 iv[bsize]; in cts_cbc_encrypt()
86 u8 s[bsize * 2], d[bsize * 2]; in cts_cbc_encrypt()
98 memcpy(iv, desc->info, bsize); in cts_cbc_encrypt()
104 sg_set_buf(&sgsrc[0], s, bsize); in cts_cbc_encrypt()
105 sg_set_buf(&sgdst[0], tmp, bsize); in cts_cbc_encrypt()
106 err = crypto_blkcipher_encrypt_iv(&lcldesc, sgdst, sgsrc, bsize); in cts_cbc_encrypt()
108 memcpy(d + bsize, tmp, lastn); in cts_cbc_encrypt()
[all …]
Dpcbc.c51 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_segment() local
58 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment()
60 memcpy(iv, dst, bsize); in crypto_pcbc_encrypt_segment()
61 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment()
63 src += bsize; in crypto_pcbc_encrypt_segment()
64 dst += bsize; in crypto_pcbc_encrypt_segment()
65 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_segment()
76 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_inplace() local
80 u8 tmpbuf[bsize]; in crypto_pcbc_encrypt_inplace()
83 memcpy(tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace()
[all …]
Dcbc.c48 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_encrypt_segment() local
55 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
57 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
59 src += bsize; in crypto_cbc_encrypt_segment()
60 dst += bsize; in crypto_cbc_encrypt_segment()
61 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
72 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_encrypt_inplace() local
78 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
82 src += bsize; in crypto_cbc_encrypt_inplace()
83 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
[all …]
Dctr.c58 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_final() local
61 u8 tmp[bsize + alignmask]; in crypto_ctr_crypt_final()
71 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_final()
79 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_segment() local
88 crypto_xor(dst, src, bsize); in crypto_ctr_crypt_segment()
91 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_segment()
93 src += bsize; in crypto_ctr_crypt_segment()
94 dst += bsize; in crypto_ctr_crypt_segment()
95 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_segment()
105 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_inplace() local
[all …]
Dlrw.c84 int err, bsize = LRW_BLOCK_SIZE; in setkey() local
85 const u8 *tweak = key + keylen - bsize; in setkey()
90 err = crypto_cipher_setkey(child, key, keylen - bsize); in setkey()
221 const unsigned int bsize = LRW_BLOCK_SIZE; in lrw_crypt() local
222 const unsigned int max_blks = req->tbuflen / bsize; in lrw_crypt()
239 nblocks = min(walk.nbytes / bsize, max_blks); in lrw_crypt()
270 nblocks * bsize); in lrw_crypt()
278 nbytes -= nblocks * bsize; in lrw_crypt()
279 nblocks = min(nbytes / bsize, max_blks); in lrw_crypt()
287 nblocks = min(nbytes / bsize, max_blks); in lrw_crypt()
Decb.c46 int bsize = crypto_cipher_blocksize(tfm); in crypto_ecb_crypt() local
59 wsrc += bsize; in crypto_ecb_crypt()
60 wdst += bsize; in crypto_ecb_crypt()
61 } while ((nbytes -= bsize) >= bsize); in crypto_ecb_crypt()
Dxts.c173 const unsigned int bsize = XTS_BLOCK_SIZE; in xts_crypt() local
174 const unsigned int max_blks = req->tbuflen / bsize; in xts_crypt()
190 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()
213 nblocks * bsize); in xts_crypt()
221 nbytes -= nblocks * bsize; in xts_crypt()
222 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()
232 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()
Dablkcipher.c77 unsigned int bsize) in ablkcipher_done_slow() argument
79 unsigned int n = bsize; in ablkcipher_done_slow()
93 return bsize; in ablkcipher_done_slow()
151 unsigned int bsize, in ablkcipher_next_slow() argument
155 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); in ablkcipher_next_slow()
171 src = dst = ablkcipher_get_spot(dst, bsize); in ablkcipher_next_slow()
173 p->len = bsize; in ablkcipher_next_slow()
176 scatterwalk_copychunks(src, &walk->in, bsize, 0); in ablkcipher_next_slow()
180 walk->nbytes = bsize; in ablkcipher_next_slow()
229 unsigned int alignmask, bsize, n; in ablkcipher_walk_next() local
[all …]
Dblkcipher.c75 unsigned int bsize) in blkcipher_done_slow() argument
80 addr = blkcipher_get_spot(addr, bsize); in blkcipher_done_slow()
81 scatterwalk_copychunks(addr, &walk->out, bsize, 1); in blkcipher_done_slow()
82 return bsize; in blkcipher_done_slow()
149 unsigned int bsize, in blkcipher_next_slow() argument
153 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); in blkcipher_next_slow()
171 walk->dst.virt.addr = blkcipher_get_spot(walk->dst.virt.addr, bsize); in blkcipher_next_slow()
173 aligned_bsize, bsize); in blkcipher_next_slow()
175 scatterwalk_copychunks(walk->src.virt.addr, &walk->in, bsize, 0); in blkcipher_next_slow()
177 walk->nbytes = bsize; in blkcipher_next_slow()
[all …]
/linux-4.4.14/arch/s390/crypto/
Dsha_common.c24 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_update() local
29 index = ctx->count & (bsize - 1); in s390_sha_update()
32 if ((index + len) < bsize) in s390_sha_update()
37 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update()
38 ret = crypt_s390_kimd(ctx->func, ctx->state, ctx->buf, bsize); in s390_sha_update()
39 if (ret != bsize) in s390_sha_update()
41 data += bsize - index; in s390_sha_update()
42 len -= bsize - index; in s390_sha_update()
47 if (len >= bsize) { in s390_sha_update()
49 len & ~(bsize - 1)); in s390_sha_update()
[all …]
/linux-4.4.14/arch/x86/crypto/
Dblowfish_glue.c85 unsigned int bsize = BF_BLOCK_SIZE; in ecb_crypt() local
96 if (nbytes >= bsize * 4) { in ecb_crypt()
100 wsrc += bsize * 4; in ecb_crypt()
101 wdst += bsize * 4; in ecb_crypt()
102 nbytes -= bsize * 4; in ecb_crypt()
103 } while (nbytes >= bsize * 4); in ecb_crypt()
105 if (nbytes < bsize) in ecb_crypt()
113 wsrc += bsize; in ecb_crypt()
114 wdst += bsize; in ecb_crypt()
115 nbytes -= bsize; in ecb_crypt()
[all …]
Dglue_helper.c40 const unsigned int bsize = 128 / 8; in __glue_ecb_crypt_128bit() local
51 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in __glue_ecb_crypt_128bit()
55 func_bytes = bsize * gctx->funcs[i].num_blocks; in __glue_ecb_crypt_128bit()
68 if (nbytes < bsize) in __glue_ecb_crypt_128bit()
97 const unsigned int bsize = 128 / 8; in __glue_cbc_encrypt_128bit() local
110 nbytes -= bsize; in __glue_cbc_encrypt_128bit()
111 } while (nbytes >= bsize); in __glue_cbc_encrypt_128bit()
143 const unsigned int bsize = 128 / 8; in __glue_cbc_decrypt_128bit() local
152 src += nbytes / bsize - 1; in __glue_cbc_decrypt_128bit()
153 dst += nbytes / bsize - 1; in __glue_cbc_decrypt_128bit()
[all …]
Ddes3_ede_glue.c89 unsigned int bsize = DES3_EDE_BLOCK_SIZE; in ecb_crypt() local
100 if (nbytes >= bsize * 3) { in ecb_crypt()
105 wsrc += bsize * 3; in ecb_crypt()
106 wdst += bsize * 3; in ecb_crypt()
107 nbytes -= bsize * 3; in ecb_crypt()
108 } while (nbytes >= bsize * 3); in ecb_crypt()
110 if (nbytes < bsize) in ecb_crypt()
118 wsrc += bsize; in ecb_crypt()
119 wdst += bsize; in ecb_crypt()
120 nbytes -= bsize; in ecb_crypt()
[all …]
Dcast5_avx_glue.c64 const unsigned int bsize = CAST5_BLOCK_SIZE; in ecb_crypt() local
81 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { in ecb_crypt()
85 wsrc += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
86 wdst += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
87 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
88 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); in ecb_crypt()
90 if (nbytes < bsize) in ecb_crypt()
100 wsrc += bsize; in ecb_crypt()
101 wdst += bsize; in ecb_crypt()
102 nbytes -= bsize; in ecb_crypt()
[all …]
Dcamellia_aesni_avx2_glue.c211 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; in encrypt_callback() local
217 if (nbytes >= CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
219 srcdst += bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; in encrypt_callback()
220 nbytes -= bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; in encrypt_callback()
223 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
225 srcdst += bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in encrypt_callback()
226 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in encrypt_callback()
229 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
231 srcdst += bsize * CAMELLIA_PARALLEL_BLOCKS; in encrypt_callback()
232 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in encrypt_callback()
[all …]
Dserpent_avx2_glue.c189 const unsigned int bsize = SERPENT_BLOCK_SIZE; in encrypt_callback() local
195 if (nbytes >= SERPENT_AVX2_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
197 srcdst += bsize * SERPENT_AVX2_PARALLEL_BLOCKS; in encrypt_callback()
198 nbytes -= bsize * SERPENT_AVX2_PARALLEL_BLOCKS; in encrypt_callback()
201 while (nbytes >= SERPENT_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
203 srcdst += bsize * SERPENT_PARALLEL_BLOCKS; in encrypt_callback()
204 nbytes -= bsize * SERPENT_PARALLEL_BLOCKS; in encrypt_callback()
207 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
213 const unsigned int bsize = SERPENT_BLOCK_SIZE; in decrypt_callback() local
219 if (nbytes >= SERPENT_AVX2_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
[all …]
Dcamellia_aesni_avx_glue.c215 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; in encrypt_callback() local
221 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
223 srcdst += bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in encrypt_callback()
224 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in encrypt_callback()
227 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
229 srcdst += bsize * CAMELLIA_PARALLEL_BLOCKS; in encrypt_callback()
230 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in encrypt_callback()
233 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
239 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; in decrypt_callback() local
245 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
[all …]
Dtwofish_avx_glue.c223 const unsigned int bsize = TF_BLOCK_SIZE; in encrypt_callback() local
229 if (nbytes == bsize * TWOFISH_PARALLEL_BLOCKS) { in encrypt_callback()
234 for (i = 0; i < nbytes / (bsize * 3); i++, srcdst += bsize * 3) in encrypt_callback()
237 nbytes %= bsize * 3; in encrypt_callback()
239 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
245 const unsigned int bsize = TF_BLOCK_SIZE; in decrypt_callback() local
251 if (nbytes == bsize * TWOFISH_PARALLEL_BLOCKS) { in decrypt_callback()
256 for (i = 0; i < nbytes / (bsize * 3); i++, srcdst += bsize * 3) in decrypt_callback()
259 nbytes %= bsize * 3; in decrypt_callback()
261 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
Dtwofish_glue_3way.c188 const unsigned int bsize = TF_BLOCK_SIZE; in encrypt_callback() local
192 if (nbytes == 3 * bsize) { in encrypt_callback()
197 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
203 const unsigned int bsize = TF_BLOCK_SIZE; in decrypt_callback() local
207 if (nbytes == 3 * bsize) { in decrypt_callback()
212 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
Dserpent_sse2_glue.c192 const unsigned int bsize = SERPENT_BLOCK_SIZE; in encrypt_callback() local
198 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { in encrypt_callback()
203 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
209 const unsigned int bsize = SERPENT_BLOCK_SIZE; in decrypt_callback() local
215 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { in decrypt_callback()
220 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
Dcast6_avx_glue.c210 const unsigned int bsize = CAST6_BLOCK_SIZE; in encrypt_callback() local
216 if (nbytes == bsize * CAST6_PARALLEL_BLOCKS) { in encrypt_callback()
221 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
227 const unsigned int bsize = CAST6_BLOCK_SIZE; in decrypt_callback() local
233 if (nbytes == bsize * CAST6_PARALLEL_BLOCKS) { in decrypt_callback()
238 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
Dserpent_avx_glue.c223 const unsigned int bsize = SERPENT_BLOCK_SIZE; in encrypt_callback() local
229 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { in encrypt_callback()
234 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
240 const unsigned int bsize = SERPENT_BLOCK_SIZE; in decrypt_callback() local
246 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { in decrypt_callback()
251 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
Dcamellia_glue.c1410 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; in encrypt_callback() local
1414 while (nbytes >= 2 * bsize) { in encrypt_callback()
1416 srcdst += bsize * 2; in encrypt_callback()
1417 nbytes -= bsize * 2; in encrypt_callback()
1420 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
1426 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; in decrypt_callback() local
1430 while (nbytes >= 2 * bsize) { in decrypt_callback()
1432 srcdst += bsize * 2; in decrypt_callback()
1433 nbytes -= bsize * 2; in decrypt_callback()
1436 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
/linux-4.4.14/arch/m68k/emu/
Dnfblock.c56 u32 blocks, bsize; member
99 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument
105 blocks, bsize); in nfhd_init_one()
107 if (bsize < 512 || (bsize & (bsize - 1))) { in nfhd_init_one()
118 dev->bsize = bsize; in nfhd_init_one()
119 dev->bshift = ffs(bsize) - 10; in nfhd_init_one()
127 blk_queue_logical_block_size(dev->queue, bsize); in nfhd_init_one()
138 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
157 u32 blocks, bsize; in nfhd_init() local
171 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init()
[all …]
/linux-4.4.14/lib/mpi/
Dmpi-pow.c42 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local
86 bsize = base->nlimbs; in mpi_powm()
88 if (bsize > msize) { /* The base is larger than the module. Reduce it. */ in mpi_powm()
91 bp = bp_marker = mpi_alloc_limb_space(bsize + 1); in mpi_powm()
94 MPN_COPY(bp, base->d, bsize); in mpi_powm()
97 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm()
98 bsize = msize; in mpi_powm()
101 MPN_NORMALIZE(bp, bsize); in mpi_powm()
105 if (!bsize) { in mpi_powm()
129 bp = bp_marker = mpi_alloc_limb_space(bsize); in mpi_powm()
[all …]
/linux-4.4.14/fs/freevxfs/
Dvxfs_olt.c57 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument
59 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock()
60 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
77 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument
85 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
Dvxfs_lookup.c67 u_long bsize = ip->i_sb->s_blocksize; in dir_blocks() local
68 return (ip->i_size + bsize - 1) & ~(bsize - 1); in dir_blocks()
110 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() local
132 baddr = kaddr + (block * bsize); in vxfs_find_entry()
133 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_find_entry()
235 u_long bsize = sbp->s_blocksize; in vxfs_readdir() local
276 baddr = kaddr + (block * bsize); in vxfs_readdir()
277 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_readdir()
Dvxfs_super.c153 u_long bsize; in vxfs_fill_super() local
165 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super()
166 if (!bsize) { in vxfs_fill_super()
211 if (vxfs_read_olt(sbp, bsize)) { in vxfs_fill_super()
Dvxfs_bmap.c71 unsigned long bsize = sb->s_blocksize; in vxfs_bmap_ext4() local
85 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4()
/linux-4.4.14/fs/squashfs/
Dfile_direct.c23 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize,
27 int squashfs_readpage_block(struct page *target_page, u64 block, int bsize) in squashfs_readpage_block() argument
85 res = squashfs_read_cache(target_page, block, bsize, pages, in squashfs_readpage_block()
94 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block()
140 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, in squashfs_read_cache() argument
145 block, bsize); in squashfs_read_cache()
151 bsize); in squashfs_read_cache()
Dfile_cache.c23 int squashfs_readpage_block(struct page *page, u64 block, int bsize) in squashfs_readpage_block() argument
27 block, bsize); in squashfs_readpage_block()
32 bsize); in squashfs_readpage_block()
Dfile.c472 int bsize = read_blocklist(inode, index, &block); in squashfs_readpage() local
473 if (bsize < 0) in squashfs_readpage()
476 if (bsize == 0) in squashfs_readpage()
479 res = squashfs_readpage_block(page, block, bsize); in squashfs_readpage()
/linux-4.4.14/fs/jfs/
Djfs_mount.c311 s32 bsize; in chkSuper() local
327 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper()
329 if (bsize != PSIZE) { in chkSuper()
344 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
346 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
347 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
348 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
350 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper()
378 sbi->bsize = bsize; in chkSuper()
Djfs_incore.h170 short bsize; /* logical block size */ member
Djfs_logmgr.h69 __le32 bsize; /* 4: logical block size in byte */ member
Djfs_dmap.c3897 int l2max, l2free, bsize, nextb, i; in dbInitTree() local
3920 for (l2free = dtp->budmin, bsize = 1; l2free < l2max; in dbInitTree()
3921 l2free++, bsize = nextb) { in dbInitTree()
3923 nextb = bsize << 1; in dbInitTree()
3930 if (*cp == l2free && *(cp + bsize) == l2free) { in dbInitTree()
3932 *(cp + bsize) = -1; /* right give left */ in dbInitTree()
Djfs_logmgr.c2418 logsuper->bsize = cpu_to_le32(sbi->bsize); in lmLogFormat()
Dsuper.c157 buf->f_bsize = sbi->bsize; in jfs_statfs()
Dnamei.c994 bmask = JFS_SBI(sb)->bsize - 1; in jfs_symlink()
Djfs_xtree.c166 size = ((u64) ip->i_size + (JFS_SBI(ip->i_sb)->bsize - 1)) >> in xtLookup()
3228 teof = (newsize + (JFS_SBI(ip->i_sb)->bsize - 1)) >> in xtTruncate()
Djfs_dtree.c981 n = sbi->bsize >> L2DTSLOTSIZE; in dtSplitUp()
/linux-4.4.14/fs/affs/
Dfile.c508 u32 bidx, boff, bsize; in affs_do_readpage_ofs() local
516 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_readpage_ofs()
518 bidx = tmp / bsize; in affs_do_readpage_ofs()
519 boff = tmp % bsize; in affs_do_readpage_ofs()
525 tmp = min(bsize - boff, to - pos); in affs_do_readpage_ofs()
526 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_readpage_ofs()
544 u32 size, bsize; in affs_extent_file_ofs() local
548 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs()
551 bidx = size / bsize; in affs_extent_file_ofs()
552 boff = size % bsize; in affs_extent_file_ofs()
[all …]
Damigaffs.c340 int bsize; in affs_checksum_block() local
343 for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--) in affs_checksum_block()
/linux-4.4.14/fs/nfs/
Dinternal.h89 unsigned int bsize; member
570 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument
573 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits()
576 for (nrbits = 31; nrbits && !(bsize & (1 << nrbits)); nrbits--) in nfs_block_bits()
578 bsize = 1 << nrbits; in nfs_block_bits()
583 return bsize; in nfs_block_bits()
599 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument
601 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size()
602 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size()
603 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size()
[all …]
Dproc.c86 info->rtmult = fsinfo.bsize; in nfs_proc_get_root()
89 info->wtmult = fsinfo.bsize; in nfs_proc_get_root()
531 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs()
532 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs()
533 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs()
561 info->rtmult = fsinfo.bsize; in nfs_proc_fsinfo()
564 info->wtmult = fsinfo.bsize; in nfs_proc_fsinfo()
Dpagelist.c697 unsigned int bsize) in nfs_pageio_mirror_init() argument
702 mirror->pg_bsize = bsize; in nfs_pageio_mirror_init()
722 size_t bsize, in nfs_pageio_init() argument
738 desc->pg_bsize = bsize; in nfs_pageio_init()
752 nfs_pageio_mirror_init(&desc->pg_mirrors[i], bsize); in nfs_pageio_init()
756 nfs_pageio_mirror_init(&desc->pg_mirrors[0], bsize); in nfs_pageio_init()
Dsuper.c655 if (nfss->bsize != 0) in nfs_show_mount_options()
656 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options()
834 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats()
1350 mnt->bsize = option; in nfs_parse_mount_options()
1969 data->bsize = 0; in nfs23_validate_mount_data()
2026 args->bsize = data->bsize; in nfs23_validate_mount_data()
2315 if (data && data->bsize) in nfs_fill_super()
2316 sb->s_blocksize = nfs_block_size(data->bsize, &sb->s_blocksize_bits); in nfs_fill_super()
Dnfs2xdr.c1026 result->bsize = be32_to_cpup(p++); in decode_info()
/linux-4.4.14/drivers/s390/block/
Ddasd_diag.c329 unsigned int sb, bsize; in dasd_diag_check_device() local
407 for (bsize = 512; bsize <= PAGE_SIZE; bsize <<= 1) { in dasd_diag_check_device()
408 mdsk_init_io(device, bsize, 0, &end_block); in dasd_diag_check_device()
432 if (bsize > PAGE_SIZE) { in dasd_diag_check_device()
443 bsize = (unsigned int) label->block_size; in dasd_diag_check_device()
447 block->bp_block = bsize; in dasd_diag_check_device()
449 for (sb = 512; sb < bsize; sb = sb << 1) in dasd_diag_check_device()
Ddasd_int.h642 dasd_check_blocksize(int bsize) in dasd_check_blocksize() argument
644 if (bsize < 512 || bsize > 4096 || !is_power_of_2(bsize)) in dasd_check_blocksize()
/linux-4.4.14/drivers/mtd/
Dftl.c790 uint32_t log_addr, bsize; in ftl_read() local
801 bsize = 1 << part->header.EraseUnitSize; in ftl_read()
812 offset = (part->EUNInfo[log_addr / bsize].Offset in ftl_read()
813 + (log_addr % bsize)); in ftl_read()
836 uint32_t bsize, blk, le_virt_addr; in set_bam_entry() local
846 bsize = 1 << part->header.EraseUnitSize; in set_bam_entry()
847 eun = log_addr / bsize; in set_bam_entry()
848 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry()
904 uint32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local
922 bsize = 1 << part->header.EraseUnitSize; in ftl_write()
[all …]
/linux-4.4.14/include/media/
Dvideobuf-core.h89 size_t bsize; member
227 unsigned int bcount, unsigned int bsize,
230 unsigned int bcount, unsigned int bsize,
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_inline.h71 host_to_fcp_swap(uint8_t *fcp, uint32_t bsize) in host_to_fcp_swap() argument
75 uint32_t iter = bsize >> 2; in host_to_fcp_swap()
84 host_to_adap(uint8_t *src, uint8_t *dst, uint32_t bsize) in host_to_adap() argument
88 uint32_t iter = bsize >> 2; in host_to_adap()
/linux-4.4.14/arch/alpha/include/uapi/asm/
Da.out.h30 __u64 bsize; member
67 #define a_bss ah.bsize
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf-core.c331 b->length = vb->bsize; in videobuf_status()
335 b->length = vb->bsize; in videobuf_status()
385 unsigned int bcount, unsigned int bsize, in __videobuf_mmap_setup() argument
406 q->bufs[i]->bsize = bsize; in __videobuf_mmap_setup()
409 q->bufs[i]->boff = PAGE_ALIGN(bsize) * i; in __videobuf_mmap_setup()
422 dprintk(1, "mmap setup: %d buffers, %d bytes each\n", i, bsize); in __videobuf_mmap_setup()
429 unsigned int bcount, unsigned int bsize, in videobuf_mmap_setup() argument
434 ret = __videobuf_mmap_setup(q, bcount, bsize, memory); in videobuf_mmap_setup()
587 if (b->length < buf->bsize) { in videobuf_qbuf()
804 q->read_buf->bsize = count; in videobuf_read_zerocopy()
[all …]
Dvideobuf-dma-sg.c530 vb->baddr, vb->bsize); in __videobuf_iolock()
541 vb->baddr, vb->bsize); in __videobuf_iolock()
604 size = PAGE_ALIGN(q->bufs[first]->bsize); in __videobuf_mmap_mapper()
630 size += PAGE_ALIGN(q->bufs[i]->bsize); in __videobuf_mmap_mapper()
Dvideobuf-dma-contig.c301 if (__videobuf_dc_alloc(q->dev, mem, PAGE_ALIGN(buf->bsize), in __videobuf_mmap_mapper()
332 (long int)buf->bsize, vma->vm_pgoff, buf->i); in __videobuf_mmap_mapper()
Dvideobuf-vmalloc.c278 (long int)buf->bsize, in __videobuf_mmap_mapper()
/linux-4.4.14/fs/reiserfs/
Ditem_ops.c31 static int sd_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) in sd_is_left_mergeable() argument
136 unsigned long bsize) in direct_is_left_mergeable() argument
139 return ((le_key_k_offset(version, key) & (bsize - 1)) != 1); in direct_is_left_mergeable()
228 unsigned long bsize) in indirect_is_left_mergeable() argument
372 unsigned long bsize) in direntry_is_left_mergeable() argument
658 unsigned long bsize) in errcatch_is_left_mergeable() argument
Dreiserfs.h2630 unsigned long bsize);
2646 #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih,… argument
2647 …op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->… argument
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgf100.c569 u64 bsize = (u64)nvkm_rd32(device, 0x10f20c) << 20; in gf100_ram_ctor() local
584 if (psize != bsize) { in gf100_ram_ctor()
585 if (psize < bsize) in gf100_ram_ctor()
586 bsize = psize; in gf100_ram_ctor()
610 ((bsize * parts) - rsvd_head) >> in gf100_ram_ctor()
616 ret = nvkm_mm_init(&ram->vram, (0x0200000000ULL + bsize) >> in gf100_ram_ctor()
618 (size - (bsize * parts) - rsvd_tail) >> in gf100_ram_ctor()
/linux-4.4.14/arch/x86/include/asm/crypto/
Dglue_helper.h46 static inline bool glue_fpu_begin(unsigned int bsize, int fpu_blocks_limit, in glue_fpu_begin() argument
60 if (nbytes < bsize * (unsigned int)fpu_blocks_limit) in glue_fpu_begin()
/linux-4.4.14/fs/nfsd/
Dnfsctl.c873 int bsize; in write_maxblksize() local
874 int rv = get_int(&mesg, &bsize); in write_maxblksize()
880 bsize = max_t(int, bsize, 1024); in write_maxblksize()
881 bsize = min_t(int, bsize, NFSSVC_MAXBLKSIZE); in write_maxblksize()
882 bsize &= ~(1024-1); in write_maxblksize()
888 nfsd_max_blksize = bsize; in write_maxblksize()
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00usb.c113 u16 off, len, bsize; in rt2x00usb_vendor_request_buff() local
121 bsize = min_t(u16, CSR_CACHE_SIZE, len); in rt2x00usb_vendor_request_buff()
124 bsize, REGISTER_TIMEOUT); in rt2x00usb_vendor_request_buff()
126 tb += bsize; in rt2x00usb_vendor_request_buff()
127 len -= bsize; in rt2x00usb_vendor_request_buff()
128 off += bsize; in rt2x00usb_vendor_request_buff()
/linux-4.4.14/security/apparmor/
Dmatch.c37 static struct table_header *unpack_table(char *blob, size_t bsize) in unpack_table() argument
43 if (bsize < sizeof(struct table_header)) in unpack_table()
59 if (bsize < tsize) in unpack_table()
/linux-4.4.14/include/uapi/linux/
Dnfs_mount.h42 unsigned int bsize; /* 3 */ member
Dcoff.h135 char bsize[4]; /* uninitialized data " " */ member
Dfuse.h173 uint32_t bsize; member
/linux-4.4.14/drivers/net/wireless/
Dat76c50x-usb.c372 int bsize = 0; in at76_usbdfu_download() local
444 bsize = min_t(int, size, FW_BLOCK_SIZE); in at76_usbdfu_download()
445 memcpy(block, buf, bsize); in at76_usbdfu_download()
447 "bsize = %4d, blockno = %2d", size, bsize, in at76_usbdfu_download()
450 at76_load_int_fw_block(udev, blockno, block, bsize); in at76_usbdfu_download()
451 buf += bsize; in at76_usbdfu_download()
452 size -= bsize; in at76_usbdfu_download()
455 if (ret != bsize) in at76_usbdfu_download()
1264 int bsize; in at76_load_external_fw() local
1288 bsize = min_t(int, size, FW_BLOCK_SIZE); in at76_load_external_fw()
[all …]
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_da_format.h844 static inline int xfs_attr_leaf_entsize_local_max(int bsize) in xfs_attr_leaf_entsize_local_max() argument
846 return (((bsize) >> 1) + ((bsize) >> 2)); in xfs_attr_leaf_entsize_local_max()
/linux-4.4.14/arch/mips/boot/
Decoff.h38 long bsize; /* uninitialized data " " */ member
Delf2ecoff.c236 a->bsize = swab32(a->bsize); in convert_ecoff_aouthdr()
422 eah.bsize = bss.len; in main()
465 esecs[2].s_size = eah.bsize; in main()
/linux-4.4.14/security/tomoyo/
Dcommon.h1307 size_t bsize = 32; in tomoyo_round2() local
1309 size_t bsize = 64; in tomoyo_round2()
1313 while (size > bsize) in tomoyo_round2()
1314 bsize <<= 1; in tomoyo_round2()
1315 return bsize; in tomoyo_round2()
/linux-4.4.14/sound/oss/
Dpas2_pcm.c347 static int pas_audio_prepare_for_input(int dev, int bsize, int bcount) in pas_audio_prepare_for_input() argument
353 static int pas_audio_prepare_for_output(int dev, int bsize, int bcount) in pas_audio_prepare_for_output() argument
Dsb_audio.c252 static int sb1_audio_prepare_for_input(int dev, int bsize, int bcount) in sb1_audio_prepare_for_input() argument
267 static int sb1_audio_prepare_for_output(int dev, int bsize, int bcount) in sb1_audio_prepare_for_output() argument
465 static int sbpro_audio_prepare_for_input(int dev, int bsize, int bcount) in sbpro_audio_prepare_for_input() argument
493 static int sbpro_audio_prepare_for_output(int dev, int bsize, int bcount) in sbpro_audio_prepare_for_output() argument
631 static int sb16_audio_prepare_for_input(int dev, int bsize, int bcount) in sb16_audio_prepare_for_input() argument
657 static int sb16_audio_prepare_for_output(int dev, int bsize, int bcount) in sb16_audio_prepare_for_output() argument
Dsb_ess.c438 static int ess_audio_prepare_for_input(int dev, int bsize, int bcount) in ess_audio_prepare_for_input() argument
459 static int ess_audio_prepare_for_output_audio1 (int dev, int bsize, int bcount) in ess_audio_prepare_for_output_audio1() argument
480 static int ess_audio_prepare_for_output_audio2 (int dev, int bsize, int bcount) in ess_audio_prepare_for_output_audio2() argument
518 static int ess_audio_prepare_for_output(int dev, int bsize, int bcount) in ess_audio_prepare_for_output() argument
528 return ess_audio_prepare_for_output_audio2 (dev, bsize, bcount); in ess_audio_prepare_for_output()
530 return ess_audio_prepare_for_output_audio1 (dev, bsize, bcount); in ess_audio_prepare_for_output()
Dvidc.c321 static int vidc_audio_prepare_for_input(int dev, int bsize, int bcount) in vidc_audio_prepare_for_input() argument
338 static int vidc_audio_prepare_for_output(int dev, int bsize, int bcount) in vidc_audio_prepare_for_output() argument
Dad1848.c191 static int ad1848_prepare_for_output(int dev, int bsize, int bcount);
192 static int ad1848_prepare_for_input(int dev, int bsize, int bcount);
1123 static int ad1848_prepare_for_output(int dev, int bsize, int bcount) in ad1848_prepare_for_output() argument
1191 static int ad1848_prepare_for_input(int dev, int bsize, int bcount) in ad1848_prepare_for_input() argument
Dwaveartist.c567 waveartist_prepare_for_input(int dev, int bsize, int bcount) in waveartist_prepare_for_input() argument
624 waveartist_prepare_for_output(int dev, int bsize, int bcount) in waveartist_prepare_for_output() argument
Dswarm_cs4297a.c346 static void clear_advance(void *buf, unsigned bsize, unsigned bptr, in clear_advance() argument
349 if (bptr + len > bsize) { in clear_advance()
350 unsigned x = bsize - bptr; in clear_advance()
/linux-4.4.14/fs/cachefiles/
Dbind.c158 cache->bsize = stats.f_bsize; in cachefiles_daemon_add_cache()
164 cache->bsize, cache->bshift); in cachefiles_daemon_add_cache()
Dinternal.h75 unsigned bsize; /* cache's block size */ member
/linux-4.4.14/fs/gfs2/
Dquota.c667 unsigned bsize = sdp->sd_sb.sb_bsize, bnum = 0, boff = 0; in gfs2_write_buf_to_page() local
672 boff = off % bsize; in gfs2_write_buf_to_page()
678 create_empty_buffers(page, bsize, 0); in gfs2_write_buf_to_page()
683 if (pg_off >= ((bnum * bsize) + bsize)) { in gfs2_write_buf_to_page()
695 zero_user(page, bnum * bsize, bh->b_size); in gfs2_write_buf_to_page()
708 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page()
709 pg_off += (bsize - boff); in gfs2_write_buf_to_page()
710 to_write -= (bsize - boff); in gfs2_write_buf_to_page()
711 boff = pg_off % bsize; in gfs2_write_buf_to_page()
Dbmap.c608 unsigned int bsize = sdp->sd_sb.sb_bsize; in gfs2_block_map() local
629 bsize = sdp->sd_jbsize; in gfs2_block_map()
638 size = (lblock + 1) * bsize; in gfs2_block_map()
Daops.c45 unsigned int bsize = head->b_size; in gfs2_page_add_databufs() local
51 end = start + bsize; in gfs2_page_add_databufs()
Drgrp.c898 const unsigned bsize = sdp->sd_sb.sb_bsize; in read_rindex_entry() local
936 rgd->rd_gl->gl_vm.start = (rgd->rd_addr * bsize) & PAGE_CACHE_MASK; in read_rindex_entry()
938 rgd->rd_length) * bsize) - 1; in read_rindex_entry()
/linux-4.4.14/drivers/crypto/
Dhifn_795x.c2329 unsigned int bsize; member
2338 .name = "cfb(des3_ede)", .drv_name = "cfb-3des", .bsize = 8,
2348 .name = "ofb(des3_ede)", .drv_name = "ofb-3des", .bsize = 8,
2358 .name = "cbc(des3_ede)", .drv_name = "cbc-3des", .bsize = 8,
2369 .name = "ecb(des3_ede)", .drv_name = "ecb-3des", .bsize = 8,
2383 .name = "cfb(des)", .drv_name = "cfb-des", .bsize = 8,
2393 .name = "ofb(des)", .drv_name = "ofb-des", .bsize = 8,
2403 .name = "cbc(des)", .drv_name = "cbc-des", .bsize = 8,
2414 .name = "ecb(des)", .drv_name = "ecb-des", .bsize = 8,
2428 .name = "ecb(aes)", .drv_name = "ecb-aes", .bsize = 16,
[all …]
/linux-4.4.14/fs/sysv/
Dsuper.c308 int bsize = 1 << n_bits; in complete_read_super() local
309 int bsize_4 = bsize >> 2; in complete_read_super()
317 sbi->s_inodes_per_block = bsize >> 6; in complete_read_super()
318 sbi->s_inodes_per_block_1 = (bsize >> 6)-1; in complete_read_super()
/linux-4.4.14/mm/
Dtruncate.c735 int bsize = 1 << inode->i_blkbits; in pagecache_isize_extended() local
742 if (from >= to || bsize == PAGE_CACHE_SIZE) in pagecache_isize_extended()
745 rounded_from = round_up(from, bsize); in pagecache_isize_extended()
/linux-4.4.14/arch/powerpc/boot/
Drs6000.h44 unsigned char bsize[4]; /* uninitialized data " " */ member
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dinit.c231 int i, bsize, desc_len; in ath_descdma_setup() local
285 bsize = sizeof(struct ath_buf) * nbuf; in ath_descdma_setup()
286 bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL); in ath_descdma_setup()
316 bsize = sizeof(struct ath_rxbuf) * nbuf; in ath_descdma_setup()
317 bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL); in ath_descdma_setup()
/linux-4.4.14/include/linux/
Dnfs_page.h126 size_t bsize,
Dnfs_fs_sb.h143 unsigned int bsize; /* server block size */ member
Djbd2.h1250 unsigned long long start, int len, int bsize);
Dnfs_xdr.h159 __u32 bsize; /* Filesystem block size */ member
/linux-4.4.14/fs/
Dblock_dev.c1145 unsigned bsize = bdev_logical_block_size(bdev); in bd_set_size() local
1150 while (bsize < PAGE_CACHE_SIZE) { in bd_set_size()
1151 if (size & bsize) in bd_set_size()
1153 bsize <<= 1; in bd_set_size()
1155 bdev->bd_block_size = bsize; in bd_set_size()
1156 bdev->bd_inode->i_blkbits = blksize_bits(bsize); in bd_set_size()
/linux-4.4.14/drivers/media/usb/gspca/
Dgspca.c764 int n, nurbs, i, psize, npkt, bsize; in create_urbs() local
779 bsize = psize * npkt; in create_urbs()
782 npkt, psize, bsize); in create_urbs()
786 bsize = gspca_dev->cam.bulk_size; in create_urbs()
787 if (bsize == 0) in create_urbs()
788 bsize = psize; in create_urbs()
789 PDEBUG(D_STREAM, "bulk bsize:%d", bsize); in create_urbs()
804 bsize, in create_urbs()
814 urb->transfer_buffer_length = bsize; in create_urbs()
/linux-4.4.14/arch/mips/include/asm/
Dsgiarcs.h279 unsigned char bsize; member
281 unsigned char bsize;
/linux-4.4.14/fs/nilfs2/
Dalloc.c392 unsigned bsize, in nilfs_palloc_find_available_slot() argument
395 int pos, end = bsize; in nilfs_palloc_find_available_slot()
397 if (likely(target < bsize)) { in nilfs_palloc_find_available_slot()
/linux-4.4.14/arch/alpha/boot/tools/
Dobjstrip.c218 mem_size = fil_size + aout->ah.bsize; in main()
/linux-4.4.14/include/net/9p/
D9p.h527 u32 bsize; member
/linux-4.4.14/drivers/media/platform/soc_camera/
Dpxa_camera.c268 &buf->vb, buf->vb.baddr, buf->vb.bsize); in free_buffer()
436 vb, vb->baddr, vb->bsize); in pxa_videobuf_prepare()
446 memset((void *)vb->baddr, 0xaa, vb->bsize); in pxa_videobuf_prepare()
469 if (0 != vb->baddr && vb->bsize < vb->size) { in pxa_videobuf_prepare()
635 __func__, vb, vb->baddr, vb->bsize, pcdev->active); in pxa_videobuf_queue()
655 vb, vb->baddr, vb->bsize); in pxa_videobuf_release()
Domap1_camera.c276 if (vb->baddr && vb->bsize < vb->size) { in omap1_videobuf_prepare()
/linux-4.4.14/fs/udf/
Dnamei.c928 uint32_t bsize; in udf_symlink() local
941 bsize = sb->s_blocksize; in udf_symlink()
942 iinfo->i_lenExtents = bsize; in udf_symlink()
943 udf_add_aext(inode, &epos, &eloc, bsize, 0); in udf_symlink()
951 memset(epos.bh->b_data, 0x00, bsize); in udf_symlink()
Dinode.c1209 int bsize = 1 << inode->i_blkbits; in udf_setsize() local
1221 if (bsize < in udf_setsize()
1245 0x00, bsize - newsize - in udf_setsize()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dchip.c2003 static char *is_misc_err_name(char *buf, size_t bsize, unsigned int source) in is_misc_err_name() argument
2006 strncpy(buf, cce_misc_names[source], bsize); in is_misc_err_name()
2009 bsize, in is_misc_err_name()
2019 static char *is_sdma_eng_err_name(char *buf, size_t bsize, unsigned int source) in is_sdma_eng_err_name() argument
2021 snprintf(buf, bsize, "SDmaEngErrInt%u", source); in is_sdma_eng_err_name()
2028 static char *is_sendctxt_err_name(char *buf, size_t bsize, unsigned int source) in is_sendctxt_err_name() argument
2030 snprintf(buf, bsize, "SendCtxtErrInt%u", source); in is_sendctxt_err_name()
2045 static char *is_various_name(char *buf, size_t bsize, unsigned int source) in is_various_name() argument
2048 strncpy(buf, various_names[source], bsize); in is_various_name()
2050 snprintf(buf, bsize, "Reserved%u", source+IS_VARIOUS_START); in is_various_name()
[all …]
/linux-4.4.14/fs/9p/
Dvfs_super.c259 buf->f_bsize = rs.bsize; in v9fs_statfs()
/linux-4.4.14/fs/ocfs2/
Daops.c1106 unsigned int bsize = 1 << inode->i_blkbits; in ocfs2_map_page_blocks() local
1109 create_empty_buffers(page, bsize, 0); in ocfs2_map_page_blocks()
1113 bh = bh->b_this_page, block_start += bsize) { in ocfs2_map_page_blocks()
1114 block_end = block_start + bsize; in ocfs2_map_page_blocks()
1173 block_end = block_start + bsize; in ocfs2_map_page_blocks()
/linux-4.4.14/tools/perf/util/
Dprobe-finder.c298 int bsize, boffs, total; in convert_variable_type() local
308 bsize = dwarf_bitsize(vr_die); in convert_variable_type()
309 if (bsize > 0) { in convert_variable_type()
315 ret = snprintf(buf, 16, "b%d@%d/%zd", bsize, boffs, in convert_variable_type()
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-streams.c134 if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size)) in cx18_prepare_buffer()
157 if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size)) in cx18_prepare_buffer()
Dcx18-mailbox.c191 if ((offset + buf->bytesused) <= vb_buf->vb.bsize) { in cx18_mdl_send_to_videobuf()
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-vbi.c116 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare()
Dbttv-driver.c1577 if (width*height > buf->vb.bsize) in bttv_prepare_buffer()
1579 buf->vb.size = buf->vb.bsize; in bttv_prepare_buffer()
1619 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in bttv_prepare_buffer()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
Dhash.c1884 int bsize; in cfs_hash_rehash_worker() local
1965 bsize = cfs_hash_bkt_size(hs); in cfs_hash_rehash_worker()
1969 cfs_hash_buckets_free(bkts, bsize, new_size, old_size); in cfs_hash_rehash_worker()
/linux-4.4.14/drivers/media/common/saa7146/
Dsaa7146_vbi.c234 if (0 != buf->vb.baddr && buf->vb.bsize < size) { in buffer_prepare()
Dsaa7146_video.c1080 if (0 != buf->vb.baddr && buf->vb.bsize < size) { in buffer_prepare()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c230 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare()
Dcx231xx-417.c1407 if (0 != buf->vb.baddr && buf->vb.bsize < size) in bb_buf_prepare()
Dcx231xx-video.c790 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in buffer_prepare()
/linux-4.4.14/fs/xfs/
Dxfs_buf.c1449 size_t bsize, /* length to copy */ in xfs_buf_iomove() argument
1455 bend = boff + bsize; in xfs_buf_iomove()
/linux-4.4.14/sound/pci/
Des1968.c1107 unsigned int pa, unsigned int bsize, in init_capture_apu() argument
1137 apu_set_register(chip, apu, 6, (pa + bsize) & 0xFFFF); in init_capture_apu()
1138 apu_set_register(chip, apu, 7, bsize); in init_capture_apu()
/linux-4.4.14/drivers/gpu/drm/radeon/
Devergreen_cs.c451 unsigned long tmp, nby, bsize, size, min = 0; in evergreen_cs_track_validate_cb() local
457 bsize = radeon_bo_size(track->cb_color_bo[id]); in evergreen_cs_track_validate_cb()
461 if ((tmp + size * mslice) <= bsize) { in evergreen_cs_track_validate_cb()
471 if (tmp <= bsize) { in evergreen_cs_track_validate_cb()
/linux-4.4.14/drivers/mmc/host/
Ds3cmci.c153 u32 con, pre, cmdarg, cmdcon, cmdsta, r0, r1, r2, r3, timer, bsize; in dbg_dumpregs() local
166 bsize = readl(host->base + S3C2410_SDIBSIZE); in dbg_dumpregs()
/linux-4.4.14/drivers/media/platform/
Dtimblogiw.c499 if (vb->baddr && vb->bsize < data_size) in buffer_prepare()
Dfsl-viu.c459 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) in buffer_prepare()
/linux-4.4.14/kernel/trace/
Dring_buffer.c1306 int bsize; in __ring_buffer_alloc() local
1343 bsize = sizeof(void *) * nr_cpu_ids; in __ring_buffer_alloc()
1344 buffer->buffers = kzalloc(ALIGN(bsize, cache_line_size()), in __ring_buffer_alloc()
/linux-4.4.14/net/9p/
Dclient.c1903 &sb->bsize, &sb->blocks, &sb->bfree, &sb->bavail, in p9_client_statfs()
1914 fid->fid, (long unsigned int)sb->type, (long int)sb->bsize, in p9_client_statfs()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c2252 unsigned int bsize, unsigned int cong_thres, int gen, in t3_sge_init_flcntxt() argument
2268 V_FL_ENTRY_SIZE_LO(bsize & M_FL_ENTRY_SIZE_LO)); in t3_sge_init_flcntxt()
2270 V_FL_ENTRY_SIZE_HI(bsize >> (32 - S_FL_ENTRY_SIZE_LO)) | in t3_sge_init_flcntxt()
/linux-4.4.14/fs/fuse/
Dinode.c397 stbuf->f_bsize = attr->bsize; in convert_fuse_statfs()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_debugfs.c1262 size_t bsize; in lpfc_idiag_cmd_get() local
1270 bsize = min(nbytes, (sizeof(mybuf)-1)); in lpfc_idiag_cmd_get()
1272 if (copy_from_user(mybuf, buf, bsize)) in lpfc_idiag_cmd_get()
/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-npi-defs.h342 uint64_t bsize:16; member
344 uint64_t bsize:16;
Dcvmx-sli-defs.h2520 uint64_t bsize:16; member
2522 uint64_t bsize:16;
Dcvmx-npei-defs.h3886 uint64_t bsize:16; member
3888 uint64_t bsize:16;
/linux-4.4.14/drivers/media/usb/zr364xx/
Dzr364xx.c401 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) { in buffer_prepare()
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c622 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes() local
623 return div_u64(bsize, buffer_size); in snd_pcm_oss_bytes()
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-video.c752 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in buffer_prepare()