Home
last modified time | relevance | path

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

123456

/linux/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 …]
/linux/lib/crypto/
H A 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/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 …]
/linux/drivers/cdx/controller/
H A Dmcdi.c50 size_t inlen, int raw, int arg, int err_no);
223 size_t inlen = cmd->inlen; in cdx_mcdi_send_request() local
241 WARN_ON(inlen > MCDI_CTL_SDU_LEN_MAX_V2); in cdx_mcdi_send_request()
252 MC_CMD_V2_EXTN_IN_ACTUAL_LEN, inlen, in cdx_mcdi_send_request()
257 hdr[0].cdx_u32 |= (__force __le32)(cdx_mcdi_payload_csum(hdr, hdr_len, inbuf, inlen) << in cdx_mcdi_send_request()
261 print_hex_dump_debug("MCDI REQ PAYLOAD: ", DUMP_PREFIX_NONE, 32, 4, inbuf, inlen, false); in cdx_mcdi_send_request()
263 cdx->mcdi_ops->mcdi_request(cdx, hdr, hdr_len, inbuf, inlen); in cdx_mcdi_send_request()
359 cmd->cmd, cmd->inlen); in _cdx_mcdi_cancel_cmd()
423 const struct cdx_dword *inbuf, size_t inlen, in cdx_mcdi_rpc_sync() argument
456 cmd_item->inlen = inlen; in cdx_mcdi_rpc_sync()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A 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 …]
H A Dmcdi.h146 const efx_dword_t *inbuf, size_t inlen,
150 const efx_dword_t *inbuf, size_t inlen,
155 const efx_dword_t *inbuf, size_t inlen);
157 size_t inlen, efx_dword_t *outbuf, size_t outlen,
160 size_t inlen, efx_dword_t *outbuf,
168 const efx_dword_t *inbuf, size_t inlen,
173 const efx_dword_t *inbuf, size_t inlen,
179 size_t inlen, efx_dword_t *outbuf,
/linux/tools/testing/selftests/powerpc/nx-gzip/
H A 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/drivers/infiniband/hw/mlx5/
H A 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 …]
H A 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,
H A 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()
337 int inlen; member
341 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument
343 mbox->inlen = inlen; in mbox_alloc()
345 mbox->in = kzalloc(mbox->inlen, GFP_KERNEL); in mbox_alloc()
492 err = mlx5_cmd_exec(dev->mdev, mbox.in, mbox.inlen, mbox.out, in mlx5_core_qp_modify()
585 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen, in mlx5_core_create_rq_tracked() argument
[all …]
H A Dmr.c101 struct mlx5_ib_mkey *mkey, u32 *in, int inlen) in mlx5_ib_create_mkey() argument
106 ret = mlx5_core_create_mkey(dev->mdev, &mkey->key, in, inlen); in mlx5_ib_create_mkey()
116 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_create_mkey_cb() local
122 return mlx5_cmd_exec_cb(&dev->async_ctx, async_create->in, inlen, in mlx5_ib_create_mkey_cb()
308 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in create_cache_mkey() local
313 in = kzalloc(inlen, GFP_KERNEL); in create_cache_mkey()
319 err = mlx5_core_create_mkey(ent->dev->mdev, mkey, in, inlen); in create_cache_mkey()
1025 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_get_dma_mr() local
1035 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_get_dma_mr()
1049 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen); in mlx5_ib_get_dma_mr()
[all …]
/linux/drivers/vdpa/mlx5/core/
H A 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()
[all …]
H A Dmlx5_vdpa.h129 size_t inlen; member
137 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn);
138 int mlx5_vdpa_modify_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 rqtn);
147 int inlen);
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drqt.c63 int inlen; in mlx5e_rqt_init() local
74 inlen = MLX5_ST_SZ_BYTES(create_rqt_in) + entry_sz * init_size; in mlx5e_rqt_init()
75 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_rqt_init()
86 err = mlx5_core_create_rqt(rqt->mdev, in, inlen, &rqt->rqtn); in mlx5e_rqt_init()
199 int inlen; in mlx5e_rqt_redirect() local
207 inlen = MLX5_ST_SZ_BYTES(modify_rqt_in) + entry_sz * size; in mlx5e_rqt_redirect()
208 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_rqt_redirect()
219 err = mlx5_core_modify_rqt(rqt->mdev, rqt->rqtn, in, inlen); in mlx5e_rqt_redirect()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A 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/include/linux/platform_data/x86/
H A Dintel_scu_ipc.h61 int sub, const void *in, size_t inlen,
65 int sub, const void *in, size_t inlen, in intel_scu_ipc_dev_command() argument
68 return intel_scu_ipc_dev_command_with_size(scu, cmd, sub, in, inlen, in intel_scu_ipc_dev_command()
69 inlen, out, outlen); in intel_scu_ipc_dev_command()
/linux/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);
/linux/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()
/linux/include/crypto/
H A 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/drivers/net/ethernet/mellanox/mlx5/core/
H A 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()
227 int inlen; in mlx5e_refresh_tirs() local
230 inlen = MLX5_ST_SZ_BYTES(modify_tir_in); in mlx5e_refresh_tirs()
231 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_refresh_tirs()
H A 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 …]
H A Dwc.c75 int err, inlen, eqn; in create_wc_cq() local
82 inlen = MLX5_ST_SZ_BYTES(create_cq_in) + in create_wc_cq()
84 in = kvzalloc(inlen, GFP_KERNEL); in create_wc_cq()
102 err = mlx5_core_create_cq(mdev, mcq, in, inlen, out, sizeof(out)); in create_wc_cq()
155 int inlen, err; in create_wc_sq() local
158 inlen = MLX5_ST_SZ_BYTES(create_sq_in) + in create_wc_sq()
160 in = kvzalloc(inlen, GFP_KERNEL); in create_wc_sq()
187 err = mlx5_core_create_sq(mdev, in, inlen, &sq->sqn); in create_wc_sq()
/linux/drivers/media/usb/dvb-usb/
H A 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/drivers/crypto/nx/
H A Dnx-common-powernv.c72 unsigned int inlen, unsigned char *out,
388 static int nx842_config_crb(const unsigned char *in, unsigned int inlen, in nx842_config_crb() argument
405 (unsigned char *)in, inlen, true); in nx842_config_crb()
453 static int nx842_exec_icswx(const unsigned char *in, unsigned int inlen, in nx842_exec_icswx() argument
474 ret = nx842_config_crb(in, inlen, out, outlen, wmem); in nx842_exec_icswx()
556 static int nx842_exec_vas(const unsigned char *in, unsigned int inlen, in nx842_exec_vas() argument
575 ret = nx842_config_crb(in, inlen, out, outlen, wmem); in nx842_exec_vas()
637 static int nx842_powernv_compress(const unsigned char *in, unsigned int inlen, in nx842_powernv_compress() argument
641 return nx842_powernv_exec(in, inlen, out, outlenp, in nx842_powernv_compress()
665 static int nx842_powernv_decompress(const unsigned char *in, unsigned int inlen, in nx842_powernv_decompress() argument
[all …]
/linux/arch/s390/crypto/
H A Dhmac_s390.c98 static int hash_key(const u8 *in, unsigned int inlen, in hash_key() argument
127 PARAM_INIT(256, 224, inlen * 8); in hash_key()
131 PARAM_INIT(256, 256, inlen * 8); in hash_key()
135 PARAM_INIT(512, 384, inlen * 8); in hash_key()
139 PARAM_INIT(512, 512, inlen * 8); in hash_key()
147 cpacf_klmd(func, &param, in, inlen); in hash_key()

123456