/linux/drivers/crypto/nx/ |
A D | nx-842.c | 97 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 …]
|
/linux/crypto/ |
A D | lz4.c | 54 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 …]
|
A D | lz4hc.c | 53 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 …]
|
A D | lzo-rle.c | 53 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 …]
|
A D | lzo.c | 53 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 …]
|
A D | zstd.c | 151 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 …]
|
A D | deflate.c | 177 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 …]
|
A D | 842.c | 67 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()
|
A D | compress.c | 14 u8 *dst, unsigned int *dlen) in crypto_comp_compress() argument 19 dlen); in crypto_comp_compress() 25 u8 *dst, unsigned int *dlen) in crypto_comp_decompress() argument 30 dlen); in crypto_comp_decompress()
|
/linux/drivers/crypto/cavium/zip/ |
A D | zip_crypto.c | 123 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() 228 u8 *dst, unsigned int *dlen) in zip_comp_compress() argument [all …]
|
/linux/fs/isofs/ |
A D | namei.c | 23 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 …]
|
/linux/net/netfilter/ |
A D | nf_conntrack_ftp.c | 154 static int try_rfc959(const char *data, size_t dlen, in try_rfc959() argument 181 static int try_rfc1123(const char *data, size_t dlen, in try_rfc1123() argument 186 for (i = 0; i < dlen; i++) in try_rfc1123() 190 if (i == dlen) in try_rfc1123() 205 for (i = start; i < dlen; i++) { in get_port() 233 if (dlen <= 3) { in try_eprt() 261 length = get_ipv6_addr(data + 3, dlen - 3, in try_eprt() 280 if (dlen <= 3) return 0; in try_epsv_response() 304 if (dlen <= plen) { in find_pattern() 306 if (strncasecmp(data, pattern, dlen) == 0) in find_pattern() [all …]
|
/linux/security/keys/ |
A D | dh.c | 152 while (dlen) { in kdf_ctr() 187 dlen -= h; in kdf_ctr() 232 ssize_t dlen; in __keyctl_dh_compute() local 285 if (dlen < 0) { in __keyctl_dh_compute() 286 ret = dlen; in __keyctl_dh_compute() 289 dh_inputs.p_size = dlen; in __keyctl_dh_compute() 292 if (dlen < 0) { in __keyctl_dh_compute() 293 ret = dlen; in __keyctl_dh_compute() 296 dh_inputs.g_size = dlen; in __keyctl_dh_compute() 299 if (dlen < 0) { in __keyctl_dh_compute() [all …]
|
/linux/drivers/bluetooth/ |
A D | h4_recv.h | 99 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()
|
A D | btmtkuart.c | 68 __be16 dlen; member 80 __le16 dlen; member 110 u16 dlen; member 169 hdr->dlen = cpu_to_le16(wmt_params->dlen + 1); in mtk_hci_wmt_sync() 248 int err, dlen; in mtk_setup_firmware() local 283 wmt_params.dlen = dlen; in mtk_setup_firmware() 293 fw_size -= dlen; in mtk_setup_firmware() 294 fw_ptr += dlen; in mtk_setup_firmware() 299 wmt_params.dlen = 0; in mtk_setup_firmware() 883 dlen = skb->len; in btmtkuart_send_frame() [all …]
|
A D | hci_h4.c | 220 u16 dlen; in h4_recv_buf() local 225 dlen = 0; in h4_recv_buf() 229 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf() 230 hci_skb_expect(skb) += dlen; in h4_recv_buf() 232 if (skb_tailroom(skb) < dlen) { in h4_recv_buf() 239 dlen = get_unaligned_le16(skb->data + in h4_recv_buf() 241 hci_skb_expect(skb) += dlen; in h4_recv_buf() 243 if (skb_tailroom(skb) < dlen) { in h4_recv_buf() 254 if (!dlen) { in h4_recv_buf()
|
A D | btmtksdio.c | 121 __le16 dlen; member 151 u16 dlen; member 188 hdr->dlen = cpu_to_le16(wmt_params->dlen + 1); in mtk_hci_wmt_sync() 390 u16 dlen; in btmtksdio_rx_packet() local 687 int err, dlen; in mtk_setup_firmware() local 730 if (fw_size - dlen <= 0) in mtk_setup_firmware() 736 wmt_params.dlen = dlen; in mtk_setup_firmware() 746 fw_size -= dlen; in mtk_setup_firmware() 747 fw_ptr += dlen; in mtk_setup_firmware() 752 wmt_params.dlen = 0; in mtk_setup_firmware() [all …]
|
/linux/net/xfrm/ |
A D | xfrm_ipcomp.c | 42 int dlen = IPCOMP_SCRATCH_SIZE; in ipcomp_decompress() local 52 if (dlen < (plen + sizeof(struct ip_comp_hdr))) in ipcomp_decompress() 55 len = dlen - plen; in ipcomp_decompress() 64 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress() 80 if (dlen < len) in ipcomp_decompress() 81 len = dlen; in ipcomp_decompress() 129 int dlen = IPCOMP_SCRATCH_SIZE; in ipcomp_compress() local 138 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress() 142 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) { in ipcomp_compress() 147 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen); in ipcomp_compress() [all …]
|
/linux/include/crypto/ |
A D | rng.h | 44 u8 *dst, unsigned int dlen); 138 u8 *dst, unsigned int dlen) in crypto_rng_generate() argument 144 ret = crypto_rng_alg(tfm)->generate(tfm, src, slen, dst, dlen); in crypto_rng_generate() 145 crypto_stats_rng_generate(alg, dlen, ret); in crypto_rng_generate() 161 u8 *rdata, unsigned int dlen) in crypto_rng_get_bytes() argument 163 return crypto_rng_generate(tfm, NULL, 0, rdata, dlen); in crypto_rng_get_bytes()
|
/linux/lib/reed_solomon/ |
A D | test_rslib.c | 157 int dlen = len - nroots; in get_rcw_we() local 166 for (i = 0; i < dlen; i++) in get_rcw_we() 169 memset(c + dlen, 0, nroots * sizeof(*c)); in get_rcw_we() 170 encode_rs16(rs, c, dlen, c + dlen, 0); in get_rcw_we() 264 int dlen = len - rs->codec->nroots; in test_uc() local 279 derrs = decode_rs16(rs, r, r + dlen, dlen, in test_uc() 285 derrs = decode_rs16(rs, NULL, NULL, dlen, in test_uc() 290 derrs = decode_rs16(rs, r, r + dlen, dlen, in test_uc() 371 int dlen = len - nroots; in test_bc() local 379 derrs = decode_rs16(rs, r, r + dlen, dlen, in test_bc() [all …]
|
/linux/include/crypto/internal/ |
A D | scompress.h | 32 unsigned int slen, u8 *dst, unsigned int *dlen, 35 unsigned int slen, u8 *dst, unsigned int *dlen, 78 u8 *dst, unsigned int *dlen, void *ctx) in crypto_scomp_compress() argument 80 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress() 85 u8 *dst, unsigned int *dlen, in crypto_scomp_decompress() argument 88 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()
|
/linux/net/ife/ |
A D | ife.c | 127 u16 *dlen, u16 *totlen) in ife_tlv_meta_decode() argument 135 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode() 139 *totlen = nla_total_size(*dlen); in ife_tlv_meta_decode() 158 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) in ife_tlv_meta_encode() argument 161 u16 totlen = nla_total_size(dlen); /*alignment + hdr */ in ife_tlv_meta_encode() 163 u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); in ife_tlv_meta_encode() 167 memcpy(dptr, dval, dlen); in ife_tlv_meta_encode()
|
/linux/drivers/block/paride/ |
A D | pg.c | 213 int dlen; /* transfer size requested */ member 331 write_reg(dev, 4, dlen % 256); in pg_command() 332 write_reg(dev, 5, dlen / 256); in pg_command() 364 dev->dlen = 0; in pg_completion() 377 dev->dlen += (1 - p) * d; in pg_completion() 592 if (hdr.dlen < 0 || hdr.dlen > PG_MAX_DATA) in pg_write() 611 if (pg_command(dev, hdr.packet, hdr.dlen, jiffies + PG_TMO)) { in pg_write() 644 hdr.dlen = dev->dlen; in pg_read() 647 if (hdr.dlen < 0) { in pg_read() 648 hdr.dlen = -1 * hdr.dlen; in pg_read() [all …]
|
/linux/drivers/media/usb/pvrusb2/ |
A D | pvrusb2-encoder.c | 28 const u32 *data, unsigned int dlen) in pvr2_encoder_write_words() argument 45 while (dlen) { in pvr2_encoder_write_words() 47 if (chunkCnt > dlen) chunkCnt = dlen; in pvr2_encoder_write_words() 64 dlen -= chunkCnt; in pvr2_encoder_write_words() 74 u32 *data, unsigned int dlen) in pvr2_encoder_read_words() argument 90 while (dlen) { in pvr2_encoder_read_words() 92 if (chunkCnt > dlen) chunkCnt = dlen; in pvr2_encoder_read_words() 114 dlen -= chunkCnt; in pvr2_encoder_read_words()
|
/linux/drivers/scsi/fcoe/ |
A D | fcoe_ctlr.c | 615 size_t dlen; in fcoe_ctlr_encaps() local 901 size_t dlen; in fcoe_ctlr_parse_adv() local 923 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_parse_adv() 1152 size_t dlen; in fcoe_ctlr_recv_els() local 1169 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_recv_els() 1320 size_t dlen; in fcoe_ctlr_recv_clr_vlink() local 2037 size_t dlen; in fcoe_ctlr_vn_send() local 2040 dlen = 0; in fcoe_ctlr_vn_send() 2284 size_t dlen; in fcoe_ctlr_vn_parse() local 2318 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_vn_parse() [all …]
|