Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/base/regmap/
Dregcache-lzo.c26 size_t dst_len; member
53 if (ret != LZO_E_OK || compress_size > lzo_ctx->dst_len) in regcache_lzo_compress()
55 lzo_ctx->dst_len = compress_size; in regcache_lzo_compress()
61 size_t dst_len; in regcache_lzo_decompress() local
64 dst_len = lzo_ctx->dst_len; in regcache_lzo_decompress()
66 lzo_ctx->dst, &dst_len); in regcache_lzo_decompress()
67 if (ret != LZO_E_OK || dst_len != lzo_ctx->dst_len) in regcache_lzo_decompress()
77 lzo_ctx->dst_len = lzo1x_worst_compress(PAGE_SIZE); in regcache_lzo_compress_cache_block()
78 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_compress_cache_block()
80 lzo_ctx->dst_len = 0; in regcache_lzo_compress_cache_block()
[all …]
/linux-4.1.27/lib/
Ddecompress_unlzo.c120 u32 src_len, dst_len; in unlzo() local
196 dst_len = get_unaligned_be32(in_buf); in unlzo()
201 if (dst_len == 0) { in unlzo()
207 if (dst_len > LZO_BLOCK_SIZE) { in unlzo()
226 if (src_len <= 0 || src_len > dst_len) { in unlzo()
241 tmp = dst_len; in unlzo()
246 if (unlikely(dst_len == src_len)) in unlzo()
252 if (r != LZO_E_OK || dst_len != tmp) { in unlzo()
258 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
261 out_buf += dst_len; in unlzo()
/linux-4.1.27/net/decnet/
Ddn_rules.c42 unsigned char dst_len; member
148 if (frh->dst_len) in dn_fib_rule_configure()
153 r->dst_len = frh->dst_len; in dn_fib_rule_configure()
154 r->dstmask = dnet_make_mask(r->dst_len); in dn_fib_rule_configure()
168 if (frh->dst_len && (r->dst_len != frh->dst_len)) in dn_fib_rule_compare()
174 if (frh->dst_len && (r->dst != nla_get_le16(tb[FRA_DST]))) in dn_fib_rule_compare()
203 frh->dst_len = r->dst_len; in dn_fib_rule_fill()
207 if ((r->dst_len && in dn_fib_rule_fill()
Ddn_fib.c551 static void fib_magic(int cmd, int type, __le16 dst, int dst_len, struct dn_ifaddr *ifa) in fib_magic() argument
598 req.rtm.rtm_dst_len = dst_len; in fib_magic()
Ddn_table.c300 u32 tb_id, u8 type, u8 scope, void *dst, int dst_len, in dn_fib_dump_info() argument
312 rtm->rtm_dst_len = dst_len; in dn_fib_dump_info()
/linux-4.1.27/net/ceph/
Dcrypto.c164 void *dst, size_t *dst_len, in ceph_aes_encrypt() argument
182 *dst_len = src_len + zero_padding; in ceph_aes_encrypt()
187 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt()
223 size_t *dst_len, in ceph_aes_encrypt2() argument
242 *dst_len = src1_len + src2_len + zero_padding; in ceph_aes_encrypt2()
248 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt2()
286 void *dst, size_t *dst_len, in ceph_aes_decrypt() argument
303 sg_set_buf(&sg_out[0], dst, *dst_len); in ceph_aes_decrypt()
326 if (src_len <= *dst_len) in ceph_aes_decrypt()
329 last_byte = pad[src_len - *dst_len - 1]; in ceph_aes_decrypt()
[all …]
Dcrypto.h31 void *dst, size_t *dst_len,
34 void *dst, size_t *dst_len,
41 void *dst, size_t *dst_len,
/linux-4.1.27/net/ipv4/
Dfib_rules.c38 u8 dst_len; member
199 if (frh->dst_len) in fib4_rule_configure()
212 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
213 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure()
252 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
266 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
277 frh->dst_len = rule4->dst_len; in fib4_rule_fill()
281 if ((rule4->dst_len && in fib4_rule_fill()
Dfib_lookup.h33 u8 type, __be32 dst, int dst_len, u8 tos, struct fib_info *fi,
35 void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len,
Dfib_semantics.c385 int dst_len, u32 tb_id, const struct nl_info *info, in rtmsg_fib() argument
397 fa->fa_type, key, dst_len, in rtmsg_fib()
991 u32 tb_id, u8 type, __be32 dst, int dst_len, u8 tos, in fib_dump_info() argument
1003 rtm->rtm_dst_len = dst_len; in fib_dump_info()
Dfib_frontend.c760 static void fib_magic(int cmd, int type, __be32 dst, int dst_len, struct in_ifaddr *ifa) in fib_magic() argument
768 .fc_dst_len = dst_len, in fib_magic()
Dipmr.c222 frh->dst_len = 0; in ipmr_rule_fill()
/linux-4.1.27/drivers/block/zram/
Dzcomp_lz4.c46 size_t *dst_len, void *private) in zcomp_lz4_compress() argument
49 return lz4_compress(src, PAGE_SIZE, dst, dst_len, private); in zcomp_lz4_compress()
55 size_t dst_len = PAGE_SIZE; in zcomp_lz4_decompress() local
57 return lz4_decompress_unknownoutputsize(src, src_len, dst, &dst_len); in zcomp_lz4_decompress()
Dzcomp_lzo.c46 size_t *dst_len, void *private) in lzo_compress() argument
48 int ret = lzo1x_1_compress(src, PAGE_SIZE, dst, dst_len, private); in lzo_compress()
55 size_t dst_len = PAGE_SIZE; in lzo_decompress() local
56 int ret = lzo1x_decompress_safe(src, src_len, dst, &dst_len); in lzo_decompress()
Dzcomp.h31 size_t *dst_len, void *private);
62 const unsigned char *src, size_t *dst_len);
Dzcomp.c305 const unsigned char *src, size_t *dst_len) in zcomp_compress() argument
307 return comp->backend->compress(src, zstrm->buffer, dst_len, in zcomp_compress()
/linux-4.1.27/include/net/
Dswitchdev.h38 int dst_len, struct fib_info *fi,
42 int dst_len, struct fib_info *fi,
84 int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi,
86 int netdev_switch_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi,
148 static inline int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, in netdev_switch_fib_ipv4_add() argument
156 static inline int netdev_switch_fib_ipv4_del(u32 dst, int dst_len, in netdev_switch_fib_ipv4_del() argument
Dip6_fib.h293 const struct in6_addr *daddr, int dst_len,
/linux-4.1.27/include/linux/
Dlzo.h24 unsigned char *dst, size_t *dst_len, void *wrkmem);
28 unsigned char *dst, size_t *dst_len);
Dlz4.h40 unsigned char *dst, size_t *dst_len, void *wrkmem);
57 unsigned char *dst, size_t *dst_len, void *wrkmem);
/linux-4.1.27/net/ipv6/
Dfib6_rules.c204 if (frh->dst_len) in fib6_rule_configure()
208 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
224 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
234 if (frh->dst_len && in fib6_rule_compare()
246 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
Dip6_fib.c1179 const struct in6_addr *daddr, int dst_len, in fib6_locate() argument
1184 fn = fib6_locate_1(root, daddr, dst_len, in fib6_locate()
Dip6mr.c206 frh->dst_len = 0; in ip6mr_rule_fill()
/linux-4.1.27/net/switchdev/
Dswitchdev.c313 int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, in netdev_switch_fib_ipv4_add() argument
338 err = ops->swdev_fib_ipv4_add(dev, htonl(dst), dst_len, in netdev_switch_fib_ipv4_add()
361 int netdev_switch_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi, in netdev_switch_fib_ipv4_del() argument
377 err = ops->swdev_fib_ipv4_del(dev, htonl(dst), dst_len, in netdev_switch_fib_ipv4_del()
/linux-4.1.27/drivers/video/fbdev/msm/
Dmdp.c282 unsigned long src_start = 0, src_len = 0, dst_start = 0, dst_len = 0; in mdp_blit() local
304 if (unlikely(get_img(&req->dst, fb, &dst_start, &dst_len, &dst_file))) { in mdp_blit()
327 dst_len); in mdp_blit()
344 dst_len); in mdp_blit()
Dmdp_ppp.c537 unsigned long dst_start, unsigned long dst_len, in valid_src_dst() argument
543 unsigned long dst_max_ok = dst_start + dst_len; in valid_src_dst()
648 struct file *dst_file, unsigned long dst_start, unsigned long dst_len) in mdp_ppp_blit() argument
696 if (!valid_src_dst(src_start, src_len, dst_start, dst_len, req, in mdp_ppp_blit()
Dmdp_hw.h30 unsigned long dst_start, unsigned long dst_len);
/linux-4.1.27/include/uapi/linux/
Dfib_rules.h20 __u8 dst_len; member
/linux-4.1.27/drivers/media/usb/msi2500/
Dmsi2500.c262 unsigned int i, j, transactions, dst_len = 0; in msi2500_convert_stream() local
297 dst_len += 1008; in msi2500_convert_stream()
319 dst_len += 1008; in msi2500_convert_stream()
329 dst_len += 984; in msi2500_convert_stream()
336 dst_len += 1008; in msi2500_convert_stream()
343 dst_len += 1008; in msi2500_convert_stream()
350 dst_len += 1008; in msi2500_convert_stream()
372 return dst_len; in msi2500_convert_stream()
/linux-4.1.27/fs/ntfs/
Drunlist.h91 const int dst_len, const runlist_element *rl,
Drunlist.c1324 const int dst_len, const runlist_element *rl, in ntfs_mapping_pairs_build() argument
1336 BUG_ON(dst_len < 1); in ntfs_mapping_pairs_build()
1356 dst_max = dst + dst_len - 1; in ntfs_mapping_pairs_build()
/linux-4.1.27/arch/sh/kernel/
Dio_trapped.c184 unsigned long dst_addr, int dst_len) in copy_word() argument
203 switch (dst_len) { in copy_word()
/linux-4.1.27/lib/lz4/
Dlz4_compress.c419 unsigned char *dst, size_t *dst_len, void *wrkmem) in lz4_compress() argument
434 *dst_len = out_len; in lz4_compress()
Dlz4hc_compress.c517 unsigned char *dst, size_t *dst_len, void *wrkmem) in lz4hc_compress() argument
530 *dst_len = out_len; in lz4hc_compress()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Domapdss-boot-init.c71 static void __init omapdss_prefix_strcpy(char *dst, int dst_len, in omapdss_prefix_strcpy() argument
/linux-4.1.27/drivers/media/usb/airspy/
Dairspy.c244 unsigned int dst_len; in airspy_convert_stream() local
248 dst_len = src_len; in airspy_convert_stream()
250 dst_len = 0; in airspy_convert_stream()
270 return dst_len; in airspy_convert_stream()
/linux-4.1.27/drivers/media/dvb-frontends/
Drtl2832_sdr.c223 unsigned int dst_len; in rtl2832_sdr_convert_stream() local
228 dst_len = src_len; in rtl2832_sdr_convert_stream()
236 dst_len = 2 * src_len; in rtl2832_sdr_convert_stream()
238 dst_len = 0; in rtl2832_sdr_convert_stream()
258 return dst_len; in rtl2832_sdr_convert_stream()
/linux-4.1.27/drivers/dma/
Dat_hdmac.c897 size_t dst_len = 0, src_len = 0; in atc_prep_dma_sg() local
919 if (dst_len == 0) { in atc_prep_dma_sg()
926 dst_len = sg_dma_len(dst_sg); in atc_prep_dma_sg()
945 len = min_t(size_t, src_len, dst_len); in atc_prep_dma_sg()
987 dst_len -= len; in atc_prep_dma_sg()
/linux-4.1.27/net/core/
Dfib_rules.c254 if (frh->dst_len) in validate_rulemsg()
256 frh->dst_len > (ops->addr_size * 8) || in validate_rulemsg()
/linux-4.1.27/drivers/crypto/caam/
Dcaamhash.c606 struct ahash_request *req, int dst_len) in ahash_unmap() argument
612 dma_unmap_single(dev, edesc->dst_dma, dst_len, DMA_FROM_DEVICE); in ahash_unmap()
621 struct ahash_request *req, int dst_len, u32 flag) in ahash_unmap_ctx() argument
629 ahash_unmap(dev, edesc, req, dst_len); in ahash_unmap_ctx()
/linux-4.1.27/drivers/net/ethernet/rocker/
Drocker.c3766 int dst_len, struct fib_info *fi, u32 tb_id, in rocker_port_fib_ipv4() argument
3771 __be32 dst_mask = inet_make_mask(dst_len); in rocker_port_fib_ipv4()
4247 __be32 dst, int dst_len, in rocker_port_swdev_fib_ipv4_add() argument
4255 return rocker_port_fib_ipv4(rocker_port, dst, dst_len, in rocker_port_swdev_fib_ipv4_add()
4260 __be32 dst, int dst_len, in rocker_port_swdev_fib_ipv4_del() argument
4267 return rocker_port_fib_ipv4(rocker_port, dst, dst_len, in rocker_port_swdev_fib_ipv4_del()
/linux-4.1.27/fs/btrfs/
Dextent_io.c5496 u64 dst_len = dst->len; in copy_extent_buffer() local
5504 WARN_ON(src->len != dst_len); in copy_extent_buffer()