Home
last modified time | relevance | path

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

123456

/linux/include/crypto/
H A 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 …]
H A 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()
H A 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/drivers/net/ethernet/sfc/
H A 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 …]
H A 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()
H A 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 …]
H A 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/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
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/
H A Dgzfht_test.c194 size_t inlen, outlen, dsttotlen, srctotlen; in compress_file() local
217 outlen = 2 * inlen + 1024; in compress_file()
219 assert(NULL != (outbuf = (char *)malloc(outlen))); in compress_file()
220 nxu_touch_pages(outbuf, outlen, pagelen, 1); in compress_file()
237 outlen = outlen - num_hdr_bytes; in compress_file()
254 dstlen = NX_MIN(2*srclen, outlen); in compress_file()
319 outlen = outlen - tpbc; in compress_file()
325 outlen = outlen - flushlen; in compress_file()
336 outlen = outlen - tpbc; in compress_file()
349 outlen = outlen - 8; in compress_file()
/linux/drivers/net/ethernet/sfc/siena/
H A 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 …]
H A 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()
H A 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/fs/jfs/
H A 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/drivers/cdx/controller/
H A Dmcdi_functions.c14 size_t outlen; in cdx_mcdi_get_num_buses() local
18 outbuf, sizeof(outbuf), &outlen); in cdx_mcdi_get_num_buses()
22 if (outlen != MC_CMD_CDX_BUS_ENUM_BUSES_OUT_LEN) in cdx_mcdi_get_num_buses()
32 size_t outlen; in cdx_mcdi_get_num_devs() local
38 outbuf, sizeof(outbuf), &outlen); in cdx_mcdi_get_num_devs()
42 if (outlen != MC_CMD_CDX_BUS_ENUM_DEVICES_OUT_LEN) in cdx_mcdi_get_num_devs()
55 size_t outlen; in cdx_mcdi_get_dev_config() local
63 outbuf, sizeof(outbuf), &outlen); in cdx_mcdi_get_dev_config()
67 if (outlen != MC_CMD_CDX_BUS_GET_DEVICE_CONFIG_OUT_V2_LEN) in cdx_mcdi_get_dev_config()
199 size_t outlen; in cdx_mcdi_ctrl_flag_get() local
[all …]
H A Dmcdi.c329 cmd->outbuf, cmd->outlen); in cdx_mcdi_process_cleanup_list()
395 size_t outlen; member
413 min(outlen_actual, wait_data->outlen)); in cdx_mcdi_rpc_completer()
424 struct cdx_dword *outbuf, size_t outlen, in cdx_mcdi_rpc_sync() argument
449 wait_data->outlen = outlen; in cdx_mcdi_rpc_sync()
521 cmd->outlen = 0; in cdx_mcdi_rpc_async_internal()
694 cmd->outlen = resp_data_len; in cdx_mcdi_complete_cmd()
754 struct cdx_dword *outbuf, size_t outlen, in cdx_mcdi_rpc() argument
757 return cdx_mcdi_rpc_sync(cdx, cmd, inbuf, inlen, outbuf, outlen, in cdx_mcdi_rpc()
/linux/fs/smb/server/
H A Dunicode.c110 int charlen, outlen = 0; in smb_utf16_bytes() local
128 outlen += charlen; in smb_utf16_bytes()
130 outlen++; in smb_utf16_bytes()
133 return outlen; in smb_utf16_bytes()
164 int outlen = 0; in smb_from_utf16() local
193 if (outlen >= safelen) { in smb_from_utf16()
195 if ((outlen + charlen) > (tolen - nullsize)) in smb_from_utf16()
200 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, mapchar); in smb_from_utf16()
201 outlen += charlen; in smb_from_utf16()
219 to[outlen++] = 0; in smb_from_utf16()
[all …]
/linux/lib/crypto/
H A Dblake2s-selftest.c565 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_digest_test() local
568 blake2s(hash, buf, key + BLAKE2S_KEY_SIZE - keylen, outlen, i, in blake2s_digest_test()
570 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test()
576 blake2s_init(&state, outlen); in blake2s_digest_test()
578 blake2s_init_key(&state, outlen, in blake2s_digest_test()
585 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test()
/linux/fs/smb/client/
H A Dcifs_unicode.c181 int outlen = 0; in cifs_from_utf16() local
212 if (outlen >= safelen) { in cifs_from_utf16()
214 if ((outlen + charlen) > (tolen - nullsize)) in cifs_from_utf16()
219 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
220 outlen += charlen; in cifs_from_utf16()
236 to[outlen++] = 0; in cifs_from_utf16()
238 return outlen; in cifs_from_utf16()
308 int charlen, outlen = 0; in cifs_utf16_bytes() local
327 outlen += charlen; in cifs_utf16_bytes()
330 return outlen; in cifs_utf16_bytes()
/linux/security/keys/
H A Ddh.c129 int outlen; in __keyctl_dh_compute() local
220 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute()
228 ret = outlen; in __keyctl_dh_compute()
230 } else if (outlen > buflen) { in __keyctl_dh_compute()
236 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute()
243 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute()
252 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute()
/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
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/crypto/
H A 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()
247 outlen); in _aead_recvmsg()
293 areq->outlen = outlen; in _aead_recvmsg()
322 return err ? err : outlen; in _aead_recvmsg()
/linux/drivers/infiniband/hw/mlx5/
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()
338 int outlen; member
341 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument
344 mbox->outlen = outlen; in mbox_alloc()
346 mbox->out = kzalloc(mbox->outlen, GFP_KERNEL); in mbox_alloc()
493 mbox.outlen); in mlx5_core_qp_modify()
529 u32 *out, int outlen, bool qpc_ext) in mlx5_core_qp_query() argument
537 return mlx5_cmd_exec(dev->mdev, in, sizeof(in), out, outlen); in mlx5_core_qp_query()
541 u32 *out, int outlen) in mlx5_core_dct_query() argument
[all …]
H A Dqp.h25 u32 *in, int inlen, u32 *out, int outlen);
33 u32 *out, int outlen, bool qpc_ext);
35 u32 *out, int outlen);
/linux/include/linux/platform_data/x86/
H A Dintel_scu_ipc.h62 size_t size, void *out, size_t outlen);
66 void *out, size_t outlen) in intel_scu_ipc_dev_command() argument
69 inlen, out, outlen); in intel_scu_ipc_dev_command()
/linux/fs/fat/
H A Dnamei_vfat.c512 int *longlen, int *outlen, int escape, int utf8, in xlate_to_uni() argument
521 *outlen = utf8s_to_utf16s(name, len, UTF16_HOST_ENDIAN, in xlate_to_uni()
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()
528 op = &outname[*outlen * sizeof(wchar_t)]; in xlate_to_uni()
530 for (i = 0, ip = name, op = outname, *outlen = 0; 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()
[all …]

123456