Home
last modified time | relevance | path

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

123456789

/openbmc/qemu/crypto/
H A Dder.c31 size_t dlen; member
122 *dlen -= nbytes; in qcrypto_der_cut_nbytes()
183 if (byte_count > *dlen) { in qcrypto_der_extract_definite_data()
192 if (vlen > *dlen) { in qcrypto_der_extract_definite_data()
211 if (*dlen < 1) { in qcrypto_der_extract_data()
236 if (*dlen < 1) { in qcrypto_der_decode_tlv()
255 *dlen = saved_dlen; in qcrypto_der_decode_tlv()
321 node->dlen = dlen; in qcrypto_der_encode_prim()
326 node->parent->dlen += 1 + nbytes_len + dlen; in qcrypto_der_encode_prim()
359 cons_node->parent->dlen += 1 + nbytes_len + cons_node->dlen; in qcrypto_der_encode_cons_end()
[all …]
H A Dder.h58 size_t *dlen,
80 size_t *dlen,
103 size_t *dlen,
126 size_t *dlen,
149 size_t *dlen,
174 size_t *dlen, int tag_id,
/openbmc/u-boot/fs/btrfs/
H A Dextent-io.c26 if (offset > dlen) in btrfs_read_extent_inline()
30 size = dlen - offset; in btrfs_read_extent_inline()
37 if (dlen > orig_size) { in btrfs_read_extent_inline()
38 dbuf = malloc(dlen); in btrfs_read_extent_inline()
49 if (dlen > orig_size) { in btrfs_read_extent_inline()
59 if (dlen > orig_size) in btrfs_read_extent_inline()
75 if (offset > dlen) in btrfs_read_extent_reg()
79 size = dlen - offset; in btrfs_read_extent_reg()
93 cbuf = malloc_cache_aligned(dlen > size ? clen + dlen : clen); in btrfs_read_extent_reg()
97 if (dlen > orig_size) in btrfs_read_extent_reg()
[all …]
H A Dcompression.c13 static u32 decompress_lzo(const u8 *cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_lzo() argument
27 if (tot_len == 0 && dlen) in decompress_lzo()
44 out_len = dlen; in decompress_lzo()
52 dlen -= out_len; in decompress_lzo()
63 static u32 decompress_zlib(const u8 *_cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_zlib() argument
77 stream.avail_out = dlen; in decompress_zlib()
111 u32 btrfs_decompress(u8 type, const char *c, u32 clen, char *d, u32 dlen) in btrfs_decompress() argument
122 res = dlen < clen ? dlen : clen; in btrfs_decompress()
126 return decompress_zlib(cbuf, clen, dbuf, dlen); in btrfs_decompress()
128 return decompress_lzo(cbuf, clen, dbuf, dlen); in btrfs_decompress()
/openbmc/linux/drivers/crypto/nx/
H A Dnx-842.c97 p->out += dlen; in update_param()
195 dlen -= hdrsize; in compress()
200 dlen -= dskip; in compress()
203 dlen = round_down(dlen, c->multiple); in compress()
208 dlen = round_down(dlen, c->multiple); in compress()
215 tmplen = dlen; in compress()
270 *dlen = 0; in nx842_crypto_compress()
382 dlen = round_down(dlen, c->multiple); in decompress()
393 tmplen = dlen; in decompress()
419 dlen -= ignore; in decompress()
[all …]
/openbmc/linux/crypto/
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
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()
94 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4_sdecompress() argument
[all …]
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
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()
95 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4hc_sdecompress() argument
[all …]
H A Dlzo.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lzo_compress() argument
63 *dlen = tmp_len; in __lzo_compress()
68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_compress() argument
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
93 *dlen = tmp_len; in __lzo_decompress()
98 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_decompress() argument
100 return __lzo_decompress(src, slen, dst, dlen); in lzo_decompress()
104 unsigned int slen, u8 *dst, unsigned int *dlen, in lzo_sdecompress() argument
[all …]
H A Dlzo-rle.c53 u8 *dst, unsigned int *dlen, void *ctx) in __lzorle_compress() argument
63 *dlen = tmp_len; in __lzorle_compress()
68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzorle_compress() argument
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
93 *dlen = tmp_len; in __lzorle_decompress()
98 unsigned int slen, u8 *dst, unsigned int *dlen) in lzorle_decompress() argument
100 return __lzorle_decompress(src, slen, dst, dlen); in lzorle_decompress()
104 unsigned int slen, u8 *dst, unsigned int *dlen, in lzorle_sdecompress() argument
[all …]
H A Dzstd.c151 u8 *dst, unsigned int *dlen, void *ctx) in __zstd_compress() argument
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
188 *dlen = out_len; in __zstd_decompress()
193 unsigned int slen, u8 *dst, unsigned int *dlen) in zstd_decompress() argument
197 return __zstd_decompress(src, slen, dst, dlen, ctx); in zstd_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 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 …]
H A Dscompress.c120 unsigned int dlen; in scomp_acomp_comp_decomp() local
126 if (req->dst && !req->dlen) in scomp_acomp_comp_decomp()
129 if (!req->dlen || req->dlen > SCOMP_SCRATCH_SIZE) in scomp_acomp_comp_decomp()
130 req->dlen = SCOMP_SCRATCH_SIZE; in scomp_acomp_comp_decomp()
132 dlen = req->dlen; in scomp_acomp_comp_decomp()
140 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
143 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp()
146 req->dst = sgl_alloc(req->dlen, GFP_ATOMIC, NULL); in scomp_acomp_comp_decomp()
151 } else if (req->dlen > dlen) { in scomp_acomp_comp_decomp()
155 scatterwalk_map_and_copy(scratch->dst, req->dst, 0, req->dlen, in scomp_acomp_comp_decomp()
/openbmc/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
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()
222 u8 *dst, unsigned int *dlen) in zip_comp_compress() argument
[all …]
/openbmc/linux/fs/isofs/
H A Dnamei.c23 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()
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()
131 if (dlen > 0 && in isofs_find_entry()
136 if (dpnt && (dlen > 1 || dpnt[0] > 1)) in isofs_find_entry()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-xbzrle.c46 int dlen = 0; in test_encode_decode_zero() local
57 dlen = xbzrle_encode_buffer(buffer, buffer, XBZRLE_PAGE_SIZE, in test_encode_decode_zero()
59 g_assert(dlen == 0); in test_encode_decode_zero()
70 int dlen = 0; in test_encode_decode_unchanged() local
81 dlen = xbzrle_encode_buffer(test, test, XBZRLE_PAGE_SIZE, in test_encode_decode_unchanged()
83 g_assert(dlen == 0); in test_encode_decode_unchanged()
94 int dlen = 0, rc = 0; in test_encode_decode_1_byte() local
99 dlen = xbzrle_encode_buffer(buffer, test, XBZRLE_PAGE_SIZE, in test_encode_decode_1_byte()
101 g_assert(dlen == (uleb128_encode_small(&buf[0], 4095) + 2)); in test_encode_decode_1_byte()
139 int dlen = 0; in encode_decode_range() local
[all …]
H A Dtest-crypto-der.c182 static int qcrypto_wrapped_decode_ctx_tag0(const uint8_t **data, size_t *dlen, in qcrypto_wrapped_decode_ctx_tag0() argument
186 return qcrypto_der_decode_ctx_tag(data, dlen, 0, cb, opaque, errp); in qcrypto_wrapped_decode_ctx_tag0()
189 static int qcrypto_wrapped_decode_ctx_tag1(const uint8_t **data, size_t *dlen, in qcrypto_wrapped_decode_ctx_tag1() argument
193 return qcrypto_der_decode_ctx_tag(data, dlen, 1, cb, opaque, errp); in qcrypto_wrapped_decode_ctx_tag1()
198 int (*action) (const uint8_t **data, size_t *dlen,
217 size_t dlen; member
238 ctx[seq_depth].dlen = test_data->test_data_len; in test_ans1()
249 g_assert(checker->action(&c->data, &c->dlen, checker_callback, in test_ans1()
255 ctx[seq_depth].dlen = checker->exp_vlen; in test_ans1()
257 while (seq_depth != 0 && ctx[seq_depth].dlen == 0) { in test_ans1()
[all …]
/openbmc/qemu/migration/
H A Dxbzrle.c24 uint8_t *dst, int dlen) in xbzrle_encode_buffer_avx512() argument
55 if (d + 2 > dlen) { in xbzrle_encode_buffer_avx512()
61 if (d + nzrun_len > dlen) { in xbzrle_encode_buffer_avx512()
115 if (d + nzrun_len > dlen) { in xbzrle_encode_buffer_avx512()
130 if (d + nzrun_len > dlen) { in xbzrle_encode_buffer_avx512()
156 uint8_t *dst, int dlen) in xbzrle_encode_buffer() argument
175 uint8_t *dst, int dlen) in xbzrle_encode_buffer() argument
187 if (d + 2 > dlen) { in xbzrle_encode_buffer()
230 if (d + 2 > dlen) { in xbzrle_encode_buffer()
265 if (d + nzrun_len > dlen) { in xbzrle_encode_buffer()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_ftp.c150 static int try_rfc959(const char *data, size_t dlen, in try_rfc959() argument
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()
201 for (i = start; i < dlen; i++) { in get_port()
229 if (dlen <= 3) { in try_eprt()
257 length = get_ipv6_addr(data + 3, dlen - 3, in try_eprt()
276 if (dlen <= 3) return 0; in try_epsv_response()
300 if (dlen <= plen) { in find_pattern()
302 if (strncasecmp(data, pattern, dlen) == 0) in find_pattern()
[all …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_comp_algs.c87 areq->dlen = dlen; in qat_comp_resubmit()
151 areq->dlen += QAT_RFC_1950_HDR_SIZE; in qat_comp_rfc1950_callback()
204 areq->dlen = 0; in qat_comp_generic_callback()
243 areq->dlen = produced; in qat_comp_generic_callback()
320 int dlen = areq->dlen - dhdr - dftr; in qat_comp_alg_compress_decompress() local
332 if (areq->dst && !dlen) in qat_comp_alg_compress_decompress()
350 dlen -= dhdr + dftr; in qat_comp_alg_compress_decompress()
351 areq->dlen = dlen; in qat_comp_alg_compress_decompress()
373 qat_req->actual_dlen = dlen; in qat_comp_alg_compress_decompress()
374 dlen += ovf_buff_sz; 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()
/openbmc/linux/drivers/bluetooth/
H A 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()
H A Dbtmtk.c116 int err, dlen, i, status; in btmtk_setup_firmware_79xx() local
200 wmt_params.dlen = dlen; in btmtk_setup_firmware_79xx()
210 dl_size -= dlen; in btmtk_setup_firmware_79xx()
211 fw_ptr += dlen; in btmtk_setup_firmware_79xx()
234 int err, dlen; in btmtk_setup_firmware() local
247 wmt_params.dlen = sizeof(param); in btmtk_setup_firmware()
277 if (fw_size - dlen <= 0) in btmtk_setup_firmware()
283 wmt_params.dlen = dlen; in btmtk_setup_firmware()
293 fw_size -= dlen; in btmtk_setup_firmware()
294 fw_ptr += dlen; in btmtk_setup_firmware()
[all …]
/openbmc/linux/security/keys/
H A Ddh.c127 ssize_t dlen; in __keyctl_dh_compute() local
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()
194 if (dlen < 0) { in __keyctl_dh_compute()
195 ret = dlen; in __keyctl_dh_compute()
[all …]
/openbmc/qemu/hw/i2c/
H A Dbcm2835_i2c.c101 readval = s->dlen; in bcm2835_i2c_read()
110 s->dlen -= 1; in bcm2835_i2c_read()
112 if (s->dlen == 0) { in bcm2835_i2c_read()
153 if (s->dlen == 0) { in bcm2835_i2c_write()
163 s->dlen = s->last_dlen; in bcm2835_i2c_write()
171 s->dlen = writeval; in bcm2835_i2c_write()
182 s->dlen -= 1; in bcm2835_i2c_write()
188 if (s->dlen == 0) { in bcm2835_i2c_write()
237 s->dlen = 0x0; in bcm2835_i2c_reset()
251 VMSTATE_UINT32(dlen, BCM2835I2CState),

123456789