Home
last modified time | relevance | path

Searched refs:bsize (Results 1 – 25 of 63) 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)])
221 int i, ret = -1, m256_size = f->bsize / NFT_PIPAPO_LONGS_PER_M256, b; in nft_pipapo_avx2_lookup_4b_2()
223 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_2() local
230 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2()
231 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2()
234 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2()
236 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
207 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit()
208 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit()
209 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit()
212 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit()
213 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit()
214 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit()
232 __bitmap_and(dst, dst, lt + *data * f->bsize, in pipapo_and_field_buckets_8bit()
233 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_8bit()
234 lt += f->bsize * NFT_PIPAPO_BUCKETS(8); in pipapo_and_field_buckets_8bit()
[all …]
H A Dnft_set_pipapo.c465 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 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/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
789 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument
792 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits()
795 for (nrbits = 31; nrbits && !(bsize & (1UL << nrbits)); nrbits--) in nfs_block_bits()
797 bsize = 1UL << nrbits; in nfs_block_bits()
802 return bsize; in nfs_block_bits()
818 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument
820 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size()
821 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size()
822 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/fs/udf/
H A Dtruncate.c132 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 Da.out.h31 __u64 bsize; member
68 #define a_bss ah.bsize
/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/atmel/
H A Dat76c50x-usb.c367 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/fs/ext4/
H A Dfast_commit.c697 int bsize = sbi->s_journal->j_blocksize; in ext4_fc_reserve_space() local
698 int ret, off = sbi->s_fc_bytes % bsize; in ext4_fc_reserve_space()
706 if (len > bsize - EXT4_FC_TAG_BASE_LEN) in ext4_fc_reserve_space()
721 remaining = bsize - EXT4_FC_TAG_BASE_LEN - off; in ext4_fc_reserve_space()
736 *crc = ext4_chksum(*crc, sbi->s_fc_bh->b_data, bsize); in ext4_fc_reserve_space()
744 sbi->s_fc_bytes += bsize - off + len; in ext4_fc_reserve_space()
761 int off, bsize = sbi->s_journal->j_blocksize; in ext4_fc_write_tail() local
772 off = sbi->s_fc_bytes % bsize; in ext4_fc_write_tail()
775 tl.fc_len = cpu_to_le16(bsize - off + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail()
776 sbi->s_fc_bytes = round_up(sbi->s_fc_bytes, bsize); in ext4_fc_write_tail()
[all …]
/linux/include/uapi/linux/
H A Dnfs_mount.h43 unsigned int bsize; /* 3 */ member
/linux/fs/gfs2/
H A Dquota.c749 unsigned bsize = sdp->sd_sb.sb_bsize, bnum = 0, boff = 0; in gfs2_write_buf_to_page() local
753 boff = off % bsize; in gfs2_write_buf_to_page()
760 bh = create_empty_buffers(folio, bsize, 0); in gfs2_write_buf_to_page()
764 if (pg_off >= ((bnum * bsize) + bsize)) { in gfs2_write_buf_to_page()
776 folio_zero_range(folio, bnum * bsize, in gfs2_write_buf_to_page()
786 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page()
787 pg_off += (bsize - boff); in gfs2_write_buf_to_page()
788 to_write -= (bsize - boff); in gfs2_write_buf_to_page()
789 boff = pg_off % bsize; in gfs2_write_buf_to_page()
/linux/block/
H A Dbdev.c141 unsigned int bsize = bdev_logical_block_size(bdev); in set_init_blocksize() local
144 while (bsize < PAGE_SIZE) { in set_init_blocksize()
145 if (size & bsize) in set_init_blocksize()
147 bsize <<= 1; in set_init_blocksize()
149 BD_INODE(bdev)->i_blkbits = blksize_bits(bsize); in set_init_blocksize()
151 get_order(bsize)); in set_init_blocksize()
/linux/arch/mips/boot/
H A Decoff.h42 int32_t bsize; /* uninitialized data " " */ member
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()
/linux/fs/xfs/
H A Dxfs_buf.h299 static inline void xfs_buf_zero(struct xfs_buf *bp, size_t boff, size_t bsize) in xfs_buf_zero() argument
301 memset(bp->b_addr + boff, 0, bsize); in xfs_buf_zero()

123