Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/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.4.14/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.4.14/net/ceph/
Dcrypto.c160 void *dst, size_t *dst_len, in ceph_aes_encrypt() argument
178 *dst_len = src_len + zero_padding; in ceph_aes_encrypt()
183 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt()
219 size_t *dst_len, in ceph_aes_encrypt2() argument
238 *dst_len = src1_len + src2_len + zero_padding; in ceph_aes_encrypt2()
244 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt2()
282 void *dst, size_t *dst_len, in ceph_aes_decrypt() argument
299 sg_set_buf(&sg_out[0], dst, *dst_len); in ceph_aes_decrypt()
322 if (src_len <= *dst_len) in ceph_aes_decrypt()
325 last_byte = pad[src_len - *dst_len - 1]; in ceph_aes_decrypt()
[all …]
Dcrypto.h33 void *dst, size_t *dst_len,
36 void *dst, size_t *dst_len,
43 void *dst, size_t *dst_len,
/linux-4.4.14/crypto/
Drsa.c94 if (req->dst_len < mpi_get_size(pkey->n)) { in rsa_enc()
95 req->dst_len = mpi_get_size(pkey->n); in rsa_enc()
109 ret = mpi_write_to_sgl(c, req->dst, &req->dst_len, &sign); in rsa_enc()
139 if (req->dst_len < mpi_get_size(pkey->n)) { in rsa_dec()
140 req->dst_len = mpi_get_size(pkey->n); in rsa_dec()
154 ret = mpi_write_to_sgl(m, req->dst, &req->dst_len, &sign); in rsa_dec()
183 if (req->dst_len < mpi_get_size(pkey->n)) { in rsa_sign()
184 req->dst_len = mpi_get_size(pkey->n); in rsa_sign()
198 ret = mpi_write_to_sgl(s, req->dst, &req->dst_len, &sign); in rsa_sign()
228 if (req->dst_len < mpi_get_size(pkey->n)) { in rsa_verify()
[all …]
Dtestmgr.c1904 if (req->dst_len != vecs->c_size) { in do_test_rsa()
1942 out_len = req->dst_len; in do_test_rsa()
/linux-4.4.14/net/ipv4/
Dfib_rules.c38 u8 dst_len; member
200 if (frh->dst_len) in fib4_rule_configure()
213 rule4->dst_len = frh->dst_len; in fib4_rule_configure()
214 rule4->dstmask = inet_make_mask(rule4->dst_len); in fib4_rule_configure()
253 if (frh->dst_len && (rule4->dst_len != frh->dst_len)) in fib4_rule_compare()
267 if (frh->dst_len && (rule4->dst != nla_get_in_addr(tb[FRA_DST]))) in fib4_rule_compare()
278 frh->dst_len = rule4->dst_len; in fib4_rule_fill()
282 if ((rule4->dst_len && in fib4_rule_fill()
Dfib_lookup.h34 u8 type, __be32 dst, int dst_len, u8 tos, struct fib_info *fi,
36 void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len,
Dfib_semantics.c401 int dst_len, u32 tb_id, const struct nl_info *info, in rtmsg_fib() argument
413 fa->fa_type, key, dst_len, in rtmsg_fib()
1216 u32 tb_id, u8 type, __be32 dst, int dst_len, u8 tos, in fib_dump_info() argument
1228 rtm->rtm_dst_len = dst_len; in fib_dump_info()
Dfib_frontend.c802 static void fib_magic(int cmd, int type, __be32 dst, int dst_len, struct in_ifaddr *ifa) in fib_magic() argument
811 .fc_dst_len = dst_len, in fib_magic()
Dipmr.c222 frh->dst_len = 0; in ipmr_rule_fill()
/linux-4.4.14/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);
63 const unsigned char *src, size_t *dst_len);
Dzcomp.c310 const unsigned char *src, size_t *dst_len) in zcomp_compress() argument
312 return comp->backend->compress(src, zstrm->buffer, dst_len, in zcomp_compress()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c134 areq->dst_len = req->ctx->key_sz; in qat_rsa_cb()
138 while (!(*ptr) && areq->dst_len) { in qat_rsa_cb()
139 areq->dst_len--; in qat_rsa_cb()
143 if (areq->dst_len != req->ctx->key_sz) in qat_rsa_cb()
144 memmove(req->dst_align, ptr, areq->dst_len); in qat_rsa_cb()
147 areq->dst_len, 1); in qat_rsa_cb()
154 while (!(*ptr) && areq->dst_len) { in qat_rsa_cb()
155 areq->dst_len--; in qat_rsa_cb()
159 if (sg_virt(areq->dst) != ptr && areq->dst_len) in qat_rsa_cb()
160 memmove(sg_virt(areq->dst), ptr, areq->dst_len); in qat_rsa_cb()
[all …]
/linux-4.4.14/include/crypto/
Dakcipher.h37 unsigned int dst_len; member
249 unsigned int dst_len) in akcipher_request_set_crypt() argument
254 req->dst_len = dst_len; in akcipher_request_set_crypt()
/linux-4.4.14/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.4.14/net/ipv6/
Dfib6_rules.c215 if (frh->dst_len) in fib6_rule_configure()
219 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
235 if (frh->dst_len && (rule6->dst.plen != frh->dst_len)) in fib6_rule_compare()
245 if (frh->dst_len && in fib6_rule_compare()
257 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
Dip6_fib.c1228 const struct in6_addr *daddr, int dst_len, in fib6_locate() argument
1233 fn = fib6_locate_1(root, daddr, dst_len, in fib6_locate()
Dip6mr.c206 frh->dst_len = 0; in ip6mr_rule_fill()
/linux-4.4.14/include/net/
Dswitchdev.h90 int dst_len; member
193 int switchdev_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi,
195 int switchdev_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi,
286 static inline int switchdev_fib_ipv4_add(u32 dst, int dst_len, in switchdev_fib_ipv4_add() argument
294 static inline int switchdev_fib_ipv4_del(u32 dst, int dst_len, in switchdev_fib_ipv4_del() argument
Dip6_fib.h269 const struct in6_addr *daddr, int dst_len,
/linux-4.4.14/include/uapi/linux/
Dfib_rules.h20 __u8 dst_len; member
/linux-4.4.14/drivers/media/usb/msi2500/
Dmsi2500.c261 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.4.14/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.4.14/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.4.14/net/switchdev/
Dswitchdev.c1165 int switchdev_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, in switchdev_fib_ipv4_add() argument
1171 .dst_len = dst_len, in switchdev_fib_ipv4_add()
1217 int switchdev_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi, in switchdev_fib_ipv4_del() argument
1223 .dst_len = dst_len, in switchdev_fib_ipv4_del()
/linux-4.4.14/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.4.14/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.4.14/drivers/media/usb/airspy/
Dairspy.c246 unsigned int dst_len; in airspy_convert_stream() local
250 dst_len = src_len; in airspy_convert_stream()
252 dst_len = 0; in airspy_convert_stream()
272 return dst_len; in airspy_convert_stream()
/linux-4.4.14/drivers/media/dvb-frontends/
Drtl2832_sdr.c230 unsigned int dst_len; in rtl2832_sdr_convert_stream() local
235 dst_len = src_len; in rtl2832_sdr_convert_stream()
243 dst_len = 2 * src_len; in rtl2832_sdr_convert_stream()
245 dst_len = 0; in rtl2832_sdr_convert_stream()
265 return dst_len; in rtl2832_sdr_convert_stream()
/linux-4.4.14/drivers/dma/
Dat_hdmac.c1237 size_t dst_len = 0, src_len = 0; in atc_prep_dma_sg() local
1259 if (dst_len == 0) { in atc_prep_dma_sg()
1266 dst_len = sg_dma_len(dst_sg); in atc_prep_dma_sg()
1285 len = min_t(size_t, src_len, dst_len); in atc_prep_dma_sg()
1321 dst_len -= len; in atc_prep_dma_sg()
/linux-4.4.14/net/core/
Dfib_rules.c257 if (frh->dst_len) in validate_rulemsg()
259 frh->dst_len > (ops->addr_size * 8) || in validate_rulemsg()
/linux-4.4.14/drivers/crypto/caam/
Dcaamhash.c612 struct ahash_request *req, int dst_len) in ahash_unmap() argument
617 dma_unmap_single(dev, edesc->dst_dma, dst_len, DMA_FROM_DEVICE); in ahash_unmap()
626 struct ahash_request *req, int dst_len, u32 flag) in ahash_unmap_ctx() argument
634 ahash_unmap(dev, edesc, req, dst_len); in ahash_unmap_ctx()
/linux-4.4.14/drivers/net/ethernet/rocker/
Drocker.c3991 int dst_len, const struct fib_info *fi, in rocker_port_fib_ipv4() argument
3996 __be32 dst_mask = inet_make_mask(dst_len); in rocker_port_fib_ipv4()
4477 htonl(fib4->dst), fib4->dst_len, in rocker_port_obj_add()
4549 htonl(fib4->dst), fib4->dst_len, in rocker_port_obj_del()
/linux-4.4.14/Documentation/networking/
Dswitchdev.txt329 int dst_len;
/linux-4.4.14/fs/btrfs/
Dextent_io.c5568 u64 dst_len = dst->len; in copy_extent_buffer() local
5576 WARN_ON(src->len != dst_len); in copy_extent_buffer()