Searched refs:bsize (Results 1 - 145 of 145) sorted by relevance

/linux-4.1.27/arch/s390/crypto/
H A Dsha_common.c24 unsigned int bsize = crypto_shash_blocksize(desc->tfm); s390_sha_update() local
29 index = ctx->count & (bsize - 1); s390_sha_update()
32 if ((index + len) < bsize) s390_sha_update()
37 memcpy(ctx->buf + index, data, bsize - index); s390_sha_update()
38 ret = crypt_s390_kimd(ctx->func, ctx->state, ctx->buf, bsize); s390_sha_update()
39 if (ret != bsize) s390_sha_update()
41 data += bsize - index; s390_sha_update()
42 len -= bsize - index; s390_sha_update()
47 if (len >= bsize) { s390_sha_update()
49 len & ~(bsize - 1)); s390_sha_update()
50 if (ret != (len & ~(bsize - 1))) s390_sha_update()
66 unsigned int bsize = crypto_shash_blocksize(desc->tfm); s390_sha_final() local
72 plen = (bsize > SHA256_BLOCK_SIZE) ? 16 : 8; s390_sha_final()
75 index = ctx->count & (bsize - 1); s390_sha_final()
76 end = (index < bsize - plen) ? bsize : (2 * bsize); s390_sha_final()
/linux-4.1.27/crypto/
H A Dcts.c80 int bsize = crypto_blkcipher_blocksize(desc->tfm); cts_cbc_encrypt() local
81 u8 tmp[bsize], tmp2[bsize]; cts_cbc_encrypt()
84 int lastn = nbytes - bsize; cts_cbc_encrypt()
85 u8 iv[bsize]; cts_cbc_encrypt()
86 u8 s[bsize * 2], d[bsize * 2]; cts_cbc_encrypt()
98 memcpy(iv, desc->info, bsize); cts_cbc_encrypt()
104 sg_set_buf(&sgsrc[0], s, bsize); cts_cbc_encrypt()
105 sg_set_buf(&sgdst[0], tmp, bsize); cts_cbc_encrypt()
106 err = crypto_blkcipher_encrypt_iv(&lcldesc, sgdst, sgsrc, bsize); cts_cbc_encrypt()
108 memcpy(d + bsize, tmp, lastn); cts_cbc_encrypt()
112 sg_set_buf(&sgsrc[0], s + bsize, bsize); cts_cbc_encrypt()
113 sg_set_buf(&sgdst[0], tmp2, bsize); cts_cbc_encrypt()
114 err = crypto_blkcipher_encrypt_iv(&lcldesc, sgdst, sgsrc, bsize); cts_cbc_encrypt()
116 memcpy(d, tmp2, bsize); cts_cbc_encrypt()
120 memcpy(desc->info, tmp2, bsize); cts_cbc_encrypt()
130 int bsize = crypto_blkcipher_blocksize(desc->tfm); crypto_cts_encrypt() local
131 int tot_blocks = (nbytes + bsize - 1) / bsize; crypto_cts_encrypt()
141 err = crypto_blkcipher_encrypt_iv(&lcldesc, dst, src, bsize); crypto_cts_encrypt()
142 } else if (nbytes <= bsize * 2) { crypto_cts_encrypt()
147 cbc_blocks * bsize); crypto_cts_encrypt()
151 cbc_blocks * bsize, crypto_cts_encrypt()
152 nbytes - (cbc_blocks * bsize)); crypto_cts_encrypt()
166 int bsize = crypto_blkcipher_blocksize(desc->tfm); cts_cbc_decrypt() local
167 u8 tmp[bsize]; cts_cbc_decrypt()
170 int lastn = nbytes - bsize; cts_cbc_decrypt()
171 u8 iv[bsize]; cts_cbc_decrypt()
172 u8 s[bsize * 2], d[bsize * 2]; cts_cbc_decrypt()
189 sg_set_buf(&sgsrc[0], s, bsize); cts_cbc_decrypt()
190 sg_set_buf(&sgdst[0], tmp, bsize); cts_cbc_decrypt()
191 err = crypto_blkcipher_decrypt_iv(&lcldesc, sgdst, sgsrc, bsize); cts_cbc_decrypt()
196 memcpy(iv, s + bsize, lastn); cts_cbc_decrypt()
198 crypto_xor(tmp, iv, bsize); cts_cbc_decrypt()
200 memcpy(d + bsize, tmp, lastn); cts_cbc_decrypt()
203 memcpy(s + bsize + lastn, tmp + lastn, bsize - lastn); cts_cbc_decrypt()
207 sg_set_buf(&sgsrc[0], s + bsize, bsize); cts_cbc_decrypt()
208 sg_set_buf(&sgdst[0], d, bsize); cts_cbc_decrypt()
209 err = crypto_blkcipher_decrypt_iv(&lcldesc, sgdst, sgsrc, bsize); cts_cbc_decrypt()
212 crypto_xor(d, desc->info, bsize); cts_cbc_decrypt()
216 memcpy(desc->info, s, bsize); cts_cbc_decrypt()
225 int bsize = crypto_blkcipher_blocksize(desc->tfm); crypto_cts_decrypt() local
226 int tot_blocks = (nbytes + bsize - 1) / bsize; crypto_cts_decrypt()
236 err = crypto_blkcipher_decrypt_iv(&lcldesc, dst, src, bsize); crypto_cts_decrypt()
237 } else if (nbytes <= bsize * 2) { crypto_cts_decrypt()
242 cbc_blocks * bsize); crypto_cts_decrypt()
246 cbc_blocks * bsize, crypto_cts_decrypt()
247 nbytes - (cbc_blocks * bsize)); crypto_cts_decrypt()
H A Dpcbc.c51 int bsize = crypto_cipher_blocksize(tfm); crypto_pcbc_encrypt_segment() local
58 crypto_xor(iv, src, bsize); crypto_pcbc_encrypt_segment()
60 memcpy(iv, dst, bsize); crypto_pcbc_encrypt_segment()
61 crypto_xor(iv, src, bsize); crypto_pcbc_encrypt_segment()
63 src += bsize; crypto_pcbc_encrypt_segment()
64 dst += bsize; crypto_pcbc_encrypt_segment()
65 } while ((nbytes -= bsize) >= bsize); crypto_pcbc_encrypt_segment()
76 int bsize = crypto_cipher_blocksize(tfm); crypto_pcbc_encrypt_inplace() local
80 u8 tmpbuf[bsize]; crypto_pcbc_encrypt_inplace()
83 memcpy(tmpbuf, src, bsize); crypto_pcbc_encrypt_inplace()
84 crypto_xor(iv, src, bsize); crypto_pcbc_encrypt_inplace()
86 memcpy(iv, tmpbuf, bsize); crypto_pcbc_encrypt_inplace()
87 crypto_xor(iv, src, bsize); crypto_pcbc_encrypt_inplace()
89 src += bsize; crypto_pcbc_encrypt_inplace()
90 } while ((nbytes -= bsize) >= bsize); crypto_pcbc_encrypt_inplace()
92 memcpy(walk->iv, iv, bsize); crypto_pcbc_encrypt_inplace()
129 int bsize = crypto_cipher_blocksize(tfm); crypto_pcbc_decrypt_segment() local
137 crypto_xor(dst, iv, bsize); crypto_pcbc_decrypt_segment()
138 memcpy(iv, src, bsize); crypto_pcbc_decrypt_segment()
139 crypto_xor(iv, dst, bsize); crypto_pcbc_decrypt_segment()
141 src += bsize; crypto_pcbc_decrypt_segment()
142 dst += bsize; crypto_pcbc_decrypt_segment()
143 } while ((nbytes -= bsize) >= bsize); crypto_pcbc_decrypt_segment()
145 memcpy(walk->iv, iv, bsize); crypto_pcbc_decrypt_segment()
156 int bsize = crypto_cipher_blocksize(tfm); crypto_pcbc_decrypt_inplace() local
160 u8 tmpbuf[bsize]; crypto_pcbc_decrypt_inplace()
163 memcpy(tmpbuf, src, bsize); crypto_pcbc_decrypt_inplace()
165 crypto_xor(src, iv, bsize); crypto_pcbc_decrypt_inplace()
166 memcpy(iv, tmpbuf, bsize); crypto_pcbc_decrypt_inplace()
167 crypto_xor(iv, src, bsize); crypto_pcbc_decrypt_inplace()
169 src += bsize; crypto_pcbc_decrypt_inplace()
170 } while ((nbytes -= bsize) >= bsize); crypto_pcbc_decrypt_inplace()
172 memcpy(walk->iv, iv, bsize); crypto_pcbc_decrypt_inplace()
H A Dcbc.c48 int bsize = crypto_cipher_blocksize(tfm); crypto_cbc_encrypt_segment() local
55 crypto_xor(iv, src, bsize); crypto_cbc_encrypt_segment()
57 memcpy(iv, dst, bsize); crypto_cbc_encrypt_segment()
59 src += bsize; crypto_cbc_encrypt_segment()
60 dst += bsize; crypto_cbc_encrypt_segment()
61 } while ((nbytes -= bsize) >= bsize); crypto_cbc_encrypt_segment()
72 int bsize = crypto_cipher_blocksize(tfm); crypto_cbc_encrypt_inplace() local
78 crypto_xor(src, iv, bsize); crypto_cbc_encrypt_inplace()
82 src += bsize; crypto_cbc_encrypt_inplace()
83 } while ((nbytes -= bsize) >= bsize); crypto_cbc_encrypt_inplace()
85 memcpy(walk->iv, iv, bsize); crypto_cbc_encrypt_inplace()
120 int bsize = crypto_cipher_blocksize(tfm); crypto_cbc_decrypt_segment() local
128 crypto_xor(dst, iv, bsize); crypto_cbc_decrypt_segment()
131 src += bsize; crypto_cbc_decrypt_segment()
132 dst += bsize; crypto_cbc_decrypt_segment()
133 } while ((nbytes -= bsize) >= bsize); crypto_cbc_decrypt_segment()
135 memcpy(walk->iv, iv, bsize); crypto_cbc_decrypt_segment()
146 int bsize = crypto_cipher_blocksize(tfm); crypto_cbc_decrypt_inplace() local
149 u8 last_iv[bsize]; crypto_cbc_decrypt_inplace()
152 src += nbytes - (nbytes & (bsize - 1)) - bsize; crypto_cbc_decrypt_inplace()
153 memcpy(last_iv, src, bsize); crypto_cbc_decrypt_inplace()
157 if ((nbytes -= bsize) < bsize) crypto_cbc_decrypt_inplace()
159 crypto_xor(src, src - bsize, bsize); crypto_cbc_decrypt_inplace()
160 src -= bsize; crypto_cbc_decrypt_inplace()
163 crypto_xor(src, walk->iv, bsize); crypto_cbc_decrypt_inplace()
164 memcpy(walk->iv, last_iv, bsize); crypto_cbc_decrypt_inplace()
H A Dctr.c58 unsigned int bsize = crypto_cipher_blocksize(tfm); crypto_ctr_crypt_final() local
61 u8 tmp[bsize + alignmask]; crypto_ctr_crypt_final()
71 crypto_inc(ctrblk, bsize); crypto_ctr_crypt_final()
79 unsigned int bsize = crypto_cipher_blocksize(tfm); crypto_ctr_crypt_segment() local
88 crypto_xor(dst, src, bsize); crypto_ctr_crypt_segment()
91 crypto_inc(ctrblk, bsize); crypto_ctr_crypt_segment()
93 src += bsize; crypto_ctr_crypt_segment()
94 dst += bsize; crypto_ctr_crypt_segment()
95 } while ((nbytes -= bsize) >= bsize); crypto_ctr_crypt_segment()
105 unsigned int bsize = crypto_cipher_blocksize(tfm); crypto_ctr_crypt_inplace() local
110 u8 tmp[bsize + alignmask]; crypto_ctr_crypt_inplace()
116 crypto_xor(src, keystream, bsize); crypto_ctr_crypt_inplace()
119 crypto_inc(ctrblk, bsize); crypto_ctr_crypt_inplace()
121 src += bsize; crypto_ctr_crypt_inplace()
122 } while ((nbytes -= bsize) >= bsize); crypto_ctr_crypt_inplace()
135 unsigned int bsize = crypto_cipher_blocksize(child); crypto_ctr_crypt() local
139 err = blkcipher_walk_virt_block(desc, &walk, bsize); crypto_ctr_crypt()
141 while (walk.nbytes >= bsize) { crypto_ctr_crypt()
H A Dlrw.c84 int err, bsize = LRW_BLOCK_SIZE; setkey() local
85 const u8 *tweak = key + keylen - bsize; setkey()
90 err = crypto_cipher_setkey(child, key, keylen - bsize); setkey()
221 const unsigned int bsize = LRW_BLOCK_SIZE; lrw_crypt() local
222 const unsigned int max_blks = req->tbuflen / bsize; lrw_crypt()
239 nblocks = min(walk.nbytes / bsize, max_blks); lrw_crypt()
270 nblocks * bsize); lrw_crypt()
278 nbytes -= nblocks * bsize; lrw_crypt()
279 nblocks = min(nbytes / bsize, max_blks); lrw_crypt()
287 nblocks = min(nbytes / bsize, max_blks); lrw_crypt()
H A Decb.c46 int bsize = crypto_cipher_blocksize(tfm); crypto_ecb_crypt() local
59 wsrc += bsize; crypto_ecb_crypt()
60 wdst += bsize; crypto_ecb_crypt()
61 } while ((nbytes -= bsize) >= bsize); crypto_ecb_crypt()
H A Dablkcipher.c77 unsigned int bsize) ablkcipher_done_slow()
79 unsigned int n = bsize; ablkcipher_done_slow()
93 return bsize; ablkcipher_done_slow()
151 unsigned int bsize, ablkcipher_next_slow()
155 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); ablkcipher_next_slow()
171 src = dst = ablkcipher_get_spot(dst, bsize); ablkcipher_next_slow()
173 p->len = bsize; ablkcipher_next_slow()
176 scatterwalk_copychunks(src, &walk->in, bsize, 0); ablkcipher_next_slow()
180 walk->nbytes = bsize; ablkcipher_next_slow()
229 unsigned int alignmask, bsize, n; ablkcipher_walk_next() local
243 bsize = min(walk->blocksize, n); ablkcipher_walk_next()
247 if (n < bsize || ablkcipher_walk_next()
250 err = ablkcipher_next_slow(req, walk, bsize, alignmask, ablkcipher_walk_next()
76 ablkcipher_done_slow(struct ablkcipher_walk *walk, unsigned int bsize) ablkcipher_done_slow() argument
149 ablkcipher_next_slow(struct ablkcipher_request *req, struct ablkcipher_walk *walk, unsigned int bsize, unsigned int alignmask, void **src_p, void **dst_p) ablkcipher_next_slow() argument
H A Dxts.c173 const unsigned int bsize = XTS_BLOCK_SIZE; xts_crypt() local
174 const unsigned int max_blks = req->tbuflen / bsize; xts_crypt()
190 nblocks = min(nbytes / bsize, max_blks); xts_crypt()
213 nblocks * bsize); xts_crypt()
221 nbytes -= nblocks * bsize; xts_crypt()
222 nblocks = min(nbytes / bsize, max_blks); xts_crypt()
232 nblocks = min(nbytes / bsize, max_blks); xts_crypt()
H A Dblkcipher.c74 unsigned int bsize) blkcipher_done_slow()
79 addr = blkcipher_get_spot(addr, bsize); blkcipher_done_slow()
80 scatterwalk_copychunks(addr, &walk->out, bsize, 1); blkcipher_done_slow()
81 return bsize; blkcipher_done_slow()
148 unsigned int bsize, blkcipher_next_slow()
152 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); blkcipher_next_slow()
170 walk->dst.virt.addr = blkcipher_get_spot(walk->dst.virt.addr, bsize); blkcipher_next_slow()
172 aligned_bsize, bsize); blkcipher_next_slow()
174 scatterwalk_copychunks(walk->src.virt.addr, &walk->in, bsize, 0); blkcipher_next_slow()
176 walk->nbytes = bsize; blkcipher_next_slow()
226 unsigned int bsize; blkcipher_walk_next() local
248 bsize = min(walk->walk_blocksize, n); blkcipher_walk_next()
252 if (unlikely(n < bsize)) { blkcipher_walk_next()
253 err = blkcipher_next_slow(desc, walk, bsize, walk->alignmask); blkcipher_walk_next()
73 blkcipher_done_slow(struct blkcipher_walk *walk, unsigned int bsize) blkcipher_done_slow() argument
146 blkcipher_next_slow(struct blkcipher_desc *desc, struct blkcipher_walk *walk, unsigned int bsize, unsigned int alignmask) blkcipher_next_slow() argument
/linux-4.1.27/fs/squashfs/
H A Dfile_cache.c23 int squashfs_readpage_block(struct page *page, u64 block, int bsize) squashfs_readpage_block() argument
27 block, bsize); squashfs_readpage_block()
32 bsize); squashfs_readpage_block()
H A 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) squashfs_readpage_block() argument
85 res = squashfs_read_cache(target_page, block, bsize, pages, squashfs_readpage_block()
94 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); squashfs_readpage_block()
140 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, squashfs_read_cache() argument
145 block, bsize); squashfs_read_cache()
151 bsize); squashfs_read_cache()
H A Dfile.c472 int bsize = read_blocklist(inode, index, &block); squashfs_readpage() local
473 if (bsize < 0) squashfs_readpage()
476 if (bsize == 0) squashfs_readpage()
479 res = squashfs_readpage_block(page, block, bsize); squashfs_readpage()
/linux-4.1.27/arch/x86/crypto/
H A Dblowfish_glue.c85 unsigned int bsize = BF_BLOCK_SIZE; ecb_crypt() local
96 if (nbytes >= bsize * 4) { ecb_crypt()
100 wsrc += bsize * 4; ecb_crypt()
101 wdst += bsize * 4; ecb_crypt()
102 nbytes -= bsize * 4; ecb_crypt()
103 } while (nbytes >= bsize * 4); ecb_crypt()
105 if (nbytes < bsize) ecb_crypt()
113 wsrc += bsize; ecb_crypt()
114 wdst += bsize; ecb_crypt()
115 nbytes -= bsize; ecb_crypt()
116 } while (nbytes >= bsize); ecb_crypt()
147 unsigned int bsize = BF_BLOCK_SIZE; __cbc_encrypt() local
160 nbytes -= bsize; __cbc_encrypt()
161 } while (nbytes >= bsize); __cbc_encrypt()
188 unsigned int bsize = BF_BLOCK_SIZE; __cbc_decrypt() local
196 src += nbytes / bsize - 1; __cbc_decrypt()
197 dst += nbytes / bsize - 1; __cbc_decrypt()
202 if (nbytes >= bsize * 4) { __cbc_decrypt()
204 nbytes -= bsize * 4 - bsize; __cbc_decrypt()
218 nbytes -= bsize; __cbc_decrypt()
219 if (nbytes < bsize) __cbc_decrypt()
225 } while (nbytes >= bsize * 4); __cbc_decrypt()
232 nbytes -= bsize; __cbc_decrypt()
233 if (nbytes < bsize) __cbc_decrypt()
284 unsigned int bsize = BF_BLOCK_SIZE; __ctr_crypt() local
292 if (nbytes >= bsize * 4) { __ctr_crypt()
312 } while ((nbytes -= bsize * 4) >= bsize * 4); __ctr_crypt()
314 if (nbytes < bsize) __ctr_crypt()
329 } while ((nbytes -= bsize) >= bsize); __ctr_crypt()
H A Ddes3_ede_glue.c89 unsigned int bsize = DES3_EDE_BLOCK_SIZE; ecb_crypt() local
100 if (nbytes >= bsize * 3) { ecb_crypt()
105 wsrc += bsize * 3; ecb_crypt()
106 wdst += bsize * 3; ecb_crypt()
107 nbytes -= bsize * 3; ecb_crypt()
108 } while (nbytes >= bsize * 3); ecb_crypt()
110 if (nbytes < bsize) ecb_crypt()
118 wsrc += bsize; ecb_crypt()
119 wdst += bsize; ecb_crypt()
120 nbytes -= bsize; ecb_crypt()
121 } while (nbytes >= bsize); ecb_crypt()
154 unsigned int bsize = DES3_EDE_BLOCK_SIZE; __cbc_encrypt() local
167 nbytes -= bsize; __cbc_encrypt()
168 } while (nbytes >= bsize); __cbc_encrypt()
195 unsigned int bsize = DES3_EDE_BLOCK_SIZE; __cbc_decrypt() local
203 src += nbytes / bsize - 1; __cbc_decrypt()
204 dst += nbytes / bsize - 1; __cbc_decrypt()
209 if (nbytes >= bsize * 3) { __cbc_decrypt()
211 nbytes -= bsize * 3 - bsize; __cbc_decrypt()
223 nbytes -= bsize; __cbc_decrypt()
224 if (nbytes < bsize) __cbc_decrypt()
230 } while (nbytes >= bsize * 3); __cbc_decrypt()
237 nbytes -= bsize; __cbc_decrypt()
238 if (nbytes < bsize) __cbc_decrypt()
290 unsigned int bsize = DES3_EDE_BLOCK_SIZE; __ctr_crypt() local
298 if (nbytes >= bsize * 3) { __ctr_crypt()
314 } while ((nbytes -= bsize * 3) >= bsize * 3); __ctr_crypt()
316 if (nbytes < bsize) __ctr_crypt()
330 } while ((nbytes -= bsize) >= bsize); __ctr_crypt()
H A Dglue_helper.c40 const unsigned int bsize = 128 / 8; __glue_ecb_crypt_128bit() local
51 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, __glue_ecb_crypt_128bit()
55 func_bytes = bsize * gctx->funcs[i].num_blocks; __glue_ecb_crypt_128bit()
68 if (nbytes < bsize) __glue_ecb_crypt_128bit()
97 const unsigned int bsize = 128 / 8; __glue_cbc_encrypt_128bit() local
110 nbytes -= bsize; __glue_cbc_encrypt_128bit()
111 } while (nbytes >= bsize); __glue_cbc_encrypt_128bit()
143 const unsigned int bsize = 128 / 8; __glue_cbc_decrypt_128bit() local
152 src += nbytes / bsize - 1; __glue_cbc_decrypt_128bit()
153 dst += nbytes / bsize - 1; __glue_cbc_decrypt_128bit()
159 func_bytes = bsize * num_blocks; __glue_cbc_decrypt_128bit()
164 nbytes -= func_bytes - bsize; __glue_cbc_decrypt_128bit()
170 nbytes -= bsize; __glue_cbc_decrypt_128bit()
171 if (nbytes < bsize) __glue_cbc_decrypt_128bit()
179 if (nbytes < bsize) __glue_cbc_decrypt_128bit()
196 const unsigned int bsize = 128 / 8; glue_cbc_decrypt_128bit() local
205 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, glue_cbc_decrypt_128bit()
240 const unsigned int bsize = 128 / 8; __glue_ctr_crypt_128bit() local
254 func_bytes = bsize * num_blocks; __glue_ctr_crypt_128bit()
265 if (nbytes < bsize) __glue_ctr_crypt_128bit()
279 const unsigned int bsize = 128 / 8; glue_ctr_crypt_128bit() local
285 err = blkcipher_walk_virt_block(desc, &walk, bsize); glue_ctr_crypt_128bit()
287 while ((nbytes = walk.nbytes) >= bsize) { glue_ctr_crypt_128bit()
288 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, glue_ctr_crypt_128bit()
311 const unsigned int bsize = 128 / 8; __glue_xts_crypt_128bit() local
321 func_bytes = bsize * num_blocks; __glue_xts_crypt_128bit()
333 if (nbytes < bsize) __glue_xts_crypt_128bit()
349 const unsigned int bsize = 128 / 8; glue_xts_crypt_128bit() local
361 /* set minimum length to bsize, for tweak_fn */ glue_xts_crypt_128bit()
362 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, glue_xts_crypt_128bit()
364 nbytes < bsize ? bsize : nbytes); glue_xts_crypt_128bit()
H A Dcast5_avx_glue.c65 const unsigned int bsize = CAST5_BLOCK_SIZE; ecb_crypt() local
82 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { ecb_crypt()
86 wsrc += bsize * CAST5_PARALLEL_BLOCKS; ecb_crypt()
87 wdst += bsize * CAST5_PARALLEL_BLOCKS; ecb_crypt()
88 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; ecb_crypt()
89 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); ecb_crypt()
91 if (nbytes < bsize) ecb_crypt()
101 wsrc += bsize; ecb_crypt()
102 wdst += bsize; ecb_crypt()
103 nbytes -= bsize; ecb_crypt()
104 } while (nbytes >= bsize); ecb_crypt()
136 const unsigned int bsize = CAST5_BLOCK_SIZE; __cbc_encrypt() local
149 nbytes -= bsize; __cbc_encrypt()
150 } while (nbytes >= bsize); __cbc_encrypt()
177 const unsigned int bsize = CAST5_BLOCK_SIZE; __cbc_decrypt() local
184 src += nbytes / bsize - 1; __cbc_decrypt()
185 dst += nbytes / bsize - 1; __cbc_decrypt()
190 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { __cbc_decrypt()
192 nbytes -= bsize * (CAST5_PARALLEL_BLOCKS - 1); __cbc_decrypt()
198 nbytes -= bsize; __cbc_decrypt()
199 if (nbytes < bsize) __cbc_decrypt()
205 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); __cbc_decrypt()
212 nbytes -= bsize; __cbc_decrypt()
213 if (nbytes < bsize) __cbc_decrypt()
270 const unsigned int bsize = CAST5_BLOCK_SIZE; __ctr_crypt() local
276 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { __ctr_crypt()
283 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; __ctr_crypt()
284 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); __ctr_crypt()
286 if (nbytes < bsize) __ctr_crypt()
305 nbytes -= bsize; __ctr_crypt()
306 } while (nbytes >= bsize); __ctr_crypt()
H A Dcamellia_aesni_avx_glue.c216 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; encrypt_callback() local
222 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { encrypt_callback()
224 srcdst += bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; encrypt_callback()
225 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; encrypt_callback()
228 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { encrypt_callback()
230 srcdst += bsize * CAMELLIA_PARALLEL_BLOCKS; encrypt_callback()
231 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; encrypt_callback()
234 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
240 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; decrypt_callback() local
246 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { decrypt_callback()
248 srcdst += bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; decrypt_callback()
249 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; decrypt_callback()
252 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { decrypt_callback()
254 srcdst += bsize * CAMELLIA_PARALLEL_BLOCKS; decrypt_callback()
255 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; decrypt_callback()
258 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dserpent_avx2_glue.c190 const unsigned int bsize = SERPENT_BLOCK_SIZE; encrypt_callback() local
196 if (nbytes >= SERPENT_AVX2_PARALLEL_BLOCKS * bsize) { encrypt_callback()
198 srcdst += bsize * SERPENT_AVX2_PARALLEL_BLOCKS; encrypt_callback()
199 nbytes -= bsize * SERPENT_AVX2_PARALLEL_BLOCKS; encrypt_callback()
202 while (nbytes >= SERPENT_PARALLEL_BLOCKS * bsize) { encrypt_callback()
204 srcdst += bsize * SERPENT_PARALLEL_BLOCKS; encrypt_callback()
205 nbytes -= bsize * SERPENT_PARALLEL_BLOCKS; encrypt_callback()
208 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
214 const unsigned int bsize = SERPENT_BLOCK_SIZE; decrypt_callback() local
220 if (nbytes >= SERPENT_AVX2_PARALLEL_BLOCKS * bsize) { decrypt_callback()
222 srcdst += bsize * SERPENT_AVX2_PARALLEL_BLOCKS; decrypt_callback()
223 nbytes -= bsize * SERPENT_AVX2_PARALLEL_BLOCKS; decrypt_callback()
226 while (nbytes >= SERPENT_PARALLEL_BLOCKS * bsize) { decrypt_callback()
228 srcdst += bsize * SERPENT_PARALLEL_BLOCKS; decrypt_callback()
229 nbytes -= bsize * SERPENT_PARALLEL_BLOCKS; decrypt_callback()
232 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dcamellia_aesni_avx2_glue.c212 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; encrypt_callback() local
218 if (nbytes >= CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS * bsize) { encrypt_callback()
220 srcdst += bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; encrypt_callback()
221 nbytes -= bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; encrypt_callback()
224 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { encrypt_callback()
226 srcdst += bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; encrypt_callback()
227 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; encrypt_callback()
230 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { encrypt_callback()
232 srcdst += bsize * CAMELLIA_PARALLEL_BLOCKS; encrypt_callback()
233 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; encrypt_callback()
236 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
242 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; decrypt_callback() local
248 if (nbytes >= CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS * bsize) { decrypt_callback()
250 srcdst += bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; decrypt_callback()
251 nbytes -= bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; decrypt_callback()
254 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { decrypt_callback()
256 srcdst += bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; decrypt_callback()
257 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; decrypt_callback()
260 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { decrypt_callback()
262 srcdst += bsize * CAMELLIA_PARALLEL_BLOCKS; decrypt_callback()
263 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; decrypt_callback()
266 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dtwofish_avx_glue.c225 const unsigned int bsize = TF_BLOCK_SIZE; encrypt_callback() local
231 if (nbytes == bsize * TWOFISH_PARALLEL_BLOCKS) { encrypt_callback()
236 for (i = 0; i < nbytes / (bsize * 3); i++, srcdst += bsize * 3) encrypt_callback()
239 nbytes %= bsize * 3; encrypt_callback()
241 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
247 const unsigned int bsize = TF_BLOCK_SIZE; decrypt_callback() local
253 if (nbytes == bsize * TWOFISH_PARALLEL_BLOCKS) { decrypt_callback()
258 for (i = 0; i < nbytes / (bsize * 3); i++, srcdst += bsize * 3) decrypt_callback()
261 nbytes %= bsize * 3; decrypt_callback()
263 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dtwofish_glue_3way.c188 const unsigned int bsize = TF_BLOCK_SIZE; encrypt_callback() local
192 if (nbytes == 3 * bsize) { encrypt_callback()
197 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
203 const unsigned int bsize = TF_BLOCK_SIZE; decrypt_callback() local
207 if (nbytes == 3 * bsize) { decrypt_callback()
212 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dcast6_avx_glue.c211 const unsigned int bsize = CAST6_BLOCK_SIZE; encrypt_callback() local
217 if (nbytes == bsize * CAST6_PARALLEL_BLOCKS) { encrypt_callback()
222 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
228 const unsigned int bsize = CAST6_BLOCK_SIZE; decrypt_callback() local
234 if (nbytes == bsize * CAST6_PARALLEL_BLOCKS) { decrypt_callback()
239 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dserpent_avx_glue.c224 const unsigned int bsize = SERPENT_BLOCK_SIZE; encrypt_callback() local
230 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { encrypt_callback()
235 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
241 const unsigned int bsize = SERPENT_BLOCK_SIZE; decrypt_callback() local
247 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { decrypt_callback()
252 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dserpent_sse2_glue.c192 const unsigned int bsize = SERPENT_BLOCK_SIZE; encrypt_callback() local
198 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { encrypt_callback()
203 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
209 const unsigned int bsize = SERPENT_BLOCK_SIZE; decrypt_callback() local
215 if (nbytes == bsize * SERPENT_PARALLEL_BLOCKS) { decrypt_callback()
220 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
H A Dcamellia_glue.c1410 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; encrypt_callback() local
1414 while (nbytes >= 2 * bsize) { encrypt_callback()
1416 srcdst += bsize * 2; encrypt_callback()
1417 nbytes -= bsize * 2; encrypt_callback()
1420 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) encrypt_callback()
1426 const unsigned int bsize = CAMELLIA_BLOCK_SIZE; decrypt_callback() local
1430 while (nbytes >= 2 * bsize) { decrypt_callback()
1432 srcdst += bsize * 2; decrypt_callback()
1433 nbytes -= bsize * 2; decrypt_callback()
1436 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) decrypt_callback()
/linux-4.1.27/arch/m68k/emu/
H A Dnfblock.c56 u32 blocks, bsize; member in struct:nfhd_device
98 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) nfhd_init_one() argument
104 blocks, bsize); nfhd_init_one()
106 if (bsize < 512 || (bsize & (bsize - 1))) { nfhd_init_one()
117 dev->bsize = bsize; nfhd_init_one()
118 dev->bshift = ffs(bsize) - 10; nfhd_init_one()
126 blk_queue_logical_block_size(dev->queue, bsize); nfhd_init_one()
137 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); nfhd_init_one()
156 u32 blocks, bsize; nfhd_init() local
170 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) nfhd_init()
172 nfhd_init_one(i, blocks, bsize); nfhd_init()
/linux-4.1.27/lib/mpi/
H A Dmpi-pow.c42 mpi_size_t esize, msize, bsize, rsize; mpi_powm() local
86 bsize = base->nlimbs; mpi_powm()
88 if (bsize > msize) { /* The base is larger than the module. Reduce it. */ mpi_powm()
90 * (The quotient is (bsize - msize + 1) limbs.) */ mpi_powm()
91 bp = bp_marker = mpi_alloc_limb_space(bsize + 1); mpi_powm()
94 MPN_COPY(bp, base->d, bsize); mpi_powm()
97 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); mpi_powm()
98 bsize = msize; mpi_powm()
101 MPN_NORMALIZE(bp, bsize); mpi_powm()
105 if (!bsize) { mpi_powm()
129 bp = bp_marker = mpi_alloc_limb_space(bsize); mpi_powm()
132 MPN_COPY(bp, rp, bsize); mpi_powm()
151 MPN_COPY(rp, bp, bsize); mpi_powm()
152 rsize = bsize; mpi_powm()
225 /*mpihelp_mul( xp, rp, rsize, bp, bsize ); */ mpi_powm()
226 if (bsize < KARATSUBA_THRESHOLD) { mpi_powm()
229 (xp, rp, rsize, bp, bsize, mpi_powm()
234 (xp, rp, rsize, bp, bsize, mpi_powm()
239 xsize = rsize + bsize; mpi_powm()
/linux-4.1.27/fs/freevxfs/
H A Dvxfs_olt.c57 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) vxfs_oblock() argument
59 BUG_ON(sbp->s_blocksize % bsize); vxfs_oblock()
60 return (block * (sbp->s_blocksize / bsize)); vxfs_oblock()
67 * @bsize: blocksize of the filesystem
77 vxfs_read_olt(struct super_block *sbp, u_long bsize) vxfs_read_olt() argument
85 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); vxfs_read_olt()
H A Dvxfs_lookup.c74 u_long bsize = ip->i_sb->s_blocksize; dir_blocks() local
75 return (ip->i_size + bsize - 1) & ~(bsize - 1); dir_blocks()
117 u_long bsize = ip->i_sb->s_blocksize; vxfs_find_entry() local
139 baddr = kaddr + (block * bsize); vxfs_find_entry()
140 limit = baddr + bsize - VXFS_DIRLEN(1); vxfs_find_entry()
242 u_long bsize = sbp->s_blocksize; vxfs_readdir() local
283 baddr = kaddr + (block * bsize); vxfs_readdir()
284 limit = baddr + bsize - VXFS_DIRLEN(1); vxfs_readdir()
H A Dvxfs_super.c153 u_long bsize; vxfs_fill_super() local
165 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); vxfs_fill_super()
166 if (!bsize) { vxfs_fill_super()
211 if (vxfs_read_olt(sbp, bsize)) { vxfs_fill_super()
H A Dvxfs.h116 int32_t vs_bshift; /* log base 2 of bsize */
118 int32_t vs_bmask; /* ~( bsize - 1 ) */
119 int32_t vs_boffmask; /* bsize - 1 */
H A Dvxfs_bmap.c71 unsigned long bsize = sb->s_blocksize; vxfs_bmap_ext4() local
85 if ((bn / (indsize * indsize * bsize / 4)) == 0) { vxfs_bmap_ext4()
/linux-4.1.27/arch/alpha/include/uapi/asm/
H A Da.out.h30 __u64 bsize; member in struct:aouthdr
67 #define a_bss ah.bsize
/linux-4.1.27/fs/affs/
H A Dfile.c508 u32 bidx, boff, bsize; affs_do_readpage_ofs() local
516 bsize = AFFS_SB(sb)->s_data_blksize; affs_do_readpage_ofs()
518 bidx = tmp / bsize; affs_do_readpage_ofs()
519 boff = tmp % bsize; affs_do_readpage_ofs()
525 tmp = min(bsize - boff, to - pos); affs_do_readpage_ofs()
526 BUG_ON(pos + tmp > to || tmp > bsize); affs_do_readpage_ofs()
544 u32 size, bsize; affs_extent_file_ofs() local
548 bsize = AFFS_SB(sb)->s_data_blksize; affs_extent_file_ofs()
551 bidx = size / bsize; affs_extent_file_ofs()
552 boff = size % bsize; affs_extent_file_ofs()
557 tmp = min(bsize - boff, newsize - size); affs_extent_file_ofs()
558 BUG_ON(boff + tmp > bsize || tmp > bsize); affs_extent_file_ofs()
576 tmp = min(bsize, newsize - size); affs_extent_file_ofs()
577 BUG_ON(tmp > bsize); affs_extent_file_ofs()
597 size += bsize; affs_extent_file_ofs()
676 u32 bidx, boff, bsize; affs_write_end_ofs() local
691 bsize = AFFS_SB(sb)->s_data_blksize; affs_write_end_ofs()
697 bidx = tmp / bsize; affs_write_end_ofs()
698 boff = tmp % bsize; affs_write_end_ofs()
705 tmp = min(bsize - boff, to - from); affs_write_end_ofs()
706 BUG_ON(boff + tmp > bsize || tmp > bsize); affs_write_end_ofs()
721 while (from + bsize <= to) { affs_write_end_ofs()
726 memcpy(AFFS_DATA(bh), data + from, bsize); affs_write_end_ofs()
731 AFFS_DATA_HEAD(bh)->size = cpu_to_be32(bsize); affs_write_end_ofs()
749 written += bsize; affs_write_end_ofs()
750 from += bsize; affs_write_end_ofs()
758 tmp = min(bsize, to - from); affs_write_end_ofs()
759 BUG_ON(tmp > bsize); affs_write_end_ofs()
H A Damigaffs.c340 int bsize; affs_checksum_block() local
343 for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--) affs_checksum_block()
/linux-4.1.27/fs/jfs/
H A Djfs_mount.c311 s32 bsize; chkSuper() local
327 bsize = le32_to_cpu(j_sb->s_bsize); chkSuper()
329 if (bsize != PSIZE) { chkSuper()
344 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; chkSuper()
346 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; chkSuper()
347 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; chkSuper()
348 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; chkSuper()
350 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; chkSuper()
378 sbi->bsize = bsize; chkSuper()
H A Djfs_logmgr.h69 __le32 bsize; /* 4: logical block size in byte */ member in struct:logsuper
70 __le32 l2bsize; /* 4: log2 of bsize */
377 int l2bsize; /* 4: log2 of bsize */
H A Djfs_incore.h170 short bsize; /* logical block size */ member in struct:jfs_sb_info
H A Dsuper.c157 buf->f_bsize = sbi->bsize; jfs_statfs()
H A Djfs_dmap.c3897 int l2max, l2free, bsize, nextb, i; dbInitTree() local
3920 for (l2free = dtp->budmin, bsize = 1; l2free < l2max; dbInitTree()
3921 l2free++, bsize = nextb) { dbInitTree()
3923 nextb = bsize << 1; dbInitTree()
3930 if (*cp == l2free && *(cp + bsize) == l2free) { dbInitTree()
3932 *(cp + bsize) = -1; /* right give left */ dbInitTree()
H A Djfs_logmgr.c2424 logsuper->bsize = cpu_to_le32(sbi->bsize); lmLogFormat()
H A Dnamei.c978 bmask = JFS_SBI(sb)->bsize - 1; jfs_symlink()
H A Djfs_xtree.c166 size = ((u64) ip->i_size + (JFS_SBI(ip->i_sb)->bsize - 1)) >> xtLookup()
3228 teof = (newsize + (JFS_SBI(ip->i_sb)->bsize - 1)) >> xtTruncate()
H A Djfs_dtree.c981 n = sbi->bsize >> L2DTSLOTSIZE; dtSplitUp()
/linux-4.1.27/fs/nfs/
H A Dinternal.h89 unsigned int bsize; member in struct:nfs_parsed_mount_data
551 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) nfs_block_bits() argument
554 if ((bsize & (bsize - 1)) || nrbitsp) { nfs_block_bits()
557 for (nrbits = 31; nrbits && !(bsize & (1 << nrbits)); nrbits--) nfs_block_bits()
559 bsize = 1 << nrbits; nfs_block_bits()
564 return bsize; nfs_block_bits()
580 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) nfs_block_size() argument
582 if (bsize < NFS_MIN_FILE_IO_SIZE) nfs_block_size()
583 bsize = NFS_DEF_FILE_IO_SIZE; nfs_block_size()
584 else if (bsize >= NFS_MAX_FILE_IO_SIZE) nfs_block_size()
585 bsize = NFS_MAX_FILE_IO_SIZE; nfs_block_size()
587 return nfs_block_bits(bsize, nrbitsp); nfs_block_size()
H A Dproc.c86 info->rtmult = fsinfo.bsize; nfs_proc_get_root()
89 info->wtmult = fsinfo.bsize; nfs_proc_get_root()
531 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; nfs_proc_statfs()
532 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; nfs_proc_statfs()
533 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; nfs_proc_statfs()
561 info->rtmult = fsinfo.bsize; nfs_proc_fsinfo()
564 info->wtmult = fsinfo.bsize; nfs_proc_fsinfo()
H A Dpagelist.c700 unsigned int bsize) nfs_pageio_mirror_init()
705 mirror->pg_bsize = bsize; nfs_pageio_mirror_init()
715 * @bsize: io block size
723 size_t bsize, nfs_pageio_init()
739 desc->pg_bsize = bsize; nfs_pageio_init()
753 nfs_pageio_mirror_init(&desc->pg_mirrors[i], bsize); nfs_pageio_init()
757 nfs_pageio_mirror_init(&desc->pg_mirrors[0], bsize); nfs_pageio_init()
699 nfs_pageio_mirror_init(struct nfs_pgio_mirror *mirror, unsigned int bsize) nfs_pageio_mirror_init() argument
718 nfs_pageio_init(struct nfs_pageio_descriptor *desc, struct inode *inode, const struct nfs_pageio_ops *pg_ops, const struct nfs_pgio_completion_ops *compl_ops, const struct nfs_rw_ops *rw_ops, size_t bsize, int io_flags) nfs_pageio_init() argument
H A Dsuper.c158 { Opt_bsize, "bsize=%s" },
652 if (nfss->bsize != 0) nfs_show_mount_options()
653 seq_printf(m, ",bsize=%u", nfss->bsize); nfs_show_mount_options()
831 seq_printf(m, ",bsize=%u", nfss->bsize); nfs_show_stats()
1347 mnt->bsize = option; nfs_parse_mount_options()
1966 data->bsize = 0; nfs23_validate_mount_data()
2023 args->bsize = data->bsize; nfs23_validate_mount_data()
2312 if (data && data->bsize) nfs_fill_super()
2313 sb->s_blocksize = nfs_block_size(data->bsize, &sb->s_blocksize_bits); nfs_fill_super()
H A Dnfs2xdr.c1009 * unsigned bsize;
1026 result->bsize = be32_to_cpup(p++); decode_info()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dvideobuf-core.c331 b->length = vb->bsize; videobuf_status()
335 b->length = vb->bsize; videobuf_status()
385 unsigned int bcount, unsigned int bsize, __videobuf_mmap_setup()
406 q->bufs[i]->bsize = bsize; __videobuf_mmap_setup()
409 q->bufs[i]->boff = PAGE_ALIGN(bsize) * i; __videobuf_mmap_setup()
422 dprintk(1, "mmap setup: %d buffers, %d bytes each\n", i, bsize); __videobuf_mmap_setup()
429 unsigned int bcount, unsigned int bsize, videobuf_mmap_setup()
434 ret = __videobuf_mmap_setup(q, bcount, bsize, memory); videobuf_mmap_setup()
586 if (b->length < buf->bsize) { videobuf_qbuf()
803 q->read_buf->bsize = count; videobuf_read_zerocopy()
908 q->read_buf->bsize = count; /* preferred size */ videobuf_read_one()
384 __videobuf_mmap_setup(struct videobuf_queue *q, unsigned int bcount, unsigned int bsize, enum v4l2_memory memory) __videobuf_mmap_setup() argument
428 videobuf_mmap_setup(struct videobuf_queue *q, unsigned int bcount, unsigned int bsize, enum v4l2_memory memory) videobuf_mmap_setup() argument
H A Dvideobuf-dma-sg.c530 vb->baddr, vb->bsize); __videobuf_iolock()
541 vb->baddr, vb->bsize); __videobuf_iolock()
604 size = PAGE_ALIGN(q->bufs[first]->bsize); __videobuf_mmap_mapper()
630 size += PAGE_ALIGN(q->bufs[i]->bsize); __videobuf_mmap_mapper()
H A Dvideobuf-dma-contig.c301 if (__videobuf_dc_alloc(q->dev, mem, PAGE_ALIGN(buf->bsize), __videobuf_mmap_mapper()
332 (long int)buf->bsize, vma->vm_pgoff, buf->i); __videobuf_mmap_mapper()
H A Dvideobuf-vmalloc.c278 (long int)buf->bsize, __videobuf_mmap_mapper()
/linux-4.1.27/arch/x86/include/asm/crypto/
H A Dglue_helper.h46 static inline bool glue_fpu_begin(unsigned int bsize, int fpu_blocks_limit, glue_fpu_begin() argument
60 if (nbytes < bsize * (unsigned int)fpu_blocks_limit) glue_fpu_begin()
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_inline.h71 host_to_fcp_swap(uint8_t *fcp, uint32_t bsize) host_to_fcp_swap() argument
75 uint32_t iter = bsize >> 2; host_to_fcp_swap()
84 host_to_adap(uint8_t *src, uint8_t *dst, uint32_t bsize) host_to_adap() argument
88 uint32_t iter = bsize >> 2; host_to_adap()
/linux-4.1.27/arch/mips/boot/
H A Decoff.h38 long bsize; /* uninitialized data " " */ member in struct:aouthdr
H A Delf2ecoff.c236 a->bsize = swab32(a->bsize); convert_ecoff_aouthdr()
422 eah.bsize = bss.len; main()
465 esecs[2].s_size = eah.bsize; main()
/linux-4.1.27/include/media/
H A Dvideobuf-core.h45 * If there is a valid mapping for a buffer, buffer->baddr/bsize holds
89 size_t bsize; member in struct:videobuf_buffer
227 unsigned int bcount, unsigned int bsize,
230 unsigned int bcount, unsigned int bsize,
/linux-4.1.27/include/uapi/linux/
H A Dnfs_mount.h42 unsigned int bsize; /* 3 */ member in struct:nfs_mount_data
H A Dcoff.h135 char bsize[4]; /* uninitialized data " " */ member in struct:__anon13173
H A Dfuse.h173 uint32_t bsize; member in struct:fuse_kstatfs
/linux-4.1.27/drivers/s390/block/
H A Ddasd_diag.c322 unsigned int sb, bsize; dasd_diag_check_device() local
400 for (bsize = 512; bsize <= PAGE_SIZE; bsize <<= 1) { dasd_diag_check_device()
401 mdsk_init_io(device, bsize, 0, &end_block); dasd_diag_check_device()
425 if (bsize > PAGE_SIZE) { dasd_diag_check_device()
436 bsize = (unsigned int) label->block_size; dasd_diag_check_device()
440 block->bp_block = bsize; dasd_diag_check_device()
442 for (sb = 512; sb < bsize; sb = sb << 1) dasd_diag_check_device()
H A Ddasd_int.h638 * Check if bsize is in { 512, 1024, 2048, 4096 }
641 dasd_check_blocksize(int bsize) dasd_check_blocksize() argument
643 if (bsize < 512 || bsize > 4096 || !is_power_of_2(bsize)) dasd_check_blocksize()
/linux-4.1.27/drivers/mtd/
H A Dftl.c790 uint32_t log_addr, bsize; ftl_read() local
801 bsize = 1 << part->header.EraseUnitSize; ftl_read()
812 offset = (part->EUNInfo[log_addr / bsize].Offset ftl_read()
813 + (log_addr % bsize)); ftl_read()
836 uint32_t bsize, blk, le_virt_addr; set_bam_entry() local
846 bsize = 1 << part->header.EraseUnitSize; set_bam_entry()
847 eun = log_addr / bsize; set_bam_entry()
848 blk = (log_addr % bsize) / SECTOR_SIZE; set_bam_entry()
904 uint32_t bsize, log_addr, virt_addr, old_addr, blk; ftl_write() local
922 bsize = 1 << part->header.EraseUnitSize; ftl_write()
942 log_addr = part->bam_index * bsize + blk * SECTOR_SIZE; ftl_write()
964 part->EUNInfo[old_addr/bsize].Deleted++; ftl_write()
1012 uint32_t bsize = 1 << part->header.EraseUnitSize; ftl_discardsect() local
1021 part->EUNInfo[old_addr/bsize].Deleted++; ftl_discardsect()
/linux-4.1.27/fs/nilfs2/
H A Dalloc.c339 * @bsize: size in bits
345 int bsize) nilfs_palloc_find_available_slot()
351 if (end > bsize) nilfs_palloc_find_available_slot()
352 end = bsize; nilfs_palloc_find_available_slot()
362 i < bsize; nilfs_palloc_find_available_slot()
365 if (curr >= bsize) nilfs_palloc_find_available_slot()
370 if (end > bsize) nilfs_palloc_find_available_slot()
371 end = bsize; nilfs_palloc_find_available_slot()
341 nilfs_palloc_find_available_slot(struct inode *inode, unsigned long group, unsigned long target, unsigned char *bitmap, int bsize) nilfs_palloc_find_available_slot() argument
/linux-4.1.27/include/linux/
H A Dnfs_page.h100 unsigned int pg_bsize; /* default bsize for mirrors */
127 size_t bsize,
H A Dnfs_fs_sb.h143 unsigned int bsize; /* server block size */ member in struct:nfs_server
H A Dnfs_xdr.h158 __u32 bsize; /* Filesystem block size */ member in struct:nfs2_fsstat
159 __u32 blocks; /* No. of "bsize" blocks on filesystem */
160 __u32 bfree; /* No. of free "bsize" blocks */
161 __u32 bavail; /* No. of available "bsize" blocks */
H A Djbd.h873 int start, int len, int bsize);
H A Djbd2.h1145 unsigned long long start, int len, int bsize);
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramgf100.c517 u32 bsize = nv_rd32(pfb, 0x10f20c); gf100_ram_create_() local
537 if (psize != bsize) { gf100_ram_create_()
538 if (psize < bsize) gf100_ram_create_()
539 bsize = psize; gf100_ram_create_()
556 (bsize << 8) * parts - rsvd_head, 1); gf100_ram_create_()
561 offset = (0x0200000000ULL >> 12) + (bsize << 8); gf100_ram_create_()
562 length = (ram->size >> 12) - ((bsize * parts) << 8) - rsvd_tail; gf100_ram_create_()
/linux-4.1.27/drivers/net/wireless/
H A Dat76c50x-usb.c372 int bsize = 0; at76_usbdfu_download() local
444 bsize = min_t(int, size, FW_BLOCK_SIZE); at76_usbdfu_download()
445 memcpy(block, buf, bsize); at76_usbdfu_download()
447 "bsize = %4d, blockno = %2d", size, bsize, at76_usbdfu_download()
450 at76_load_int_fw_block(udev, blockno, block, bsize); at76_usbdfu_download()
451 buf += bsize; at76_usbdfu_download()
452 size -= bsize; at76_usbdfu_download()
455 if (ret != bsize) at76_usbdfu_download()
1264 int bsize; at76_load_external_fw() local
1288 bsize = min_t(int, size, FW_BLOCK_SIZE); at76_load_external_fw()
1289 memcpy(block, buf, bsize); at76_load_external_fw()
1291 "ext fw, size left = %5d, bsize = %4d, blockno = %2d", at76_load_external_fw()
1292 size, bsize, blockno); at76_load_external_fw()
1293 ret = at76_load_ext_fw_block(udev, blockno, block, bsize); at76_load_external_fw()
1294 if (ret != bsize) { at76_load_external_fw()
1301 buf += bsize; at76_load_external_fw()
1302 size -= bsize; at76_load_external_fw()
1304 } while (bsize > 0); at76_load_external_fw()
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00usb.c113 u16 off, len, bsize; rt2x00usb_vendor_request_buff() local
121 bsize = min_t(u16, CSR_CACHE_SIZE, len); rt2x00usb_vendor_request_buff()
124 bsize, REGISTER_TIMEOUT); rt2x00usb_vendor_request_buff()
126 tb += bsize; rt2x00usb_vendor_request_buff()
127 len -= bsize; rt2x00usb_vendor_request_buff()
128 off += bsize; rt2x00usb_vendor_request_buff()
/linux-4.1.27/fs/reiserfs/
H A Ditem_ops.c31 static int sd_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) sd_is_left_mergeable() argument
136 unsigned long bsize) direct_is_left_mergeable()
139 return ((le_key_k_offset(version, key) & (bsize - 1)) != 1); direct_is_left_mergeable()
228 unsigned long bsize) indirect_is_left_mergeable()
372 unsigned long bsize) direntry_is_left_mergeable()
658 unsigned long bsize) errcatch_is_left_mergeable()
135 direct_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) direct_is_left_mergeable() argument
227 indirect_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) indirect_is_left_mergeable() argument
371 direntry_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) direntry_is_left_mergeable() argument
657 errcatch_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) errcatch_is_left_mergeable() argument
H A Dreiserfs.h2630 unsigned long bsize);
2646 #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih, bsize)
2647 #define op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize)
/linux-4.1.27/sound/oss/
H A Dvidc.c321 static int vidc_audio_prepare_for_input(int dev, int bsize, int bcount) vidc_audio_prepare_for_input() argument
335 * Each buffer that will be passed will be `bsize' bytes long,
338 static int vidc_audio_prepare_for_output(int dev, int bsize, int bcount) vidc_audio_prepare_for_output() argument
H A Dpas2_pcm.c347 static int pas_audio_prepare_for_input(int dev, int bsize, int bcount) pas_audio_prepare_for_input() argument
353 static int pas_audio_prepare_for_output(int dev, int bsize, int bcount) pas_audio_prepare_for_output() argument
H A Dsb_audio.c256 static int sb1_audio_prepare_for_input(int dev, int bsize, int bcount) sb1_audio_prepare_for_input() argument
271 static int sb1_audio_prepare_for_output(int dev, int bsize, int bcount) sb1_audio_prepare_for_output() argument
469 static int sbpro_audio_prepare_for_input(int dev, int bsize, int bcount) sbpro_audio_prepare_for_input() argument
497 static int sbpro_audio_prepare_for_output(int dev, int bsize, int bcount) sbpro_audio_prepare_for_output() argument
635 static int sb16_audio_prepare_for_input(int dev, int bsize, int bcount) sb16_audio_prepare_for_input() argument
661 static int sb16_audio_prepare_for_output(int dev, int bsize, int bcount) sb16_audio_prepare_for_output() argument
H A Dsb_ess.c438 static int ess_audio_prepare_for_input(int dev, int bsize, int bcount) ess_audio_prepare_for_input() argument
459 static int ess_audio_prepare_for_output_audio1 (int dev, int bsize, int bcount) ess_audio_prepare_for_output_audio1() argument
480 static int ess_audio_prepare_for_output_audio2 (int dev, int bsize, int bcount) ess_audio_prepare_for_output_audio2() argument
518 static int ess_audio_prepare_for_output(int dev, int bsize, int bcount) ess_audio_prepare_for_output() argument
528 return ess_audio_prepare_for_output_audio2 (dev, bsize, bcount); ess_audio_prepare_for_output()
530 return ess_audio_prepare_for_output_audio1 (dev, bsize, bcount); ess_audio_prepare_for_output()
H A 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) ad1848_prepare_for_output() argument
1191 static int ad1848_prepare_for_input(int dev, int bsize, int bcount) ad1848_prepare_for_input() argument
H A Dwaveartist.c567 waveartist_prepare_for_input(int dev, int bsize, int bcount) waveartist_prepare_for_input() argument
624 waveartist_prepare_for_output(int dev, int bsize, int bcount) waveartist_prepare_for_output() argument
H A Dswarm_cs4297a.c346 static void clear_advance(void *buf, unsigned bsize, unsigned bptr, clear_advance() argument
349 if (bptr + len > bsize) { clear_advance()
350 unsigned x = bsize - bptr; clear_advance()
/linux-4.1.27/fs/sysv/
H A Dsuper.c308 int bsize = 1 << n_bits; complete_read_super() local
309 int bsize_4 = bsize >> 2; complete_read_super()
317 sbi->s_inodes_per_block = bsize >> 6; complete_read_super()
318 sbi->s_inodes_per_block_1 = (bsize >> 6)-1; complete_read_super()
/linux-4.1.27/fs/nfsd/
H A Dnfsctl.c873 int bsize; write_maxblksize() local
874 int rv = get_int(&mesg, &bsize); write_maxblksize()
877 /* force bsize into allowed range and write_maxblksize()
880 bsize = max_t(int, bsize, 1024); write_maxblksize()
881 bsize = min_t(int, bsize, NFSSVC_MAXBLKSIZE); write_maxblksize()
882 bsize &= ~(1024-1); write_maxblksize()
888 nfsd_max_blksize = bsize; write_maxblksize()
/linux-4.1.27/security/apparmor/
H A Dmatch.c31 * @bsize: size of blob
37 static struct table_header *unpack_table(char *blob, size_t bsize) unpack_table() argument
43 if (bsize < sizeof(struct table_header)) unpack_table()
59 if (bsize < tsize) unpack_table()
/linux-4.1.27/fs/cachefiles/
H A Dbind.c158 cache->bsize = stats.f_bsize; cachefiles_daemon_add_cache()
164 cache->bsize, cache->bshift); cachefiles_daemon_add_cache()
H A Dinternal.h76 unsigned bsize; /* cache's block size */ member in struct:cachefiles_cache
77 unsigned bshift; /* min(ilog2(PAGE_SIZE / bsize), 0) */
/linux-4.1.27/arch/alpha/boot/tools/
H A Dobjstrip.c218 mem_size = fil_size + aout->ah.bsize; main()
/linux-4.1.27/drivers/media/usb/gspca/
H A Dgspca.c764 int n, nurbs, i, psize, npkt, bsize; create_urbs() local
779 bsize = psize * npkt; create_urbs()
781 "isoc %d pkts size %d = bsize:%d", create_urbs()
782 npkt, psize, bsize); create_urbs()
786 bsize = gspca_dev->cam.bulk_size; create_urbs()
787 if (bsize == 0) create_urbs()
788 bsize = psize; create_urbs()
789 PDEBUG(D_STREAM, "bulk bsize:%d", bsize); create_urbs()
804 bsize, create_urbs()
814 urb->transfer_buffer_length = bsize; create_urbs()
/linux-4.1.27/drivers/crypto/
H A Dhifn_795x.c2331 unsigned int bsize; member in struct:hifn_alg_template
2340 .name = "cfb(des3_ede)", .drv_name = "cfb-3des", .bsize = 8,
2350 .name = "ofb(des3_ede)", .drv_name = "ofb-3des", .bsize = 8,
2360 .name = "cbc(des3_ede)", .drv_name = "cbc-3des", .bsize = 8,
2371 .name = "ecb(des3_ede)", .drv_name = "ecb-3des", .bsize = 8,
2385 .name = "cfb(des)", .drv_name = "cfb-des", .bsize = 8,
2395 .name = "ofb(des)", .drv_name = "ofb-des", .bsize = 8,
2405 .name = "cbc(des)", .drv_name = "cbc-des", .bsize = 8,
2416 .name = "ecb(des)", .drv_name = "ecb-des", .bsize = 8,
2430 .name = "ecb(aes)", .drv_name = "ecb-aes", .bsize = 16,
2440 .name = "cbc(aes)", .drv_name = "cbc-aes", .bsize = 16,
2451 .name = "cfb(aes)", .drv_name = "cfb-aes", .bsize = 16,
2461 .name = "ofb(aes)", .drv_name = "ofb-aes", .bsize = 16,
2499 alg->alg.cra_blocksize = t->bsize; hifn_alg_alloc()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dinit.c231 int i, bsize, desc_len; ath_descdma_setup() local
285 bsize = sizeof(struct ath_buf) * nbuf; ath_descdma_setup()
286 bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL); ath_descdma_setup()
316 bsize = sizeof(struct ath_rxbuf) * nbuf; ath_descdma_setup()
317 bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL); ath_descdma_setup()
/linux-4.1.27/fs/udf/
H A Dnamei.c883 uint32_t bsize; udf_symlink() local
896 bsize = sb->s_blocksize; udf_symlink()
897 iinfo->i_lenExtents = bsize; udf_symlink()
898 udf_add_aext(inode, &epos, &eloc, bsize, 0); udf_symlink()
906 memset(epos.bh->b_data, 0x00, bsize); udf_symlink()
H A Dinode.c1209 int bsize = 1 << inode->i_blkbits; udf_setsize() local
1221 if (bsize < udf_setsize()
1245 0x00, bsize - newsize - udf_setsize()
/linux-4.1.27/security/tomoyo/
H A Dcommon.h1307 size_t bsize = 32; tomoyo_round2() local
1309 size_t bsize = 64; tomoyo_round2()
1313 while (size > bsize) tomoyo_round2()
1314 bsize <<= 1; tomoyo_round2()
1315 return bsize; tomoyo_round2()
/linux-4.1.27/arch/mips/include/asm/
H A Dsgiarcs.h279 unsigned char bsize; member in struct:linux_cache_key::param
281 unsigned char bsize;
/linux-4.1.27/arch/powerpc/boot/
H A Drs6000.h44 unsigned char bsize[4]; /* uninitialized data " " */ member in struct:__anon2229
/linux-4.1.27/fs/9p/
H A Dvfs_super.c263 buf->f_bsize = rs.bsize; v9fs_statfs()
/linux-4.1.27/drivers/media/platform/soc_camera/
H A Dpxa_camera.c268 &buf->vb, buf->vb.baddr, buf->vb.bsize); free_buffer()
436 vb, vb->baddr, vb->bsize); pxa_videobuf_prepare()
446 memset((void *)vb->baddr, 0xaa, vb->bsize); pxa_videobuf_prepare()
469 if (0 != vb->baddr && vb->bsize < vb->size) { pxa_videobuf_prepare()
635 __func__, vb, vb->baddr, vb->bsize, pcdev->active); pxa_videobuf_queue()
655 vb, vb->baddr, vb->bsize); pxa_videobuf_release()
H A Domap1_camera.c276 if (vb->baddr && vb->bsize < vb->size) { omap1_videobuf_prepare()
/linux-4.1.27/fs/
H A Dblock_dev.c1115 unsigned bsize = bdev_logical_block_size(bdev); bd_set_size() local
1120 while (bsize < PAGE_CACHE_SIZE) { bd_set_size()
1121 if (size & bsize) bd_set_size()
1123 bsize <<= 1; bd_set_size()
1125 bdev->bd_block_size = bsize; bd_set_size()
1126 bdev->bd_inode->i_blkbits = blksize_bits(bsize); bd_set_size()
/linux-4.1.27/tools/perf/util/
H A Dprobe-finder.c285 int bsize, boffs, total; convert_variable_type() local
295 bsize = dwarf_bitsize(vr_die); convert_variable_type()
296 if (bsize > 0) { convert_variable_type()
302 ret = snprintf(buf, 16, "b%d@%d/%zd", bsize, boffs, convert_variable_type()
/linux-4.1.27/fs/xfs/libxfs/
H A Dxfs_da_format.h844 static inline int xfs_attr_leaf_entsize_local_max(int bsize) xfs_attr_leaf_entsize_local_max() argument
846 return (((bsize) >> 1) + ((bsize) >> 2)); xfs_attr_leaf_entsize_local_max()
H A Dxfs_bmap.c1670 * implying the file's range is 0..bsize-1.
/linux-4.1.27/mm/
H A Dtruncate.c731 int bsize = 1 << inode->i_blkbits; pagecache_isize_extended() local
738 if (from >= to || bsize == PAGE_CACHE_SIZE) pagecache_isize_extended()
741 rounded_from = round_up(from, bsize); pagecache_isize_extended()
/linux-4.1.27/fs/ocfs2/
H A Daops.c1072 unsigned int bsize = 1 << inode->i_blkbits; ocfs2_map_page_blocks() local
1075 create_empty_buffers(page, bsize, 0); ocfs2_map_page_blocks()
1079 bh = bh->b_this_page, block_start += bsize) { ocfs2_map_page_blocks()
1080 block_end = block_start + bsize; ocfs2_map_page_blocks()
1139 block_end = block_start + bsize; ocfs2_map_page_blocks()
/linux-4.1.27/drivers/mmc/host/
H A Ds3cmci.c153 u32 con, pre, cmdarg, cmdcon, cmdsta, r0, r1, r2, r3, timer, bsize; dbg_dumpregs() local
166 bsize = readl(host->base + S3C2410_SDIBSIZE); dbg_dumpregs()
198 "#%u bsize:%u blocks:%u bytes:%u", prepare_dbgmsg()
/linux-4.1.27/fs/gfs2/
H A Dbmap.c608 unsigned int bsize = sdp->sd_sb.sb_bsize; gfs2_block_map() local
629 bsize = sdp->sd_jbsize; gfs2_block_map()
638 size = (lblock + 1) * bsize; gfs2_block_map()
H A Daops.c45 unsigned int bsize = head->b_size; gfs2_page_add_databufs() local
51 end = start + bsize; gfs2_page_add_databufs()
H A Drgrp.c898 const unsigned bsize = sdp->sd_sb.sb_bsize; read_rindex_entry() local
936 rgd->rd_gl->gl_vm.start = rgd->rd_addr * bsize; read_rindex_entry()
937 rgd->rd_gl->gl_vm.end = rgd->rd_gl->gl_vm.start + (rgd->rd_length * bsize) - 1; read_rindex_entry()
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Dbttv-vbi.c116 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) vbi_buffer_prepare()
H A Dbttv-driver.c1577 if (width*height > buf->vb.bsize) bttv_prepare_buffer()
1579 buf->vb.size = buf->vb.bsize; bttv_prepare_buffer()
1619 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) bttv_prepare_buffer()
/linux-4.1.27/drivers/media/common/saa7146/
H A Dsaa7146_vbi.c234 if (0 != buf->vb.baddr && buf->vb.bsize < size) { buffer_prepare()
H A Dsaa7146_video.c1080 if (0 != buf->vb.baddr && buf->vb.bsize < size) { buffer_prepare()
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-streams.c134 if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size)) cx18_prepare_buffer()
157 if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size)) cx18_prepare_buffer()
H A Dcx18-mailbox.c191 if ((offset + buf->bytesused) <= vb_buf->vb.bsize) { cx18_mdl_send_to_videobuf()
/linux-4.1.27/drivers/media/platform/
H A Dsh_vou.c287 if (vb->baddr && vb->bsize < vb->size) { sh_vou_buf_prepare()
290 vb->bsize, vb->baddr); sh_vou_buf_prepare()
H A Dtimblogiw.c499 if (vb->baddr && vb->bsize < data_size) buffer_prepare()
H A Dfsl-viu.c499 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) buffer_prepare()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
H A Dhash.c1871 int bsize; cfs_hash_rehash_worker() local
1952 bsize = cfs_hash_bkt_size(hs); cfs_hash_rehash_worker()
1956 cfs_hash_buckets_free(bkts, bsize, new_size, old_size); cfs_hash_rehash_worker()
/linux-4.1.27/net/9p/
H A Dclient.c1895 &sb->bsize, &sb->blocks, &sb->bfree, &sb->bavail, p9_client_statfs()
1903 p9_debug(P9_DEBUG_9P, "<<< RSTATFS fid %d type 0x%lx bsize %ld " p9_client_statfs()
1906 fid->fid, (long unsigned int)sb->type, (long int)sb->bsize, p9_client_statfs()
/linux-4.1.27/drivers/media/usb/cx231xx/
H A Dcx231xx-vbi.c231 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) vbi_buffer_prepare()
H A Dcx231xx-417.c1408 if (0 != buf->vb.baddr && buf->vb.bsize < size) bb_buf_prepare()
H A Dcx231xx-video.c791 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) buffer_prepare()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Devergreen_cs.c448 unsigned long tmp, nby, bsize, size, min = 0; evergreen_cs_track_validate_cb() local
454 bsize = radeon_bo_size(track->cb_color_bo[id]); evergreen_cs_track_validate_cb()
458 if ((tmp + size * mslice) <= bsize) { evergreen_cs_track_validate_cb()
468 if (tmp <= bsize) { evergreen_cs_track_validate_cb()
/linux-4.1.27/include/net/9p/
H A D9p.h527 u32 bsize; member in struct:p9_rstatfs
/linux-4.1.27/fs/ceph/
H A Dsuper.c65 * NOTE: for the time being, we make bsize == frsize to humor ceph_statfs()
/linux-4.1.27/fs/ufs/
H A Dsuper.c177 pr_debug(" bsize: %u\n", ufs_print_super_stuff()
209 pr_debug(" bsize: %u\n", fs32_to_cpu(sb, usb1->fs_bsize)); ufs_print_super_stuff()
/linux-4.1.27/fs/xfs/
H A Dxfs_buf.c1451 size_t bsize, /* length to copy */ xfs_buf_iomove()
1457 bend = boff + bsize; xfs_buf_iomove()
1448 xfs_buf_iomove( xfs_buf_t *bp, size_t boff, size_t bsize, void *data, xfs_buf_rw_t mode) xfs_buf_iomove() argument
H A Dxfs_mount.c385 "alignment check failed: sunit(%d) less than bsize(%d)", xfs_update_alignment()
H A Dxfs_super.c555 * but for smaller blocksizes it is less (bbits = log2 bsize). xfs_max_file_offset()
/linux-4.1.27/sound/pci/
H A Des1968.c1107 unsigned int pa, unsigned int bsize, init_capture_apu()
1137 apu_set_register(chip, apu, 6, (pa + bsize) & 0xFFFF); init_capture_apu()
1138 apu_set_register(chip, apu, 7, bsize); init_capture_apu()
1106 init_capture_apu(struct es1968 *chip, struct esschan *es, int channel, unsigned int pa, unsigned int bsize, int mode, int route) init_capture_apu() argument
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-npi-defs.h342 uint64_t bsize:16; member in struct:cvmx_npi_buff_size_outputx::cvmx_npi_buff_size_outputx_s
344 uint64_t bsize:16;
H A Dcvmx-sli-defs.h2520 uint64_t bsize:16; member in struct:cvmx_sli_pktx_out_size::cvmx_sli_pktx_out_size_s
2522 uint64_t bsize:16;
H A Dcvmx-npei-defs.h3886 uint64_t bsize:16; member in struct:cvmx_npei_pkt_slist_id_size::cvmx_npei_pkt_slist_id_size_s
3888 uint64_t bsize:16;
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_hw.c2241 * @bsize: size of each buffer for this queue
2252 unsigned int bsize, unsigned int cong_thres, int gen, t3_sge_init_flcntxt()
2268 V_FL_ENTRY_SIZE_LO(bsize & M_FL_ENTRY_SIZE_LO)); t3_sge_init_flcntxt()
2270 V_FL_ENTRY_SIZE_HI(bsize >> (32 - S_FL_ENTRY_SIZE_LO)) | t3_sge_init_flcntxt()
2250 t3_sge_init_flcntxt(struct adapter *adapter, unsigned int id, int gts_enable, u64 base_addr, unsigned int size, unsigned int bsize, unsigned int cong_thres, int gen, unsigned int cidx) t3_sge_init_flcntxt() argument
/linux-4.1.27/fs/fuse/
H A Dinode.c397 stbuf->f_bsize = attr->bsize; convert_fuse_statfs()
/linux-4.1.27/sound/core/oss/
H A Dpcm_oss.c622 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; snd_pcm_oss_bytes()
623 return div_u64(bsize, buffer_size); snd_pcm_oss_bytes()
/linux-4.1.27/drivers/media/usb/tm6000/
H A Dtm6000-video.c753 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) buffer_prepare()
/linux-4.1.27/drivers/media/usb/zr364xx/
H A Dzr364xx.c402 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) { buffer_prepare()
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_debugfs.c1262 size_t bsize; lpfc_idiag_cmd_get() local
1270 bsize = min(nbytes, (sizeof(mybuf)-1)); lpfc_idiag_cmd_get()
1272 if (copy_from_user(mybuf, buf, bsize)) lpfc_idiag_cmd_get()
H A Dlpfc_bsg.c3581 "(x%x/x%x) complete bsg job done, bsize:%d\n", lpfc_bsg_issue_mbox_ext_handle_job()
/linux-4.1.27/kernel/trace/
H A Dring_buffer.c1330 int bsize; __ring_buffer_alloc() local
1367 bsize = sizeof(void *) * nr_cpu_ids; __ring_buffer_alloc()
1368 buffer->buffers = kzalloc(ALIGN(bsize, cache_line_size()), __ring_buffer_alloc()
/linux-4.1.27/fs/cifs/
H A Dcifspdu.h2208 __le32 OptimalTransferSize; /* bsize on some os, iosize on other os */
/linux-4.1.27/drivers/scsi/
H A Dosst.c5373 /* Got initial segment of 'bsize,order', continue with same size if possible, except for AUX */ enlarge_buffer()

Completed in 5153 milliseconds