Home
last modified time | relevance | path

Searched refs:datalen (Results 1 – 25 of 259) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/security/keys/
Dbig_key.c62 size_t datalen = prep->datalen; in big_key_preparse() local
63 size_t enclen = datalen + CHACHA20POLY1305_AUTHTAG_SIZE; in big_key_preparse()
66 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse()
72 prep->payload.data[big_key_len] = (void *)(unsigned long)datalen; in big_key_preparse()
74 if (datalen > BIG_KEY_FILE_THRESHOLD) { in big_key_preparse()
99 chacha20poly1305_encrypt(buf, prep->data, datalen, NULL, 0, in big_key_preparse()
128 void *data = kmalloc(datalen, GFP_KERNEL); in big_key_preparse()
134 memcpy(data, prep->data, prep->datalen); in big_key_preparse()
153 if (prep->datalen > BIG_KEY_FILE_THRESHOLD) { in big_key_free_preparse()
181 size_t datalen = (size_t)key->payload.data[big_key_len]; in big_key_destroy() local
[all …]
Duser_defined.c62 size_t datalen = prep->datalen; in user_preparse() local
64 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_preparse()
67 upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); in user_preparse()
72 prep->quotalen = datalen; in user_preparse()
74 upayload->datalen = datalen; in user_preparse()
75 memcpy(upayload->data, prep->data, datalen); in user_preparse()
107 ret = key_payload_reserve(key, prep->datalen); in user_update()
162 seq_printf(m, ": %u", key->datalen); in user_describe()
177 ret = upayload->datalen; in user_read()
181 if (buflen > upayload->datalen) in user_read()
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dtipc_config.h130 #define TLV_ALIGN(datalen) (((datalen) + (TLV_ALIGNTO - 1)) & ~(TLV_ALIGNTO - 1)) argument
131 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument
132 #define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen))) argument
155 #define TCM_ALIGN(datalen) (((datalen) + 3) & ~3) argument
156 #define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen) argument
157 #define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen))) argument
/kernel/linux/linux-5.10/lib/
Dasn1_decoder.c57 static int asn1_find_indefinite_length(const unsigned char *data, size_t datalen, in asn1_find_indefinite_length() argument
66 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length()
67 if (datalen == dp) in asn1_find_indefinite_length()
88 if (unlikely(datalen - dp < 2)) in asn1_find_indefinite_length()
110 if (unlikely(n > datalen - dp)) in asn1_find_indefinite_length()
118 if (len > datalen - dp) in asn1_find_indefinite_length()
170 size_t datalen) in asn1_ber_decoder() argument
197 if (datalen > 65535) in asn1_ber_decoder()
202 pc, machlen, dp, datalen, csp, jsp); in asn1_ber_decoder()
217 (op & ASN1_OP_MATCH__SKIP && dp == datalen)) { in asn1_ber_decoder()
[all …]
/kernel/linux/linux-5.10/include/linux/netfilter/
Dnf_conntrack_sip.h45 const char **dptr, unsigned int *datalen,
49 const char **dptr, unsigned int *datalen,
115 unsigned int *datalen);
124 unsigned int *datalen,
133 unsigned int *datalen,
143 unsigned int *datalen,
152 unsigned int *datalen,
160 unsigned int *datalen,
170 unsigned int datalen, unsigned int *matchoff,
174 unsigned int dataoff, unsigned int datalen,
[all …]
/kernel/linux/linux-5.10/fs/jffs2/
Dcompr.c75 unsigned char **cpage_out, u32 *datalen, u32 *cdatalen) in jffs2_selected_compress() argument
87 orig_slen = *datalen; in jffs2_selected_compress()
106 *datalen = orig_slen; in jffs2_selected_compress()
108 err = this->compress(data_in, output_buf, datalen, cdatalen); in jffs2_selected_compress()
116 this->stat_compr_orig_size += *datalen; in jffs2_selected_compress()
150 uint32_t *datalen, uint32_t *cdatalen) in jffs2_compress() argument
168 ret = jffs2_selected_compress(0, data_in, cpage_out, datalen, in jffs2_compress()
173 orig_slen = *datalen; in jffs2_compress()
204 *datalen = orig_slen; in jffs2_compress()
206 compr_ret = this->compress(data_in, this->compr_buf, datalen, cdatalen); in jffs2_compress()
[all …]
Dwrite.c61 uint32_t datalen, int alloc_mode) in jffs2_write_dnode() argument
80 vecs[1].iov_len = datalen; in jffs2_write_dnode()
82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode()
85 sizeof(*ri), datalen); in jffs2_write_dnode()
93 if (!datalen || !data) in jffs2_write_dnode()
112 if (ret || (retlen != sizeof(*ri) + datalen)) { in jffs2_write_dnode()
114 sizeof(*ri) + datalen, flash_ofs, ret, retlen); in jffs2_write_dnode()
123 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*ri)+datalen), NULL); in jffs2_write_dnode()
141 ret = jffs2_reserve_space_gc(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode()
148 ret = jffs2_reserve_space(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_nat_sip.c36 const char **dptr, unsigned int *datalen, in mangle_packet() argument
66 *datalen += buflen - matchlen; in mangle_packet()
94 const char **dptr, unsigned int *datalen, in map_addr() argument
123 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr()
129 const char **dptr, unsigned int *datalen, in map_sip_addr() argument
138 if (ct_sip_parse_header_uri(ct, *dptr, NULL, *datalen, type, NULL, in map_sip_addr()
141 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr()
147 const char **dptr, unsigned int *datalen) in nf_nat_sip() argument
161 if (ct_sip_parse_request(ct, *dptr, *datalen, in nf_nat_sip()
164 !map_addr(skb, protoff, dataoff, dptr, datalen, in nf_nat_sip()
[all …]
Dnf_conntrack_sip.c238 const char *dptr, unsigned int datalen, in ct_sip_parse_request() argument
242 const char *start = dptr, *limit = dptr + datalen, *end; in ct_sip_parse_request()
368 unsigned int dataoff, unsigned int datalen, in ct_sip_get_header() argument
373 const char *start = dptr, *limit = dptr + datalen; in ct_sip_get_header()
436 unsigned int dataoff, unsigned int datalen, in ct_sip_next_header() argument
441 const char *start = dptr, *limit = dptr + datalen; in ct_sip_next_header()
466 unsigned int dataoff, unsigned int datalen, in ct_sip_walk_headers() argument
474 ret = ct_sip_next_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers()
486 ret = ct_sip_get_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers()
506 unsigned int *dataoff, unsigned int datalen, in ct_sip_parse_header_uri() argument
[all …]
Dnf_nat_helper.c96 int oldlen, datalen; in __nf_nat_mangle_tcp_packet() local
112 datalen = skb->len - protoff; in __nf_nat_mangle_tcp_packet()
115 tcph, &tcph->check, datalen, oldlen); in __nf_nat_mangle_tcp_packet()
146 int datalen, oldlen; in nf_nat_mangle_udp_packet() local
163 datalen = skb->len - protoff; in nf_nat_mangle_udp_packet()
164 udph->len = htons(datalen); in nf_nat_mangle_udp_packet()
171 udph, &udph->check, datalen, oldlen); in nf_nat_mangle_udp_packet()
/kernel/linux/linux-5.10/net/dns_resolver/
Ddns_key.c98 int datalen = prep->datalen, result_len = 0; in dns_resolver_preparse() local
101 if (datalen <= 1 || !data) in dns_resolver_preparse()
106 if (datalen <= sizeof(*bin)) in dns_resolver_preparse()
110 kenter("[%u,%u],%u", bin->content, bin->version, datalen); in dns_resolver_preparse()
125 result_len = datalen; in dns_resolver_preparse()
129 kenter("'%*.*s',%u", datalen, datalen, data, datalen); in dns_resolver_preparse()
131 if (!data || data[datalen - 1] != '\0') in dns_resolver_preparse()
133 datalen--; in dns_resolver_preparse()
136 end = data + datalen; in dns_resolver_preparse()
137 opt = memchr(data, '#', datalen); in dns_resolver_preparse()
[all …]
/kernel/linux/linux-5.10/include/linux/
Ddevcoredump.h55 void dev_coredumpv(struct device *dev, void *data, size_t datalen,
59 void *data, size_t datalen, gfp_t gfp,
61 void *data, size_t datalen),
65 size_t datalen, gfp_t gfp);
68 size_t datalen, gfp_t gfp) in dev_coredumpv() argument
75 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
77 void *data, size_t datalen), in dev_coredumpm() argument
84 size_t datalen, gfp_t gfp) in dev_coredumpsg() argument
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dtipc_config.h119 #define TLV_ALIGN(datalen) (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1)) argument
120 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument
121 #define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen))) argument
209 #define TCM_ALIGN(datalen) (((datalen)+3) & ~3) argument
210 #define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen) argument
211 #define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen))) argument
/kernel/linux/linux-5.10/include/uapi/linux/
Dtipc_config.h255 #define TLV_ALIGN(datalen) (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1)) argument
256 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument
257 #define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen))) argument
394 #define TCM_ALIGN(datalen) (((datalen)+3) & ~3) argument
395 #define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen) argument
396 #define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen))) argument
/kernel/linux/linux-5.10/drivers/base/
Ddevcoredump.c31 size_t datalen; member
34 void *data, size_t datalen);
81 return devcd->read(buffer, offset, count, devcd->data, devcd->datalen); in devcd_data_read()
165 void *data, size_t datalen) in devcd_readv() argument
167 return memory_read_from_buffer(buffer, count, &offset, data, datalen); in devcd_readv()
185 void dev_coredumpv(struct device *dev, void *data, size_t datalen, in dev_coredumpv() argument
188 dev_coredumpm(dev, NULL, data, datalen, gfp, devcd_readv, devcd_freev); in dev_coredumpv()
253 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
255 void *data, size_t datalen), in dev_coredumpm() argument
281 devcd->datalen = datalen; in dev_coredumpm()
[all …]
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
Dencrypted.c286 epayload->master_desc, epayload->datalen); in datablob_format()
321 *master_keylen = upayload->datalen; in request_user_key()
598 const char *datalen) in encrypted_key_alloc() argument
609 ret = kstrtol(datalen, 10, &dlen); in encrypted_key_alloc()
637 + strlen(datalen) + 1 + ivsize + 1 + encrypted_datalen; in encrypted_key_alloc()
714 const char *datalen) in __ekey_init() argument
721 epayload->datalen = epayload->master_desc + strlen(master_desc) + 1; in __ekey_init()
722 epayload->iv = epayload->datalen + strlen(datalen) + 1; in __ekey_init()
737 memcpy(epayload->datalen, datalen, strlen(datalen)); in __ekey_init()
748 const char *master_desc, const char *datalen, in encrypted_init() argument
[all …]
/kernel/linux/linux-5.10/fs/fscache/
Dfsdef.c15 uint16_t datalen,
76 uint16_t datalen, in fscache_fsdef_netfs_check_aux() argument
82 _enter("{%s},,%hu", netfs->name, datalen); in fscache_fsdef_netfs_check_aux()
84 if (datalen != sizeof(version)) { in fscache_fsdef_netfs_check_aux()
85 _leave(" = OBSOLETE [dl=%d v=%zu]", datalen, sizeof(version)); in fscache_fsdef_netfs_check_aux()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfweh.c35 u32 datalen; member
244 emsg.datalen = be32_to_cpu(emsg_be->datalen); in brcmf_fweh_event_worker()
253 min_t(u32, emsg.datalen, 64), in brcmf_fweh_event_worker()
254 "event payload, len=%d\n", emsg.datalen); in brcmf_fweh_event_worker()
403 u32 datalen; in brcmf_fweh_process_event() local
407 datalen = get_unaligned_be32(&event_packet->msg.datalen); in brcmf_fweh_process_event()
416 if (datalen > BRCMF_DCMD_MAXLEN || in brcmf_fweh_process_event()
417 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event()
420 event = kzalloc(sizeof(*event) + datalen, gfp); in brcmf_fweh_process_event()
429 memcpy(event->data, data, datalen); in brcmf_fweh_process_event()
[all …]
/kernel/linux/linux-5.10/fs/cifs/
Dcache.c83 uint16_t datalen, in cifs_fscache_super_check_aux() argument
89 if (datalen != sizeof(auxdata)) in cifs_fscache_super_check_aux()
97 if (memcmp(data, &auxdata, datalen) != 0) in cifs_fscache_super_check_aux()
115 uint16_t datalen, in cifs_fscache_inode_check_aux() argument
121 if (datalen != sizeof(auxdata)) in cifs_fscache_inode_check_aux()
131 if (memcmp(data, &auxdata, datalen) != 0) in cifs_fscache_inode_check_aux()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Ddfs.c101 int datalen, bool is_ctl, bool is_ext) in ath9k_check_chirping() argument
111 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping()
116 datalen, num_fft_packets); in ath9k_check_chirping()
122 if ((datalen % sizeof(*fft)) == 2) { in ath9k_check_chirping()
134 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping()
138 datalen, num_fft_packets); in ath9k_check_chirping()
293 u16 datalen; in ath9k_dfs_process_phyerr() local
309 datalen = rs->rs_datalen; in ath9k_dfs_process_phyerr()
310 if (datalen == 0) { in ath9k_dfs_process_phyerr()
327 vdata_end = data + datalen; in ath9k_dfs_process_phyerr()
[all …]
/kernel/linux/linux-5.10/net/rxrpc/
Dkey.c89 size_t datalen, in rxrpc_preparse_xdr_rxkad() argument
111 prep->quotalen = datalen + plen; in rxrpc_preparse_xdr_rxkad()
430 size_t datalen, in rxrpc_preparse_xdr_rxk5() argument
445 prep->quotalen = datalen + toklen; in rxrpc_preparse_xdr_rxk5()
562 size_t datalen = prep->datalen; in rxrpc_preparse_xdr() local
567 prep->datalen); in rxrpc_preparse_xdr()
569 if (datalen > AFSTOKEN_LENGTH_MAX) in rxrpc_preparse_xdr()
573 if (datalen & 3) in rxrpc_preparse_xdr()
580 datalen -= 4; in rxrpc_preparse_xdr()
586 datalen -= 4; in rxrpc_preparse_xdr()
[all …]
/kernel/linux/linux-5.10/arch/s390/crypto/
Dcrc32-vx.c50 unsigned char const *data, size_t datalen) \
55 if (datalen < VX_MIN_LEN + VX_ALIGN_MASK) \
56 return ___crc32_sw(crc, data, datalen); \
61 datalen -= prealign; \
66 aligned = datalen & ~VX_ALIGN_MASK; \
67 remaining = datalen & VX_ALIGN_MASK; \
187 unsigned int datalen, u8 *out) \
190 data, datalen, out); \
211 unsigned int datalen) \
214 ctx->crc = func(ctx->crc, data, datalen); \
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dpkcs7_key_type.c37 saved_prep_datalen = prep->datalen; in pkcs7_view_content()
39 prep->datalen = len; in pkcs7_view_content()
44 prep->datalen = saved_prep_datalen; in pkcs7_view_content()
61 prep->data, prep->datalen, in pkcs7_preparse()
Dtpm_parser.c36 static struct tpm_key *tpm_parse(const void *data, size_t datalen) in tpm_parse() argument
44 ret = asn1_ber_decoder(&tpm_decoder, &ctx, data, datalen); in tpm_parse()
64 if (prep->datalen > 256 * 4) in tpm_key_preparse()
67 tk = tpm_parse(prep->data, prep->datalen); in tpm_key_preparse()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-mlxcpld.c113 u8 *data, u8 datalen) in mlxcpld_i2c_read_comm() argument
117 switch (datalen) { in mlxcpld_i2c_read_comm()
132 mlxcpld_i2c_lpc_read_buf(data, datalen, addr); in mlxcpld_i2c_read_comm()
138 u8 *data, u8 datalen) in mlxcpld_i2c_write_comm() argument
142 switch (datalen) { in mlxcpld_i2c_write_comm()
157 mlxcpld_i2c_lpc_write_buf(data, datalen, addr); in mlxcpld_i2c_write_comm()
302 u8 datalen, val; in mlxcpld_i2c_wait_for_tc() local
339 &datalen, 1); in mlxcpld_i2c_wait_for_tc()
340 if (unlikely(datalen > I2C_SMBUS_BLOCK_MAX)) { in mlxcpld_i2c_wait_for_tc()
345 datalen = priv->xfer.data_len; in mlxcpld_i2c_wait_for_tc()
[all …]

1234567891011