Home
last modified time | relevance | path

Searched refs:outlen (Results 1 – 25 of 146) sorted by relevance

123456

/linux-6.1.9/include/crypto/
Dblake2s.h32 unsigned int outlen; member
46 static inline void __blake2s_init(struct blake2s_state *state, size_t outlen, in __blake2s_init() argument
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
[all …]
Dblake2b.h28 unsigned int outlen; member
42 static inline void __blake2b_init(struct blake2b_state *state, size_t outlen, in __blake2b_init() argument
45 state->h[0] = BLAKE2B_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2b_init()
58 state->outlen = outlen; in __blake2b_init()
Ddrbg.h209 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl() argument
213 outbuf, outlen); in crypto_drbg_get_bytes_addtl()
234 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl_test() argument
241 outbuf, outlen); in crypto_drbg_get_bytes_addtl_test()
/linux-6.1.9/drivers/net/ethernet/sfc/
Dmae.c20 size_t outlen; in efx_mae_allocate_mport() local
33 outbuf, sizeof(outbuf), &outlen); in efx_mae_allocate_mport()
36 if (outlen < sizeof(outbuf)) in efx_mae_allocate_mport()
101 size_t outlen; in efx_mae_lookup_mport() local
106 outbuf, sizeof(outbuf), &outlen); in efx_mae_lookup_mport()
109 if (outlen < sizeof(outbuf)) in efx_mae_lookup_mport()
118 size_t outlen; in efx_mae_get_basic_caps() local
124 sizeof(outbuf), &outlen); in efx_mae_get_basic_caps()
127 if (outlen < sizeof(outbuf)) in efx_mae_get_basic_caps()
140 size_t outlen; in efx_mae_get_rule_fields() local
[all …]
Dmcdi_functions.c21 size_t outlen; in efx_mcdi_free_vis() local
23 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_free_vis()
29 efx_mcdi_display_error(efx, MC_CMD_FREE_VIS, 0, outbuf, outlen, in efx_mcdi_free_vis()
40 size_t outlen; in efx_mcdi_alloc_vis() local
46 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_alloc_vis()
50 if (outlen < MC_CMD_ALLOC_VIS_OUT_LEN) in efx_mcdi_alloc_vis()
79 size_t inlen, outlen; in efx_mcdi_ev_init() local
124 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_ev_init()
126 if (outlen >= MC_CMD_INIT_EVQ_V2_OUT_LEN) in efx_mcdi_ev_init()
145 size_t outlen; in efx_mcdi_ev_fini() local
[all …]
Dmcdi.c41 size_t outlen; member
544 min(async->outlen, data_len)); in efx_mcdi_complete_async()
555 min(async->outlen, data_len)); in efx_mcdi_complete_async()
651 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument
712 min(outlen, data_len)); in _efx_mcdi_rpc_finish()
802 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument
818 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
842 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc()
860 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_evb_retry() argument
867 outbuf, outlen, outlen_actual, true, &raw_rc); in _efx_mcdi_rpc_evb_retry()
[all …]
Dmcdi_port.c26 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()
Def10_sriov.c77 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()
475 size_t outlen; in efx_ef10_vport_del_vf_mac() local
482 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_del_vf_mac()
686 size_t outlen; in efx_ef10_sriov_set_privilege_mask() local
698 pm_outbuf, sizeof(pm_outbuf), &outlen); in efx_ef10_sriov_set_privilege_mask()
702 if (outlen != MC_CMD_PRIVILEGE_MASK_OUT_LEN) in efx_ef10_sriov_set_privilege_mask()
720 pm_outbuf, sizeof(pm_outbuf), &outlen); in efx_ef10_sriov_set_privilege_mask()
724 if (outlen != MC_CMD_PRIVILEGE_MASK_OUT_LEN) in efx_ef10_sriov_set_privilege_mask()
[all …]
Dmcdi_port_common.c18 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()
89 size_t outlen; in efx_mcdi_loopback_modes() local
93 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_loopback_modes()
97 if (outlen < (MC_CMD_GET_LOOPBACK_MODES_OUT_SUGGESTED_OFST + in efx_mcdi_loopback_modes()
619 size_t outlen; in efx_mcdi_phy_get_fecparam() local
624 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_phy_get_fecparam()
627 if (outlen < MC_CMD_GET_LINK_OUT_V2_LEN) in efx_mcdi_phy_get_fecparam()
712 size_t outlen; in efx_mcdi_phy_test_alive() local
[all …]
/linux-6.1.9/fs/ksmbd/
Dunicode.c33 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-6.1.9/drivers/media/pci/ngene/
Dngene-i2c.c32 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-6.1.9/fs/jfs/
Djfs_unicode.c23 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-6.1.9/tools/testing/selftests/powerpc/nx-gzip/
Dgzfht_test.c242 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-6.1.9/drivers/net/ethernet/sfc/siena/
Dmcdi.c41 size_t outlen; member
547 min(async->outlen, data_len)); in efx_mcdi_complete_async()
558 min(async->outlen, data_len)); in efx_mcdi_complete_async()
654 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument
715 min(outlen, data_len)); in _efx_mcdi_rpc_finish()
805 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument
821 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
845 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc()
863 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_evb_retry() argument
870 outbuf, outlen, outlen_actual, true, &raw_rc); in _efx_mcdi_rpc_evb_retry()
[all …]
Dmcdi_port.c26 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()
Dmcdi_port_common.c19 size_t outlen; in efx_mcdi_get_phy_cfg() local
26 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_phy_cfg()
30 if (outlen < MC_CMD_GET_PHY_CFG_OUT_LEN) { in efx_mcdi_get_phy_cfg()
90 size_t outlen; in efx_mcdi_loopback_modes() local
94 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_loopback_modes()
98 if (outlen < (MC_CMD_GET_LOOPBACK_MODES_OUT_SUGGESTED_OFST + in efx_mcdi_loopback_modes()
624 size_t outlen; in efx_siena_mcdi_phy_get_fecparam() local
629 outbuf, sizeof(outbuf), &outlen); in efx_siena_mcdi_phy_get_fecparam()
632 if (outlen < MC_CMD_GET_LINK_OUT_V2_LEN) in efx_siena_mcdi_phy_get_fecparam()
718 size_t outlen; in efx_siena_mcdi_phy_test_alive() local
[all …]
/linux-6.1.9/lib/crypto/
Dblake2s-selftest.c565 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_selftest() local
568 blake2s(hash, buf, key + BLAKE2S_KEY_SIZE - keylen, outlen, i, in blake2s_selftest()
570 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest()
576 blake2s_init(&state, outlen); in blake2s_selftest()
578 blake2s_init_key(&state, outlen, in blake2s_selftest()
585 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest()
/linux-6.1.9/fs/cifs/
Dcifs_unicode.c182 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-6.1.9/security/keys/
Ddh.c145 int outlen; in __keyctl_dh_compute() local
236 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute()
244 ret = outlen; in __keyctl_dh_compute()
246 } else if (outlen > buflen) { in __keyctl_dh_compute()
252 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute()
259 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute()
268 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute()
/linux-6.1.9/drivers/crypto/nx/
Dnx-common-pseries.c303 unsigned char *out, unsigned int *outlen, in nx842_pseries_compress() argument
325 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_compress()
360 ((outbuf + *outlen - 1) & NX842_HW_PAGE_MASK)) { 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()
391 *outlen = be32_to_cpu(csbcpb->csb.processed_byte_count); in nx842_pseries_compress()
392 dev_dbg(dev, "%s: processed_bytes=%d\n", __func__, *outlen); in nx842_pseries_compress()
433 unsigned char *out, unsigned int *outlen, in nx842_pseries_decompress() argument
[all …]
/linux-6.1.9/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
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-6.1.9/crypto/
Dalgif_aead.c105 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()
/linux-6.1.9/fs/erofs/
Ddecompressor_lzma.c160 unsigned int inlen, outlen, pageofs; in z_erofs_lzma_decompress() local
190 outlen = rq->outputsize; in z_erofs_lzma_decompress()
191 xz_dec_microlzma_reset(strm->state, inlen, outlen, in z_erofs_lzma_decompress()
211 if (++no >= nrpages_out || !outlen) { in z_erofs_lzma_decompress()
217 strm->buf.out_size = min_t(u32, outlen, in z_erofs_lzma_decompress()
219 outlen -= strm->buf.out_size; in z_erofs_lzma_decompress()
272 if (xz_err == XZ_STREAM_END && !outlen) in z_erofs_lzma_decompress()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dqp.h15 u32 *in, int inlen, u32 *out, int outlen);
23 u32 *out, int outlen);
25 u32 *out, int outlen);
/linux-6.1.9/arch/x86/include/asm/
Dintel_scu_ipc.h58 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()

123456