/linux/include/crypto/internal/ |
A D | blake2b.h | 26 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 …]
|
A D | blake2s.h | 33 const u8 *in, size_t inlen, in __blake2s_update() argument 38 if (unlikely(!inlen)) in __blake2s_update() 40 if (inlen > fill) { in __blake2s_update() 45 inlen -= fill; in __blake2s_update() 47 if (inlen > BLAKE2S_BLOCK_SIZE) { in __blake2s_update() 48 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in __blake2s_update() 52 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in __blake2s_update() 54 memcpy(state->buf + state->buflen, in, inlen); in __blake2s_update() 55 state->buflen += inlen; in __blake2s_update() 101 const u8 *in, unsigned int inlen, in crypto_blake2s_update() argument [all …]
|
/linux/fs/nls/ |
A 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() 194 while (inlen > 0 && maxout > 0) { in utf16s_to_utf8s() 199 inlen--; in utf16s_to_utf8s() 206 if (inlen <= 0) in utf16s_to_utf8s() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | rqt.c | 20 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/drivers/net/ethernet/sfc/ |
A D | mcdi.c | 40 size_t inlen; member 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() 209 WARN_ON_ONCE(inlen % 4); in efx_mcdi_send_request() 481 async->inlen); in efx_mcdi_release() 624 if (inlen > MCDI_CTL_SDU_LEN_MAX_V2 || in efx_mcdi_check_supported() 626 inlen > MCDI_CTL_SDU_LEN_MAX_V1)) in efx_mcdi_check_supported() 652 size_t inlen, in _efx_mcdi_rpc_finish() argument 669 cmd, (int)inlen, mcdi->mode); in _efx_mcdi_rpc_finish() 997 async->inlen = inlen; in _efx_mcdi_rpc_async() [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | srq_cmd.c | 122 int inlen; in create_srq_cmd() local 133 create_in = kvzalloc(inlen, GFP_KERNEL); in create_srq_cmd() 225 int inlen; in create_xrc_srq_cmd() local 236 create_in = kvzalloc(inlen, GFP_KERNEL); in create_xrc_srq_cmd() 338 int inlen; in create_rmp_cmd() local 405 int inlen; in arm_rmp_cmd() local 411 in = kvzalloc(inlen, GFP_KERNEL); in arm_rmp_cmd() 445 int inlen; in query_rmp_cmd() local 449 inlen = MLX5_ST_SZ_BYTES(query_rmp_in); in query_rmp_cmd() 452 rmp_in = kvzalloc(inlen, GFP_KERNEL); in query_rmp_cmd() [all …]
|
A 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,
|
A 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() 474 err = mlx5_cmd_exec(dev->mdev, mbox.in, mbox.inlen, mbox.out, in mlx5_core_qp_modify() 567 err = mlx5_core_create_rq(dev->mdev, in, inlen, &rqn); in mlx5_core_create_rq_tracked() [all …]
|
A D | qp.c | 1262 int inlen; in create_raw_packet_qp_sq() local 1441 int inlen; in create_raw_packet_qp_tir() local 1638 int inlen; in create_rss_raw_qp_tir() local 2959 size_t inlen = udata->inlen; in process_udata_size() local 2972 params->inlen = (inlen < min_inlen) ? 0 : min(inlen, ucmd); in process_udata_size() 2988 params->inlen = min(ucmd, inlen); in process_udata_size() 3366 int inlen; in modify_raw_packet_eth_prio() local 3393 int inlen; in modify_raw_packet_tx_affinity() local 3696 int inlen; in modify_raw_packet_qp_rq() local 3743 int inlen; in modify_raw_packet_qp_sq() local [all …]
|
A D | mr.c | 209 in = kzalloc(inlen, GFP_KERNEL); in add_keys() 256 in = kzalloc(inlen, GFP_KERNEL); in create_cache_mr() 802 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_get_dma_mr() 1276 int inlen; in reg_create() local 1293 inlen += sizeof(*pas) * in reg_create() 1366 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_get_dm_mr() 2068 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_alloc_pi_mr() 2078 access_mode, in, inlen); in mlx5_ib_alloc_pi_mr() 2099 inlen); in mlx5_alloc_mem_reg_descs() 2111 u32 *in, int inlen) in mlx5_alloc_integrity_descs() argument [all …]
|
/linux/include/crypto/ |
A D | blake2s.h | 86 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() 104 void blake2s256_hmac(u8 *out, const u8 *in, const u8 *key, const size_t inlen,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_common.c | 52 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()
|
A 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/tools/testing/selftests/powerpc/nx-gzip/ |
A D | gzfht_test.c | 242 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/fs/erofs/ |
A D | decompressor_lzma.c | 159 unsigned int inputmargin, inlen, outlen, pageofs; in z_erofs_lzma_decompress() local 191 inlen = rq->inputsize; in z_erofs_lzma_decompress() 193 xz_dec_microlzma_reset(strm->state, inlen, outlen, in z_erofs_lzma_decompress() 198 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE - inputmargin); in z_erofs_lzma_decompress() 199 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress() 228 if (++ni >= nrpages_in || !inlen) { in z_erofs_lzma_decompress() 234 strm->buf.in_size = min_t(u32, inlen, PAGE_SIZE); in z_erofs_lzma_decompress() 235 inlen -= strm->buf.in_size; in z_erofs_lzma_decompress()
|
/linux/drivers/vdpa/mlx5/core/ |
A D | resources.c | 54 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/arch/x86/include/asm/ |
A 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()
|
/linux/lib/crypto/ |
A D | blake2s.c | 25 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen) in blake2s_update() argument 27 __blake2s_update(state, in, inlen, blake2s_compress); in blake2s_update() 39 void blake2s256_hmac(u8 *out, const u8 *in, const u8 *key, const size_t inlen, in blake2s256_hmac() argument 59 blake2s_update(&state, in, inlen); in blake2s256_hmac()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_cmd.c | 281 unsigned int inlen; in mlx5dr_cmd_set_fte_modify_and_vport() local 286 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + in mlx5dr_cmd_set_fte_modify_and_vport() 289 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_set_fte_modify_and_vport() 337 u32 inlen; in mlx5dr_cmd_alloc_modify_header() local 343 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_alloc_modify_header() 384 int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in); in mlx5dr_cmd_create_empty_flow_group() local 388 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_create_empty_flow_group() 502 size_t inlen, cmd_data_sz, cmd_total_sz; in mlx5dr_cmd_create_reformat_ctx() local 512 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_create_reformat_ctx() 634 unsigned int inlen; in mlx5dr_cmd_set_fte() local [all …]
|
/linux/include/linux/mlx5/ |
A 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/drivers/media/pci/ngene/ |
A 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/drivers/crypto/nx/ |
A D | nx-common-pseries.c | 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() 452 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_decompress() 483 op.inlen = inlen; in nx842_pseries_decompress() 486 nx842_build_scatterlist(inbuf, inlen, &slin); in nx842_pseries_decompress() 488 op.inlen = -nx842_get_scatterlist_size(&slin); in nx842_pseries_decompress() [all …]
|
A D | nx-common-powernv.c | 72 unsigned int inlen, unsigned char *out, 391 static int nx842_config_crb(const unsigned char *in, unsigned int inlen, in nx842_config_crb() argument 408 (unsigned char *)in, inlen, true); in nx842_config_crb() 456 static int nx842_exec_icswx(const unsigned char *in, unsigned int inlen, in nx842_exec_icswx() argument 477 ret = nx842_config_crb(in, inlen, out, outlen, wmem); in nx842_exec_icswx() 559 static int nx842_exec_vas(const unsigned char *in, unsigned int inlen, in nx842_exec_vas() argument 578 ret = nx842_config_crb(in, inlen, out, outlen, wmem); in nx842_exec_vas() 640 static int nx842_powernv_compress(const unsigned char *in, unsigned int inlen, in nx842_powernv_compress() argument 644 return nx842_powernv_exec(in, inlen, out, outlenp, in nx842_powernv_compress() 668 static int nx842_powernv_decompress(const unsigned char *in, unsigned int inlen, in nx842_powernv_decompress() argument [all …]
|
/linux/crypto/ |
A D | sm2.c | 221 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 crypto_sm3_update(desc, zero, pbytes - inlen); in sm2_z_digest_update() 230 crypto_sm3_update(desc, in, inlen); in sm2_z_digest_update() 231 } else if (inlen > pbytes) { in sm2_z_digest_update() 233 crypto_sm3_update(desc, in + inlen - pbytes, pbytes); in sm2_z_digest_update() 235 crypto_sm3_update(desc, in, inlen); in sm2_z_digest_update()
|
/linux/drivers/media/usb/dvb-usb/ |
A 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()
|