Home
last modified time | relevance | path

Searched refs:dst_len (Results 1 – 25 of 53) sorted by relevance

123

/linux/lib/
H A Ddecompress_unlzo.c105 u32 src_len, dst_len; in unlzo() local
181 dst_len = get_unaligned_be32(in_buf); in unlzo()
186 if (dst_len == 0) { in unlzo()
192 if (dst_len > LZO_BLOCK_SIZE) { in unlzo()
211 if (src_len <= 0 || src_len > dst_len) { in unlzo()
226 tmp = dst_len; in unlzo()
231 if (unlikely(dst_len == src_len)) in unlzo()
237 if (r != LZO_E_OK || dst_len != tmp) { in unlzo()
243 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
246 out_buf += dst_len; in unlzo()
H A Dbootconfig.c61 static void __init str_prepend(char *dst, size_t dst_len, in str_prepend() argument
64 memmove(dst + src_len, dst, dst_len + 1); in str_prepend()
88 size_t dst_len; in xbc_prepend_embedded_cmdline() local
94 dst_len = strnlen(dst, size); in xbc_prepend_embedded_cmdline()
95 if (embed_len + dst_len + 1 > size) { in xbc_prepend_embedded_cmdline()
97 embed_len, dst_len); in xbc_prepend_embedded_cmdline()
101 str_prepend(dst, dst_len, embedded_kernel_cmdline, embed_len); in xbc_prepend_embedded_cmdline()
/linux/net/ipv4/
H A Dfib_rules.c38 u8 dst_len; member
56 if (r->dst_len || r->src_len || r->dscp) in fib4_rule_matchall()
330 if (frh->dst_len) in fib4_rule_configure()
346 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
347 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure()
378 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
410 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
421 frh->dst_len = rule4->dst_len; in fib4_rule_fill()
435 if ((rule4->dst_len && in fib4_rule_fill()
/linux/drivers/block/zram/
H A Dbackend_lz4hc.c92 req->dst_len, params->level, in lz4hc_compress()
102 req->src_len, req->dst_len); in lz4hc_compress()
106 req->dst_len = ret; in lz4hc_compress()
118 req->dst_len); in lz4hc_decompress()
127 req->dst_len); in lz4hc_decompress()
H A Dbackend_lz4.c111 req->dst_len, params->level, in lz4_compress()
118 req->dst_len, params->level); in lz4_compress()
122 req->dst_len = ret; in lz4_compress()
134 req->dst_len); in lz4_decompress()
143 req->dst_len); in lz4_decompress()
H A Dbackend_842.c45 unsigned int dlen = req->dst_len; in compress_842()
51 req->dst_len = dlen; in compress_842()
58 unsigned int dlen = req->dst_len; in decompress_842()
H A Dbackend_zstd.c182 ret = zstd_compress_cctx(zctx->cctx, req->dst, req->dst_len, in zstd_compress()
186 req->dst_len, req->src, in zstd_compress()
191 req->dst_len = ret; in zstd_compress()
203 ret = zstd_decompress_dctx(zctx->dctx, req->dst, req->dst_len, in zstd_decompress()
207 req->dst_len, req->src, in zstd_decompress()
H A Dbackend_deflate.c125 deflate->avail_out = req->dst_len; in deflate_compress()
131 req->dst_len = deflate->total_out; in deflate_compress()
152 inflate->avail_out = req->dst_len; in deflate_decompress()
H A Dbackend_lzorle.c47 &req->dst_len, ctx->context); in lzorle_compress()
57 req->dst, &req->dst_len); in lzorle_decompress()
H A Dbackend_lzo.c47 &req->dst_len, ctx->context); in lzo_compress()
57 req->dst, &req->dst_len); in lzo_decompress()
/linux/include/linux/
H A Dieee80211-mesh.h426 u8 dst_len = sizeof(struct ieee80211_mesh_hwmp_perr_dst); in ieee80211_mesh_perr_size_ok() local
429 if (elen < pos - start + dst_len) in ieee80211_mesh_perr_size_ok()
432 dst_len += ((dst->flags & AE_F) ? ETH_ALEN : 0) in ieee80211_mesh_perr_size_ok()
435 needed += dst_len; in ieee80211_mesh_perr_size_ok()
436 pos += dst_len; in ieee80211_mesh_perr_size_ok()
/linux/fs/ntfs/
H A Dwof.c517 u32 src_len, void *dst, u32 dst_len) in ntfs_wof_decode() argument
519 if (src_len == dst_len) { in ntfs_wof_decode()
520 memcpy(dst, src, dst_len); in ntfs_wof_decode()
524 dst_len, ws->comp_unit); in ntfs_wof_decode()
530 u32 dst_len) in ntfs_wof_decode_page_direct() argument
545 dst_len); in ntfs_wof_decode_page_direct()
557 u32 dst_len) in ntfs_wof_decode_folios_direct() argument
581 dst_len); in ntfs_wof_decode_folios_direct()
595 u32 dst_len) in ntfs_wof_try_direct() argument
599 if (dst_len <= PAGE_SIZE - page_offset) in ntfs_wof_try_direct()
[all …]
/linux/kernel/bpf/
H A Dcrypto.c277 u32 src_len, dst_len, siv_len; in bpf_crypto_crypt() local
287 dst_len = __bpf_dynptr_size(dst); in bpf_crypto_crypt()
288 if (!src_len || !dst_len || src_len > dst_len) in bpf_crypto_crypt()
297 pdst = __bpf_dynptr_data_rw(dst, dst_len); in bpf_crypto_crypt()
/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c336 u64 dst_len; in __virtio_crypto_skcipher_do_req() local
386 dst_len = virtio_crypto_alg_sg_nents_length(req->dst); in __virtio_crypto_skcipher_do_req()
387 if (unlikely(dst_len > U32_MAX)) { in __virtio_crypto_skcipher_do_req()
393 dst_len = min_t(unsigned int, req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
395 req->cryptlen, dst_len); in __virtio_crypto_skcipher_do_req()
397 if (unlikely(req->cryptlen + dst_len + ivsize + in __virtio_crypto_skcipher_do_req()
405 cpu_to_le32((uint32_t)dst_len); in __virtio_crypto_skcipher_do_req()
H A Dvirtio_crypto_akcipher_algs.c91 akcipher_req->dst_len = min_t(unsigned int, len - sizeof(vc_req->status), in virtio_crypto_dataq_akcipher_callback()
92 akcipher_req->dst_len); in virtio_crypto_dataq_akcipher_callback()
94 vc_akcipher_req->dst_buf, akcipher_req->dst_len); in virtio_crypto_dataq_akcipher_callback()
242 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req()
246 sg_init_one(&dstdata_sg, dst_buf, req->dst_len); in __virtio_crypto_akcipher_do_req()
300 akcipher_req->para.dst_data_len = cpu_to_le32(req->dst_len); in virtio_crypto_rsa_do_req()
/linux/security/keys/
H A Ddh.c271 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
278 req->dst_len + kdfcopy->otherinfolen); in __keyctl_dh_compute()
279 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
280 ret = req->dst_len; in __keyctl_dh_compute()
/linux/net/sched/
H A Dact_tunnel_key.c86 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt() argument
121 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt()
138 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt() argument
165 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt() argument
218 int dst_len, struct netlink_ext_ack *extack) in tunnel_key_copy_opts() argument
236 dst_len, extack); in tunnel_key_copy_opts()
245 dst_len -= opt_len; in tunnel_key_copy_opts()
256 dst_len, extack); in tunnel_key_copy_opts()
268 dst_len, extack); in tunnel_key_copy_opts()
/linux/net/ipv6/
H A Dfib6_rules.c469 if (frh->dst_len) in fib6_rule_configure()
473 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
501 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
537 if (frh->dst_len && in fib6_rule_compare()
549 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
/linux/drivers/crypto/ccp/
H A Dccp-dmaengine.c367 unsigned int dst_offset, dst_len; in ccp_create_desc() local
387 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
405 if (!dst_len) { in ccp_create_desc()
414 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
419 len = min(dst_len, src_len); in ccp_create_desc()
452 dst_len -= len; in ccp_create_desc()
/linux/include/crypto/
H A Dkpp.h36 unsigned int dst_len; member
254 req->dst_len = output_len; in kpp_request_set_output()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.h22 int dst_len; member
/linux/arch/sh/kernel/
H A Dio_trapped.c184 unsigned long dst_addr, int dst_len) in copy_word() argument
203 switch (dst_len) { in copy_word()
/linux/include/uapi/linux/
H A Dfib_rules.h21 __u8 dst_len; member
/linux/samples/bpf/
H A Dxdp_router_ipv4_user.c101 int dst_len, iface, metric; in read_route() member
149 route.dst_len = atoi(dsts_len); in read_route()
169 prefix_key->prefixlen = route.dst_len; in read_route()
174 if (route.dst_len == 32) { in read_route()
/linux/tools/testing/selftests/net/
H A Drtnetlink.py147 def _wait_route_ntf(rtnl, name, dst_len, dst=None, deadline=10): argument
154 if attrs['rtm-dst-len'] != dst_len:

123