Home
last modified time | relevance | path

Searched refs:bsize (Results 1 – 25 of 72) sorted by relevance

123

/linux/net/netfilter/
H A Dnft_set_pipapo_avx2.c45 #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 Dnft_set_pipapo.h114 unsigned int 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()
[all …]
H A Dnft_set_pipapo.c463 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get_slow()
683 unsigned int bsize) in lt_calculate_size() argument
687 if (check_mul_overflow(ret, bsize, &ret)) in lt_calculate_size()
726 if (new_bucket_size == f->bsize) in pipapo_resize()
729 if (new_bucket_size > f->bsize) in pipapo_resize()
730 copy = f->bsize; in pipapo_resize()
751 if (new_bucket_size > f->bsize) in pipapo_resize()
752 new_p += new_bucket_size - f->bsize; in pipapo_resize()
754 old_p += f->bsize - new_bucket_size; in pipapo_resize()
766 f->bsize = new_bucket_size; in pipapo_resize()
[all …]
/linux/lib/crypto/mpi/
H A Dmpi-pow.c33 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/freevxfs/
H A Dvxfs_olt.c33 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 Dvxfs_super.c188 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/arch/x86/crypto/
H A Decb_cbc_helpers.h14 #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 Dsm4-avx.h15 unsigned int bsize, sm4_crypt_func func);
18 unsigned int bsize, sm4_crypt_func func);
/linux/tools/perf/util/
H A Dmem2node.c39 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 Dsetup_64.c548 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/drivers/mtd/
H A Dftl.c748 uint32_t log_addr, bsize; in ftl_read() local
759 bsize = 1 << part->header.EraseUnitSize; in ftl_read()
770 offset = (part->EUNInfo[log_addr / bsize].Offset in ftl_read()
771 + (log_addr % bsize)); in ftl_read()
794 uint32_t bsize, blk, le_virt_addr; in set_bam_entry() local
804 bsize = 1 << part->header.EraseUnitSize; in set_bam_entry()
805 eun = log_addr / bsize; in set_bam_entry()
806 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry()
862 uint32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local
880 bsize = 1 << part->header.EraseUnitSize; in ftl_write()
[all …]
/linux/fs/nfs/
H A Dinternal.h106 unsigned int bsize; member
783 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument
786 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits()
789 for (nrbits = 31; nrbits && !(bsize & (1UL << nrbits)); nrbits--) in nfs_block_bits()
791 bsize = 1UL << nrbits; in nfs_block_bits()
796 return bsize; in nfs_block_bits()
812 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument
814 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size()
815 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size()
816 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size()
[all …]
/linux/drivers/s390/block/
H A Ddasd_diag.c323 unsigned int sb, bsize; in dasd_diag_check_device() local
408 for (bsize = 512; bsize <= PAGE_SIZE; bsize <<= 1) { in dasd_diag_check_device()
409 mdsk_init_io(device, bsize, 0, &end_block); in dasd_diag_check_device()
433 if (bsize > PAGE_SIZE) { in dasd_diag_check_device()
443 bsize = (unsigned int) label->block_size; in dasd_diag_check_device()
447 block->bp_block = bsize; in dasd_diag_check_device()
449 for (sb = 512; sb < bsize; sb = sb << 1) in dasd_diag_check_device()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_rcfw.c244 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 Dddbridge-i2c.c83 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/arch/alpha/include/uapi/asm/
H A Da.out.h31 __u64 bsize; member
68 #define a_bss ah.bsize
/linux/drivers/infiniband/hw/bng_re/
H A Dbng_fw.c306 u32 bsize, free_slots, required_slots; in __send_message() local
338 bsize = bng_re_set_cmd_slots(msg->req); in __send_message()
364 memcpy(cmdqe, preq, min_t(u32, bsize, sizeof(*cmdqe))); in __send_message()
365 preq += min_t(u32, bsize, sizeof(*cmdqe)); in __send_message()
366 bsize -= min_t(u32, bsize, sizeof(*cmdqe)); in __send_message()
368 } while (bsize > 0); in __send_message()
/linux/fs/ext4/
H A Dfast_commit.c685 int bsize = sbi->s_journal->j_blocksize; in ext4_fc_reserve_space() local
686 int ret, off = sbi->s_fc_bytes % bsize; in ext4_fc_reserve_space()
694 if (len > bsize - EXT4_FC_TAG_BASE_LEN) in ext4_fc_reserve_space()
709 remaining = bsize - EXT4_FC_TAG_BASE_LEN - off; in ext4_fc_reserve_space()
724 *crc = ext4_chksum(*crc, sbi->s_fc_bh->b_data, bsize); in ext4_fc_reserve_space()
732 sbi->s_fc_bytes += bsize - off + len; in ext4_fc_reserve_space()
749 int off, bsize = sbi->s_journal->j_blocksize; in ext4_fc_write_tail() local
760 off = sbi->s_fc_bytes % bsize; in ext4_fc_write_tail()
763 tl.fc_len = cpu_to_le16(bsize - off + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail()
764 sbi->s_fc_bytes = round_up(sbi->s_fc_bytes, bsize); in ext4_fc_write_tail()
[all …]
/linux/lib/reed_solomon/
H A Dreed_solomon.c219 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/ralink/rt2x00/
H A Drt2x00usb.c121 u16 off, len, bsize; in rt2x00usb_vendor_request_buff() local
129 bsize = min_t(u16, CSR_CACHE_SIZE, len); in rt2x00usb_vendor_request_buff()
132 bsize, REGISTER_TIMEOUT); in rt2x00usb_vendor_request_buff()
134 tb += bsize; in rt2x00usb_vendor_request_buff()
135 len -= bsize; in rt2x00usb_vendor_request_buff()
136 off += bsize; in rt2x00usb_vendor_request_buff()
/linux/include/uapi/linux/
H A Dnfs_mount.h43 unsigned int bsize; /* 3 */ member
/linux/include/linux/firmware/meson/
H A Dmeson_sm.h27 unsigned int bsize, unsigned int cmd_index, u32 arg0,
/linux/fs/gfs2/
H A Dquota.c735 unsigned bsize = sdp->sd_sb.sb_bsize, bnum = 0, boff = 0; in gfs2_write_buf_to_page() local
739 boff = off % bsize; in gfs2_write_buf_to_page()
746 bh = create_empty_buffers(folio, bsize, 0); in gfs2_write_buf_to_page()
750 if (pg_off >= ((bnum * bsize) + bsize)) { in gfs2_write_buf_to_page()
762 folio_zero_range(folio, bnum * bsize, in gfs2_write_buf_to_page()
772 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page()
773 pg_off += (bsize - boff); in gfs2_write_buf_to_page()
774 to_write -= (bsize - boff); in gfs2_write_buf_to_page()
775 boff = pg_off % bsize; in gfs2_write_buf_to_page()
/linux/arch/mips/boot/
H A Delf2ecoff.c238 a->bsize = swab32(a->bsize); in convert_ecoff_aouthdr()
424 eah.bsize = bss.len; in main()
467 esecs[2].s_size = eah.bsize; in main()
/linux/fs/squashfs/
H A Dfile.c596 int res, bsize; in squashfs_readahead() local
623 bsize = read_blocklist(inode, start >> msblk->block_log, &block); in squashfs_readahead()
624 if (bsize == 0) in squashfs_readahead()
632 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readahead()

123