Home
last modified time | relevance | path

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

12345678910

/linux/security/keys/
H A Dbig_key.c63 size_t datalen = prep->datalen; in big_key_preparse() local
64 size_t enclen = datalen + CHACHA20POLY1305_AUTHTAG_SIZE; in big_key_preparse()
69 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse()
75 payload->length = datalen; in big_key_preparse()
77 if (datalen > BIG_KEY_FILE_THRESHOLD) { in big_key_preparse()
102 chacha20poly1305_encrypt(buf, prep->data, datalen, NULL, 0, in big_key_preparse()
130 void *data = kmalloc(datalen, GFP_KERNEL); in big_key_preparse()
136 memcpy(data, prep->data, prep->datalen); in big_key_preparse()
156 if (prep->datalen > BIG_KEY_FILE_THRESHOLD) in big_key_free_preparse()
198 ret = key_payload_reserve(key, prep->datalen); in big_key_update()
[all …]
H A 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 …]
/linux/lib/
H A 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 …]
/linux/net/netfilter/
H A 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 …]
H A 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 …]
H A Dnf_conntrack_sane.c63 unsigned int dataoff, datalen; in help() local
92 datalen = skb->len - dataoff; in help()
96 if (datalen != sizeof(struct sane_request)) in help()
99 req = skb_header_pointer(skb, dataoff, datalen, &buf.req); in help()
123 if (datalen < sizeof(struct sane_reply_net_start)) { in help()
128 datalen = sizeof(struct sane_reply_net_start); in help()
130 reply = skb_header_pointer(skb, dataoff, datalen, &buf.repl); in help()
H A 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()
/linux/fs/jffs2/
H A 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 …]
H A 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 …]
/linux/include/linux/netfilter/
H A 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 …]
/linux/include/linux/
H A Ddevcoredump.h57 void dev_coredumpv(struct device *dev, void *data, size_t datalen,
61 void *data, size_t datalen, gfp_t gfp,
64 size_t datalen),
69 size_t datalen, gfp_t gfp);
74 size_t datalen, gfp_t gfp) in dev_coredumpv() argument
81 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm_timeout() argument
84 size_t datalen), in dev_coredumpm_timeout() argument
92 size_t datalen, gfp_t gfp) in dev_coredumpsg() argument
117 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
119 void *data, size_t datalen), in dev_coredumpm() argument
[all …]
/linux/net/dns_resolver/
H A Ddns_key.c97 int datalen = prep->datalen, result_len = 0; in dns_resolver_preparse() local
100 if (datalen <= 1 || !data) in dns_resolver_preparse()
107 if (datalen < sizeof(*v1)) in dns_resolver_preparse()
111 kenter("[%u,%u],%u", v1->hdr.content, v1->hdr.version, datalen); in dns_resolver_preparse()
132 result_len = datalen; in dns_resolver_preparse()
136 kenter("'%*.*s',%u", datalen, datalen, data, datalen); in dns_resolver_preparse()
138 if (!data || data[datalen - 1] != '\0') in dns_resolver_preparse()
140 datalen--; in dns_resolver_preparse()
143 end = data + datalen; in dns_resolver_preparse()
144 opt = memchr(data, '#', datalen); in dns_resolver_preparse()
[all …]
/linux/net/rxrpc/
H A Dkey.c53 size_t datalen, in rxrpc_preparse_xdr_rxkad() argument
75 prep->quotalen = datalen + plen; in rxrpc_preparse_xdr_rxkad()
141 size_t datalen = prep->datalen; in rxrpc_preparse_xdr() local
146 prep->datalen); in rxrpc_preparse_xdr()
148 if (datalen > AFSTOKEN_LENGTH_MAX) in rxrpc_preparse_xdr()
152 if (datalen & 3) in rxrpc_preparse_xdr()
159 datalen -= 4; in rxrpc_preparse_xdr()
165 datalen -= 4; in rxrpc_preparse_xdr()
167 if (paddedlen > datalen) in rxrpc_preparse_xdr()
179 datalen -= paddedlen; in rxrpc_preparse_xdr()
[all …]
/linux/include/uapi/linux/
H A Dtipc_config.h251 #define TLV_ALIGN(datalen) (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1)) argument
252 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument
253 #define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen))) argument
390 #define TCM_ALIGN(datalen) (((datalen)+3) & ~3) argument
391 #define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen) argument
392 #define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen))) argument
/linux/security/keys/encrypted-keys/
H A Dencrypted.c292 epayload->master_desc, epayload->datalen); in datablob_format()
327 *master_keylen = upayload->datalen; in request_user_key()
604 const char *datalen, in encrypted_key_alloc() argument
617 ret = kstrtol(datalen, 10, &dlen); in encrypted_key_alloc()
663 + strlen(datalen) + 1 + ivsize + 1 + encrypted_datalen; in encrypted_key_alloc()
740 const char *datalen) in __ekey_init() argument
747 epayload->datalen = epayload->master_desc + strlen(master_desc) + 1; in __ekey_init()
748 epayload->iv = epayload->datalen + strlen(datalen) + 1; in __ekey_init()
763 memcpy(epayload->datalen, datalen, strlen(datalen)); in __ekey_init()
775 const char *master_desc, const char *datalen, in encrypted_init() argument
[all …]
/linux/security/keys/trusted-keys/
H A Dtrusted_core.c154 size_t datalen = prep->datalen; in trusted_instantiate() local
160 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate()
163 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_instantiate()
166 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
167 datablob[datalen] = '\0'; in trusted_instantiate()
234 size_t datalen = prep->datalen; in trusted_update() local
243 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update()
246 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_update()
256 memcpy(datablob, prep->data, datalen); in trusted_update()
257 datablob[datalen] = '\0'; in trusted_update()
/linux/drivers/base/
H A Ddevcoredump.c24 size_t datalen; member
68 void *data, size_t datalen);
115 return devcd->read(buffer, offset, count, devcd->data, devcd->datalen); in devcd_data_read()
232 void *data, size_t datalen) in devcd_readv() argument
234 return memory_read_from_buffer(buffer, count, &offset, data, datalen); in devcd_readv()
252 void dev_coredumpv(struct device *dev, void *data, size_t datalen, in dev_coredumpv() argument
255 dev_coredumpm(dev, NULL, data, datalen, gfp, devcd_readv, devcd_freev); in dev_coredumpv()
345 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm_timeout() argument
348 size_t datalen), in dev_coredumpm_timeout() argument
375 devcd->datalen = datalen; in dev_coredumpm_timeout()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dfweh.c36 u32 datalen; member
37 u8 data[] __counted_by(datalen);
288 emsg.datalen = be32_to_cpu(emsg_be->datalen); in brcmf_fweh_event_worker()
297 min_t(u32, emsg.datalen, 64), in brcmf_fweh_event_worker()
298 "event payload, len=%d\n", emsg.datalen); in brcmf_fweh_event_worker()
478 u32 datalen; in brcmf_fweh_process_event() local
482 datalen = get_unaligned_be32(&event_packet->msg.datalen); in brcmf_fweh_process_event()
491 if (datalen > BRCMF_DCMD_MAXLEN || in brcmf_fweh_process_event()
492 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event()
495 event = kzalloc(struct_size(event, data, datalen), gfp); in brcmf_fweh_process_event()
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A 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 …]
/linux/arch/s390/crypto/
H A Dcrc32-vx.c45 unsigned char const *data, size_t datalen) \
50 if (datalen < VX_MIN_LEN + VX_ALIGN_MASK) \
51 return ___crc32_sw(crc, data, datalen); \
56 datalen -= prealign; \
61 aligned = datalen & ~VX_ALIGN_MASK; \
62 remaining = datalen & VX_ALIGN_MASK; \
182 unsigned int datalen, u8 *out) \
185 data, datalen, out); \
206 unsigned int datalen) \
209 ctx->crc = func(ctx->crc, data, datalen); \
/linux/net/wireless/
H A Dscan.c185 if (elem->id == WLAN_EID_EXTENSION && elem->datalen > 1 && in cfg80211_is_element_inherited()
189 if (!non_inherit_elem || non_inherit_elem->datalen < 2) in cfg80211_is_element_inherited()
200 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited()
204 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited()
235 elem->data + elem->datalen > ie + ie_len)) in cfg80211_copy_elem_with_frags()
238 if (elem->datalen + 2 > buf + buf_len - *pos) in cfg80211_copy_elem_with_frags()
241 memcpy(*pos, elem, elem->datalen + 2); in cfg80211_copy_elem_with_frags()
242 *pos += elem->datalen + 2; in cfg80211_copy_elem_with_frags()
245 if (elem->datalen != 255) in cfg80211_copy_elem_with_frags()
248 ie_len = ie + ie_len - elem->data - elem->datalen; in cfg80211_copy_elem_with_frags()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Duser_sdma.c44 u32 datalen);
46 struct user_sdma_txreq *tx, u32 datalen);
641 u32 datalen) in user_sdma_txadd_ahg() argument
645 u32 lrhlen = get_lrh_len(req->hdr, pad_len(datalen)); in user_sdma_txadd_ahg()
661 ret = check_header_template(req, &tx->hdr, lrhlen, datalen); in user_sdma_txadd_ahg()
665 sizeof(tx->hdr) + datalen, req->ahg_idx, in user_sdma_txadd_ahg()
706 u32 datalen = 0; in user_sdma_send_pkts() local
748 datalen = compute_data_length(req, tx); in user_sdma_send_pkts()
758 if (!datalen) { in user_sdma_send_pkts()
763 } else if (datalen <= 32) { in user_sdma_send_pkts()
[all …]
/linux/crypto/asymmetric_keys/
H A 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()
/linux/drivers/s390/scsi/
H A Dzfcp_fc.h231 u32 datalen; in zfcp_fc_scsi_to_fcp() local
244 datalen = scsi_bufflen(scsi); in zfcp_fc_scsi_to_fcp()
245 fcp->fc_dl = cpu_to_be32(datalen); in zfcp_fc_scsi_to_fcp()
248 datalen += datalen / scsi->device->sector_size * 8; in zfcp_fc_scsi_to_fcp()
249 fcp->fc_dl = cpu_to_be32(datalen); in zfcp_fc_scsi_to_fcp()
/linux/net/netfilter/ipvs/
H A Dip_vs_pe_sip.c31 unsigned int datalen, in get_callid() argument
36 int ret = ct_sip_get_header(NULL, dptr, dataoff, datalen, in get_callid()
51 if (*matchoff + *matchlen == datalen) in get_callid()
70 unsigned int dataoff, datalen, matchoff, matchlen; in ip_vs_sip_fill_param() local
90 datalen = skb->len - dataoff; in ip_vs_sip_fill_param()
92 if (get_callid(dptr, 0, datalen, &matchoff, &matchlen)) in ip_vs_sip_fill_param()

12345678910