Home
last modified time | relevance | path

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

1234567

/OK3568_Linux_fs/kernel/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)])
222 int i, ret = -1, m256_size = f->bsize / NFT_PIPAPO_LONGS_PER_M256, b; in nft_pipapo_avx2_lookup_4b_2()
224 unsigned long *lt = f->lt, bsize = f->bsize; in nft_pipapo_avx2_lookup_4b_2() local
231 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2()
232 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2()
235 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2()
237 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2()
[all …]
H A Dnft_set_pipapo.h124 size_t bsize; member
201 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit()
202 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit()
203 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit()
206 __bitmap_and(dst, dst, lt + v * f->bsize, in pipapo_and_field_buckets_4bit()
207 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit()
208 lt += f->bsize * NFT_PIPAPO_BUCKETS(4); in pipapo_and_field_buckets_4bit()
226 __bitmap_and(dst, dst, lt + *data * f->bsize, in pipapo_and_field_buckets_8bit()
227 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_8bit()
228 lt += f->bsize * NFT_PIPAPO_BUCKETS(8); in pipapo_and_field_buckets_8bit()
/OK3568_Linux_fs/kernel/crypto/
H A Dcbc.c20 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_segment() local
34 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment()
36 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment()
38 src += bsize; in crypto_cbc_encrypt_segment()
39 dst += bsize; in crypto_cbc_encrypt_segment()
40 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
48 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_inplace() local
61 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace()
65 src += bsize; in crypto_cbc_encrypt_inplace()
66 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
[all …]
H A Dpcbc.c24 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 …]
H A Dcfb.c61 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_segment() local
69 crypto_xor(dst, src, bsize); in crypto_cfb_encrypt_segment()
72 src += bsize; in crypto_cfb_encrypt_segment()
73 dst += bsize; in crypto_cfb_encrypt_segment()
74 } while ((nbytes -= bsize) >= bsize); in crypto_cfb_encrypt_segment()
76 memcpy(walk->iv, iv, bsize); in crypto_cfb_encrypt_segment()
84 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_inplace() local
92 crypto_xor(src, tmp, bsize); in crypto_cfb_encrypt_inplace()
95 src += bsize; in crypto_cfb_encrypt_inplace()
96 } while ((nbytes -= bsize) >= bsize); in crypto_cfb_encrypt_inplace()
[all …]
H A Dcts.c103 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 …]
H A Dctr.c31 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 …]
H A Dofb.c22 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ofb_crypt() local
28 while (walk.nbytes >= bsize) { in crypto_ofb_crypt()
36 crypto_xor_cpy(dst, src, iv, bsize); in crypto_ofb_crypt()
37 dst += bsize; in crypto_ofb_crypt()
38 src += bsize; in crypto_ofb_crypt()
39 } while ((nbytes -= bsize) >= bsize); in crypto_ofb_crypt()
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A Dcast5_avx_glue.c53 const unsigned int bsize = CAST5_BLOCK_SIZE; in ecb_crypt() local
67 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { in ecb_crypt()
72 wsrc += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
73 wdst += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
74 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
75 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); in ecb_crypt()
77 if (nbytes < bsize) in ecb_crypt()
87 wsrc += bsize; in ecb_crypt()
88 wdst += bsize; in ecb_crypt()
89 nbytes -= bsize; in ecb_crypt()
[all …]
H A Dblowfish_glue.c75 unsigned int bsize = BF_BLOCK_SIZE; in ecb_crypt() local
89 if (nbytes >= bsize * 4) { in ecb_crypt()
93 wsrc += bsize * 4; in ecb_crypt()
94 wdst += bsize * 4; in ecb_crypt()
95 nbytes -= bsize * 4; in ecb_crypt()
96 } while (nbytes >= bsize * 4); in ecb_crypt()
98 if (nbytes < bsize) in ecb_crypt()
106 wsrc += bsize; in ecb_crypt()
107 wdst += bsize; in ecb_crypt()
108 nbytes -= bsize; in ecb_crypt()
[all …]
H A Ddes3_ede_glue.c78 const unsigned int bsize = DES3_EDE_BLOCK_SIZE; in ecb_crypt() local
90 if (nbytes >= bsize * 3) { in ecb_crypt()
95 wsrc += bsize * 3; in ecb_crypt()
96 wdst += bsize * 3; in ecb_crypt()
97 nbytes -= bsize * 3; in ecb_crypt()
98 } while (nbytes >= bsize * 3); in ecb_crypt()
100 if (nbytes < bsize) in ecb_crypt()
108 wsrc += bsize; in ecb_crypt()
109 wdst += bsize; in ecb_crypt()
110 nbytes -= bsize; in ecb_crypt()
[all …]
H A Dglue_helper.c25 const unsigned int bsize = 128 / 8; in glue_ecb_req_128bit() local
39 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_ecb_req_128bit()
42 func_bytes = bsize * gctx->funcs[i].num_blocks; in glue_ecb_req_128bit()
55 if (nbytes < bsize) in glue_ecb_req_128bit()
70 const unsigned int bsize = 128 / 8; in glue_cbc_encrypt_req_128bit() local
88 nbytes -= bsize; in glue_cbc_encrypt_req_128bit()
89 } while (nbytes >= bsize); in glue_cbc_encrypt_req_128bit()
102 const unsigned int bsize = 128 / 8; in glue_cbc_decrypt_req_128bit() local
117 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_cbc_decrypt_req_128bit()
120 src += nbytes / bsize - 1; in glue_cbc_decrypt_req_128bit()
[all …]
/OK3568_Linux_fs/u-boot/drivers/fpga/
H A DstratixII.c11 int StratixII_ps_fpp_load (Altera_desc * desc, void *buf, size_t bsize,
13 int StratixII_ps_fpp_dump (Altera_desc * desc, void *buf, size_t bsize);
17 int StratixII_load (Altera_desc * desc, void *buf, size_t bsize) in StratixII_load() argument
23 ret_val = StratixII_ps_fpp_load (desc, buf, bsize, 1, 0); in StratixII_load()
26 ret_val = StratixII_ps_fpp_load (desc, buf, bsize, 0, 0); in StratixII_load()
29 ret_val = StratixII_ps_fpp_load (desc, buf, bsize, 0, 1); in StratixII_load()
40 int StratixII_dump (Altera_desc * desc, void *buf, size_t bsize) in StratixII_dump() argument
48 ret_val = StratixII_ps_fpp_dump (desc, buf, bsize); in StratixII_dump()
63 int StratixII_ps_fpp_dump (Altera_desc * desc, void *buf, size_t bsize) in StratixII_ps_fpp_dump() argument
69 int StratixII_ps_fpp_load (Altera_desc * desc, void *buf, size_t bsize, in StratixII_ps_fpp_load() argument
[all …]
H A Dvirtex2.c88 static int virtex2_ssm_load(xilinx_desc *desc, const void *buf, size_t bsize);
89 static int virtex2_ssm_dump(xilinx_desc *desc, const void *buf, size_t bsize);
91 static int virtex2_ss_load(xilinx_desc *desc, const void *buf, size_t bsize);
92 static int virtex2_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize);
94 static int virtex2_load(xilinx_desc *desc, const void *buf, size_t bsize, in virtex2_load() argument
102 ret_val = virtex2_ss_load(desc, buf, bsize); in virtex2_load()
107 ret_val = virtex2_ssm_load(desc, buf, bsize); in virtex2_load()
117 static int virtex2_dump(xilinx_desc *desc, const void *buf, size_t bsize) in virtex2_dump() argument
124 ret_val = virtex2_ss_dump(desc, buf, bsize); in virtex2_dump()
129 ret_val = virtex2_ssm_dump(desc, buf, bsize); in virtex2_dump()
[all …]
H A Dspartan3.c38 static int spartan3_sp_load(xilinx_desc *desc, const void *buf, size_t bsize);
39 static int spartan3_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize);
42 static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize);
43 static int spartan3_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize);
48 static int spartan3_load(xilinx_desc *desc, const void *buf, size_t bsize, in spartan3_load() argument
56 ret_val = spartan3_ss_load(desc, buf, bsize); in spartan3_load()
61 ret_val = spartan3_sp_load(desc, buf, bsize); in spartan3_load()
72 static int spartan3_dump(xilinx_desc *desc, const void *buf, size_t bsize) in spartan3_dump() argument
79 ret_val = spartan3_ss_dump(desc, buf, bsize); in spartan3_dump()
84 ret_val = spartan3_sp_dump(desc, buf, bsize); in spartan3_dump()
[all …]
H A Dspartan2.c34 static int spartan2_sp_load(xilinx_desc *desc, const void *buf, size_t bsize);
35 static int spartan2_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize);
38 static int spartan2_ss_load(xilinx_desc *desc, const void *buf, size_t bsize);
39 static int spartan2_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize);
44 static int spartan2_load(xilinx_desc *desc, const void *buf, size_t bsize, in spartan2_load() argument
52 ret_val = spartan2_ss_load(desc, buf, bsize); in spartan2_load()
57 ret_val = spartan2_sp_load(desc, buf, bsize); in spartan2_load()
68 static int spartan2_dump(xilinx_desc *desc, const void *buf, size_t bsize) in spartan2_dump() argument
75 ret_val = spartan2_ss_dump(desc, buf, bsize); in spartan2_dump()
80 ret_val = spartan2_sp_dump(desc, buf, bsize); in spartan2_dump()
[all …]
H A Dzynqmppl.c103 static void *check_data(u8 *buf, size_t bsize, u32 *swap) in check_data() argument
108 for (p = 0; p < bsize; p++) { in check_data()
168 size_t bsize, u32 blocksize, u32 *swap) in zynqmp_validate_bitstream() argument
195 static int zynqmp_load(xilinx_desc *desc, const void *buf, size_t bsize, in zynqmp_load() argument
204 if (zynqmp_validate_bitstream(desc, buf, bsize, bsize, &swap)) in zynqmp_load()
207 bin_buf = zynqmp_align_dma_buffer((u32 *)buf, bsize, swap); in zynqmp_load()
210 flush_dcache_range(bin_buf, bin_buf + bsize); in zynqmp_load()
212 if (bsize % 4) in zynqmp_load()
213 bsize = bsize / 4 + 1; in zynqmp_load()
215 bsize = bsize / 4; in zynqmp_load()
[all …]
H A Dcyclon2.c33 static int CYC2_ps_load(Altera_desc *desc, const void *buf, size_t bsize);
34 static int CYC2_ps_dump(Altera_desc *desc, const void *buf, size_t bsize);
39 int CYC2_load(Altera_desc *desc, const void *buf, size_t bsize) in CYC2_load() argument
46 ret_val = CYC2_ps_load (desc, buf, bsize); in CYC2_load()
56 ret_val = CYC2_ps_load(desc, buf, bsize); in CYC2_load()
69 int CYC2_dump(Altera_desc *desc, const void *buf, size_t bsize) in CYC2_dump() argument
76 ret_val = CYC2_ps_dump (desc, buf, bsize); in CYC2_dump()
96 static int CYC2_ps_load(Altera_desc *desc, const void *buf, size_t bsize) in CYC2_ps_load() argument
150 ret = (*fn->write) (buf, bsize, true, cookie); in CYC2_ps_load()
198 static int CYC2_ps_dump(Altera_desc *desc, const void *buf, size_t bsize) in CYC2_ps_dump() argument
H A DACEX1K.c35 static int ACEX1K_ps_load(Altera_desc *desc, const void *buf, size_t bsize);
36 static int ACEX1K_ps_dump(Altera_desc *desc, const void *buf, size_t bsize);
41 int ACEX1K_load(Altera_desc *desc, const void *buf, size_t bsize) in ACEX1K_load() argument
48 ret_val = ACEX1K_ps_load (desc, buf, bsize); in ACEX1K_load()
61 int ACEX1K_dump(Altera_desc *desc, const void *buf, size_t bsize) in ACEX1K_dump() argument
68 ret_val = ACEX1K_ps_dump (desc, buf, bsize); in ACEX1K_dump()
90 static int ACEX1K_ps_load(Altera_desc *desc, const void *buf, size_t bsize) in ACEX1K_ps_load() argument
158 while (bytecount < bsize) { in ACEX1K_ps_load()
192 if (bytecount % (bsize / 40) == 0) in ACEX1K_ps_load()
243 static int ACEX1K_ps_dump(Altera_desc *desc, const void *buf, size_t bsize) in ACEX1K_ps_dump() argument
H A Dfpga.c59 size_t bsize, char *fn) in fpga_validate() argument
214 int fpga_load(int devnum, const void *buf, size_t bsize, bitstream_type bstype) in fpga_load() argument
217 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_load()
224 ret_val = xilinx_load(desc->devdesc, buf, bsize, in fpga_load()
232 ret_val = altera_load(desc->devdesc, buf, bsize); in fpga_load()
239 ret_val = lattice_load(desc->devdesc, buf, bsize); in fpga_load()
257 int fpga_dump(int devnum, const void *buf, size_t bsize) in fpga_dump() argument
260 const fpga_desc *desc = fpga_validate(devnum, buf, bsize, in fpga_dump()
267 ret_val = xilinx_dump(desc->devdesc, buf, bsize); in fpga_dump()
274 ret_val = altera_dump(desc->devdesc, buf, bsize); in fpga_dump()
[all …]
H A Dzynqpl.c126 static void *check_data(u8 *buf, size_t bsize, u32 *swap) in check_data() argument
131 for (p = 0; p < bsize; p++) { in check_data()
321 size_t bsize, u32 blocksize, u32 *swap, in zynq_validate_bitstream() argument
352 static int zynq_load(xilinx_desc *desc, const void *buf, size_t bsize, in zynq_load() argument
362 if (zynq_validate_bitstream(desc, buf, bsize, bsize, &swap, in zynq_load()
366 buf = zynq_align_dma_buffer((u32 *)buf, bsize, swap); in zynq_load()
369 debug("%s: Size = %zu\n", __func__, bsize); in zynq_load()
373 roundup(bsize, ARCH_DMA_MINALIGN)); in zynq_load()
375 if (zynq_dma_transfer((u32)buf | 1, bsize >> 2, 0xffffffff, 0)) in zynq_load()
399 static int zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize, in zynq_loadfs() argument
[all …]
/OK3568_Linux_fs/kernel/arch/s390/crypto/
H A Dsha_common.c19 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_update() local
23 index = ctx->count % bsize; in s390_sha_update()
26 if ((index + len) < bsize) in s390_sha_update()
31 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update()
32 cpacf_kimd(ctx->func, ctx->state, ctx->buf, bsize); in s390_sha_update()
33 data += bsize - index; in s390_sha_update()
34 len -= bsize - index; in s390_sha_update()
39 if (len >= bsize) { in s390_sha_update()
40 n = (len / bsize) * bsize; in s390_sha_update()
75 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_final() local
[all …]
/OK3568_Linux_fs/kernel/lib/mpi/
H A Dmpi-pow.c31 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 …]
/OK3568_Linux_fs/kernel/arch/m68k/emu/
H A Dnfblock.c56 u32 blocks, bsize; member
100 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument
106 blocks, bsize); in nfhd_init_one()
108 if (bsize < 512 || (bsize & (bsize - 1))) { in nfhd_init_one()
119 dev->bsize = bsize; in nfhd_init_one()
120 dev->bshift = ffs(bsize) - 10; in nfhd_init_one()
126 blk_queue_logical_block_size(dev->queue, bsize); in nfhd_init_one()
137 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
156 u32 blocks, bsize; in nfhd_init() local
174 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init()
[all …]
/OK3568_Linux_fs/u-boot/fs/yaffs2/
H A Dyaffs_nameval.c90 int bsize, int flags) in nval_set() argument
109 reclen = (sizeof(int) + namelen + 1 + bsize); in nval_set()
125 memcpy(xb + pos, buf, bsize); in nval_set()
130 int bsize) in nval_get() argument
153 if (!bsize) in nval_get()
156 if (size <= bsize) { in nval_get()
167 int nval_list(const char *xb, int xb_size, char *buf, int bsize) in nval_list() argument
183 if (ncopied + name_len + 1 < bsize) { in nval_list()

1234567