/Linux-v5.10/lib/crypto/ |
D | blake2s.c | 22 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen) in blake2s_update() argument 26 if (unlikely(!inlen)) in blake2s_update() 28 if (inlen > fill) { in blake2s_update() 38 inlen -= fill; in blake2s_update() 40 if (inlen > BLAKE2S_BLOCK_SIZE) { in blake2s_update() 41 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update() 50 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update() 52 memcpy(state->buf + state->buflen, in, inlen); in blake2s_update() 53 state->buflen += inlen; in blake2s_update() 73 void blake2s256_hmac(u8 *out, const u8 *in, const u8 *key, const size_t inlen, in blake2s256_hmac() argument [all …]
|
/Linux-v5.10/fs/nls/ |
D | nls_base.c | 55 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-v5.10/crypto/ |
D | blake2s_generic.c | 44 unsigned int inlen) in crypto_blake2s_update() argument 49 if (unlikely(!inlen)) in crypto_blake2s_update() 51 if (inlen > fill) { in crypto_blake2s_update() 56 inlen -= fill; in crypto_blake2s_update() 58 if (inlen > BLAKE2S_BLOCK_SIZE) { in crypto_blake2s_update() 59 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in crypto_blake2s_update() 63 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in crypto_blake2s_update() 65 memcpy(state->buf + state->buflen, in, inlen); in crypto_blake2s_update() 66 state->buflen += inlen; in crypto_blake2s_update()
|
D | blake2b_generic.c | 185 unsigned int inlen) in blake2b_update() argument 191 if (!inlen) in blake2b_update() 194 if (inlen > fill) { in blake2b_update() 202 inlen -= fill; in blake2b_update() 203 while (inlen > BLAKE2B_BLOCKBYTES) { in blake2b_update() 207 inlen -= BLAKE2B_BLOCKBYTES; in blake2b_update() 210 memcpy(state->buf + state->buflen, in, inlen); in blake2b_update() 211 state->buflen += inlen; in blake2b_update()
|
D | sm2.c | 226 unsigned int inlen; in sm2_z_digest_update() local 228 in = mpi_get_buffer(m, &inlen, NULL); in sm2_z_digest_update() 232 if (inlen < pbytes) { in sm2_z_digest_update() 234 crypto_sm3_update(desc, zero, pbytes - inlen); in sm2_z_digest_update() 235 crypto_sm3_update(desc, in, inlen); in sm2_z_digest_update() 236 } else if (inlen > pbytes) { in sm2_z_digest_update() 238 crypto_sm3_update(desc, in + inlen - pbytes, pbytes); in sm2_z_digest_update() 240 crypto_sm3_update(desc, in, inlen); in sm2_z_digest_update()
|
/Linux-v5.10/arch/x86/crypto/ |
D | blake2s-glue.c | 90 unsigned int inlen) in crypto_blake2s_update() argument 95 if (unlikely(!inlen)) in crypto_blake2s_update() 97 if (inlen > fill) { in crypto_blake2s_update() 102 inlen -= fill; in crypto_blake2s_update() 104 if (inlen > BLAKE2S_BLOCK_SIZE) { in crypto_blake2s_update() 105 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in crypto_blake2s_update() 109 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in crypto_blake2s_update() 111 memcpy(state->buf + state->buflen, in, inlen); in crypto_blake2s_update() 112 state->buflen += inlen; in crypto_blake2s_update()
|
/Linux-v5.10/include/crypto/ |
D | blake2s.h | 46 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen); 85 const size_t outlen, const size_t inlen, in blake2s() argument 90 WARN_ON(IS_ENABLED(DEBUG) && ((!in && inlen > 0) || !out || !outlen || in blake2s() 99 blake2s_update(&state, in, inlen); in blake2s() 103 void blake2s256_hmac(u8 *out, const u8 *in, const u8 *key, const size_t inlen,
|
/Linux-v5.10/fs/erofs/ |
D | decompressor.c | 96 unsigned int inlen = rq->inputsize - pageofs_in; in generic_copy_inplace_data() local 97 unsigned int count = min_t(uint, inlen, PAGE_SIZE - pageofs_in); in generic_copy_inplace_data() 99 while (tmpp < tmp + inlen) { in generic_copy_inplace_data() 115 unsigned int inputmargin, inlen; in z_erofs_lz4_decompress() local 143 inlen = rq->inputsize - inputmargin; in z_erofs_lz4_decompress() 153 LZ4_DECOMPRESS_INPLACE_MARGIN(inlen)) { in z_erofs_lz4_decompress() 163 inlen, rq->outputsize, in z_erofs_lz4_decompress() 167 inlen, rq->outputsize); in z_erofs_lz4_decompress() 171 ret, inlen, inputmargin, rq->outputsize); in z_erofs_lz4_decompress() 175 16, 1, src + inputmargin, inlen, true); in z_erofs_lz4_decompress()
|
/Linux-v5.10/drivers/net/ethernet/sfc/ |
D | mcdi.c | 40 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-v5.10/drivers/infiniband/hw/mlx5/ |
D | srq_cmd.c | 103 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 …]
|
D | qp.h | 15 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,
|
D | qpc.c | 215 u32 *in, int inlen, u32 *out, int outlen) in mlx5_core_create_dct() argument 223 err = mlx5_cmd_exec(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() 468 err = mlx5_cmd_exec(dev->mdev, mbox.in, mbox.inlen, mbox.out, in mlx5_core_qp_modify() 555 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen, in mlx5_core_create_rq_tracked() argument [all …]
|
D | mr.c | 90 u32 *in, int inlen) in mlx5_ib_create_mkey() argument 93 return mlx5_core_create_mkey(dev->mdev, mkey, in, inlen); in mlx5_ib_create_mkey() 100 u32 *in, int inlen, u32 *out, int outlen, in mlx5_ib_create_mkey_cb() argument 105 return mlx5_cmd_exec_cb(async_ctx, in, inlen, out, outlen, in mlx5_ib_create_mkey_cb() 193 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in add_keys() local 200 in = kzalloc(inlen, GFP_KERNEL); in add_keys() 221 &ent->dev->async_ctx, in, inlen, in add_keys() 241 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in create_cache_mr() local 247 in = kzalloc(inlen, GFP_KERNEL); in create_cache_mr() 258 err = mlx5_core_create_mkey(ent->dev->mdev, &mr->mmkey, in, inlen); in create_cache_mr() [all …]
|
D | qp.c | 893 struct mlx5_ib_create_qp_resp *resp, int *inlen, in _create_user_qp() argument 962 *inlen = MLX5_ST_SZ_BYTES(create_qp_in) + in _create_user_qp() 964 *in = kvzalloc(*inlen, GFP_KERNEL); in _create_user_qp() 1042 struct mlx5_ib_qp *qp, u32 **in, int *inlen, in _create_kernel_qp() argument 1095 *inlen = MLX5_ST_SZ_BYTES(create_qp_in) + in _create_kernel_qp() 1097 *in = kvzalloc(*inlen, GFP_KERNEL); in _create_kernel_qp() 1210 int inlen; in create_raw_packet_qp_sq() local 1223 inlen = MLX5_ST_SZ_BYTES(create_sq_in) + sizeof(u64) * ncont; in create_raw_packet_qp_sq() 1224 in = kvzalloc(inlen, GFP_KERNEL); in create_raw_packet_qp_sq() 1257 err = mlx5_core_create_sq_tracked(dev, in, inlen, &sq->base.mqp); in create_raw_packet_qp_sq() [all …]
|
/Linux-v5.10/arch/x86/include/asm/ |
D | intel_scu_ipc.h | 57 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()
|
D | intel_scu_ipc_legacy.h | 60 static inline int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen, in intel_scu_ipc_command() argument 64 size_t inbytes = inlen * sizeof(u32); in intel_scu_ipc_command() 68 inlen, out, outbytes); in intel_scu_ipc_command()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_common.c | 76 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()
|
D | transobj.c | 66 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-v5.10/tools/testing/selftests/powerpc/nx-gzip/ |
D | gzfht_test.c | 239 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()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_cmd.c | 178 unsigned int inlen; in mlx5dr_cmd_set_fte_modify_and_vport() local 183 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + in mlx5dr_cmd_set_fte_modify_and_vport() 186 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_set_fte_modify_and_vport() 207 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_set_fte_modify_and_vport() 234 u32 inlen; in mlx5dr_cmd_alloc_modify_header() local 238 inlen = MLX5_ST_SZ_BYTES(alloc_modify_header_context_in) + in mlx5dr_cmd_alloc_modify_header() 240 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_alloc_modify_header() 251 err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); in mlx5dr_cmd_alloc_modify_header() 281 int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in); in mlx5dr_cmd_create_empty_flow_group() local 285 in = kzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_create_empty_flow_group() [all …]
|
/Linux-v5.10/include/linux/mlx5/ |
D | transobj.h | 40 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-v5.10/drivers/media/pci/ngene/ |
D | ngene-i2c.c | 32 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-v5.10/drivers/crypto/nx/ |
D | nx-842-pseries.c | 277 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 …]
|
/Linux-v5.10/drivers/vdpa/mlx5/core/ |
D | resources.c | 53 int inlen; in create_uctx() local 61 inlen = MLX5_ST_SZ_BYTES(create_uctx_in); in create_uctx() 62 in = kzalloc(inlen, GFP_KERNEL); in create_uctx() 69 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in create_uctx() 112 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn) in mlx5_vdpa_create_rqt() argument 118 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in mlx5_vdpa_create_rqt() 185 int inlen) in mlx5_vdpa_create_mkey() argument 195 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, lout, sizeof(lout)); in mlx5_vdpa_create_mkey()
|
/Linux-v5.10/drivers/media/usb/dvb-usb/ |
D | vp7045.c | 25 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()
|