Home
last modified time | relevance | path

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

1234567

/linux-5.19.10/lib/crypto/
Dblake2s.c24 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen) in blake2s_update() argument
28 if (unlikely(!inlen)) in blake2s_update()
30 if (inlen > fill) { in blake2s_update()
35 inlen -= fill; in blake2s_update()
37 if (inlen > BLAKE2S_BLOCK_SIZE) { in blake2s_update()
38 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update()
41 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
43 memcpy(state->buf + state->buflen, in, inlen); in blake2s_update()
44 state->buflen += inlen; in blake2s_update()
/linux-5.19.10/include/crypto/internal/
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 …]
/linux-5.19.10/fs/nls/
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 …]
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Drqt.c20 int inlen; in mlx5e_rqt_init() local
28 inlen = MLX5_ST_SZ_BYTES(create_rqt_in) + sizeof(u32) * init_size; in mlx5e_rqt_init()
29 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_rqt_init()
41 err = mlx5_core_create_rqt(rqt->mdev, in, inlen, &rqt->rqtn); in mlx5e_rqt_init()
121 int inlen; in mlx5e_rqt_redirect() local
125 inlen = MLX5_ST_SZ_BYTES(modify_rqt_in) + sizeof(u32) * size; in mlx5e_rqt_redirect()
126 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_rqt_redirect()
137 err = mlx5_core_modify_rqt(rqt->mdev, rqt->rqtn, in, inlen); in mlx5e_rqt_redirect()
/linux-5.19.10/drivers/net/ethernet/sfc/siena/
Dmcdi.c40 size_t inlen; member
152 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument
180 MCDI_HEADER_DATALEN, inlen, in efx_mcdi_send_request()
187 BUG_ON(inlen > MCDI_CTL_SDU_LEN_MAX_V2); in efx_mcdi_send_request()
198 MC_CMD_V2_EXTN_IN_ACTUAL_LEN, inlen); in efx_mcdi_send_request()
210 WARN_ON_ONCE(inlen % 4); in efx_mcdi_send_request()
220 for (i = 0; i < inlen / 4 && bytes < PAGE_SIZE; i++) in efx_mcdi_send_request()
229 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request()
482 async->inlen); in efx_mcdi_release()
552 efx_siena_mcdi_display_error(efx, async->cmd, async->inlen, in efx_mcdi_complete_async()
[all …]
/linux-5.19.10/drivers/net/ethernet/sfc/
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 …]
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_common.c52 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5e_create_mkey() local
57 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_create_mkey()
70 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5e_create_mkey()
138 int inlen; in mlx5e_refresh_tirs() local
141 inlen = MLX5_ST_SZ_BYTES(modify_tir_in); in mlx5e_refresh_tirs()
142 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_refresh_tirs()
Dcq.c90 u32 *in, int inlen, u32 *out, int outlen) in mlx5_create_cq() argument
104 err = mlx5_cmd_do(dev, in, inlen, out, outlen); in mlx5_create_cq()
155 u32 *in, int inlen, u32 *out, int outlen) in mlx5_core_create_cq() argument
157 int err = mlx5_create_cq(dev, cq, in, inlen, out, outlen); in mlx5_core_create_cq()
200 u32 *in, int inlen) in mlx5_core_modify_cq() argument
206 return mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_modify_cq()
Dtransobj.c66 int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rqn) in mlx5_core_create_rq() argument
72 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_rq()
110 int mlx5_core_create_sq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *sqn) in mlx5_core_create_sq() argument
116 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_sq()
154 int inlen; in mlx5_core_query_sq_state() local
157 inlen = MLX5_ST_SZ_BYTES(query_sq_out); in mlx5_core_query_sq_state()
158 out = kvzalloc(inlen, GFP_KERNEL); in mlx5_core_query_sq_state()
239 int mlx5_core_create_rqt(struct mlx5_core_dev *dev, u32 *in, int inlen, in mlx5_core_create_rqt() argument
246 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_rqt()
255 int inlen) in mlx5_core_modify_rqt() argument
[all …]
/linux-5.19.10/drivers/infiniband/hw/mlx5/
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,
Dsrq_cmd.c122 int inlen; in create_srq_cmd() local
132 inlen = MLX5_ST_SZ_BYTES(create_srq_in) + pas_size; in create_srq_cmd()
133 create_in = kvzalloc(inlen, GFP_KERNEL); in create_srq_cmd()
153 err = mlx5_cmd_exec(dev->mdev, create_in, inlen, create_out, in create_srq_cmd()
225 int inlen; in create_xrc_srq_cmd() local
235 inlen = MLX5_ST_SZ_BYTES(create_xrc_srq_in) + pas_size; in create_xrc_srq_cmd()
236 create_in = kvzalloc(inlen, GFP_KERNEL); in create_xrc_srq_cmd()
258 err = mlx5_cmd_exec(dev->mdev, create_in, inlen, create_out, in create_xrc_srq_cmd()
338 int inlen; in create_rmp_cmd() local
348 inlen = MLX5_ST_SZ_BYTES(create_rmp_in) + pas_size; in create_rmp_cmd()
[all …]
Dmr.c97 struct mlx5_ib_mkey *mkey, u32 *in, int inlen) in mlx5_ib_create_mkey() argument
102 ret = mlx5_core_create_mkey(dev->mdev, &mkey->key, in, inlen); in mlx5_ib_create_mkey()
113 u32 *in, int inlen, u32 *out, int outlen, in mlx5_ib_create_mkey_cb() argument
118 return mlx5_cmd_exec_cb(async_ctx, in, inlen, out, outlen, in mlx5_ib_create_mkey_cb()
224 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in add_keys() local
231 in = kzalloc(inlen, GFP_KERNEL); in add_keys()
252 &ent->dev->async_ctx, in, inlen, in add_keys()
272 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in create_cache_mr() local
278 in = kzalloc(inlen, GFP_KERNEL); in create_cache_mr()
289 err = mlx5_core_create_mkey(ent->dev->mdev, &mr->mmkey.key, in, inlen); in create_cache_mr()
[all …]
Dqpc.c215 u32 *in, int inlen, u32 *out, int outlen) in mlx5_core_create_dct() argument
223 err = mlx5_cmd_do(dev->mdev, in, inlen, out, outlen); in mlx5_core_create_dct()
240 u32 *in, int inlen, u32 *out) in mlx5_qpc_create_qp() argument
247 err = mlx5_cmd_exec(dev->mdev, in, inlen, out, in mlx5_qpc_create_qp()
319 int inlen; member
323 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument
325 mbox->inlen = inlen; in mbox_alloc()
327 mbox->in = kzalloc(mbox->inlen, GFP_KERNEL); in mbox_alloc()
474 err = mlx5_cmd_exec(dev->mdev, mbox.in, mbox.inlen, mbox.out, in mlx5_core_qp_modify()
561 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen, in mlx5_core_create_rq_tracked() argument
[all …]
Dqp.c863 struct mlx5_ib_create_qp_resp *resp, int *inlen, in _create_user_qp() argument
941 *inlen = MLX5_ST_SZ_BYTES(create_qp_in) + in _create_user_qp()
943 *in = kvzalloc(*inlen, GFP_KERNEL); in _create_user_qp()
1020 struct mlx5_ib_qp *qp, u32 **in, int *inlen, in _create_kernel_qp() argument
1073 *inlen = MLX5_ST_SZ_BYTES(create_qp_in) + in _create_kernel_qp()
1075 *in = kvzalloc(*inlen, GFP_KERNEL); in _create_kernel_qp()
1264 int inlen; in create_raw_packet_qp_sq() local
1286 inlen = MLX5_ST_SZ_BYTES(create_sq_in) + in create_raw_packet_qp_sq()
1289 in = kvzalloc(inlen, GFP_KERNEL); in create_raw_packet_qp_sq()
1324 err = mlx5_core_create_sq_tracked(dev, in, inlen, &sq->base.mqp); in create_raw_packet_qp_sq()
[all …]
/linux-5.19.10/arch/x86/include/asm/
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()
/linux-5.19.10/tools/testing/selftests/powerpc/nx-gzip/
Dgzfht_test.c242 size_t inlen, outlen, dsttotlen, srctotlen; in compress_file() local
260 if (read_alloc_input_file(argv[1], &inbuf, &inlen)) in compress_file()
262 fprintf(stderr, "file %s read, %ld bytes\n", argv[1], inlen); in compress_file()
265 outlen = 2 * inlen + 1024; in compress_file()
297 while (inlen > 0) { in compress_file()
300 srclen = NX_MIN(chunk, inlen); in compress_file()
345 inlen = inlen - srclen; in compress_file()
363 if (inlen > 0) { /* More chunks to go */ in compress_file()
/linux-5.19.10/include/linux/mlx5/
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);
/linux-5.19.10/fs/erofs/
Ddecompressor_lzma.c160 unsigned int inlen, outlen, pageofs; in z_erofs_lzma_decompress() local
189 inlen = rq->inputsize; in z_erofs_lzma_decompress()
191 xz_dec_microlzma_reset(strm->state, inlen, outlen, in z_erofs_lzma_decompress()
196 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE - rq->pageofs_in); in z_erofs_lzma_decompress()
197 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress()
226 if (++ni >= nrpages_in || !inlen) { in z_erofs_lzma_decompress()
232 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE); in z_erofs_lzma_decompress()
233 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress()
/linux-5.19.10/drivers/vdpa/mlx5/core/
Dresources.c54 int inlen; in create_uctx() local
65 inlen = MLX5_ST_SZ_BYTES(create_uctx_in); in create_uctx()
66 in = kzalloc(inlen, GFP_KERNEL); in create_uctx()
73 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in create_uctx()
119 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn) in mlx5_vdpa_create_rqt() argument
125 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in mlx5_vdpa_create_rqt()
132 int mlx5_vdpa_modify_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 rqtn) in mlx5_vdpa_modify_rqt() argument
139 return mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in mlx5_vdpa_modify_rqt()
202 int inlen) in mlx5_vdpa_create_mkey() argument
211 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, lout, sizeof(lout)); in mlx5_vdpa_create_mkey()
/linux-5.19.10/drivers/media/pci/ngene/
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()
/linux-5.19.10/include/crypto/
Dblake2s.h86 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen);
90 const size_t outlen, const size_t inlen, in blake2s() argument
95 WARN_ON(IS_ENABLED(DEBUG) && ((!in && inlen > 0) || !out || !outlen || in blake2s()
100 blake2s_update(&state, in, inlen); in blake2s()
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_cmd.c288 unsigned int inlen; in mlx5dr_cmd_set_fte_modify_and_vport() local
293 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + in mlx5dr_cmd_set_fte_modify_and_vport()
296 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_set_fte_modify_and_vport()
317 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_set_fte_modify_and_vport()
344 u32 inlen; in mlx5dr_cmd_alloc_modify_header() local
348 inlen = MLX5_ST_SZ_BYTES(alloc_modify_header_context_in) + in mlx5dr_cmd_alloc_modify_header()
350 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_alloc_modify_header()
361 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_alloc_modify_header()
391 int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in); in mlx5dr_cmd_create_empty_flow_group() local
395 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_create_empty_flow_group()
[all …]
/linux-5.19.10/crypto/
Dsm2.c221 unsigned int inlen; in sm2_z_digest_update() local
223 in = mpi_get_buffer(m, &inlen, NULL); in sm2_z_digest_update()
227 if (inlen < pbytes) { in sm2_z_digest_update()
229 sm3_update(sctx, zero, pbytes - inlen); in sm2_z_digest_update()
230 sm3_update(sctx, in, inlen); in sm2_z_digest_update()
231 } else if (inlen > pbytes) { in sm2_z_digest_update()
233 sm3_update(sctx, in + inlen - pbytes, pbytes); in sm2_z_digest_update()
235 sm3_update(sctx, in, inlen); in sm2_z_digest_update()
/linux-5.19.10/drivers/crypto/nx/
Dnx-common-pseries.c302 static int nx842_pseries_compress(const unsigned char *in, unsigned int inlen, in nx842_pseries_compress() argument
321 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_compress()
348 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress()
351 op.inlen = inlen; in nx842_pseries_compress()
354 nx842_build_scatterlist(inbuf, inlen, &slin); in nx842_pseries_compress()
356 op.inlen = -nx842_get_scatterlist_size(&slin); in nx842_pseries_compress()
372 __func__, (unsigned long)op.in, (long)op.inlen, in nx842_pseries_compress()
432 static int nx842_pseries_decompress(const unsigned char *in, unsigned int inlen, in nx842_pseries_decompress() argument
452 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_decompress()
480 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_decompress()
[all …]
/linux-5.19.10/drivers/media/usb/dvb-usb/
Dvp7045.c25 int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int mse… in vp7045_usb_op() argument
35 if (inlen > 11) in vp7045_usb_op()
36 inlen = 11; in vp7045_usb_op()
72 if (in != NULL && inlen > 0) in vp7045_usb_op()
73 memcpy(in, &buf[1], inlen); in vp7045_usb_op()

1234567