Home
last modified time | relevance | path

Searched refs:inlen (Results 1 – 25 of 258) sorted by relevance

1234567891011

/OK3568_Linux_fs/kernel/include/crypto/internal/
H A Dblake2b.h26 const u8 *in, size_t inlen, in __blake2b_update() argument
31 if (unlikely(!inlen)) in __blake2b_update()
33 if (inlen > fill) { in __blake2b_update()
38 inlen -= fill; in __blake2b_update()
40 if (inlen > BLAKE2B_BLOCK_SIZE) { in __blake2b_update()
41 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2B_BLOCK_SIZE); in __blake2b_update()
45 inlen -= BLAKE2B_BLOCK_SIZE * (nblocks - 1); in __blake2b_update()
47 memcpy(state->buf + state->buflen, in, inlen); in __blake2b_update()
48 state->buflen += inlen; in __blake2b_update()
97 const u8 *in, unsigned int inlen, in crypto_blake2b_update() argument
[all …]
H A Dblake2s.h30 __blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen, in __blake2s_update() argument
35 if (unlikely(!inlen)) in __blake2s_update()
37 if (inlen > fill) { in __blake2s_update()
47 inlen -= fill; in __blake2s_update()
49 if (inlen > BLAKE2S_BLOCK_SIZE) { in __blake2s_update()
50 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in __blake2s_update()
59 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in __blake2s_update()
61 memcpy(state->buf + state->buflen, in, inlen); in __blake2s_update()
62 state->buflen += inlen; in __blake2s_update()
111 const u8 *in, unsigned int inlen, in crypto_blake2s_update() argument
[all …]
/OK3568_Linux_fs/kernel/fs/nls/
H A Dnls_base.c55 int utf8_to_utf32(const u8 *s, int inlen, unicode_t *pu) in utf8_to_utf32() argument
74 if (inlen <= nc) in utf8_to_utf32()
132 int utf8s_to_utf16s(const u8 *s, int inlen, enum utf16_endian endian, in utf8s_to_utf16s() argument
140 while (inlen > 0 && maxout > 0 && *s) { in utf8s_to_utf16s()
142 size = utf8_to_utf32(s, inlen, &u); in utf8s_to_utf16s()
146 inlen -= size; in utf8s_to_utf16s()
166 inlen--; in utf8s_to_utf16s()
186 int utf16s_to_utf8s(const wchar_t *pwcs, int inlen, enum utf16_endian endian, in utf16s_to_utf8s() argument
194 while (inlen > 0 && maxout > 0) { in utf16s_to_utf8s()
199 inlen--; in utf16s_to_utf8s()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/
H A Dmcdi.c40 size_t inlen; member
151 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument
179 MCDI_HEADER_DATALEN, inlen, in efx_mcdi_send_request()
186 BUG_ON(inlen > MCDI_CTL_SDU_LEN_MAX_V2); in efx_mcdi_send_request()
197 MC_CMD_V2_EXTN_IN_ACTUAL_LEN, inlen); in efx_mcdi_send_request()
209 WARN_ON_ONCE(inlen % 4); in efx_mcdi_send_request()
219 for (i = 0; i < inlen / 4 && bytes < PAGE_SIZE; i++) in efx_mcdi_send_request()
228 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request()
481 async->inlen); in efx_mcdi_release()
551 efx_mcdi_display_error(efx, async->cmd, async->inlen, errbuf, in efx_mcdi_complete_async()
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx5/
H A Dsrq_cmd.c103 int inlen; in create_srq_cmd() local
107 inlen = MLX5_ST_SZ_BYTES(create_srq_in) + pas_size; in create_srq_cmd()
108 create_in = kvzalloc(inlen, GFP_KERNEL); in create_srq_cmd()
122 err = mlx5_cmd_exec(dev->mdev, create_in, inlen, create_out, in create_srq_cmd()
194 int inlen; in create_xrc_srq_cmd() local
198 inlen = MLX5_ST_SZ_BYTES(create_xrc_srq_in) + pas_size; in create_xrc_srq_cmd()
199 create_in = kvzalloc(inlen, GFP_KERNEL); in create_xrc_srq_cmd()
215 err = mlx5_cmd_exec(dev->mdev, create_in, inlen, create_out, in create_xrc_srq_cmd()
294 int inlen; in create_rmp_cmd() local
298 inlen = MLX5_ST_SZ_BYTES(create_rmp_in) + pas_size; in create_rmp_cmd()
[all …]
H A Dqp.h15 u32 *in, int inlen, u32 *out, int outlen);
17 u32 *in, int inlen, u32 *out);
31 int mlx5_core_create_sq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
36 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
/OK3568_Linux_fs/u-boot/arch/x86/lib/
H A Dscu.c87 u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_cmd() argument
91 for (i = 0; i < inlen; i++) in scu_ipc_cmd()
94 scu_ipc_send_command(regs, (inlen << 16) | (sub << 12) | cmd); in scu_ipc_cmd()
133 int scu_ipc_command(u32 cmd, u32 sub, u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_command() argument
145 return scu_ipc_cmd(scu->regs, cmd, sub, in, inlen, out, outlen); in scu_ipc_command()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_cmd.c183 unsigned int inlen; in mlx5dr_cmd_set_fte_modify_and_vport() local
188 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + in mlx5dr_cmd_set_fte_modify_and_vport()
191 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_set_fte_modify_and_vport()
212 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_set_fte_modify_and_vport()
239 u32 inlen; in mlx5dr_cmd_alloc_modify_header() local
243 inlen = MLX5_ST_SZ_BYTES(alloc_modify_header_context_in) + in mlx5dr_cmd_alloc_modify_header()
245 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_alloc_modify_header()
256 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_alloc_modify_header()
286 int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in); in mlx5dr_cmd_create_empty_flow_group() local
290 in = kzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_create_empty_flow_group()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/nx-gzip/
H A Dgzfht_test.c239 size_t inlen, outlen, dsttotlen, srctotlen; in compress_file() local
256 if (read_alloc_input_file(argv[1], &inbuf, &inlen)) in compress_file()
258 fprintf(stderr, "file %s read, %ld bytes\n", argv[1], inlen); in compress_file()
261 outlen = 2 * inlen + 1024; in compress_file()
284 while (inlen > 0) { in compress_file()
287 srclen = NX_MIN(chunk, inlen); in compress_file()
332 inlen = inlen - srclen; in compress_file()
350 if (inlen > 0) { /* More chunks to go */ in compress_file()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_common.c76 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5e_create_mkey() local
81 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_create_mkey()
94 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5e_create_mkey()
162 int inlen; in mlx5e_refresh_tirs() local
165 inlen = MLX5_ST_SZ_BYTES(modify_tir_in); in mlx5e_refresh_tirs()
166 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_refresh_tirs()
/OK3568_Linux_fs/kernel/arch/x86/include/asm/
H A Dintel_scu_ipc.h57 int sub, const void *in, size_t inlen,
61 int sub, const void *in, size_t inlen, in intel_scu_ipc_dev_command() argument
64 return intel_scu_ipc_dev_command_with_size(scu, cmd, sub, in, inlen, in intel_scu_ipc_dev_command()
65 inlen, out, outlen); in intel_scu_ipc_dev_command()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/crypto/
H A Dsha256-internal.c151 unsigned long inlen) in sha256_process() argument
158 while (inlen > 0) { in sha256_process()
159 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
164 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
166 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
170 inlen -= n; in sha256_process()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/crypto/
H A Dsha256-internal.c151 unsigned long inlen) in sha256_process() argument
158 while (inlen > 0) { in sha256_process()
159 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
164 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
166 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
170 inlen -= n; in sha256_process()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/crypto/
H A Dsha256-internal.c150 unsigned long inlen) in sha256_process() argument
157 while (inlen > 0) { in sha256_process()
158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
163 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 inlen -= n; in sha256_process()
/OK3568_Linux_fs/kernel/drivers/crypto/nx/
H A Dnx-842-pseries.c277 static int nx842_pseries_compress(const unsigned char *in, unsigned int inlen, in nx842_pseries_compress() argument
296 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_compress()
323 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress()
326 op.inlen = inlen; in nx842_pseries_compress()
329 nx842_build_scatterlist(inbuf, inlen, &slin); in nx842_pseries_compress()
331 op.inlen = -nx842_get_scatterlist_size(&slin); in nx842_pseries_compress()
347 __func__, (unsigned long)op.in, (long)op.inlen, in nx842_pseries_compress()
407 static int nx842_pseries_decompress(const unsigned char *in, unsigned int inlen, in nx842_pseries_decompress() argument
427 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_decompress()
455 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_decompress()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/ngene/
H A Dngene-i2c.c32 u8 *out, u8 outlen, u8 *in, u8 inlen, int flag) in ngene_command_i2c_read() argument
40 com.cmd.I2CRead.Data[outlen] = inlen; in ngene_command_i2c_read()
43 com.out_len = inlen + 1; in ngene_command_i2c_read()
52 memcpy(in, com.cmd.raw8, inlen + 1); in ngene_command_i2c_read()
54 memcpy(in, com.cmd.raw8 + 1, inlen); in ngene_command_i2c_read()
/OK3568_Linux_fs/kernel/include/linux/mlx5/
H A Dtransobj.h40 int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen,
45 int mlx5_core_create_sq(struct mlx5_core_dev *dev, u32 *in, int inlen,
57 int mlx5_core_create_rqt(struct mlx5_core_dev *dev, u32 *in, int inlen,
60 int inlen);
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/custom/
H A Dphl_custom.c73 msg->inlen = evt_rpt->len + sizeof(struct rtw_custom_decrpt); in _custom_rpt_notify_start()
294 info->inlen > MAX_DATA_SIZE) { in _phl_custom_mdl_set_info()
299 _os_mem_cpy(d, ctx->cmd_buf, info->inbuf, info->inlen); in _phl_custom_mdl_set_info()
304 msg.inlen = info->inlen; in _phl_custom_mdl_set_info()
348 info->inlen > MAX_DATA_SIZE) { in _phl_custom_mdl_query_info()
353 _os_mem_cpy(d, ctx->cmd_buf, info->inbuf, info->inlen); in _phl_custom_mdl_query_info()
359 msg.inlen = info->inlen; in _phl_custom_mdl_query_info()

1234567891011