Home
last modified time | relevance | path

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

1234567

/linux/drivers/crypto/nx/
H A 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/crypto/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Ddeflate.c160 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_compress() argument
175 stream->avail_out = *dlen; in __deflate_compress()
183 *dlen = stream->total_out; in __deflate_compress()
189 unsigned int slen, u8 *dst, unsigned int *dlen) in deflate_compress() argument
193 return __deflate_compress(src, slen, dst, dlen, dctx); in deflate_compress()
197 unsigned int slen, u8 *dst, unsigned int *dlen, in deflate_scompress() argument
200 return __deflate_compress(src, slen, dst, dlen, ctx); in deflate_scompress()
204 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_decompress() argument
220 stream->avail_out = *dlen; in __deflate_decompress()
239 *dlen = stream->total_out; in __deflate_decompress()
[all …]
H A 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()
H A Dscompress.c121 unsigned int dlen; in scomp_acomp_comp_decomp() local
127 if (req->dst && !req->dlen) in scomp_acomp_comp_decomp()
130 if (!req->dlen || req->dlen > SCOMP_SCRATCH_SIZE) in scomp_acomp_comp_decomp()
131 req->dlen = SCOMP_SCRATCH_SIZE; in scomp_acomp_comp_decomp()
133 dlen = req->dlen; in scomp_acomp_comp_decomp()
153 dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
156 dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
159 req->dst = sgl_alloc(req->dlen, GFP_ATOMIC, NULL); in scomp_acomp_comp_decomp()
164 } else if (req->dlen > dlen) { in scomp_acomp_comp_decomp()
170 req->dlen, 1); in scomp_acomp_comp_decomp()
[all …]
H A 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()
H A 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/drivers/crypto/cavium/zip/
H A 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 …]
/linux/fs/isofs/
H A 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/drivers/crypto/intel/qat/qat_common/
H A Dqat_comp_algs.c73 unsigned int dlen = CRYPTO_ACOMP_DST_MAX; in qat_comp_resubmit() local
78 areq->dlen = dlen; in qat_comp_resubmit()
82 qat_req->dir == COMPRESSION ? "comp" : "decomp", dlen); in qat_comp_resubmit()
84 ret = qat_bl_realloc_map_new_dst(accel_dev, &areq->dst, dlen, qat_bufs, in qat_comp_resubmit()
92 qat_comp_override_dst(req, dfbuf, dlen); in qat_comp_resubmit()
130 areq->slen, areq->dlen, consumed, produced, cmp_err, xlt_err); in qat_comp_generic_callback()
132 areq->dlen = 0; in qat_comp_generic_callback()
171 areq->dlen = produced; in qat_comp_generic_callback()
236 int dlen = areq->dlen - dhdr - dftr; in qat_comp_alg_compress_decompress() local
248 if (areq->dst && !dlen) in qat_comp_alg_compress_decompress()
[all …]
H A Dqat_comp_req.h12 u64 dst, u32 dlen, u64 opaque) in qat_comp_create_req() argument
22 fw_req->comn_mid.dst_length = dlen; in qat_comp_create_req()
25 req_pars->out_buffer_sz = dlen; in qat_comp_create_req()
28 static inline void qat_comp_override_dst(void *req, u64 dst, u32 dlen) in qat_comp_override_dst() argument
34 fw_req->comn_mid.dst_length = dlen; in qat_comp_override_dst()
35 req_pars->out_buffer_sz = dlen; in qat_comp_override_dst()
40 u64 dst, u32 dlen, in qat_comp_create_compression_req() argument
43 qat_comp_create_req(ctx, req, src, slen, dst, dlen, opaque); in qat_comp_create_compression_req()
48 u64 dst, u32 dlen, in qat_comp_create_decompression_req() argument
54 qat_comp_create_req(fw_tmpl, req, src, slen, dst, dlen, opaque); in qat_comp_create_decompression_req()
/linux/net/netfilter/
H A 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/drivers/bluetooth/
H A Dh4_recv.h106 u16 dlen; in h4_recv_buf() local
111 dlen = 0; in h4_recv_buf()
115 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
116 hci_skb_expect(skb) += dlen; in h4_recv_buf()
118 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
125 dlen = get_unaligned_le16(skb->data + in h4_recv_buf()
127 hci_skb_expect(skb) += dlen; in h4_recv_buf()
129 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
140 if (!dlen) { in h4_recv_buf()
H A 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/security/keys/
H A Ddh.c127 ssize_t dlen; in __keyctl_dh_compute() local
179 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
180 if (dlen < 0) { in __keyctl_dh_compute()
181 ret = dlen; in __keyctl_dh_compute()
184 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
186 dlen = dh_data_from_key(pcopy.base, &dh_inputs.g); in __keyctl_dh_compute()
187 if (dlen < 0) { in __keyctl_dh_compute()
188 ret = dlen; in __keyctl_dh_compute()
191 dh_inputs.g_size = dlen; in __keyctl_dh_compute()
193 dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); in __keyctl_dh_compute()
[all …]
/linux/lib/reed_solomon/
H A 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/include/crypto/internal/
H A Dscompress.h37 unsigned int slen, u8 *dst, unsigned int *dlen,
40 unsigned int slen, u8 *dst, unsigned int *dlen,
87 u8 *dst, unsigned int *dlen, void *ctx) in crypto_scomp_compress() argument
89 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress()
94 u8 *dst, unsigned int *dlen, in crypto_scomp_decompress() argument
97 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()
/linux/net/xfrm/
H A 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()
78 if (dlen < len) in ipcomp_decompress()
79 len = dlen; in ipcomp_decompress()
126 int dlen = IPCOMP_SCRATCH_SIZE; in ipcomp_compress() local
135 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
139 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) { in ipcomp_compress()
[all …]
/linux/drivers/block/zram/
H A Dbackend_842.c35 unsigned int dlen = req->dst_len; in compress_842() local
38 ret = sw842_compress(req->src, req->src_len, req->dst, &dlen, in compress_842()
41 req->dst_len = dlen; in compress_842()
48 unsigned int dlen = req->dst_len; in decompress_842() local
50 return sw842_decompress(req->src, req->src_len, req->dst, &dlen); in decompress_842()
/linux/net/ife/
H A Dife.c128 u16 *dlen, u16 *totlen) in ife_tlv_meta_decode() argument
136 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode()
140 *totlen = nla_total_size(*dlen); in ife_tlv_meta_decode()
159 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) in ife_tlv_meta_encode() argument
162 u16 totlen = nla_total_size(dlen); /*alignment + hdr */ in ife_tlv_meta_encode()
164 u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); in ife_tlv_meta_encode()
168 memcpy(dptr, dval, dlen); in ife_tlv_meta_encode()
/linux/include/crypto/
H A Drng.h46 u8 *dst, unsigned int dlen);
144 u8 *dst, unsigned int dlen) in crypto_rng_generate() argument
146 return crypto_rng_alg(tfm)->generate(tfm, src, slen, dst, dlen); 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()

1234567