/linux-6.12.1/net/netfilter/ |
D | nft_set_pipapo_avx2.c | 45 #define NFT_PIPAPO_AVX2_BUCKET_LOAD4(reg, lt, group, v, bsize) \ argument 48 (v)) * (bsize)]) 49 #define NFT_PIPAPO_AVX2_BUCKET_LOAD8(reg, lt, group, v, bsize) \ argument 52 (v)) * (bsize)]) 219 int i, ret = -1, m256_size = f->bsize / NFT_PIPAPO_LONGS_PER_M256, b; in nft_pipapo_avx2_lookup_4b_2() 221 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_2() local 228 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2() 229 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2() 232 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2() 234 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2() [all …]
|
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() 225 __bitmap_and(dst, dst, lt + *data * f->bsize, in pipapo_and_field_buckets_8bit() 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() [all …]
|
D | nft_set_pipapo.c | 462 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in nft_pipapo_lookup() 571 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get() 714 if (new_bucket_size == f->bsize) in pipapo_resize() 717 if (new_bucket_size > f->bsize) in pipapo_resize() 718 copy = f->bsize; in pipapo_resize() 738 if (new_bucket_size > f->bsize) in pipapo_resize() 739 new_p += new_bucket_size - f->bsize; in pipapo_resize() 741 old_p += f->bsize - new_bucket_size; in pipapo_resize() 753 f->bsize = new_bucket_size; in pipapo_resize() 774 pos += f->bsize * NFT_PIPAPO_BUCKETS(f->bb) * group; in pipapo_bucket_set() [all …]
|
/linux-6.12.1/crypto/ |
D | cbc.c | 19 unsigned int bsize = crypto_lskcipher_blocksize(tfm); in crypto_cbc_encrypt_segment() local 21 for (; nbytes >= bsize; src += bsize, dst += bsize, nbytes -= bsize) { in crypto_cbc_encrypt_segment() 22 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment() 23 crypto_lskcipher_encrypt(tfm, iv, dst, bsize, NULL); in crypto_cbc_encrypt_segment() 24 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment() 33 unsigned int bsize = crypto_lskcipher_blocksize(tfm); in crypto_cbc_encrypt_inplace() local 36 if (nbytes < bsize) in crypto_cbc_encrypt_inplace() 40 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace() 41 crypto_lskcipher_encrypt(tfm, src, src, bsize, NULL); in crypto_cbc_encrypt_inplace() 44 src += bsize; in crypto_cbc_encrypt_inplace() [all …]
|
D | pcbc.c | 24 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_segment() local 31 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment() 33 crypto_xor_cpy(iv, dst, 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() 46 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_inplace() local 53 memcpy(tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace() 54 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_inplace() 56 crypto_xor_cpy(iv, tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace() [all …]
|
D | cts.c | 103 int bsize = crypto_skcipher_blocksize(tfm); in cts_cbc_encrypt() local 112 sg = scatterwalk_ffwd(rctx->sg, req->dst, offset - bsize); in cts_cbc_encrypt() 113 scatterwalk_map_and_copy(d + bsize, sg, 0, bsize, 0); in cts_cbc_encrypt() 115 memset(d, 0, bsize); in cts_cbc_encrypt() 118 scatterwalk_map_and_copy(d, sg, 0, bsize + lastn, 1); in cts_cbc_encrypt() 124 skcipher_request_set_crypt(subreq, sg, sg, bsize, req->iv); in cts_cbc_encrypt() 149 int bsize = crypto_skcipher_blocksize(tfm); in crypto_cts_encrypt() local 155 if (nbytes < bsize) in crypto_cts_encrypt() 158 if (nbytes == bsize) { in crypto_cts_encrypt() 167 offset = rounddown(nbytes - 1, bsize); in crypto_cts_encrypt() [all …]
|
D | ctr.c | 31 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_final() local 43 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_final() 51 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_segment() local 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() 77 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_inplace() local 88 crypto_xor(src, keystream, bsize); in crypto_ctr_crypt_inplace() [all …]
|
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-6.12.1/arch/x86/crypto/ |
D | des3_ede_glue.c | 68 const unsigned int bsize = DES3_EDE_BLOCK_SIZE; in ecb_crypt() local 80 if (nbytes >= bsize * 3) { in ecb_crypt() 85 wsrc += bsize * 3; in ecb_crypt() 86 wdst += bsize * 3; in ecb_crypt() 87 nbytes -= bsize * 3; in ecb_crypt() 88 } while (nbytes >= 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() [all …]
|
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)
|
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()
|
D | sm4-avx.h | 15 unsigned int bsize, sm4_crypt_func func); 18 unsigned int bsize, sm4_crypt_func func);
|
/linux-6.12.1/arch/s390/crypto/ |
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-6.12.1/arch/m68k/emu/ |
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-6.12.1/lib/crypto/mpi/ |
D | mpi-pow.c | 31 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local 79 bsize = base->nlimbs; in mpi_powm() 81 if (bsize > msize) { /* The base is larger than the module. Reduce it. */ in mpi_powm() 84 bp = bp_marker = mpi_alloc_limb_space(bsize + 1); in mpi_powm() 87 MPN_COPY(bp, base->d, bsize); in mpi_powm() 90 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm() 91 bsize = msize; in mpi_powm() 94 MPN_NORMALIZE(bp, bsize); in mpi_powm() 98 if (!bsize) { in mpi_powm() 122 bp = bp_marker = mpi_alloc_limb_space(bsize); in mpi_powm() [all …]
|
/linux-6.12.1/include/crypto/ |
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-6.12.1/fs/jfs/ |
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-6.12.1/fs/freevxfs/ |
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()
|
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-6.12.1/fs/affs/ |
D | file.c | 531 size_t bidx, boff, bsize; in affs_do_read_folio_ofs() local 537 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_read_folio_ofs() 539 bidx = tmp / bsize; in affs_do_read_folio_ofs() 540 boff = tmp % bsize; in affs_do_read_folio_ofs() 546 tmp = min(bsize - boff, to - pos); in affs_do_read_folio_ofs() 547 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_read_folio_ofs() 563 u32 size, bsize; in affs_extent_file_ofs() local 567 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs() 570 bidx = size / bsize; in affs_extent_file_ofs() 571 boff = size % bsize; in affs_extent_file_ofs() [all …]
|
/linux-6.12.1/tools/perf/util/ |
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-6.12.1/fs/squashfs/ |
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-6.12.1/arch/powerpc/kernel/ |
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-6.12.1/drivers/mtd/ |
D | ftl.c | 751 uint32_t log_addr, bsize; in ftl_read() local 762 bsize = 1 << part->header.EraseUnitSize; in ftl_read() 773 offset = (part->EUNInfo[log_addr / bsize].Offset 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() 865 uint32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local 883 bsize = 1 << part->header.EraseUnitSize; in ftl_write() [all …]
|
/linux-6.12.1/fs/nfs/ |
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() 791 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument 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() [all …]
|