Home
last modified time | relevance | path

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

1234567891011

/linux-6.3-rc2/security/keys/
A Dbig_key.c63 size_t datalen = prep->datalen; in big_key_preparse() local
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()
230 size_t datalen = payload->length; in big_key_read() local
233 if (!buffer || buflen < datalen) in big_key_read()
234 return datalen; in big_key_read()
236 if (datalen > BIG_KEY_FILE_THRESHOLD) { in big_key_read()
265 ret = datalen; in big_key_read()
268 memcpy(buffer, buf, datalen); in big_key_read()
[all …]
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-6.3-rc2/lib/
A Dasn1_decoder.c67 if (datalen == dp) 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()
298 datalen = dp + len; in asn1_ber_decoder()
397 len = datalen; in asn1_ber_decoder()
400 tdp, dp, len, datalen); in asn1_ber_decoder()
401 if (datalen == 0) { in asn1_ber_decoder()
403 datalen = len; in asn1_ber_decoder()
[all …]
/linux-6.3-rc2/net/netfilter/
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
129 const char **dptr, unsigned int *datalen, in map_sip_addr() argument
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()
199 olen = *datalen; in nf_nat_sip()
450 c_len = *datalen - matchoff + strlen("v="); in mangle_content_len()
464 const char **dptr, unsigned int *datalen, in mangle_sdp_packet() argument
483 const char **dptr, unsigned int *datalen, in nf_nat_sdp_addr() argument
[all …]
A Dnf_conntrack_sip.c549 limit = dptr + datalen; in ct_sip_parse_param()
577 limit = dptr + datalen; in ct_sip_parse_address_param()
605 limit = dptr + datalen; in ct_sip_parse_numerical_param()
1102 dptr, datalen, in process_sdp()
1130 dptr, datalen, sdpoff, in process_sdp()
1381 *datalen, "expires=", in process_register_response()
1523 dptr, datalen)) { in process_sip_msg()
1562 datalen = skb->len - dataoff; in sip_help_tcp()
1589 if (msglen > datalen) in sip_help_tcp()
1602 datalen = datalen + diff - msglen; in sip_help_tcp()
[all …]
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()
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-6.3-rc2/include/linux/netfilter/
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,
188 unsigned int off, unsigned int datalen,
[all …]
/linux-6.3-rc2/fs/jffs2/
A Dcompr.c87 orig_slen = *datalen; in jffs2_selected_compress()
106 *datalen = orig_slen; in jffs2_selected_compress()
173 orig_slen = *datalen; in jffs2_compress()
204 *datalen = orig_slen; in jffs2_compress()
211 && (*cdatalen < *datalen)) { in jffs2_compress()
213 best_slen = *datalen; in jffs2_compress()
220 *datalen = best_slen; in jffs2_compress()
234 cpage_out, datalen, cdatalen); in jffs2_compress()
238 cpage_out, datalen, cdatalen); in jffs2_compress()
246 *datalen = *cdatalen; in jffs2_compress()
[all …]
A Dwrite.c80 vecs[1].iov_len = datalen; in jffs2_write_dnode()
85 sizeof(*ri), datalen); in jffs2_write_dnode()
93 if (!datalen || !data) in jffs2_write_dnode()
355 uint32_t datalen, cdatalen; in jffs2_write_inode_range() local
369 datalen = min_t(uint32_t, writelen, in jffs2_write_inode_range()
385 ri->dsize = cpu_to_je32(datalen); in jffs2_write_inode_range()
426 if (!datalen) { in jffs2_write_inode_range()
432 writtenlen += datalen; in jffs2_write_inode_range()
433 offset += datalen; in jffs2_write_inode_range()
434 writelen -= datalen; in jffs2_write_inode_range()
[all …]
/linux-6.3-rc2/net/dns_resolver/
A 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()
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()
141 result_len = datalen; in dns_resolver_preparse()
[all …]
/linux-6.3-rc2/net/rxrpc/
A Dkey.c53 size_t datalen, in rxrpc_preparse_xdr_rxkad() argument
141 size_t datalen = prep->datalen; in rxrpc_preparse_xdr() local
152 if (datalen & 3) in rxrpc_preparse_xdr()
159 datalen -= 4; in rxrpc_preparse_xdr()
165 datalen -= 4; in rxrpc_preparse_xdr()
183 if (datalen < 12) in rxrpc_preparse_xdr()
186 datalen -= 4; in rxrpc_preparse_xdr()
195 if (datalen < 8) in rxrpc_preparse_xdr()
199 datalen -= 4; in rxrpc_preparse_xdr()
202 if (toklen < 20 || toklen > datalen || paddedlen > datalen) in rxrpc_preparse_xdr()
[all …]
/linux-6.3-rc2/include/linux/
A 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
/linux-6.3-rc2/include/uapi/linux/
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-6.3-rc2/drivers/base/
A Ddevcoredump.c27 size_t datalen; member
71 void *data, size_t datalen);
118 return devcd->read(buffer, offset, count, devcd->data, devcd->datalen); in devcd_data_read()
236 void *data, size_t datalen) in devcd_readv() argument
238 return memory_read_from_buffer(buffer, count, &offset, data, datalen); in devcd_readv()
256 void dev_coredumpv(struct device *dev, void *data, size_t datalen, in dev_coredumpv() argument
324 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
326 void *data, size_t datalen), in dev_coredumpm() argument
352 devcd->datalen = datalen; in dev_coredumpm()
408 size_t datalen, gfp_t gfp) in dev_coredumpsg() argument
[all …]
/linux-6.3-rc2/security/keys/trusted-keys/
A Dtrusted_core.c151 size_t datalen = prep->datalen; in trusted_instantiate() local
157 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate()
160 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_instantiate()
163 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
164 datablob[datalen] = '\0'; in trusted_instantiate()
231 size_t datalen = prep->datalen; in trusted_update() local
240 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update()
243 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_update()
253 memcpy(datablob, prep->data, datalen); in trusted_update()
254 datablob[datalen] = '\0'; in trusted_update()
/linux-6.3-rc2/security/keys/encrypted-keys/
A Dencrypted.c604 const char *datalen, in encrypted_key_alloc() argument
740 const char *datalen) in __ekey_init() argument
748 epayload->iv = epayload->datalen + strlen(datalen) + 1; in __ekey_init()
763 memcpy(epayload->datalen, datalen, strlen(datalen)); in __ekey_init()
823 size_t datalen = prep->datalen; in encrypted_instantiate() local
826 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_instantiate()
832 datablob[datalen] = 0; in encrypted_instantiate()
882 size_t datalen = prep->datalen; in encrypted_update() local
887 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_update()
894 buf[datalen] = 0; in encrypted_update()
[all …]
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A 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()
404 u32 datalen; in brcmf_fweh_process_event() local
408 datalen = get_unaligned_be32(&event_packet->msg.datalen); in brcmf_fweh_process_event()
417 if (datalen > BRCMF_DCMD_MAXLEN || in brcmf_fweh_process_event()
418 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event()
421 event = kzalloc(sizeof(*event) + datalen, gfp); in brcmf_fweh_process_event()
430 memcpy(event->data, data, datalen); in brcmf_fweh_process_event()
[all …]
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/
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-6.3-rc2/arch/s390/crypto/
A 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); \
/linux-6.3-rc2/crypto/asymmetric_keys/
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-6.3-rc2/drivers/s390/scsi/
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-6.3-rc2/net/netfilter/ipvs/
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()
/linux-6.3-rc2/drivers/i2c/busses/
A Di2c-mlxcpld.c100 u8 *data, u8 datalen) in mlxcpld_i2c_read_comm() argument
104 switch (datalen) { in mlxcpld_i2c_read_comm()
119 mlxcpld_i2c_lpc_read_buf(data, datalen, addr); in mlxcpld_i2c_read_comm()
125 u8 *data, u8 datalen) in mlxcpld_i2c_write_comm() argument
129 switch (datalen) { in mlxcpld_i2c_write_comm()
144 mlxcpld_i2c_lpc_write_buf(data, datalen, addr); in mlxcpld_i2c_write_comm()
289 u8 datalen, val; in mlxcpld_i2c_wait_for_tc() local
326 &datalen, 1); in mlxcpld_i2c_wait_for_tc()
332 datalen = priv->xfer.data_len; in mlxcpld_i2c_wait_for_tc()
336 priv->xfer.msg[i].buf, datalen); in mlxcpld_i2c_wait_for_tc()
[all …]
/linux-6.3-rc2/drivers/block/rnbd/
A Drnbd-srv-trace.h69 u32 datalen,
72 TP_ARGS(srv, msg, id, datalen, usrlen),
83 __field(u32, datalen)
96 __entry->datalen = datalen;
111 __entry->datalen,

Completed in 59 milliseconds

1234567891011