Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 25 of 178) sorted by relevance

12345678

/linux-6.1.9/drivers/crypto/nx/
Dnx-842.c88 unsigned int slen, unsigned int dlen) in update_param() argument
92 if (p->oremain < dlen) in update_param()
97 p->out += dlen; in update_param()
98 p->oremain -= dlen; in update_param()
99 p->ototal += dlen; in update_param()
165 unsigned int slen = p->iremain, dlen = p->oremain, tmplen; in compress() local
174 if (p->oremain == 0 || hdrsize + c->minimum > dlen) in compress()
195 dlen -= hdrsize; in compress()
200 dlen -= dskip; in compress()
202 if (dlen % c->multiple) in compress()
[all …]
/linux-6.1.9/crypto/
Dlz4.c54 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_compress_crypto() argument
57 slen, *dlen, ctx); in __lz4_compress_crypto()
62 *dlen = out_len; in __lz4_compress_crypto()
67 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4_scompress() argument
70 return __lz4_compress_crypto(src, slen, dst, dlen, ctx); in lz4_scompress()
74 unsigned int slen, u8 *dst, unsigned int *dlen) in lz4_compress_crypto() argument
78 return __lz4_compress_crypto(src, slen, dst, dlen, ctx->lz4_comp_mem); in lz4_compress_crypto()
82 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_decompress_crypto() argument
84 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4_decompress_crypto()
89 *dlen = out_len; in __lz4_decompress_crypto()
[all …]
Dlz4hc.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_compress_crypto() argument
56 *dlen, LZ4HC_DEFAULT_CLEVEL, ctx); in __lz4hc_compress_crypto()
61 *dlen = out_len; in __lz4hc_compress_crypto()
66 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4hc_scompress() argument
69 return __lz4hc_compress_crypto(src, slen, dst, dlen, ctx); in lz4hc_scompress()
74 unsigned int *dlen) in lz4hc_compress_crypto() argument
78 return __lz4hc_compress_crypto(src, slen, dst, dlen, in lz4hc_compress_crypto()
83 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_decompress_crypto() argument
85 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4hc_decompress_crypto()
90 *dlen = out_len; in __lz4hc_decompress_crypto()
[all …]
Dlzo.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lzo_compress() argument
55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_compress()
63 *dlen = tmp_len; in __lzo_compress()
68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_compress() argument
72 return __lzo_compress(src, slen, dst, dlen, ctx->lzo_comp_mem); in lzo_compress()
76 unsigned int slen, u8 *dst, unsigned int *dlen, in lzo_scompress() argument
79 return __lzo_compress(src, slen, dst, dlen, ctx); in lzo_scompress()
83 u8 *dst, unsigned int *dlen) in __lzo_decompress() argument
86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_decompress()
93 *dlen = tmp_len; in __lzo_decompress()
[all …]
Dlzo-rle.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lzorle_compress() argument
55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_compress()
63 *dlen = tmp_len; in __lzorle_compress()
68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzorle_compress() argument
72 return __lzorle_compress(src, slen, dst, dlen, ctx->lzorle_comp_mem); in lzorle_compress()
76 unsigned int slen, u8 *dst, unsigned int *dlen, in lzorle_scompress() argument
79 return __lzorle_compress(src, slen, dst, dlen, ctx); in lzorle_scompress()
83 u8 *dst, unsigned int *dlen) in __lzorle_decompress() argument
86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_decompress()
93 *dlen = tmp_len; in __lzorle_decompress()
[all …]
Dzstd.c151 u8 *dst, unsigned int *dlen, void *ctx) in __zstd_compress() argument
157 out_len = zstd_compress_cctx(zctx->cctx, dst, *dlen, src, slen, &params); in __zstd_compress()
160 *dlen = out_len; in __zstd_compress()
165 unsigned int slen, u8 *dst, unsigned int *dlen) in zstd_compress() argument
169 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_compress()
173 unsigned int slen, u8 *dst, unsigned int *dlen, in zstd_scompress() argument
176 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_scompress()
180 u8 *dst, unsigned int *dlen, void *ctx) in __zstd_decompress() argument
185 out_len = zstd_decompress_dctx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress()
188 *dlen = out_len; in __zstd_decompress()
[all …]
D842.c67 u8 *dst, unsigned int *dlen) in crypto842_compress() argument
71 return sw842_compress(src, slen, dst, dlen, ctx->wmem); in crypto842_compress()
76 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_scompress() argument
78 return sw842_compress(src, slen, dst, dlen, ctx); in crypto842_scompress()
83 u8 *dst, unsigned int *dlen) in crypto842_decompress() argument
85 return sw842_decompress(src, slen, dst, dlen); in crypto842_decompress()
90 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_sdecompress() argument
92 return sw842_decompress(src, slen, dst, dlen); in crypto842_sdecompress()
Ddeflate.c177 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_compress() argument
192 stream->avail_out = *dlen; in __deflate_compress()
200 *dlen = stream->total_out; in __deflate_compress()
206 unsigned int slen, u8 *dst, unsigned int *dlen) in deflate_compress() argument
210 return __deflate_compress(src, slen, dst, dlen, dctx); in deflate_compress()
214 unsigned int slen, u8 *dst, unsigned int *dlen, in deflate_scompress() argument
217 return __deflate_compress(src, slen, dst, dlen, ctx); in deflate_scompress()
221 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_decompress() argument
237 stream->avail_out = *dlen; in __deflate_decompress()
256 *dlen = stream->total_out; in __deflate_decompress()
[all …]
Dkdf_sp800108.c19 u8 *dst, unsigned int dlen) in crypto_kdf108_ctr_generate() argument
23 const unsigned int h = crypto_shash_digestsize(kmd), dlen_orig = dlen; in crypto_kdf108_ctr_generate()
30 while (dlen) { in crypto_kdf108_ctr_generate()
46 if (dlen < h) { in crypto_kdf108_ctr_generate()
52 memcpy(dst, tmpbuffer, dlen); in crypto_kdf108_ctr_generate()
61 dlen -= h; in crypto_kdf108_ctr_generate()
Dcompress.c14 u8 *dst, unsigned int *dlen) in crypto_comp_compress() argument
19 dlen); in crypto_comp_compress()
25 u8 *dst, unsigned int *dlen) in crypto_comp_decompress() argument
30 dlen); in crypto_comp_decompress()
/linux-6.1.9/drivers/crypto/cavium/zip/
Dzip_crypto.c123 u8 *dst, unsigned int *dlen, in zip_compress() argument
131 if (!zip_ctx || !src || !dst || !dlen) in zip_compress()
145 zip_ops->output_len = *dlen; in zip_compress()
151 *dlen = zip_ops->output_len; in zip_compress()
152 memcpy(dst, zip_ops->output, *dlen); in zip_compress()
159 u8 *dst, unsigned int *dlen, in zip_decompress() argument
167 if (!zip_ctx || !src || !dst || !dlen) in zip_decompress()
186 zip_ops->output_len = *dlen; in zip_decompress()
191 *dlen = zip_ops->output_len; in zip_decompress()
192 memcpy(dst, zip_ops->output, *dlen); in zip_decompress()
[all …]
Dzip_crypto.h65 u8 *dst, unsigned int *dlen);
68 u8 *dst, unsigned int *dlen);
75 u8 *dst, unsigned int *dlen, void *ctx);
78 u8 *dst, unsigned int *dlen, void *ctx);
/linux-6.1.9/fs/isofs/
Dnamei.c19 isofs_cmp(struct dentry *dentry, const char *compare, int dlen) in isofs_cmp() argument
23 qstr.len = dlen; in isofs_cmp()
25 return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen); in isofs_cmp()
55 int de_len, match, i, dlen; in isofs_find_entry() local
98 dlen = de->name_len[0]; in isofs_find_entry()
101 if (de_len < dlen + sizeof(struct iso_directory_record)) { in isofs_find_entry()
111 dlen = i; /* possibly -1 */ in isofs_find_entry()
115 dlen = get_joliet_filename(de, tmpname, dir); in isofs_find_entry()
119 dlen = get_acorn_filename(de, tmpname, dir); in isofs_find_entry()
122 dlen = isofs_name_translate(de, tmpname, dir); in isofs_find_entry()
[all …]
/linux-6.1.9/drivers/bluetooth/
Dbtmtk.c65 int err, dlen, i, status; in btmtk_setup_firmware_79xx() local
104 wmt_params.dlen = MTK_SEC_MAP_NEED_SEND_SIZE + 1; in btmtk_setup_firmware_79xx()
134 dlen = min_t(int, 250, dl_size); in btmtk_setup_firmware_79xx()
138 } else if (dl_size - dlen <= 0) { in btmtk_setup_firmware_79xx()
145 wmt_params.dlen = dlen; in btmtk_setup_firmware_79xx()
155 dl_size -= dlen; in btmtk_setup_firmware_79xx()
156 fw_ptr += dlen; in btmtk_setup_firmware_79xx()
179 int err, dlen; in btmtk_setup_firmware() local
192 wmt_params.dlen = sizeof(param); in btmtk_setup_firmware()
219 dlen = min_t(int, 250, fw_size); in btmtk_setup_firmware()
[all …]
Dh4_recv.h99 u16 dlen; in h4_recv_buf() local
104 dlen = 0; in h4_recv_buf()
108 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
109 hci_skb_expect(skb) += dlen; in h4_recv_buf()
111 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
118 dlen = get_unaligned_le16(skb->data + in h4_recv_buf()
120 hci_skb_expect(skb) += dlen; in h4_recv_buf()
122 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
133 if (!dlen) { in h4_recv_buf()
Dhci_h4.c220 u16 dlen; in h4_recv_buf() local
225 dlen = 0; in h4_recv_buf()
229 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
230 hci_skb_expect(skb) += dlen; in h4_recv_buf()
232 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
239 dlen = get_unaligned_le16(skb->data + in h4_recv_buf()
241 hci_skb_expect(skb) += dlen; in h4_recv_buf()
243 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
254 if (!dlen) { in h4_recv_buf()
/linux-6.1.9/net/netfilter/
Dnf_conntrack_ftp.c109 get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, u_int8_t term) in get_ipv6_addr() argument
112 int ret = in6_pton(src, min_t(size_t, dlen, 0xffff), (u8 *)dst, term, &end); in get_ipv6_addr()
118 static int try_number(const char *data, size_t dlen, u_int32_t array[], in try_number() argument
126 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number()
150 static int try_rfc959(const char *data, size_t dlen, in try_rfc959() argument
157 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959()
177 static int try_rfc1123(const char *data, size_t dlen, in try_rfc1123() argument
182 for (i = 0; i < dlen; i++) in try_rfc1123()
186 if (i == dlen) in try_rfc1123()
191 return try_rfc959(data + i, dlen - i, cmd, 0, offset); in try_rfc1123()
[all …]
/linux-6.1.9/security/keys/
Ddh.c143 ssize_t dlen; in __keyctl_dh_compute() local
195 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
196 if (dlen < 0) { in __keyctl_dh_compute()
197 ret = dlen; in __keyctl_dh_compute()
200 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
202 dlen = dh_data_from_key(pcopy.base, &dh_inputs.g); in __keyctl_dh_compute()
203 if (dlen < 0) { in __keyctl_dh_compute()
204 ret = dlen; in __keyctl_dh_compute()
207 dh_inputs.g_size = dlen; in __keyctl_dh_compute()
209 dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); in __keyctl_dh_compute()
[all …]
/linux-6.1.9/include/crypto/
Drng.h44 u8 *dst, unsigned int dlen);
138 u8 *dst, unsigned int dlen) in crypto_rng_generate() argument
144 ret = crypto_rng_alg(tfm)->generate(tfm, src, slen, dst, dlen); in crypto_rng_generate()
145 crypto_stats_rng_generate(alg, dlen, ret); in crypto_rng_generate()
161 u8 *rdata, unsigned int dlen) in crypto_rng_get_bytes() argument
163 return crypto_rng_generate(tfm, NULL, 0, rdata, dlen); in crypto_rng_get_bytes()
/linux-6.1.9/include/crypto/internal/
Dscompress.h32 unsigned int slen, u8 *dst, unsigned int *dlen,
35 unsigned int slen, u8 *dst, unsigned int *dlen,
78 u8 *dst, unsigned int *dlen, void *ctx) in crypto_scomp_compress() argument
80 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress()
85 u8 *dst, unsigned int *dlen, in crypto_scomp_decompress() argument
88 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()
/linux-6.1.9/net/xfrm/
Dxfrm_ipcomp.c42 int dlen = IPCOMP_SCRATCH_SIZE; in ipcomp_decompress() local
46 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
52 if (dlen < (plen + sizeof(struct ip_comp_hdr))) in ipcomp_decompress()
55 len = dlen - plen; in ipcomp_decompress()
64 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress()
80 if (dlen < len) in ipcomp_decompress()
81 len = dlen; in ipcomp_decompress()
129 int dlen = IPCOMP_SCRATCH_SIZE; in ipcomp_compress() local
138 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
142 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) { in ipcomp_compress()
[all …]
/linux-6.1.9/lib/reed_solomon/
Dtest_rslib.c157 int dlen = len - nroots; in get_rcw_we() local
166 for (i = 0; i < dlen; i++) in get_rcw_we()
169 memset(c + dlen, 0, nroots * sizeof(*c)); in get_rcw_we()
170 encode_rs16(rs, c, dlen, c + dlen, 0); in get_rcw_we()
264 int dlen = len - rs->codec->nroots; in test_uc() local
279 derrs = decode_rs16(rs, r, r + dlen, dlen, in test_uc()
285 derrs = decode_rs16(rs, NULL, NULL, dlen, in test_uc()
290 derrs = decode_rs16(rs, r, r + dlen, dlen, in test_uc()
371 int dlen = len - nroots; in test_bc() local
379 derrs = decode_rs16(rs, r, r + dlen, dlen, in test_bc()
[all …]
/linux-6.1.9/net/ife/
Dife.c127 u16 *dlen, u16 *totlen) in ife_tlv_meta_decode() argument
135 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode()
139 *totlen = nla_total_size(*dlen); in ife_tlv_meta_decode()
158 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) in ife_tlv_meta_encode() argument
161 u16 totlen = nla_total_size(dlen); /*alignment + hdr */ in ife_tlv_meta_encode()
163 u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); in ife_tlv_meta_encode()
167 memcpy(dptr, dval, dlen); in ife_tlv_meta_encode()
/linux-6.1.9/include/net/
Dife.h15 u16 *dlen, u16 *totlen);
16 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
33 static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, in ife_tlv_meta_decode() argument
39 static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, in ife_tlv_meta_encode() argument
/linux-6.1.9/drivers/block/paride/
Dpg.c213 int dlen; /* transfer size requested */ member
320 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) in pg_command() argument
331 write_reg(dev, 4, dlen % 256); in pg_command()
332 write_reg(dev, 5, dlen / 256); in pg_command()
346 printk("%s: Command sent, dlen=%d packet= ", dev->name, dlen); in pg_command()
364 dev->dlen = 0; in pg_completion()
377 dev->dlen += (1 - p) * d; in pg_completion()
592 if (hdr.dlen < 0 || hdr.dlen > PG_MAX_DATA) in pg_write()
611 if (pg_command(dev, hdr.packet, hdr.dlen, jiffies + PG_TMO)) { in pg_write()
644 hdr.dlen = dev->dlen; in pg_read()
[all …]

12345678