Home
last modified time | relevance | path

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

123

/linux/lib/
A Ddecompress_unlzo.c159 in_len -= skip; in unlzo()
173 skip = fill(in_buf + in_len, 4 - in_len); in unlzo()
175 in_len += skip; in unlzo()
177 if (in_len < 4) { in unlzo()
183 in_len -= 4; in unlzo()
199 skip = fill(in_buf + in_len, 8 - in_len); in unlzo()
201 in_len += skip; in unlzo()
203 if (in_len < 8) { in unlzo()
209 in_len -= 8; in unlzo()
218 skip = fill(in_buf + in_len, src_len - in_len); in unlzo()
[all …]
A Ddecompress_unzstd.c142 ret = zstd_find_frame_compressed_size(in_buf, in_len); in decompress_single()
146 in_len = (long)ret; in decompress_single()
154 *in_pos = in_len; in decompress_single()
163 static int INIT __unzstd(unsigned char *in_buf, long in_len, in __unzstd() argument
210 in_len = 0; in __unzstd()
214 in_len = fill(in_buf, ZSTD_IOBUF_SIZE); in __unzstd()
215 if (in_len < 0) { in __unzstd()
223 in.size = in_len; in __unzstd()
291 in_len = fill ? fill(in_buf, ZSTD_IOBUF_SIZE) : -1; in __unzstd()
292 if (in_len < 0) { in __unzstd()
[all …]
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/fs/ubifs/
A Dcompress.c102 int in_len, void *out_buf, int *out_len, int *compr_type) in ubifs_compress() argument
111 if (in_len < UBIFS_MIN_COMPR_LEN) in ubifs_compress()
116 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
122 in_len, compr->name, err); in ubifs_compress()
130 if (in_len - *out_len < UBIFS_MIN_COMPRESS_DIFF) in ubifs_compress()
136 memcpy(out_buf, in_buf, in_len); in ubifs_compress()
137 *out_len = in_len; in ubifs_compress()
154 int in_len, void *out_buf, int *out_len, int compr_type) in ubifs_decompress() argument
172 memcpy(out_buf, in_buf, in_len); in ubifs_decompress()
173 *out_len = in_len; in ubifs_decompress()
[all …]
A Dcrypto.c28 unsigned int in_len, unsigned int *out_len, int block) in ubifs_encrypt() argument
32 unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE); in ubifs_encrypt()
36 dn->compr_size = cpu_to_le16(in_len); in ubifs_encrypt()
39 if (pad_len != in_len) in ubifs_encrypt()
40 memset(p + in_len, 0, pad_len - in_len); in ubifs_encrypt()
/linux/drivers/net/ethernet/sfc/
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()
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()
384 if (likely(state.in_len == 0)) { in efx_enqueue_skb_tso()
[all …]
/linux/net/ceph/
A 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/fs/btrfs/
A Dlzo.c236 u32 in_len; in lzo_compress_pages() local
246 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_pages()
247 ASSERT(in_len); in lzo_compress_pages()
250 offset_in_page(cur_in), in_len, in lzo_compress_pages()
266 cur_in += in_len; in lzo_compress_pages()
423 size_t in_len; in lzo_decompress() local
433 in_len = read_compress_length(data_in); in lzo_decompress()
434 if (in_len != srclen) in lzo_decompress()
438 in_len = read_compress_length(data_in); in lzo_decompress()
439 if (in_len != srclen - LZO_LEN * 2) { in lzo_decompress()
[all …]
/linux/lib/lzo/
A 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()
304 static int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len, in lzogeneric1x_1_compress() argument
311 size_t l = in_len; in lzogeneric1x_1_compress()
344 const unsigned char *ii = in + in_len - t; in lzogeneric1x_1_compress()
381 int lzo1x_1_compress(const unsigned char *in, size_t in_len, in lzo1x_1_compress() argument
385 return lzogeneric1x_1_compress(in, in_len, out, out_len, wrkmem, 0); in lzo1x_1_compress()
388 int lzorle1x_1_compress(const unsigned char *in, size_t in_len, in lzorle1x_1_compress() argument
392 return lzogeneric1x_1_compress(in, in_len, out, out_len, in lzorle1x_1_compress()
A 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/net/tls/
A Dtls_device_fallback.c52 struct scatter_walk *out, int *in_len, in tls_enc_record() argument
61 len = min_t(int, *in_len, ARRAY_SIZE(buf)); in tls_enc_record()
66 *in_len -= len; in tls_enc_record()
67 if (!*in_len) in tls_enc_record()
89 *in_len -= len; in tls_enc_record()
90 if (*in_len < 0) { in tls_enc_record()
91 *in_len += TLS_CIPHER_AES_GCM_128_TAG_SIZE; in tls_enc_record()
99 if (*in_len < 0) in tls_enc_record()
100 len += *in_len; in tls_enc_record()
102 *in_len = 0; in tls_enc_record()
[all …]
/linux/security/keys/
A Dkeyctl_pkey.c139 if (uparams.in_len > info.max_enc_size || in keyctl_pkey_params_get_2()
145 if (uparams.in_len > info.max_sig_size || in keyctl_pkey_params_get_2()
153 params->in_len = uparams.in_len; in keyctl_pkey_params_get_2()
236 in = memdup_user(_in, params.in_len); in keyctl_pkey_e_d_s()
298 in = memdup_user(_in, params.in_len); in keyctl_pkey_verify()
/linux/drivers/infiniband/core/
A Ducma.c648 int in_len, int out_len) in ucma_bind() argument
701 int in_len, int out_len) in ucma_resolve_addr() argument
729 int in_len, int out_len) in ucma_resolve_route() argument
815 int in_len, int out_len) in ucma_query_route() argument
995 int in_len, int out_len) in ucma_query() argument
1048 int in_len, int out_len) in ucma_connect() argument
1084 int in_len, int out_len) in ucma_listen() argument
1109 int in_len, int out_len) in ucma_accept() argument
1156 int in_len, int out_len) in ucma_reject() argument
1211 int in_len, int out_len) in ucma_init_qp_attr() argument
[all …]
/linux/scripts/kconfig/
A Dpreprocess.c500 size_t in_len, out_len; in __expand_string() local
510 in_len = p - in; in __expand_string()
513 out_len += in_len + strlen(expansion); in __expand_string()
515 strncat(out, in, in_len); in __expand_string()
528 in_len = p - in; in __expand_string()
529 out_len += in_len; in __expand_string()
531 strncat(out, in, in_len); in __expand_string()
/linux/fs/befs/
A 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,
507 int in_len, char **out, int *out_len) in befs_utf2nls() argument
518 int maxlen = in_len + 1; in befs_utf2nls()
531 for (i = o = 0; i < in_len; i += utflen, o += unilen) { in befs_utf2nls()
534 utflen = utf8_to_utf32(&in[i], in_len - i, &uni); in befs_utf2nls()
541 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls()
584 int in_len, char **out, int *out_len) in befs_nls2utf() argument
596 int maxlen = (3 * in_len) + 1; in befs_nls2utf()
612 for (i = o = 0; i < in_len; i += unilen, o += utflen) { in befs_nls2utf()
[all …]
/linux/crypto/asymmetric_keys/
A Dasym_tpm.c478 sg_init_one(&in_sg, in, params->in_len); in tpm_key_encrypt()
480 akcipher_request_set_crypt(req, &in_sg, &out_sg, params->in_len, in tpm_key_encrypt()
539 in, params->in_len, out, params->out_len); in tpm_key_decrypt()
636 uint32_t in_len = params->in_len; in tpm_key_sign() local
652 asn1_wrapped = kzalloc(in_len + asn1->size, GFP_KERNEL); in tpm_key_sign()
658 memcpy(asn1_wrapped + asn1->size, in, in_len); in tpm_key_sign()
661 in_len += asn1->size; in tpm_key_sign()
664 if (in_len > tk->key_len / 8 - 11) { in tpm_key_sign()
686 r = tpm_sign(&tb, keyhandle, keyauth, in, in_len, out, params->out_len); in tpm_key_sign()
/linux/drivers/staging/rtl8723bs/core/
A Drtw_ieee80211.c177 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
185 if (!in_ie || in_len <= 0) in rtw_get_ie_ex()
190 while (cnt < in_len) { in rtw_get_ie_ex()
571 int rtw_get_wapi_ie(u8 *in_ie, uint in_len, u8 *wapi_ie, u16 *wapi_len) in rtw_get_wapi_ie() argument
582 if (!in_ie || in_len <= 0) in rtw_get_wapi_ie()
587 while (cnt < in_len) { in rtw_get_wapi_ie()
612 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
622 while (cnt < in_len) { in rtw_get_sec_ie()
671 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
680 if (!in_ie || in_len <= 0) in rtw_get_wps_ie()
[all …]
/linux/drivers/platform/x86/dell/dell-wmi-sysman/
A 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/drivers/staging/rtl8712/
A 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);
A 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()
A 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/drivers/crypto/nx/
A 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/drivers/scsi/
A Dscsi_ioctl.c540 unsigned int in_len, out_len, bytes, opcode, cmdlen; in sg_scsi_ioctl() local
549 if (get_user(in_len, &sic->inlen)) in sg_scsi_ioctl()
553 if (in_len > PAGE_SIZE || out_len > PAGE_SIZE) in sg_scsi_ioctl()
558 bytes = max(in_len, out_len); in sg_scsi_ioctl()
566 rq = scsi_alloc_request(q, in_len ? REQ_OP_DRV_OUT : REQ_OP_DRV_IN, 0); in sg_scsi_ioctl()
583 if (in_len && copy_from_user(buffer, sic->data + cmdlen, in_len)) in sg_scsi_ioctl()
/linux/drivers/staging/r8188eu/core/
A Drtw_ieee80211.c471 int 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
481 while (cnt < in_len) { in rtw_get_sec_ie()
532 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
541 if (!in_ie || in_len <= 0) in rtw_get_wps_ie()
546 while (cnt < in_len) { in rtw_get_wps_ie()
910 u8 *rtw_get_p2p_ie(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_ielen) in rtw_get_p2p_ie() argument
919 while (cnt < in_len) { in rtw_get_p2p_ie()
921 if ((in_len < 0) || (cnt > MAX_IE_SZ)) { in rtw_get_p2p_ie()
/linux/drivers/nvdimm/
A Dbus.c1029 u32 in_len = 0, out_len = 0; in __nd_ioctl() local
1106 if (in_len < ND_CMD_MAX_ENVELOPE) in __nd_ioctl()
1107 copy = min_t(u32, ND_CMD_MAX_ENVELOPE - in_len, in_size); in __nd_ioctl()
1110 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()
1147 p + in_len + out_len, copy)) { in __nd_ioctl()
1154 buf_len = (u64) out_len + (u64) in_len; in __nd_ioctl()

Completed in 43 milliseconds

123