Searched refs:dst_len (Results 1 - 25 of 85) sorted by relevance

1234

/linux-master/include/linux/
H A Dlzo.h25 unsigned char *dst, size_t *dst_len, void *wrkmem);
29 unsigned char *dst, size_t *dst_len, void *wrkmem);
33 unsigned char *dst, size_t *dst_len);
/linux-master/lib/
H A Ddecompress_unlzo.c105 u32 src_len, dst_len; local
181 dst_len = get_unaligned_be32(in_buf);
186 if (dst_len == 0) {
192 if (dst_len > LZO_BLOCK_SIZE) {
211 if (src_len <= 0 || src_len > dst_len) {
226 tmp = dst_len;
231 if (unlikely(dst_len == src_len))
237 if (r != LZO_E_OK || dst_len != tmp) {
243 if (flush && flush(out_buf, dst_len) != dst_len)
[all...]
/linux-master/fs/bcachefs/
H A Dcompress.c157 size_t dst_len = crc.uncompressed_size << 9; local
167 src_len, dst_len, dst_len);
168 if (ret != dst_len)
176 .avail_out = dst_len,
202 dst_data, dst_len,
207 if (ret != dst_len)
227 size_t dst_len = crc->uncompressed_size << 9; local
239 data = __bounce_alloc(c, dst_len, WRITE);
272 size_t dst_len local
295 attempt_compress(struct bch_fs *c, void *workspace, void *dst, size_t dst_len, void *src, size_t src_len, struct bch_compression_opt compression) argument
385 __bio_compress(struct bch_fs *c, struct bio *dst, size_t *dst_len, struct bio *src, size_t *src_len, struct bch_compression_opt compression) argument
482 bch2_bio_compress(struct bch_fs *c, struct bio *dst, size_t *dst_len, struct bio *src, size_t *src_len, unsigned compression_opt) argument
[all...]
/linux-master/net/smc/
H A Dsmc_tx.c358 size_t dst_off, size_t dst_len,
366 int src_len_sum = src_len, dst_len_sum = dst_len;
377 if (dst_len < link->qp_attr.cap.max_inline_data) {
398 if (src_len_sum == dst_len)
401 src_len = dst_len - src_len; /* remainder */
411 dst_len = len - dst_len; /* remainder */
412 dst_len_sum += dst_len;
413 src_len = min_t(int, dst_len, conn->sndbuf_desc->len -
423 size_t dst_off, size_t dst_len)
356 smcr_tx_rdma_writes(struct smc_connection *conn, size_t len, size_t src_off, size_t src_len, size_t dst_off, size_t dst_len, struct smc_rdma_wr *wr_rdma_buf) argument
421 smcd_tx_rdma_writes(struct smc_connection *conn, size_t len, size_t src_off, size_t src_len, size_t dst_off, size_t dst_len) argument
466 size_t len, src_len, dst_off, dst_len; /* current chunk values */ local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.h22 int dst_len; member in struct:lag_mp::__anon15
H A Dmp.c103 static void mlx5_lag_fib_set(struct lag_mp *mp, struct fib_info *fi, u32 dst, int dst_len) argument
108 mp->fib.dst_len = dst_len;
167 (mp->fib.dst != fen_info->dst || mp->fib.dst_len != fen_info->dst_len) &&
176 if (mp->fib.dst == fen_info->dst && mp->fib.dst_len == fen_info->dst_len)
193 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len);
208 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len);
/linux-master/crypto/
H A Drsa-pkcs1pad.c209 len = req_ctx->child_req.dst_len;
229 req->dst_len = ctx->key_size;
263 if (req->dst_len < ctx->key_size) {
264 req->dst_len = ctx->key_size;
288 req->dst, ctx->key_size - 1, req->dst_len);
302 unsigned int dst_len; local
310 dst_len = req_ctx->child_req.dst_len;
311 if (dst_len < ctx->key_size - 1)
315 if (dst_len
464 unsigned int dst_len; local
[all...]
H A Djitterentropy.h11 int jent_read_random_block(void *hash_state, char *dst, unsigned int dst_len);
H A Decrdsa.c77 unsigned int ndigits = req->dst_len / sizeof(u64);
96 req->dst_len != ctx->digest_len ||
97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) ||
99 req->dst_len * 2 != req->src_len ||
101 WARN_ON(req->dst_len > sizeof(digest)))
108 req->src_len + req->dst_len),
109 digest, req->dst_len, req->src_len);
H A Decdsa.c154 buffer = kmalloc(req->src_len + req->dst_len, GFP_KERNEL);
159 sg_nents_for_len(req->src, req->src_len + req->dst_len),
160 buffer, req->src_len + req->dst_len, 0);
168 diff = keylen - req->dst_len;
172 memcpy(&rawhash[diff], buffer + req->src_len, req->dst_len);
H A Dcurve25519-generic.c48 nbytes = min_t(size_t, CURVE25519_KEY_SIZE, req->dst_len);
H A Djitterentropy-kcapi.c173 int jent_read_random_block(void *hash_state, char *dst, unsigned int dst_len) argument
183 if (!ret && dst_len)
184 memcpy(dst, jent_block, dst_len);
/linux-master/drivers/block/zram/
H A Dzcomp.h37 const void *src, unsigned int *dst_len);
H A Dzcomp.c119 const void *src, unsigned int *dst_len)
135 *dst_len = PAGE_SIZE * 2;
139 zstrm->buffer, dst_len);
145 unsigned int dst_len = PAGE_SIZE; local
149 dst, &dst_len);
118 zcomp_compress(struct zcomp_strm *zstrm, const void *src, unsigned int *dst_len) argument
/linux-master/net/ipv4/
H A Dfib_rules.c37 u8 dst_len; member in struct:fib4_rule
53 if (r->dst_len || r->src_len || r->dscp)
263 if (frh->dst_len)
279 rule4->dst_len = frh->dst_len;
280 rule4->dstmask = inet_make_mask(rule4->dst_len);
320 if (frh->dst_len && (rule4->dst_len != frh->dst_len))
334 if (frh->dst_len
[all...]
H A Dfib_lookup.h44 void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len,
/linux-master/lib/crypto/
H A Dchacha20poly1305.c130 size_t dst_len; local
148 dst_len = src_len - POLY1305_DIGEST_SIZE;
149 poly1305_update(&poly1305_state, src, dst_len);
150 if (dst_len & 0xf)
151 poly1305_update(&poly1305_state, pad0, 0x10 - (dst_len & 0xf));
154 b.lens[1] = cpu_to_le64(dst_len);
159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE);
161 chacha20_crypt(chacha_state, dst, src, dst_len);
/linux-master/include/uapi/linux/
H A Dfib_rules.h21 __u8 dst_len; member in struct:fib_rule_hdr
/linux-master/security/keys/
H A Ddh.c271 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo,
278 req->dst_len + kdfcopy->otherinfolen);
279 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) {
280 ret = req->dst_len;
/linux-master/include/crypto/
H A Dakcipher.h20 * total size of @src is @src_len + @dst_len.
25 * @dst_len: Size of @dst buffer (for all ops except verify).
40 unsigned int dst_len; member in struct:akcipher_request
81 * algorithm. In case of error, where the dst_len was insufficient,
82 * the req->dst_len will be updated to the size required for the
88 * algorithm. In case of error, where the dst_len was insufficient,
89 * the req->dst_len will be updated to the size required for the
92 * algorithm. In case of error, where the dst_len was insufficient,
93 * the req->dst_len will be updated to the size required for the
273 * @dst_len
276 akcipher_request_set_crypt(struct akcipher_request *req, struct scatterlist *src, struct scatterlist *dst, unsigned int src_len, unsigned int dst_len) argument
[all...]
/linux-master/drivers/misc/mei/
H A Dvsc-tp.c161 int ret, offset = 0, cpy_len, src_len, dst_len = sizeof(struct vsc_tp_packet);
189 cpy_len = min(src_len, dst_len);
195 dst_len -= cpy_len;
206 dst_len = min(ilen, le16_to_cpu(ack.len));
209 dst_len = sizeof(recv_crc);
225 dst_len = sizeof(recv_crc);
140 int ret, offset = 0, cpy_len, src_len, dst_len = sizeof(struct vsc_tp_packet); local
/linux-master/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c337 u64 dst_len; local
387 dst_len = virtio_crypto_alg_sg_nents_length(req->dst);
388 if (unlikely(dst_len > U32_MAX)) {
389 pr_err("virtio_crypto: The dst_len is beyond U32_MAX\n");
394 dst_len = min_t(unsigned int, req->cryptlen, dst_len);
395 pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n",
396 req->cryptlen, dst_len);
398 if (unlikely(req->cryptlen + dst_len + ivsize +
406 cpu_to_le32((uint32_t)dst_len);
[all...]
H A Dvirtio_crypto_akcipher_algs.c99 akcipher_req->dst_len = len - sizeof(vc_req->status);
101 vc_akcipher_req->dst_buf, akcipher_req->dst_len);
234 unsigned int src_len = verify ? req->src_len + req->dst_len : req->src_len;
256 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node);
260 sg_init_one(&dstdata_sg, dst_buf, req->dst_len);
314 akcipher_req->para.dst_data_len = cpu_to_le32(req->dst_len);
/linux-master/drivers/crypto/ccp/
H A Dccp-dmaengine.c367 unsigned int dst_offset, dst_len; local
387 dst_len = sg_dma_len(dst_sg);
405 if (!dst_len) {
414 dst_len = sg_dma_len(dst_sg);
419 len = min(dst_len, src_len);
452 dst_len -= len;
/linux-master/net/ipv6/
H A Dfib6_rules.c375 if (frh->dst_len)
379 rule6->dst.plen = frh->dst_len;
409 if (frh->dst_len && (rule6->dst.plen != frh->dst_len))
419 if (frh->dst_len &&
431 frh->dst_len = rule6->dst.plen;

Completed in 372 milliseconds

1234