/linux/net/netfilter/ |
A D | nft_set_pipapo_avx2.c | 223 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_2() local 285 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_4() local 363 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_8() local 459 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_12() local 553 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_32() local 679 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_1() local 736 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_2() local 800 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_4() local 875 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_6() local 960 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_16() local [all …]
|
A D | nft_set_pipapo.h | 124 size_t bsize; member 199 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit() 200 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit() 201 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit() 204 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit() 205 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit() 206 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit() 224 __bitmap_and(dst, dst, lt + *data * f->bsize, in pipapo_and_field_buckets_8bit() 225 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_8bit() 226 lt += f->bsize * NFT_PIPAPO_BUCKETS(8); in pipapo_and_field_buckets_8bit()
|
A D | nft_set_pipapo.c | 637 copy = f->bsize; in pipapo_resize() 678 f->bsize = new_bucket_size; in pipapo_resize() 703 pos += f->bsize * v; in pipapo_bucket_set() 807 for (i = 0; i < bsize; i++) in pipapo_lt_8b_to_4b() 811 new_lt += bsize; in pipapo_lt_8b_to_4b() 821 for (i = 0; i < bsize; i++) in pipapo_lt_8b_to_4b() 825 new_lt += bsize; in pipapo_lt_8b_to_4b() 1236 if (f->bsize > bsize_max) 1237 bsize_max = f->bsize; 1505 pos += f->bsize; [all …]
|
/linux/crypto/ |
A D | cbc.c | 38 src += bsize; in crypto_cbc_encrypt_segment() 39 dst += bsize; in crypto_cbc_encrypt_segment() 40 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment() 65 src += bsize; in crypto_cbc_encrypt_inplace() 66 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace() 113 src += bsize; in crypto_cbc_decrypt_segment() 114 dst += bsize; in crypto_cbc_decrypt_segment() 115 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment() 138 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace() 143 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace() [all …]
|
A D | pcbc.c | 31 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment() 35 src += bsize; in crypto_pcbc_encrypt_segment() 36 dst += bsize; in crypto_pcbc_encrypt_segment() 37 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_segment() 58 src += bsize; in crypto_pcbc_encrypt_inplace() 59 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_inplace() 102 src += bsize; in crypto_pcbc_decrypt_segment() 103 dst += bsize; in crypto_pcbc_decrypt_segment() 104 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_decrypt_segment() 125 src += bsize; in crypto_pcbc_decrypt_inplace() [all …]
|
A D | cfb.c | 72 src += bsize; in crypto_cfb_encrypt_segment() 73 dst += bsize; in crypto_cfb_encrypt_segment() 74 } while ((nbytes -= bsize) >= bsize); in crypto_cfb_encrypt_segment() 95 src += bsize; in crypto_cfb_encrypt_inplace() 96 } while ((nbytes -= bsize) >= bsize); in crypto_cfb_encrypt_inplace() 142 src += bsize; in crypto_cfb_decrypt_segment() 143 dst += bsize; in crypto_cfb_decrypt_segment() 144 } while ((nbytes -= bsize) >= bsize); in crypto_cfb_decrypt_segment() 162 memcpy(iv, src, bsize); in crypto_cfb_decrypt_inplace() 164 src += bsize; in crypto_cfb_decrypt_inplace() [all …]
|
A D | cts.c | 113 scatterwalk_map_and_copy(d + bsize, sg, 0, bsize, 0); in cts_cbc_encrypt() 115 memset(d, 0, bsize); in cts_cbc_encrypt() 155 if (nbytes < bsize) in crypto_cts_encrypt() 197 scatterwalk_map_and_copy(d + bsize, sg, 0, bsize, 0); in cts_cbc_decrypt() 199 crypto_xor(d + bsize, space, bsize); in cts_cbc_decrypt() 201 memset(d, 0, bsize); in cts_cbc_decrypt() 208 memcpy(d + lastn, d + bsize + lastn, bsize - lastn); in cts_cbc_decrypt() 250 if (nbytes < bsize) in crypto_cts_decrypt() 270 if (offset <= bsize) in crypto_cts_decrypt() 274 bsize, 0); in crypto_cts_decrypt() [all …]
|
A D | ctr.c | 43 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_final() 60 crypto_xor(dst, src, bsize); in crypto_ctr_crypt_segment() 63 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_segment() 65 src += bsize; in crypto_ctr_crypt_segment() 66 dst += bsize; in crypto_ctr_crypt_segment() 67 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_segment() 88 crypto_xor(src, keystream, bsize); in crypto_ctr_crypt_inplace() 91 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_inplace() 93 src += bsize; in crypto_ctr_crypt_inplace() 94 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_inplace() [all …]
|
A D | ofb.c | 22 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ofb_crypt() local 28 while (walk.nbytes >= bsize) { in crypto_ofb_crypt() 36 crypto_xor_cpy(dst, src, iv, bsize); in crypto_ofb_crypt() 37 dst += bsize; in crypto_ofb_crypt() 38 src += bsize; in crypto_ofb_crypt() 39 } while ((nbytes -= bsize) >= bsize); in crypto_ofb_crypt()
|
A D | ecb.c | 20 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ecb_crypt() local 34 src += bsize; in crypto_ecb_crypt() 35 dst += bsize; in crypto_ecb_crypt() 36 } while ((nbytes -= bsize) >= bsize); in crypto_ecb_crypt()
|
/linux/arch/x86/crypto/ |
A D | blowfish_glue.c | 91 wsrc += bsize * 4; in ecb_crypt() 92 wdst += bsize * 4; in ecb_crypt() 96 if (nbytes < bsize) in ecb_crypt() 104 wsrc += bsize; in ecb_crypt() 105 wdst += bsize; in ecb_crypt() 106 nbytes -= bsize; in ecb_crypt() 142 nbytes -= bsize; in __cbc_encrypt() 186 nbytes -= bsize * 4 - bsize; in __cbc_decrypt() 200 nbytes -= bsize; in __cbc_decrypt() 214 nbytes -= bsize; in __cbc_decrypt() [all …]
|
A D | des3_ede_glue.c | 93 wsrc += bsize * 3; in ecb_crypt() 94 wdst += bsize * 3; in ecb_crypt() 98 if (nbytes < bsize) in ecb_crypt() 106 wsrc += bsize; in ecb_crypt() 107 wdst += bsize; in ecb_crypt() 108 nbytes -= bsize; in ecb_crypt() 150 nbytes -= bsize; in __cbc_encrypt() 194 nbytes -= bsize * 3 - bsize; in __cbc_decrypt() 206 nbytes -= bsize; in __cbc_decrypt() 220 nbytes -= bsize; in __cbc_decrypt() [all …]
|
A D | sm4_aesni_avx_glue.c | 143 while (nbytes >= bsize) { in sm4_avx_cbc_decrypt() 145 dst += bsize; in sm4_avx_cbc_decrypt() 146 src += bsize; in sm4_avx_cbc_decrypt() 147 nbytes -= bsize; in sm4_avx_cbc_decrypt() 249 while (nbytes >= bsize) { in sm4_avx_cfb_decrypt() 251 dst += bsize; in sm4_avx_cfb_decrypt() 252 src += bsize; in sm4_avx_cfb_decrypt() 253 nbytes -= bsize; in sm4_avx_cfb_decrypt() 320 dst += bsize; in sm4_avx_ctr_crypt() 321 src += bsize; in sm4_avx_ctr_crypt() [all …]
|
A D | ecb_cbc_helpers.h | 14 #define ECB_WALK_START(req, bsize, fpu_blocks) do { \ argument 16 const int __bsize = (bsize); \ 25 u8 __maybe_unused buf[(bsize)]; \ 28 #define CBC_WALK_START(req, bsize, fpu_blocks) \ argument 29 ECB_WALK_START(req, bsize, fpu_blocks)
|
/linux/arch/s390/crypto/ |
A D | sha_common.c | 19 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_update() local 23 index = ctx->count % bsize; in s390_sha_update() 26 if ((index + len) < bsize) in s390_sha_update() 31 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update() 32 cpacf_kimd(ctx->func, ctx->state, ctx->buf, bsize); in s390_sha_update() 33 data += bsize - index; in s390_sha_update() 34 len -= bsize - index; in s390_sha_update() 39 if (len >= bsize) { in s390_sha_update() 40 n = (len / bsize) * bsize; in s390_sha_update() 75 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_final() local [all …]
|
/linux/arch/m68k/emu/ |
A D | nfblock.c | 56 u32 blocks, bsize; member 98 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() 131 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one() 132 blk_queue_logical_block_size(dev->disk->queue, bsize); in nfhd_init_one() 151 u32 blocks, bsize; in nfhd_init() local 169 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init() [all …]
|
/linux/lib/mpi/ |
A D | mpi-pow.c | 31 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local 79 bsize = base->nlimbs; in mpi_powm() 87 MPN_COPY(bp, base->d, bsize); in mpi_powm() 91 bsize = msize; in mpi_powm() 94 MPN_NORMALIZE(bp, bsize); in mpi_powm() 98 if (!bsize) { in mpi_powm() 125 MPN_COPY(bp, rp, bsize); in mpi_powm() 144 MPN_COPY(rp, bp, bsize); in mpi_powm() 145 rsize = bsize; in mpi_powm() 220 (xp, rp, rsize, bp, bsize, in mpi_powm() [all …]
|
/linux/fs/jfs/ |
A D | jfs_mount.c | 293 s32 bsize; in chkSuper() local 309 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper() 311 if (bsize != PSIZE) { in chkSuper() 326 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 328 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 329 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 330 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 332 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper() 360 sbi->bsize = bsize; in chkSuper() 364 if (sbi->l2bsize != ilog2((u32)bsize) || in chkSuper()
|
/linux/include/crypto/ |
A D | ctr.h | 48 int bsize = min(nbytes, blocksize); in crypto_ctr_encrypt_walk() local 52 crypto_xor_cpy(dst, src, buf, bsize); in crypto_ctr_encrypt_walk() 55 dst += bsize; in crypto_ctr_encrypt_walk() 56 src += bsize; in crypto_ctr_encrypt_walk() 57 nbytes -= bsize; in crypto_ctr_encrypt_walk()
|
/linux/fs/affs/ |
A D | file.c | 538 bidx = tmp / bsize; in affs_do_readpage_ofs() 539 boff = tmp % bsize; in affs_do_readpage_ofs() 565 u32 size, bsize; in affs_extent_file_ofs() local 572 bidx = size / bsize; in affs_extent_file_ofs() 579 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_extent_file_ofs() 618 size += bsize; in affs_extent_file_ofs() 718 bidx = tmp / bsize; in affs_write_end_ofs() 719 boff = tmp % bsize; in affs_write_end_ofs() 727 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_write_end_ofs() 770 written += bsize; in affs_write_end_ofs() [all …]
|
/linux/fs/squashfs/ |
A D | file_direct.c | 21 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, 25 int squashfs_readpage_block(struct page *target_page, u64 block, int bsize, in squashfs_readpage_block() argument 84 res = squashfs_read_cache(target_page, block, bsize, pages, in squashfs_readpage_block() 93 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block() 144 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, in squashfs_read_cache() argument 149 block, bsize); in squashfs_read_cache() 154 bsize); in squashfs_read_cache()
|
A D | file_cache.c | 21 int squashfs_readpage_block(struct page *page, u64 block, int bsize, int expected) in squashfs_readpage_block() argument 25 block, bsize); in squashfs_readpage_block() 30 bsize); in squashfs_readpage_block()
|
/linux/fs/freevxfs/ |
A D | vxfs_lookup.c | 83 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() local 104 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry() 116 pos += bsize - 1; in vxfs_find_entry() 117 pos &= ~(bsize - 1); in vxfs_find_entry() 219 u_long bsize = sbp->s_blocksize; in vxfs_readdir() local 255 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir() 267 pos += bsize - 1; in vxfs_readdir() 268 pos &= ~(bsize - 1); in vxfs_readdir()
|
A D | vxfs_olt.c | 57 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 84 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
|
/linux/tools/perf/util/ |
A D | mem2node.c | 39 phys_entry__init(struct phys_entry *entry, u64 start, u64 bsize, u64 node) in phys_entry__init() argument 42 entry->end = start + bsize; in phys_entry__init() 51 u64 bsize = env->memory_bsize; in mem2node__init() local 77 start = bit * bsize; in mem2node__init() 88 prev->end += bsize; in mem2node__init() 93 phys_entry__init(&entries[j++], start, bsize, n->node); in mem2node__init()
|