Home
last modified time | relevance | path

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

1234567891011

/Linux-v6.6/security/keys/
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 …]
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-v6.6/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 …]
/Linux-v6.6/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_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()
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-v6.6/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 …]
/Linux-v6.6/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 …]
/Linux-v6.6/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 …]
/Linux-v6.6/net/rxrpc/
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-v6.6/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
/Linux-v6.6/include/uapi/linux/
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-v6.6/security/keys/trusted-keys/
Dtrusted_core.c150 size_t datalen = prep->datalen; in trusted_instantiate() local
156 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate()
159 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_instantiate()
162 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
163 datablob[datalen] = '\0'; in trusted_instantiate()
230 size_t datalen = prep->datalen; in trusted_update() local
239 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update()
242 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_update()
252 memcpy(datablob, prep->data, datalen); in trusted_update()
253 datablob[datalen] = '\0'; in trusted_update()
/Linux-v6.6/drivers/base/
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()
235 void *data, size_t datalen) in devcd_readv() argument
237 return memory_read_from_buffer(buffer, count, &offset, data, datalen); in devcd_readv()
255 void dev_coredumpv(struct device *dev, void *data, size_t datalen, in dev_coredumpv() argument
258 dev_coredumpm(dev, NULL, data, datalen, gfp, devcd_readv, devcd_freev); in dev_coredumpv()
323 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
325 void *data, size_t datalen), in dev_coredumpm() argument
351 devcd->datalen = datalen; in dev_coredumpm()
[all …]
/Linux-v6.6/security/keys/encrypted-keys/
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-v6.6/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()
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-v6.6/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 …]
/Linux-v6.6/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); \
/Linux-v6.6/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()
/Linux-v6.6/drivers/s390/scsi/
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-v6.6/net/netfilter/ipvs/
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-v6.6/drivers/i2c/busses/
Di2c-mlxcpld.c101 u8 *data, u8 datalen) in mlxcpld_i2c_read_comm() argument
105 switch (datalen) { in mlxcpld_i2c_read_comm()
120 mlxcpld_i2c_lpc_read_buf(data, datalen, addr); in mlxcpld_i2c_read_comm()
126 u8 *data, u8 datalen) in mlxcpld_i2c_write_comm() argument
130 switch (datalen) { in mlxcpld_i2c_write_comm()
145 mlxcpld_i2c_lpc_write_buf(data, datalen, addr); in mlxcpld_i2c_write_comm()
290 u8 datalen, val; in mlxcpld_i2c_wait_for_tc() local
327 &datalen, 1); in mlxcpld_i2c_wait_for_tc()
328 if (unlikely(datalen > I2C_SMBUS_BLOCK_MAX)) { in mlxcpld_i2c_wait_for_tc()
333 datalen = priv->xfer.data_len; in mlxcpld_i2c_wait_for_tc()
[all …]
/Linux-v6.6/drivers/infiniband/hw/hfi1/
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 …]

1234567891011