Home
last modified time | relevance | path

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

123

/linux-6.12.1/lib/
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 …]
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 …]
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-6.12.1/fs/ubifs/
Dcompress.c103 int in_len, void *out_buf, int *out_len, int *compr_type) in ubifs_compress() argument
112 if (in_len < UBIFS_MIN_COMPR_LEN) in ubifs_compress()
117 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
123 in_len, compr->name, err); in ubifs_compress()
131 if (in_len - *out_len < UBIFS_MIN_COMPRESS_DIFF) in ubifs_compress()
137 memcpy(out_buf, in_buf, in_len); in ubifs_compress()
138 *out_len = in_len; in ubifs_compress()
156 int in_len, void *out_buf, int *out_len, int compr_type) in ubifs_decompress() argument
174 memcpy(out_buf, in_buf, in_len); in ubifs_decompress()
175 *out_len = in_len; in ubifs_decompress()
[all …]
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-6.12.1/drivers/net/ethernet/sfc/
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-6.12.1/net/ceph/
Dcrypto.c220 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument
226 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1)); in ceph_aes_crypt()
227 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
232 memset(buf + in_len, pad_byte, pad_byte); in ceph_aes_crypt()
266 pad_byte = *(char *)(buf + in_len - 1); in ceph_aes_crypt()
268 in_len >= pad_byte) { in ceph_aes_crypt()
269 *pout_len = in_len - pad_byte; in ceph_aes_crypt()
272 __func__, pad_byte, in_len); in ceph_aes_crypt()
284 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument
288 *pout_len = in_len; in ceph_crypt()
[all …]
/linux-6.12.1/security/keys/
Dkeyctl_pkey.c138 if (uparams.in_len > info.max_dec_size || in keyctl_pkey_params_get_2()
143 if (uparams.in_len > info.max_enc_size || in keyctl_pkey_params_get_2()
148 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
153 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
161 params->in_len = uparams.in_len; in keyctl_pkey_params_get_2()
244 in = memdup_user(_in, params.in_len); in keyctl_pkey_e_d_s()
306 in = memdup_user(_in, params.in_len); in keyctl_pkey_verify()
/linux-6.12.1/fs/btrfs/
Dlzo.c242 u32 in_len; in lzo_compress_folios() local
253 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_folios()
254 ASSERT(in_len); in lzo_compress_folios()
257 offset_in_page(cur_in), in_len, in lzo_compress_folios()
273 cur_in += in_len; in lzo_compress_folios()
447 size_t in_len; in lzo_decompress() local
455 in_len = read_compress_length(data_in); in lzo_decompress()
456 if (in_len != srclen) in lzo_decompress()
460 in_len = read_compress_length(data_in); in lzo_decompress()
461 if (in_len != srclen - LZO_LEN * 2) { in lzo_decompress()
[all …]
/linux-6.12.1/lib/lzo/
Dlzo1x_compress.c22 lzo1x_1_do_compress(const unsigned char *in, size_t in_len, in lzo1x_1_do_compress() argument
29 const unsigned char * const in_end = in + in_len; in lzo1x_1_do_compress()
30 const unsigned char * const ip_end = in + in_len - 20; in lzo1x_1_do_compress()
302 static int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len, in lzogeneric1x_1_compress() argument
309 size_t l = in_len; in lzogeneric1x_1_compress()
342 const unsigned char *ii = in + in_len - t; in lzogeneric1x_1_compress()
379 int lzo1x_1_compress(const unsigned char *in, size_t in_len, in lzo1x_1_compress() argument
383 return lzogeneric1x_1_compress(in, in_len, out, out_len, wrkmem, 0); in lzo1x_1_compress()
386 int lzorle1x_1_compress(const unsigned char *in, size_t in_len, in lzorle1x_1_compress() argument
390 return lzogeneric1x_1_compress(in, in_len, out, out_len, in lzorle1x_1_compress()
Dlzo1x_decompress_safe.c39 int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, in lzo1x_decompress_safe() argument
47 const unsigned char * const ip_end = in + in_len; in lzo1x_decompress_safe()
55 if (unlikely(in_len < 3)) in lzo1x_decompress_safe()
58 if (likely(in_len >= 5) && likely(*ip == 17)) { in lzo1x_decompress_safe()
/linux-6.12.1/net/tls/
Dtls_device_fallback.c55 struct scatter_walk *out, int *in_len, in tls_enc_record() argument
70 len = min_t(int, *in_len, buf_size); in tls_enc_record()
75 *in_len -= len; in tls_enc_record()
76 if (!*in_len) in tls_enc_record()
96 *in_len -= len; in tls_enc_record()
97 if (*in_len < 0) { in tls_enc_record()
98 *in_len += cipher_desc->tag; in tls_enc_record()
106 if (*in_len < 0) in tls_enc_record()
107 len += *in_len; in tls_enc_record()
109 *in_len = 0; in tls_enc_record()
[all …]
Dtls_strp.c212 size_t in_len) in tls_strp_copyin_frag() argument
220 len = in_len; in tls_strp_copyin_frag()
277 return in_len - len; in tls_strp_copyin_frag()
282 size_t in_len) in tls_strp_copyin_skb() argument
293 chunk = min(chunk, in_len); in tls_strp_copyin_skb()
337 unsigned int offset, size_t in_len) in tls_strp_copyin() argument
353 ret = tls_strp_copyin_skb(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()
355 ret = tls_strp_copyin_frag(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()
/linux-6.12.1/scripts/kconfig/
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-6.12.1/drivers/infiniband/core/
Ducma.c369 int in_len, int out_len) in ucma_get_event() argument
439 int in_len, int out_len) in ucma_create_id() argument
591 int in_len, int out_len) in ucma_destroy_id() argument
625 int in_len, int out_len) in ucma_bind_ip() argument
650 int in_len, int out_len) in ucma_bind() argument
676 int in_len, int out_len) in ucma_resolve_ip() argument
703 int in_len, int out_len) in ucma_resolve_addr() argument
731 int in_len, int out_len) in ucma_resolve_route() argument
817 int in_len, int out_len) in ucma_query_route() argument
997 int in_len, int out_len) in ucma_query() argument
[all …]
/linux-6.12.1/fs/befs/
Dlinuxvfs.c52 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
54 static int befs_nls2utf(struct super_block *sb, const char *in, int in_len,
504 int in_len, char **out, int *out_len) in befs_utf2nls() argument
515 int maxlen = in_len + 1; in befs_utf2nls()
528 for (i = o = 0; i < in_len; i += utflen, o += unilen) { in befs_utf2nls()
531 utflen = utf8_to_utf32(&in[i], in_len - i, &uni); in befs_utf2nls()
538 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls()
581 int in_len, char **out, int *out_len) in befs_nls2utf() argument
593 int maxlen = (3 * in_len) + 1; in befs_nls2utf()
609 for (i = o = 0; i < in_len; i += unilen, o += utflen) { in befs_nls2utf()
[all …]
/linux-6.12.1/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c175 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
183 if (!in_ie || in_len <= 0) in rtw_get_ie_ex()
188 while (cnt < in_len) { in rtw_get_ie_ex()
564 int rtw_get_wapi_ie(u8 *in_ie, uint in_len, u8 *wapi_ie, u16 *wapi_len) in rtw_get_wapi_ie() argument
575 if (!in_ie || in_len <= 0) in rtw_get_wapi_ie()
580 while (cnt < in_len) { in rtw_get_wapi_ie()
605 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
615 while (cnt < in_len) { in rtw_get_sec_ie()
647 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
656 if (!in_ie || in_len <= 0) in rtw_get_wps_ie()
[all …]
/linux-6.12.1/drivers/platform/x86/dell/dell-wmi-sysman/
Dstring-attributes.c44 int in_len = strlen(buf); in validate_str_input() local
46 if ((in_len < wmi_priv.str_data[instance_id].min_length) || in validate_str_input()
47 (in_len > wmi_priv.str_data[instance_id].max_length)) in validate_str_input()
/linux-6.12.1/drivers/staging/rtl8712/
Drtl871x_mlme.h188 u8 *out_ie, uint in_len);
190 u8 *out_ie, uint in_len, uint initial_out_len);
201 u8 *out_ie, uint in_len, uint *pout_len);
Dieee80211.c364 int r8712_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, in r8712_get_sec_ie() argument
373 while (cnt < in_len) { in r8712_get_sec_ie()
394 int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in r8712_get_wps_ie() argument
402 while (cnt < in_len) { in r8712_get_wps_ie()
Dieee80211.h157 int r8712_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
159 int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
/linux-6.12.1/drivers/crypto/nx/
Dnx-842.h145 int (*compress)(const unsigned char *in, unsigned int in_len,
148 int (*decompress)(const unsigned char *in, unsigned int in_len,
/linux-6.12.1/drivers/usb/typec/tipd/
Dcore.c329 size_t in_len, const u8 *in_data, in tps6598x_exec_cmd_tmo() argument
343 if (in_len) { in tps6598x_exec_cmd_tmo()
345 in_data, in_len); in tps6598x_exec_cmd_tmo()
395 size_t in_len, const u8 *in_data, in tps6598x_exec_cmd() argument
398 return tps6598x_exec_cmd_tmo(tps, cmd, in_len, in_data, in tps6598x_exec_cmd()
942 tps25750_exec_pbms(struct tps6598x *tps, u8 *in_data, size_t in_len) in tps25750_exec_pbms() argument
947 ret = tps6598x_exec_cmd_tmo(tps, "PBMs", in_len, in_data, in tps25750_exec_pbms()
1141 size_t in_len = sizeof(in); in tps6598x_apply_patch() local
1152 ret = tps6598x_exec_cmd(tps, "PTCs", in_len, &in, in tps6598x_apply_patch()
1163 in_len = min(bytes_left, TPS_MAX_LEN); in tps6598x_apply_patch()
[all …]
/linux-6.12.1/drivers/scsi/
Dscsi_ioctl.c509 unsigned int in_len, out_len, bytes, opcode, cmdlen; in sg_scsi_ioctl() local
519 if (get_user(in_len, &sic->inlen)) in sg_scsi_ioctl()
523 if (in_len > PAGE_SIZE || out_len > PAGE_SIZE) in sg_scsi_ioctl()
528 bytes = max(in_len, out_len); in sg_scsi_ioctl()
536 rq = scsi_alloc_request(q, in_len ? REQ_OP_DRV_OUT : REQ_OP_DRV_IN, 0); in sg_scsi_ioctl()
553 if (in_len && copy_from_user(buffer, sic->data + cmdlen, in_len)) in sg_scsi_ioctl()
/linux-6.12.1/drivers/platform/x86/hp/hp-bioscfg/
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()

123