Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/cdx/controller/
Dmcdi.c54 size_t inlen, int raw, int arg, int err_no);
227 size_t inlen = cmd->inlen; in cdx_mcdi_send_request() local
245 WARN_ON(inlen > MCDI_CTL_SDU_LEN_MAX_V2); in cdx_mcdi_send_request()
256 MC_CMD_V2_EXTN_IN_ACTUAL_LEN, inlen, in cdx_mcdi_send_request()
261 hdr[0].cdx_u32 |= (__force __le32)(cdx_mcdi_payload_csum(hdr, hdr_len, inbuf, inlen) << in cdx_mcdi_send_request()
265 print_hex_dump_debug("MCDI REQ PAYLOAD: ", DUMP_PREFIX_NONE, 32, 4, inbuf, inlen, false); in cdx_mcdi_send_request()
267 cdx->mcdi_ops->mcdi_request(cdx, hdr, hdr_len, inbuf, inlen); in cdx_mcdi_send_request()
363 cmd->cmd, cmd->inlen); in _cdx_mcdi_cancel_cmd()
427 const struct cdx_dword *inbuf, size_t inlen, in cdx_mcdi_rpc_sync() argument
460 cmd_item->inlen = inlen; in cdx_mcdi_rpc_sync()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/net/ethernet/sfc/
Dmcdi.c39 size_t inlen; member
148 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument
176 MCDI_HEADER_DATALEN, inlen, in efx_mcdi_send_request()
183 BUG_ON(inlen > MCDI_CTL_SDU_LEN_MAX_V2); in efx_mcdi_send_request()
194 MC_CMD_V2_EXTN_IN_ACTUAL_LEN, inlen); in efx_mcdi_send_request()
206 WARN_ON_ONCE(inlen % 4); in efx_mcdi_send_request()
216 for (i = 0; i < inlen / 4 && bytes < PAGE_SIZE; i++) in efx_mcdi_send_request()
225 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request()
478 async->inlen); in efx_mcdi_release()
548 efx_mcdi_display_error(efx, async->cmd, async->inlen, errbuf, in efx_mcdi_complete_async()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_common.c53 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5e_create_mkey() local
58 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_create_mkey()
71 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5e_create_mkey()
148 int inlen; in mlx5e_refresh_tirs() local
151 inlen = MLX5_ST_SZ_BYTES(modify_tir_in); in mlx5e_refresh_tirs()
152 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-6.6.21/tools/testing/selftests/powerpc/nx-gzip/
Dgzfht_test.c194 size_t inlen, outlen, dsttotlen, srctotlen; in compress_file() local
212 if (read_file_alloc(argv[1], &inbuf, &inlen)) in compress_file()
214 fprintf(stderr, "file %s read, %ld bytes\n", argv[1], inlen); in compress_file()
217 outlen = 2 * inlen + 1024; in compress_file()
249 while (inlen > 0) { in compress_file()
252 srclen = NX_MIN(chunk, inlen); in compress_file()
297 inlen = inlen - srclen; in compress_file()
315 if (inlen > 0) { /* More chunks to go */ in compress_file()
/linux-6.6.21/drivers/infiniband/hw/mlx5/
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 …]
Dqp.h25 u32 *in, int inlen, u32 *out, int outlen);
27 u32 *in, int inlen, u32 *out);
41 int mlx5_core_create_sq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
46 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
Dqpc.c208 u32 *in, int inlen, u32 *out, int outlen) in mlx5_core_create_dct() argument
216 err = mlx5_cmd_do(dev->mdev, in, inlen, out, outlen); in mlx5_core_create_dct()
233 u32 *in, int inlen, u32 *out) in mlx5_qpc_create_qp() argument
240 err = mlx5_cmd_exec(dev->mdev, in, inlen, out, in mlx5_qpc_create_qp()
335 int inlen; member
339 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument
341 mbox->inlen = inlen; in mbox_alloc()
343 mbox->in = kzalloc(mbox->inlen, GFP_KERNEL); in mbox_alloc()
490 err = mlx5_cmd_exec(dev->mdev, mbox.in, mbox.inlen, mbox.out, in mlx5_core_qp_modify()
580 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen, in mlx5_core_create_rq_tracked() argument
[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()
112 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_create_mkey_cb() local
118 return mlx5_cmd_exec_cb(&dev->async_ctx, async_create->in, inlen, in mlx5_ib_create_mkey_cb()
361 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in create_cache_mkey() local
366 in = kzalloc(inlen, GFP_KERNEL); in create_cache_mkey()
372 err = mlx5_core_create_mkey(ent->dev->mdev, mkey, in, inlen); in create_cache_mkey()
1067 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_get_dma_mr() local
1077 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_get_dma_mr()
1090 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen); in mlx5_ib_get_dma_mr()
[all …]
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/
Daso.c81 int inlen, eqn; in create_aso_cq() local
88 inlen = MLX5_ST_SZ_BYTES(create_cq_in) + in create_aso_cq()
90 in = kvzalloc(inlen, GFP_KERNEL); in create_aso_cq()
108 err = mlx5_core_create_cq(mdev, mcq, in, inlen, out, sizeof(out)); in create_aso_cq()
182 int inlen, err; in create_aso_sq() local
185 inlen = MLX5_ST_SZ_BYTES(create_sq_in) + in create_aso_sq()
187 in = kvzalloc(inlen, GFP_KERNEL); in create_aso_sq()
214 err = mlx5_core_create_sq(mdev, in, inlen, &sq->sqn); in create_aso_sq()
224 int inlen, err; in mlx5_aso_set_sq_rdy() local
226 inlen = MLX5_ST_SZ_BYTES(modify_sq_in); in mlx5_aso_set_sq_rdy()
[all …]
/linux-6.6.21/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-6.6.21/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()
232 if (++ni >= nrpages_in || !inlen) { in z_erofs_lzma_decompress()
238 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE); in z_erofs_lzma_decompress()
239 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress()
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/crypto/nx/
Dnx-common-pseries.c304 static int nx842_pseries_compress(const unsigned char *in, unsigned int inlen, in nx842_pseries_compress() argument
323 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_compress()
350 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress()
353 op.inlen = inlen; in nx842_pseries_compress()
356 nx842_build_scatterlist(inbuf, inlen, &slin); in nx842_pseries_compress()
358 op.inlen = -nx842_get_scatterlist_size(&slin); in nx842_pseries_compress()
374 __func__, (unsigned long)op.in, (long)op.inlen, in nx842_pseries_compress()
434 static int nx842_pseries_decompress(const unsigned char *in, unsigned int inlen, in nx842_pseries_decompress() argument
454 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_decompress()
482 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_decompress()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/crypto/
Dsm2.c227 unsigned int inlen; in sm2_z_digest_update() local
230 in = mpi_get_buffer(m, &inlen, NULL); in sm2_z_digest_update()
234 if (inlen < pbytes) { in sm2_z_digest_update()
236 err = crypto_shash_update(desc, zero, pbytes - inlen) ?: in sm2_z_digest_update()
237 crypto_shash_update(desc, in, inlen); in sm2_z_digest_update()
238 } else if (inlen > pbytes) { in sm2_z_digest_update()
240 err = crypto_shash_update(desc, in + inlen - pbytes, pbytes); in sm2_z_digest_update()
242 err = crypto_shash_update(desc, in, inlen); in sm2_z_digest_update()

1234567