| /linux/net/netfilter/ |
| A D | nft_set_pipapo_avx2.c | 221 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_2() local 284 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 460 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_12() local 555 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_32() local 682 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_1() local 740 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_2() local 805 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_4() local 881 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_6() local 967 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_8b_16() local [all …]
|
| A D | nft_set_pipapo.h | 117 unsigned int bsize; member 200 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit() 201 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit() 202 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit() 205 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit() 206 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit() 207 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit() 226 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_8bit() 227 lt += f->bsize * NFT_PIPAPO_BUCKETS(8); in pipapo_and_field_buckets_8bit() 296 for (i = 0; i < f->bsize; i++) in pipapo_resmap_init() [all …]
|
| A D | nft_set_pipapo.c | 718 copy = f->bsize; in pipapo_resize() 753 f->bsize = new_bucket_size; in pipapo_resize() 775 pos += f->bsize * v; in pipapo_bucket_set() 879 for (i = 0; i < bsize; i++) in pipapo_lt_8b_to_4b() 883 new_lt += bsize; in pipapo_lt_8b_to_4b() 893 for (i = 0; i < bsize; i++) in pipapo_lt_8b_to_4b() 897 new_lt += bsize; in pipapo_lt_8b_to_4b() 1389 if (f->bsize > bsize_max) 1390 bsize_max = f->bsize; 1667 pos += f->bsize; [all …]
|
| /linux/crypto/ |
| A D | cbc.c | 21 for (; nbytes >= bsize; src += bsize, dst += bsize, nbytes -= bsize) { in crypto_cbc_encrypt_segment() 36 if (nbytes < bsize) in crypto_cbc_encrypt_inplace() 44 src += bsize; in crypto_cbc_encrypt_inplace() 45 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace() 84 src += bsize; in crypto_cbc_decrypt_segment() 85 dst += bsize; in crypto_cbc_decrypt_segment() 86 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment() 104 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace() 109 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace() 111 crypto_xor(src, src - 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 | 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 | ecb.c | 20 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ecb_crypt() local 22 while (nbytes >= bsize) { in crypto_ecb_crypt() 25 src += bsize; in crypto_ecb_crypt() 26 dst += bsize; in crypto_ecb_crypt() 28 nbytes -= bsize; in crypto_ecb_crypt()
|
| /linux/arch/x86/crypto/ |
| A D | des3_ede_glue.c | 85 wsrc += bsize * 3; in ecb_crypt() 86 wdst += bsize * 3; in ecb_crypt() 90 if (nbytes < bsize) in ecb_crypt() 98 wsrc += bsize; in ecb_crypt() 99 wdst += bsize; in ecb_crypt() 100 nbytes -= bsize; in ecb_crypt() 142 nbytes -= bsize; in __cbc_encrypt() 186 nbytes -= bsize * 3 - bsize; in __cbc_decrypt() 198 nbytes -= bsize; in __cbc_decrypt() 212 nbytes -= bsize; in __cbc_decrypt() [all …]
|
| A D | ecb_cbc_helpers.h | 14 #define ECB_WALK_START(req, bsize, fpu_blocks) do { \ argument 17 const int __bsize = (bsize); \ 26 u8 __maybe_unused buf[(bsize)]; \ 29 #define CBC_WALK_START(req, bsize, fpu_blocks) \ argument 30 ECB_WALK_START(req, bsize, fpu_blocks)
|
| A D | sm4_aesni_avx_glue.c | 125 unsigned int bsize, sm4_crypt_func func) in sm4_avx_cbc_decrypt() argument 141 while (nbytes >= bsize) { in sm4_avx_cbc_decrypt() 143 dst += bsize; in sm4_avx_cbc_decrypt() 144 src += bsize; in sm4_avx_cbc_decrypt() 145 nbytes -= bsize; in sm4_avx_cbc_decrypt() 190 unsigned int bsize, sm4_crypt_func func) in sm4_avx_ctr_crypt() argument 206 while (nbytes >= bsize) { in sm4_avx_ctr_crypt() 208 dst += bsize; in sm4_avx_ctr_crypt() 209 src += bsize; in sm4_avx_ctr_crypt() 210 nbytes -= bsize; in sm4_avx_ctr_crypt()
|
| A D | sm4-avx.h | 15 unsigned int bsize, sm4_crypt_func func); 18 unsigned int bsize, sm4_crypt_func func);
|
| /linux/arch/s390/crypto/ |
| A D | sha_common.c | 19 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_update() local 24 index = ctx->count % bsize; in s390_sha_update() 27 if ((index + len) < bsize) in s390_sha_update() 36 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update() 37 cpacf_kimd(fc, ctx->state, ctx->buf, bsize); in s390_sha_update() 40 data += bsize - index; in s390_sha_update() 41 len -= bsize - index; in s390_sha_update() 46 if (len >= bsize) { in s390_sha_update() 47 n = (len / bsize) * bsize; in s390_sha_update() 83 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_final() local [all …]
|
| /linux/arch/m68k/emu/ |
| A D | nfblock.c | 55 u32 blocks, bsize; member 97 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument 100 .logical_block_size = bsize, in nfhd_init_one() 108 blocks, bsize); in nfhd_init_one() 110 if (bsize < 512 || (bsize & (bsize - 1))) { in nfhd_init_one() 121 dev->bsize = bsize; in nfhd_init_one() 122 dev->bshift = ffs(bsize) - 10; in nfhd_init_one() 136 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one() 155 u32 blocks, bsize; in nfhd_init() local 173 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init() [all …]
|
| /linux/lib/crypto/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() 217 (xp, rp, rsize, bp, bsize, in mpi_powm() [all …]
|
| /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/jfs/ |
| A D | jfs_mount.c | 297 s32 bsize; in chkSuper() local 313 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper() 314 if (bsize != PSIZE) { in chkSuper() 328 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 330 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 331 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 332 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 334 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper() 362 sbi->bsize = bsize; in chkSuper() 366 if (sbi->l2bsize != ilog2((u32)bsize) || in chkSuper()
|
| /linux/fs/freevxfs/ |
| A D | vxfs_lookup.c | 59 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() local 80 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry() 92 pos += bsize - 1; in vxfs_find_entry() 93 pos &= ~(bsize - 1); in vxfs_find_entry() 194 u_long bsize = sbp->s_blocksize; in vxfs_readdir() local 230 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir() 242 pos += bsize - 1; in vxfs_readdir() 243 pos &= ~(bsize - 1); in vxfs_readdir()
|
| A D | vxfs_olt.c | 33 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument 35 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock() 36 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock() 53 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument 60 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
|
| /linux/fs/affs/ |
| A D | file.c | 539 bidx = tmp / bsize; in affs_do_read_folio_ofs() 540 boff = tmp % bsize; in affs_do_read_folio_ofs() 563 u32 size, bsize; in affs_extent_file_ofs() local 570 bidx = size / bsize; in affs_extent_file_ofs() 577 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_extent_file_ofs() 616 size += bsize; in affs_extent_file_ofs() 716 bidx = tmp / bsize; in affs_write_end_ofs() 717 boff = tmp % bsize; in affs_write_end_ofs() 725 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_write_end_ofs() 768 written += bsize; in affs_write_end_ofs() [all …]
|
| /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()
|
| /linux/fs/squashfs/ |
| 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/arch/powerpc/kernel/ |
| A D | setup_64.c | 551 u32 bsize, u32 sets) in init_cache_info() argument 556 info->block_size = bsize; in init_cache_info() 557 info->log_block_size = __ilog2(bsize); in init_cache_info() 558 if (bsize) in init_cache_info() 559 info->blocks_per_page = PAGE_SIZE / bsize; in init_cache_info() 587 u32 size, lsize, bsize, sets; in parse_cache_info() local 592 lsize = bsize = cur_cpu_spec->dcache_bsize; in parse_cache_info() 608 bsize = be32_to_cpu(*bsizep); in parse_cache_info() 623 init_cache_info(info, size, lsize, bsize, sets); in parse_cache_info()
|
| /linux/fs/nfs/ |
| A D | internal.h | 105 unsigned int bsize; member 762 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument 765 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits() 768 for (nrbits = 31; nrbits && !(bsize & (1UL << nrbits)); nrbits--) in nfs_block_bits() 770 bsize = 1UL << nrbits; in nfs_block_bits() 775 return bsize; in nfs_block_bits() 793 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size() 794 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size() 795 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size() 796 bsize = NFS_MAX_FILE_IO_SIZE; in nfs_block_size() [all …]
|
| /linux/drivers/mtd/ |
| A D | ftl.c | 751 uint32_t log_addr, bsize; in ftl_read() local 762 bsize = 1 << part->header.EraseUnitSize; in ftl_read() 774 + (log_addr % bsize)); in ftl_read() 797 uint32_t bsize, blk, le_virt_addr; in set_bam_entry() local 807 bsize = 1 << part->header.EraseUnitSize; in set_bam_entry() 808 eun = log_addr / bsize; in set_bam_entry() 809 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry() 883 bsize = 1 << part->header.EraseUnitSize; in ftl_write() 925 part->EUNInfo[old_addr/bsize].Deleted++; in ftl_write() 973 uint32_t bsize = 1 << part->header.EraseUnitSize; in ftl_discardsect() local [all …]
|