Home
last modified time | relevance | path

Searched refs:in_len (Results 1 – 25 of 46) sorted by relevance

12

/linux/lib/
H A Ddecompress_unlzo.c41 STATIC inline long INIT parse_header(u8 *input, long *skip, long in_len) in parse_header() argument
45 u8 *end = input + in_len; in parse_header()
53 if (in_len < HEADER_SIZE_MIN) in parse_header()
97 STATIC int INIT unlzo(u8 *input, long in_len, in unlzo() argument
151 in_len = fill(in_buf, HEADER_SIZE_MAX); in unlzo()
154 if (!parse_header(in_buf, &skip, in_len)) { in unlzo()
159 in_len -= skip; in unlzo()
163 memcpy(in_buf_save, in_buf, in_len); in unlzo()
172 if (fill && in_len < 4) { in unlzo()
173 skip = fill(in_buf + in_len, 4 - in_len); in unlzo()
[all …]
H A Ddecompress_unzstd.c125 static int INIT decompress_single(const u8 *in_buf, long in_len, u8 *out_buf, in decompress_single() argument
144 ret = zstd_find_frame_compressed_size(in_buf, in_len); in decompress_single()
148 in_len = (long)ret; in decompress_single()
150 ret = zstd_decompress_dctx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single()
156 *in_pos = in_len; in decompress_single()
165 static int INIT __unzstd(unsigned char *in_buf, long in_len, in __unzstd() argument
196 return decompress_single(in_buf, in_len, out_buf, out_len, in __unzstd()
212 in_len = 0; in __unzstd()
216 in_len = fill(in_buf, ZSTD_IOBUF_SIZE); in __unzstd()
217 if (in_len < 0) { in __unzstd()
[all …]
H A Ddecompress_unlz4.c31 STATIC inline int INIT unlz4(u8 *input, long in_len, in unlz4() argument
43 long size = in_len; in unlz4()
45 size_t out_len = get_unaligned_le32(input + in_len); in unlz4()
207 STATIC int INIT __decompress(unsigned char *buf, long in_len, in __decompress() argument
215 return unlz4(buf, in_len - 4, fill, flush, output, posp, error); in __decompress()
/linux/include/crypto/
H A Dsha3.h67 void __sha3_update(struct __sha3_ctx *ctx, const u8 *in, size_t in_len);
184 const u8 *in, size_t in_len) in sha3_update() argument
186 __sha3_update(&ctx->ctx, in, in_len); in sha3_update()
244 const u8 *in, size_t in_len) in shake_update() argument
246 __sha3_update(&ctx->ctx, in, in_len); in shake_update()
275 void sha3_224(const u8 *in, size_t in_len, u8 out[SHA3_224_DIGEST_SIZE]);
288 void sha3_256(const u8 *in, size_t in_len, u8 out[SHA3_256_DIGEST_SIZE]);
301 void sha3_384(const u8 *in, size_t in_len, u8 out[SHA3_384_DIGEST_SIZE]);
314 void sha3_512(const u8 *in, size_t in_len, u8 out[SHA3_512_DIGEST_SIZE]);
329 void shake128(const u8 *in, size_t in_len, u8 *out, size_t out_len);
[all …]
/linux/fs/smb/client/
H A Dcifssmb.c230 unsigned int in_len; in small_smb_init() local
243 in_len = header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init()
249 return in_len; in small_smb_init()
283 unsigned int in_len; in __smb_init() local
297 in_len = header_assemble((struct smb_hdr *)*request_buf, smb_command, tcon, in __smb_init()
303 return in_len; in __smb_init()
429 unsigned int in_len; in CIFSSMBNegotiate() local
444 in_len = rc; in CIFSSMBNegotiate()
468 in_len += count; in CIFSSMBNegotiate()
471 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in_len, in CIFSSMBNegotiate()
[all …]
/linux/lib/crypto/s390/
H A Dsha3.h64 static inline bool s390_sha3(int func, const u8 *in, size_t in_len, in s390_sha3() argument
77 cpacf_klmd(func, &state, in, in_len); in s390_sha3()
88 static bool sha3_224_arch(const u8 *in, size_t in_len, in sha3_224_arch() argument
91 return s390_sha3(CPACF_KLMD_SHA3_224, in, in_len, in sha3_224_arch()
96 static bool sha3_256_arch(const u8 *in, size_t in_len, in sha3_256_arch() argument
99 return s390_sha3(CPACF_KLMD_SHA3_256, in, in_len, in sha3_256_arch()
104 static bool sha3_384_arch(const u8 *in, size_t in_len, in sha3_384_arch() argument
107 return s390_sha3(CPACF_KLMD_SHA3_384, in, in_len, in sha3_384_arch()
112 static bool sha3_512_arch(const u8 *in, size_t in_len, in sha3_512_arch() argument
115 return s390_sha3(CPACF_KLMD_SHA3_512, in, in_len, in sha3_512_arch()
/linux/net/ceph/
H A Dcrypto.c265 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument
271 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1)); in ceph_aes_crypt()
272 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
277 memset(buf + in_len, pad_byte, pad_byte); in ceph_aes_crypt()
311 pad_byte = *(char *)(buf + in_len - 1); in ceph_aes_crypt()
313 in_len >= pad_byte) { in ceph_aes_crypt()
314 *pout_len = in_len - pad_byte; in ceph_aes_crypt()
317 __func__, pad_byte, in_len); in ceph_aes_crypt()
329 void *buf, int buf_len, int in_len, int *pout_len) in ceph_krb5_encrypt() argument
344 in_len, false); in ceph_krb5_encrypt()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtx_tso.c66 unsigned int in_len; member
174 unsigned int header_len, in_len; in tso_start() local
180 in_len = skb_headlen(skb) - header_len; in tso_start()
182 st->in_len = in_len; in tso_start()
215 st->in_len = skb_frag_size(frag); in tso_get_fragment()
239 if (st->in_len == 0) in tso_fill_packet_with_fragment()
244 EFX_WARN_ON_ONCE_PARANOID(st->in_len <= 0); in tso_fill_packet_with_fragment()
247 n = min(st->in_len, st->packet_space); in tso_fill_packet_with_fragment()
251 st->in_len -= n; in tso_fill_packet_with_fragment()
263 if (st->in_len == 0) { in tso_fill_packet_with_fragment()
[all …]
/linux/fs/ubifs/
H A Dcrypto.c39 unsigned int in_len, unsigned int *out_len, int block) in ubifs_encrypt() argument
43 unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE); in ubifs_encrypt()
47 dn->compr_size = cpu_to_le16(in_len); in ubifs_encrypt()
50 if (pad_len != in_len) in ubifs_encrypt()
51 memset(p + in_len, 0, pad_len - in_len); in ubifs_encrypt()
/linux/drivers/platform/x86/tuxedo/nb04/
H A Dwmi_util.c19 acpi_size in_len, in __wmi_method_acpi_object_out() argument
22 struct acpi_buffer acpi_buffer_in = { in_len, in }; in __wmi_method_acpi_object_out()
26 print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, in, in_len); in __wmi_method_acpi_object_out()
48 acpi_size in_len, in __wmi_method_buffer_out() argument
57 in, in_len, in __wmi_method_buffer_out()
/linux/security/keys/
H A Dkeyctl_pkey.c138 if (uparams.in_len > info.max_dec_size || in keyctl_pkey_params_get_2()
145 if (uparams.in_len > info.max_enc_size || in keyctl_pkey_params_get_2()
152 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
159 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
169 params->in_len = uparams.in_len; in keyctl_pkey_query()
252 in = memdup_user(_in, params.in_len); in keyctl_pkey_e_d_s()
314 in = memdup_user(_in, params.in_len); in keyctl_pkey_verify()
/linux/fs/btrfs/
H A Dlzo.c296 u32 in_len; in lzo_compress_bio() local
307 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_bio()
308 ASSERT(in_len); in lzo_compress_bio()
310 ret = lzo1x_1_compress(data_in, in_len, workspace->cbuf, &out_len, in lzo_compress_bio()
324 cur_in += in_len; in lzo_compress_bio()
550 size_t in_len; in lzo_decompress() local
562 in_len = get_unaligned_le32(data_in); in lzo_decompress()
563 if (unlikely(in_len != srclen)) { in lzo_decompress()
565 in_len, srclen); in lzo_decompress()
570 in_len = get_unaligned_le32(data_in); in lzo_decompress()
[all …]
/linux/net/tls/
H A Dtls_device_fallback.c44 struct scatter_walk *out, int *in_len, in tls_enc_record() argument
59 len = min_t(int, *in_len, buf_size); in tls_enc_record()
64 *in_len -= len; in tls_enc_record()
65 if (!*in_len) in tls_enc_record()
82 *in_len -= len; in tls_enc_record()
83 if (*in_len < 0) { in tls_enc_record()
84 *in_len += cipher_desc->tag; in tls_enc_record()
92 if (*in_len < 0) in tls_enc_record()
93 len += *in_len; in tls_enc_record()
95 *in_len in tls_enc_record()
[all...]
H A Dtls_strp.c212 size_t in_len) in tls_strp_copyin_frag() argument
226 len = in_len; in tls_strp_copyin_frag()
283 return in_len - len; in tls_strp_copyin_frag()
288 size_t in_len) in tls_strp_copyin_skb() argument
299 chunk = min(chunk, in_len); in tls_strp_copyin_skb()
343 unsigned int offset, size_t in_len) in tls_strp_copyin() argument
359 ret = tls_strp_copyin_skb(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()
361 ret = tls_strp_copyin_frag(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_ieee80211.c176 u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen) in rtw_get_ie_ex() argument
184 if (!in_ie || in_len <= 0) in rtw_get_ie_ex()
189 while (cnt + 2 <= in_len) { in rtw_get_ie_ex()
192 if (cnt + 2 + ie_len > in_len) in rtw_get_ie_ex()
576 int rtw_get_wapi_ie(u8 *in_ie, uint in_len, u8 *wapi_ie, u16 *wapi_len) in rtw_get_wapi_ie() argument
587 if (!in_ie || in_len <= 0) in rtw_get_wapi_ie()
592 while (cnt < in_len) { in rtw_get_wapi_ie()
593 if (cnt + 2 > in_len) in rtw_get_wapi_ie()
595 if (cnt + 2 + in_ie[cnt + 1] > in_len) in rtw_get_wapi_ie()
619 void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len) in rtw_get_sec_ie() argument
[all …]
/linux/scripts/kconfig/
H A Dpreprocess.c507 size_t in_len, out_len; in __expand_string() local
517 in_len = p - in; in __expand_string()
520 out_len += in_len + strlen(expansion); in __expand_string()
522 strncat(out, in, in_len); in __expand_string()
535 in_len = p - in; in __expand_string()
536 out_len += in_len; in __expand_string()
538 strncat(out, in, in_len); in __expand_string()
/linux/drivers/infiniband/core/
H A Ducma.c376 int in_len, int out_len) in ucma_get_event() argument
446 int in_len, int out_len) in ucma_create_id() argument
598 int in_len, int out_len) in ucma_destroy_id() argument
632 int in_len, int out_len) in ucma_bind_ip() argument
657 int in_len, int out_len) in ucma_bind() argument
683 int in_len, int out_len) in ucma_resolve_ip() argument
710 int in_len, int out_len) in ucma_resolve_addr() argument
737 const char __user *inbuf, int in_len, in ucma_resolve_ib_service() argument
760 int in_len, int out_len) in ucma_resolve_route() argument
846 int in_len, int out_len) in ucma_query_route() argument
[all …]
/linux/include/linux/
H A Dpci-tsm.h58 sockptr_t req_in, size_t in_len,
217 sockptr_t req_in, size_t in_len, sockptr_t req_out,
236 sockptr_t req_in, size_t in_len, in pci_tsm_guest_req() argument
/linux/drivers/fwctl/mlx5/
H A Dmain.c307 void *rpc_in, size_t in_len, size_t *out_len) in mlx5ctl_fw_rpc() argument
316 if (in_len < MLX5_ST_SZ_BYTES(mbox_in_hdr) || in mlx5ctl_fw_rpc()
322 in_len, *out_len); in mlx5ctl_fw_rpc()
331 if (*out_len <= in_len) { in mlx5ctl_fw_rpc()
341 ret = mlx5_cmd_do(mcdev->mdev, rpc_in, in_len, rpc_out, *out_len); in mlx5ctl_fw_rpc()
/linux/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dstring-attributes.c45 int in_len = strlen(buf); in validate_str_input() local
47 if ((in_len < wmi_priv.str_data[instance_id].min_length) || in validate_str_input()
48 (in_len > wmi_priv.str_data[instance_id].max_length)) in validate_str_input()
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dstring-attributes.c35 int in_len = strlen(buf); in validate_string_input() local
42 if (in_len < string_data->min_length || in_len > string_data->max_length) in validate_string_input()
/linux/drivers/nvdimm/
H A Dbus.c1033 u32 in_len = 0, out_len = 0; in __nd_ioctl() local
1108 if (in_len < ND_CMD_MAX_ENVELOPE) in __nd_ioctl()
1109 copy = min_t(u32, ND_CMD_MAX_ENVELOPE - in_len, in_size); in __nd_ioctl()
1112 if (copy && copy_from_user(&in_env[in_len], p + in_len, copy)) in __nd_ioctl()
1114 in_len += in_size; in __nd_ioctl()
1121 in_len, out_len, buf_len); in __nd_ioctl()
1144 p + in_len + out_len, copy)) { in __nd_ioctl()
1150 buf_len = (u64) out_len + (u64) in_len; in __nd_ioctl()
/linux/drivers/media/pci/ngene/
H A Dngene-i2c.c42 com.in_len = outlen + 3; in ngene_command_i2c_read()
68 com.in_len = outlen + 1; in ngene_command_i2c_write()
/linux/scripts/crypto/
H A Dgen-hash-testvecs.py221 for in_len in range(max_len + 1):
222 out_len = (in_len * 293) % (max_len + 1)
223 out = hashlib.new(alg, data=in_data[:in_len]).digest(out_len)
/linux/drivers/usb/typec/tipd/
H A Dcore.c403 size_t in_len, const u8 *in_data, in tps6598x_exec_cmd_tmo()
417 if (in_len) { in tps6598x_exec_cmd_tmo()
419 in_data, in_len); in tps6598x_exec_cmd_tmo()
469 size_t in_len, const u8 *in_data, in tps6598x_exec_cmd()
472 return tps6598x_exec_cmd_tmo(tps, cmd, in_len, in_data, in tps6598x_exec_cmd()
1427 tps25750_exec_pbms(struct tps6598x *tps, u8 *in_data, size_t in_len)
1432 ret = tps6598x_exec_cmd_tmo(tps, "PBMs", in_len, in_data, in tps25750_exec_pbms()
1626 size_t in_len = sizeof(in); in tps6598x_apply_patch()
1637 ret = tps6598x_exec_cmd(tps, "PTCs", in_len, &in, in tps6598x_apply_patch()
1648 in_len in tps6598x_apply_patch()
404 tps6598x_exec_cmd_tmo(struct tps6598x * tps,const char * cmd,size_t in_len,const u8 * in_data,size_t out_len,u8 * out_data,u32 cmd_timeout_ms,u32 res_delay_ms) tps6598x_exec_cmd_tmo() argument
470 tps6598x_exec_cmd(struct tps6598x * tps,const char * cmd,size_t in_len,const u8 * in_data,size_t out_len,u8 * out_data) tps6598x_exec_cmd() argument
1429 tps25750_exec_pbms(struct tps6598x * tps,u8 * in_data,size_t in_len) tps25750_exec_pbms() argument
1628 size_t in_len = sizeof(in); tps6598x_apply_patch() local
[all...]

12