| /linux/include/crypto/ |
| A D | blake2s.h | 32 unsigned int outlen; member 49 state->h[0] = BLAKE2S_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2s_init() 62 state->outlen = outlen; in __blake2s_init() 71 const size_t outlen) in blake2s_init() argument 73 __blake2s_init(state, outlen, NULL, 0); in blake2s_init() 77 const size_t outlen, const void *key, in blake2s_init_key() argument 80 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE || in blake2s_init_key() 83 __blake2s_init(state, outlen, key, keylen); in blake2s_init_key() 90 const size_t outlen, const size_t inlen, in blake2s() argument 96 outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE || in blake2s() [all …]
|
| A D | blake2b.h | 29 unsigned int outlen; member 43 static inline void __blake2b_init(struct blake2b_state *state, size_t outlen, in __blake2b_init() argument 46 state->h[0] = BLAKE2B_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2b_init() 59 state->outlen = outlen; in __blake2b_init()
|
| A D | drbg.h | 204 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl() argument 208 outbuf, outlen); in crypto_drbg_get_bytes_addtl() 229 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl_test() argument 236 outbuf, outlen); in crypto_drbg_get_bytes_addtl_test()
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | mcdi_functions.c | 21 size_t outlen; in efx_mcdi_free_vis() local 40 size_t outlen; in efx_mcdi_alloc_vis() local 79 size_t inlen, outlen; in efx_mcdi_ev_init() local 145 size_t outlen; in efx_mcdi_ev_fini() local 160 outbuf, outlen, rc); in efx_mcdi_ev_fini() 251 size_t outlen; in efx_mcdi_tx_fini() local 267 outbuf, outlen, rc); in efx_mcdi_tx_fini() 336 size_t outlen; in efx_mcdi_rx_fini() local 352 outbuf, outlen, rc); in efx_mcdi_rx_fini() 419 size_t outlen; in efx_get_pf_index() local [all …]
|
| A D | mcdi.c | 41 size_t outlen; member 998 async->outlen = outlen; in _efx_mcdi_rpc_async() 1459 size_t outlen; in efx_mcdi_drv_attach() local 1480 &outlen); in efx_mcdi_drv_attach() 1601 size_t outlen; in efx_mcdi_nvram_types() local 1630 size_t outlen; in efx_new_mcdi_nvram_types() local 1659 size_t outlen; in efx_mcdi_nvram_info() local 1779 size_t outlen; in efx_mcdi_read_assertion() local 1956 size_t outlen; in efx_mcdi_wol_filter_set() local 1996 size_t outlen; in efx_mcdi_wol_filter_get_magic() local [all …]
|
| A D | mcdi_port.c | 26 size_t outlen; in efx_mcdi_mdio_read() local 35 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_read() 52 size_t outlen; in efx_mcdi_mdio_write() local 62 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_write()
|
| A D | ef10_sriov.c | 77 size_t outlen; in efx_ef10_vport_alloc() local 93 outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_alloc() 96 if (outlen < MC_CMD_VPORT_ALLOC_OUT_LEN) in efx_ef10_vport_alloc() 471 size_t outlen; in efx_ef10_vport_del_vf_mac() local 692 size_t outlen; in efx_ef10_sriov_set_privilege_mask() local 704 pm_outbuf, sizeof(pm_outbuf), &outlen); in efx_ef10_sriov_set_privilege_mask() 708 if (outlen != MC_CMD_PRIVILEGE_MASK_OUT_LEN) in efx_ef10_sriov_set_privilege_mask() 726 pm_outbuf, sizeof(pm_outbuf), &outlen); in efx_ef10_sriov_set_privilege_mask() 730 if (outlen != MC_CMD_PRIVILEGE_MASK_OUT_LEN) in efx_ef10_sriov_set_privilege_mask() 780 size_t outlen; in efx_ef10_sriov_get_vf_config() local [all …]
|
| A D | mcdi_port_common.c | 18 size_t outlen; in efx_mcdi_get_phy_cfg() local 25 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_phy_cfg() 29 if (outlen < MC_CMD_GET_PHY_CFG_OUT_LEN) { in efx_mcdi_get_phy_cfg() 91 size_t outlen; in efx_mcdi_loopback_modes() local 95 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_loopback_modes() 621 size_t outlen; in efx_mcdi_phy_get_fecparam() local 626 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_phy_get_fecparam() 714 size_t outlen; in efx_mcdi_phy_test_alive() local 760 size_t outlen; in efx_mcdi_bist() local 909 size_t outlen; in efx_mcdi_phy_get_module_eeprom_page() local [all …]
|
| /linux/fs/ksmbd/ |
| A D | unicode.c | 33 int charlen, outlen = 0; in smb_utf16_bytes() local 45 outlen += charlen; in smb_utf16_bytes() 47 outlen++; in smb_utf16_bytes() 50 return outlen; in smb_utf16_bytes() 162 int outlen = 0; in smb_from_utf16() local 185 if (outlen >= safelen) { in smb_from_utf16() 187 if ((outlen + charlen) > (tolen - nullsize)) in smb_from_utf16() 192 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, mapchar); in smb_from_utf16() 193 outlen += charlen; in smb_from_utf16() 198 to[outlen++] = 0; in smb_from_utf16() [all …]
|
| /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 37 com.cmd.hdr.Length = outlen + 3; in ngene_command_i2c_read() 39 memcpy(com.cmd.I2CRead.Data, out, outlen); in ngene_command_i2c_read() 40 com.cmd.I2CRead.Data[outlen] = inlen; in ngene_command_i2c_read() 41 com.cmd.I2CRead.Data[outlen + 1] = 0; in ngene_command_i2c_read() 42 com.in_len = outlen + 3; in ngene_command_i2c_read() 59 u8 *out, u8 outlen) in ngene_command_i2c_write() argument 65 com.cmd.hdr.Length = outlen + 1; in ngene_command_i2c_write() 67 memcpy(com.cmd.I2CRead.Data, out, outlen); in ngene_command_i2c_write() 68 com.in_len = outlen + 1; in ngene_command_i2c_write()
|
| /linux/tools/testing/selftests/powerpc/nx-gzip/ |
| A D | gzfht_test.c | 242 size_t inlen, outlen, dsttotlen, srctotlen; in compress_file() local 265 outlen = 2 * inlen + 1024; in compress_file() 267 assert(NULL != (outbuf = (char *)malloc(outlen))); in compress_file() 268 nxu_touch_pages(outbuf, outlen, pagelen, 1); in compress_file() 285 outlen = outlen - num_hdr_bytes; in compress_file() 302 dstlen = NX_MIN(2*srclen, outlen); in compress_file() 367 outlen = outlen - tpbc; in compress_file() 373 outlen = outlen - flushlen; in compress_file() 384 outlen = outlen - tpbc; in compress_file() 397 outlen = outlen - 8; in compress_file()
|
| /linux/fs/jfs/ |
| A D | jfs_unicode.c | 23 int outlen = 0; in jfs_strfromUCS_le() local 32 &to[outlen], in jfs_strfromUCS_le() 35 outlen += charlen; in jfs_strfromUCS_le() 37 to[outlen++] = '?'; in jfs_strfromUCS_le() 57 outlen = i; in jfs_strfromUCS_le() 59 to[outlen] = 0; in jfs_strfromUCS_le() 60 return outlen; in jfs_strfromUCS_le()
|
| /linux/lib/crypto/ |
| A D | blake2s-selftest.c | 583 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_selftest() local 586 blake2s(hash, buf, key + BLAKE2S_KEY_SIZE - keylen, outlen, i, in blake2s_selftest() 588 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest() 594 blake2s_init(&state, outlen); in blake2s_selftest() 596 blake2s_init_key(&state, outlen, in blake2s_selftest() 603 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest()
|
| /linux/fs/cifs/ |
| A D | cifs_unicode.c | 182 int outlen = 0; in cifs_from_utf16() local 213 if (outlen >= safelen) { in cifs_from_utf16() 215 if ((outlen + charlen) > (tolen - nullsize)) in cifs_from_utf16() 220 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16() 221 outlen += charlen; in cifs_from_utf16() 237 to[outlen++] = 0; in cifs_from_utf16() 239 return outlen; in cifs_from_utf16() 309 int charlen, outlen = 0; in cifs_utf16_bytes() local 328 outlen += charlen; in cifs_utf16_bytes() 331 return outlen; in cifs_utf16_bytes()
|
| /linux/drivers/crypto/nx/ |
| A D | nx-common-pseries.c | 303 unsigned char *out, unsigned int *outlen, in nx842_pseries_compress() argument 325 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_compress() 363 op.outlen = *outlen; in nx842_pseries_compress() 366 nx842_build_scatterlist(outbuf, *outlen, &slout); in nx842_pseries_compress() 368 op.outlen = -nx842_get_scatterlist_size(&slout); in nx842_pseries_compress() 373 (unsigned long)op.out, (long)op.outlen); in nx842_pseries_compress() 433 unsigned char *out, unsigned int *outlen, in nx842_pseries_decompress() argument 456 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_decompress() 495 op.outlen = *outlen; in nx842_pseries_decompress() 500 op.outlen = -nx842_get_scatterlist_size(&slout); in nx842_pseries_decompress() [all …]
|
| A D | nx-aes-xcbc.c | 94 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty() 122 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty() 210 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_update() 263 if (!nx_ctx->op.inlen || !nx_ctx->op.outlen) { in nx_xcbc_update() 342 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_final() 344 if (!nx_ctx->op.outlen) { in nx_xcbc_final()
|
| /linux/security/keys/ |
| A D | dh.c | 234 int outlen; in __keyctl_dh_compute() local 325 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute() 333 ret = outlen; in __keyctl_dh_compute() 335 } else if (outlen > buflen) { in __keyctl_dh_compute() 341 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute() 348 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute() 357 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute() 388 outlen - req->dst_len); in __keyctl_dh_compute()
|
| /linux/crypto/ |
| A D | algif_aead.c | 105 size_t outlen = 0; /* [out] RX bufs produced by kernel */ in _aead_recvmsg() local 142 outlen = used + as; in _aead_recvmsg() 144 outlen = used - as; in _aead_recvmsg() 159 err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); in _aead_recvmsg() 170 if (usedpages < outlen) { in _aead_recvmsg() 171 size_t less = outlen - usedpages; in _aead_recvmsg() 178 outlen -= less; in _aead_recvmsg() 245 areq->first_rsgl.sgl.sg, outlen); in _aead_recvmsg() 291 areq->outlen = outlen; in _aead_recvmsg() 320 return err ? err : outlen; in _aead_recvmsg()
|
| A D | drbg.c | 315 u8 *outbuf, u32 outlen); 726 unsigned int outlen = 0; in drbg_hmac_generate() local 735 memcpy(buf + len, drbg->V, outlen); in drbg_hmac_generate() 736 len += outlen; in drbg_hmac_generate() 840 while (len < outlen) { in drbg_hash_df() 952 unsigned int outlen = 0; in drbg_hash_hashgen() local 962 memcpy(buf + len, dst, outlen); in drbg_hash_hashgen() 963 len += outlen; in drbg_hash_hashgen() 1837 u8 *outbuf, u32 outlen) in drbg_kcapi_sym_ctr() argument 1853 while (outlen) { in drbg_kcapi_sym_ctr() [all …]
|
| /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 32 if (outlen > 19) in vp7045_usb_op() 33 outlen = 19; in vp7045_usb_op() 42 if (out != NULL && outlen > 0) in vp7045_usb_op() 43 memcpy(&buf[1], out, outlen); in vp7045_usb_op() 46 debug_dump(buf, outlen+1, deb_xfer); in vp7045_usb_op()
|
| /linux/fs/erofs/ |
| A D | decompressor_lzma.c | 159 unsigned int inputmargin, inlen, outlen, pageofs; in z_erofs_lzma_decompress() local 192 outlen = rq->outputsize; in z_erofs_lzma_decompress() 193 xz_dec_microlzma_reset(strm->state, inlen, outlen, in z_erofs_lzma_decompress() 213 if (++no >= nrpages_out || !outlen) { in z_erofs_lzma_decompress() 219 strm->buf.out_size = min_t(u32, outlen, in z_erofs_lzma_decompress() 221 outlen -= strm->buf.out_size; in z_erofs_lzma_decompress() 271 if (xz_err == XZ_STREAM_END && !outlen) in z_erofs_lzma_decompress()
|
| /linux/fs/fat/ |
| A D | namei_vfat.c | 523 if (*outlen < 0) in xlate_to_uni() 524 return *outlen; in xlate_to_uni() 525 else if (*outlen > FAT_LFN_LEN) in xlate_to_uni() 531 i < len && *outlen < FAT_LFN_LEN; in xlate_to_uni() 532 *outlen += 1) { in xlate_to_uni() 561 *longlen = *outlen; in xlate_to_uni() 562 if (*outlen % 13) { in xlate_to_uni() 565 *outlen += 1; in xlate_to_uni() 566 if (*outlen % 13) { in xlate_to_uni() 567 fill = 13 - (*outlen % 13); in xlate_to_uni() [all …]
|
| /linux/drivers/infiniband/hw/mlx5/ |
| 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() 320 int outlen; member 323 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument 326 mbox->outlen = outlen; in mbox_alloc() 328 mbox->out = kzalloc(mbox->outlen, GFP_KERNEL); in mbox_alloc() 475 mbox.outlen); in mlx5_core_qp_modify() 507 u32 *out, int outlen) in mlx5_core_qp_query() argument 513 return mlx5_cmd_exec(dev->mdev, in, sizeof(in), out, outlen); in mlx5_core_qp_query() 517 u32 *out, int outlen) in mlx5_core_dct_query() argument [all …]
|
| A D | qp.h | 15 u32 *in, int inlen, u32 *out, int outlen); 23 u32 *out, int outlen); 25 u32 *out, int outlen);
|
| /linux/arch/x86/include/asm/ |
| A D | intel_scu_ipc.h | 58 size_t size, void *out, size_t outlen); 62 void *out, size_t outlen) in intel_scu_ipc_dev_command() argument 65 inlen, out, outlen); in intel_scu_ipc_dev_command()
|