Home
last modified time | relevance | path

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

1234

/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.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/arch/m68k/emu/
H A Dnfblock.c55 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/
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/jfs/
H A Djfs_mount.c297 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 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/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/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/nfs/
H A Dproc.c87 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/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/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/fs/affs/
H A Damigaffs.c343 int bsize; in affs_checksum_block() local
346 for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--) in affs_checksum_block()
/linux/drivers/scsi/qla2xxx/
H A Dqla_inline.h69 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()
/linux/include/uapi/linux/
H A Dnfs_mount.h43 unsigned int bsize; /* 3 */ member

1234