| /linux/net/netfilter/ |
| H A 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 …]
|
| H A D | nft_set_pipapo.c | 465 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get_slow() 685 unsigned int bsize) in lt_calculate_size() argument 689 if (check_mul_overflow(ret, bsize, &ret)) in lt_calculate_size() 728 if (new_bucket_size == f->bsize) in pipapo_resize() 731 if (new_bucket_size > f->bsize) in pipapo_resize() 732 copy = f->bsize; in pipapo_resize() 753 if (new_bucket_size > f->bsize) in pipapo_resize() 754 new_p += new_bucket_size - f->bsize; in pipapo_resize() 756 old_p += f->bsize - new_bucket_size; in pipapo_resize() 768 f->bsize = new_bucket_size; in pipapo_resize() [all …]
|
| /linux/lib/crypto/mpi/ |
| H A D | mpi-pow.c | 33 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local 81 bsize = base->nlimbs; in mpi_powm() 83 if (bsize > msize) { /* The base is larger than the module. Reduce it. */ in mpi_powm() 86 bp = bp_marker = mpi_alloc_limb_space(bsize + 1); in mpi_powm() 89 MPN_COPY(bp, base->d, bsize); in mpi_powm() 92 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm() 93 bsize = msize; in mpi_powm() 96 MPN_NORMALIZE(bp, bsize); in mpi_powm() 100 if (!bsize) { in mpi_powm() 124 bp = bp_marker = mpi_alloc_limb_space(bsize); in mpi_powm() [all …]
|
| /linux/fs/jfs/ |
| H 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/ |
| H 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()
|
| H 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()
|
| H A D | vxfs_super.c | 188 u_long bsize; in vxfs_fill_super() local 202 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super() 203 if (!bsize) { in vxfs_fill_super() 251 if (vxfs_read_olt(sbp, bsize)) { in vxfs_fill_super()
|
| /linux/fs/affs/ |
| H A D | file.c | 533 size_t bidx, boff, bsize; in affs_do_read_folio_ofs() local 539 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_read_folio_ofs() 541 bidx = tmp / bsize; in affs_do_read_folio_ofs() 542 boff = tmp % bsize; in affs_do_read_folio_ofs() 548 tmp = min(bsize - boff, to - pos); in affs_do_read_folio_ofs() 549 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_read_folio_ofs() 565 u32 size, bsize; in affs_extent_file_ofs() local 569 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs() 572 bidx = size / bsize; in affs_extent_file_ofs() 573 boff = size % bsize; in affs_extent_file_ofs() [all …]
|
| H A D | amigaffs.c | 343 int bsize; in affs_checksum_block() local 346 for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--) in affs_checksum_block()
|
| /linux/arch/x86/crypto/ |
| H 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)
|
| H A D | sm4-avx.h | 15 unsigned int bsize, sm4_crypt_func func); 18 unsigned int bsize, sm4_crypt_func func);
|
| /linux/tools/perf/util/ |
| H 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/arch/powerpc/kernel/ |
| H A D | setup_64.c | 548 u32 bsize, u32 sets) in init_cache_info() argument 553 info->block_size = bsize; in init_cache_info() 554 info->log_block_size = __ilog2(bsize); in init_cache_info() 555 if (bsize) in init_cache_info() 556 info->blocks_per_page = PAGE_SIZE / bsize; in init_cache_info() 584 u32 size, lsize, bsize, sets; in parse_cache_info() local 589 lsize = bsize = cur_cpu_spec->dcache_bsize; in parse_cache_info() 605 bsize = be32_to_cpu(*bsizep); in parse_cache_info() 620 init_cache_info(info, size, lsize, bsize, sets); in parse_cache_info()
|
| /linux/fs/nfs/ |
| H A D | internal.h | 106 unsigned int bsize; member 788 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument 791 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits() 794 for (nrbits = 31; nrbits && !(bsize & (1UL << nrbits)); nrbits--) in nfs_block_bits() 796 bsize = 1UL << nrbits; in nfs_block_bits() 801 return bsize; in nfs_block_bits() 817 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument 819 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size() 820 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size() 821 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size() [all …]
|
| H A D | proc.c | 87 info->rtmult = fsinfo.bsize; in nfs_proc_get_root() 90 info->wtmult = fsinfo.bsize; in nfs_proc_get_root() 553 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() 554 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs() 555 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs() 583 info->rtmult = fsinfo.bsize; in nfs_proc_fsinfo() 586 info->wtmult = fsinfo.bsize; in nfs_proc_fsinfo()
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_rcfw.c | 244 u32 bsize; in __send_message_no_waiter() local 252 bsize = bnxt_qplib_set_cmd_slots(msg->req); in __send_message_no_waiter() 268 memcpy(cmdqe, preq, min_t(u32, bsize, sizeof(*cmdqe))); in __send_message_no_waiter() 269 preq += min_t(u32, bsize, sizeof(*cmdqe)); in __send_message_no_waiter() 270 bsize -= min_t(u32, bsize, sizeof(*cmdqe)); in __send_message_no_waiter() 272 } while (bsize > 0); in __send_message_no_waiter() 286 u32 bsize, free_slots, required_slots; in __send_message() local 320 bsize = bnxt_qplib_set_cmd_slots(msg->req); in __send_message() 348 memcpy(cmdqe, preq, min_t(u32, bsize, sizeof(*cmdqe))); in __send_message() 349 preq += min_t(u32, bsize, sizeof(*cmdqe)); in __send_message() [all …]
|
| /linux/drivers/media/pci/ddbridge/ |
| H A D | ddbridge-i2c.c | 83 if (msg[0].len > i2c->bsize) in ddb_i2c_master_xfer() 106 if (msg[1].len > i2c->bsize) in ddb_i2c_master_xfer() 160 i2c->bsize = regmap->i2c_buf->size; in ddb_i2c_add() 162 (regmap->i2c_buf->base + i2c->bsize * i); in ddb_i2c_add()
|
| /linux/fs/udf/ |
| H A D | truncate.c | 132 int bsize = i_blocksize(inode); in udf_discard_prealloc() local 137 ALIGN(inode->i_size, bsize) == ALIGN(iinfo->i_lenExtents, bsize)) in udf_discard_prealloc() 164 DIV_ROUND_UP(elen, bsize)); in udf_discard_prealloc()
|
| /linux/arch/alpha/include/uapi/asm/ |
| H A D | a.out.h | 31 __u64 bsize; member 68 #define a_bss ah.bsize
|
| /linux/drivers/infiniband/hw/bng_re/ |
| H A D | bng_fw.c | 307 u32 bsize, free_slots, required_slots; in __send_message() local 339 bsize = bng_re_set_cmd_slots(msg->req); in __send_message() 365 memcpy(cmdqe, preq, min_t(u32, bsize, sizeof(*cmdqe))); in __send_message() 366 preq += min_t(u32, bsize, sizeof(*cmdqe)); in __send_message() 367 bsize -= min_t(u32, bsize, sizeof(*cmdqe)); in __send_message() 369 } while (bsize > 0); in __send_message()
|
| /linux/crypto/ |
| H A D | skcipher.c | 143 static int skcipher_next_slow(struct skcipher_walk *walk, unsigned int bsize) in skcipher_next_slow() argument 154 n = bsize + (alignmask & ~(crypto_tfm_ctx_alignment() - 1)); in skcipher_next_slow() 163 memcpy_from_scatterwalk(buffer, &walk->in, bsize); in skcipher_next_slow() 167 walk->nbytes = bsize; in skcipher_next_slow() 212 unsigned int bsize; in skcipher_walk_next() local 216 bsize = min(walk->stride, max(n, walk->blocksize)); in skcipher_walk_next() 220 if (unlikely(n < bsize)) { in skcipher_walk_next() 225 return skcipher_next_slow(walk, bsize); in skcipher_walk_next()
|
| /linux/fs/ext4/ |
| H A D | fast_commit.c | 698 int bsize = sbi->s_journal->j_blocksize; in ext4_fc_reserve_space() local 699 int ret, off = sbi->s_fc_bytes % bsize; in ext4_fc_reserve_space() 707 if (len > bsize - EXT4_FC_TAG_BASE_LEN) in ext4_fc_reserve_space() 722 remaining = bsize - EXT4_FC_TAG_BASE_LEN - off; in ext4_fc_reserve_space() 737 *crc = ext4_chksum(*crc, sbi->s_fc_bh->b_data, bsize); in ext4_fc_reserve_space() 745 sbi->s_fc_bytes += bsize - off + len; in ext4_fc_reserve_space() 762 int off, bsize = sbi->s_journal->j_blocksize; in ext4_fc_write_tail() local 773 off = sbi->s_fc_bytes % bsize; in ext4_fc_write_tail() 776 tl.fc_len = cpu_to_le16(bsize - off + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail() 777 sbi->s_fc_bytes = round_up(sbi->s_fc_bytes, bsize); in ext4_fc_write_tail() [all …]
|
| /linux/lib/reed_solomon/ |
| H A D | reed_solomon.c | 219 unsigned int bsize; in init_rs_internal() local 236 bsize = sizeof(uint16_t) * RS_DECODE_NUM_BUFFERS * (nroots + 1); in init_rs_internal() 237 rs = kzalloc(sizeof(*rs) + bsize, gfp); in init_rs_internal()
|
| /linux/drivers/net/wireless/atmel/ |
| H A D | at76c50x-usb.c | 367 int bsize = 0; in at76_usbdfu_download() local 439 bsize = min_t(int, size, FW_BLOCK_SIZE); in at76_usbdfu_download() 440 memcpy(block, buf, bsize); in at76_usbdfu_download() 442 "bsize = %4d, blockno = %2d", size, bsize, in at76_usbdfu_download() 445 at76_load_int_fw_block(udev, blockno, block, bsize); in at76_usbdfu_download() 446 buf += bsize; in at76_usbdfu_download() 447 size -= bsize; in at76_usbdfu_download() 450 if (ret != bsize) in at76_usbdfu_download() 1252 int bsize; in at76_load_external_fw() local 1276 bsize = min_t(int, size, FW_BLOCK_SIZE); in at76_load_external_fw() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_inline.h | 69 host_to_fcp_swap(uint8_t *fcp, uint32_t bsize) in host_to_fcp_swap() argument 73 uint32_t iter = bsize >> 2; in host_to_fcp_swap() 82 host_to_adap(uint8_t *src, uint8_t *dst, uint32_t bsize) in host_to_adap() argument 86 uint32_t iter = bsize >> 2; in host_to_adap()
|