Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 25 of 85) sorted by relevance

1234

/drivers/crypto/nx/
Dnx-842.c88 unsigned int slen, unsigned int dlen) in update_param() argument
92 if (p->oremain < dlen) in update_param()
97 p->out += dlen; in update_param()
98 p->oremain -= dlen; in update_param()
99 p->ototal += dlen; in update_param()
165 unsigned int slen = p->iremain, dlen = p->oremain, tmplen; in compress() local
174 if (p->oremain == 0 || hdrsize + c->minimum > dlen) in compress()
195 dlen -= hdrsize; in compress()
200 dlen -= dskip; in compress()
202 if (dlen % c->multiple) in compress()
[all …]
/drivers/crypto/cavium/zip/
Dzip_crypto.c123 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
167 if (!zip_ctx || !src || !dst || !dlen) in zip_decompress()
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()
[all …]
Dzip_crypto.h65 u8 *dst, unsigned int *dlen);
68 u8 *dst, unsigned int *dlen);
75 u8 *dst, unsigned int *dlen, void *ctx);
78 u8 *dst, unsigned int *dlen, void *ctx);
/drivers/bluetooth/
Dh4_recv.h99 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()
Dbtmtkuart.c68 __be16 dlen; member
80 __le16 dlen; member
110 u16 dlen; member
160 hlen = sizeof(*hdr) + wmt_params->dlen; in mtk_hci_wmt_sync()
169 hdr->dlen = cpu_to_le16(wmt_params->dlen + 1); in mtk_hci_wmt_sync()
171 memcpy(wc.data, wmt_params->data, wmt_params->dlen); in mtk_hci_wmt_sync()
248 int err, dlen; in mtk_setup_firmware() local
274 dlen = min_t(int, 250, fw_size); in mtk_setup_firmware()
277 if (fw_size - dlen <= 0) in mtk_setup_firmware()
283 wmt_params.dlen = dlen; in mtk_setup_firmware()
[all …]
Dhci_h4.c220 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()
Dbtmtksdio.c121 __le16 dlen; member
151 u16 dlen; member
181 hlen = sizeof(*hdr) + wmt_params->dlen; in mtk_hci_wmt_sync()
188 hdr->dlen = cpu_to_le16(wmt_params->dlen + 1); in mtk_hci_wmt_sync()
190 memcpy(wc.data, wmt_params->data, wmt_params->dlen); in mtk_hci_wmt_sync()
390 u16 dlen; in btmtksdio_rx_packet() local
446 dlen = skb->data[(&pkts[i])->loff]; in btmtksdio_rx_packet()
449 dlen = get_unaligned_le16(skb->data + in btmtksdio_rx_packet()
456 pad_size = skb->len - (&pkts[i])->hlen - dlen; in btmtksdio_rx_packet()
668 wmt_params.dlen = sizeof(param); in btmtksdio_func_query()
[all …]
Dhci_ath.c148 const void *data, size_t dlen) in ath_vendor_cmd() argument
153 if (dlen > sizeof(cmd.data)) in ath_vendor_cmd()
158 cmd.len = dlen; in ath_vendor_cmd()
159 memcpy(cmd.data, data, dlen); in ath_vendor_cmd()
161 skb = __hci_cmd_sync(hdev, 0xfc0b, dlen + 4, &cmd, HCI_INIT_TIMEOUT); in ath_vendor_cmd()
/drivers/block/paride/
Dpg.c213 int dlen; /* transfer size requested */ member
320 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) in pg_command() argument
331 write_reg(dev, 4, dlen % 256); in pg_command()
332 write_reg(dev, 5, dlen / 256); in pg_command()
346 printk("%s: Command sent, dlen=%d packet= ", dev->name, dlen); 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()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-encoder.c28 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()
Dpvrusb2-i2c-core.c92 u16 dlen, /* Size of data to write */ in pvr2_i2c_read() argument
100 if (!data) dlen = 0; in pvr2_i2c_read()
101 if (dlen > (sizeof(hdw->cmd_buffer) - 4)) { in pvr2_i2c_read()
105 dlen,(unsigned int)(sizeof(hdw->cmd_buffer) - 4)); in pvr2_i2c_read()
123 hdw->cmd_buffer[1] = dlen; /* arg length */ in pvr2_i2c_read()
127 if (dlen) memcpy(hdw->cmd_buffer + 4, data, dlen); in pvr2_i2c_read()
132 4 + dlen, in pvr2_i2c_read()
/drivers/scsi/fcoe/
Dfcoe_ctlr.c615 size_t dlen; in fcoe_ctlr_encaps() local
621 dlen = sizeof(struct fip_encaps) + skb->len; /* len before push */ in fcoe_ctlr_encaps()
652 cap->encaps.fd_desc.fip_dlen = dlen / FIP_BPW; in fcoe_ctlr_encaps()
655 dlen += sizeof(*mac); in fcoe_ctlr_encaps()
672 cap->fip.fip_dl_len = htons(dlen / FIP_BPW); in fcoe_ctlr_encaps()
901 size_t dlen; in fcoe_ctlr_parse_adv() local
922 dlen = desc->fip_dlen * FIP_BPW; in fcoe_ctlr_parse_adv()
923 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_parse_adv()
934 if (dlen != sizeof(struct fip_pri_desc)) in fcoe_ctlr_parse_adv()
940 if (dlen != sizeof(struct fip_mac_desc)) in fcoe_ctlr_parse_adv()
[all …]
/drivers/net/wireless/ath/wil6210/
Dfw_inc.c45 u32 dlen; in wil_fw_verify() local
65 dlen = le32_to_cpu(fh_->data_len); in wil_fw_verify()
66 if (dlen % 4) { in wil_fw_verify()
67 wil_err_fw(wil, "data length not aligned: %lu\n", (ulong)dlen); in wil_fw_verify()
70 if (size < dlen) { in wil_fw_verify()
72 size, (ulong)dlen); in wil_fw_verify()
75 if (dlen < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
76 wil_err_fw(wil, "data length too short: %lu\n", (ulong)dlen); in wil_fw_verify()
101 dlen - sizeof(*hdr) - sizeof(fh)); in wil_fw_verify()
107 (ulong)dlen, crc, le32_to_cpu(fh_->crc)); in wil_fw_verify()
[all …]
/drivers/scsi/qedf/
Dqedf_fip.c86 size_t dlen; in qedf_fcoe_process_vlan_resp() local
93 dlen = desc->fip_dlen * FIP_BPW; in qedf_fcoe_process_vlan_resp()
99 desc = (struct fip_desc *)((char *)desc + dlen); in qedf_fcoe_process_vlan_resp()
100 rlen -= dlen; in qedf_fcoe_process_vlan_resp()
176 size_t rlen, dlen; in qedf_fip_recv() local
234 dlen = desc->fip_dlen * FIP_BPW; in qedf_fip_recv()
279 desc = (struct fip_desc *)((char *)desc + dlen); in qedf_fip_recv()
280 rlen -= dlen; in qedf_fip_recv()
/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-prng.c58 unsigned int slen, u8 *dst, unsigned int dlen) in sun8i_ce_prng_generate() argument
82 todo = dlen + ctx->slen + PRNG_DATA_SIZE * 2; in sun8i_ce_prng_generate()
92 slen, dlen, todo, todo / PRNG_DATA_SIZE); in sun8i_ce_prng_generate()
156 memcpy(dst, d, dlen); in sun8i_ce_prng_generate()
157 memcpy(ctx->seed, d + dlen, ctx->slen); in sun8i_ce_prng_generate()
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_reqmgr.c173 u32 dlen, align_dlen, info_len, rlen; in setup_sgio_list() local
190 dlen = g_sz_bytes + s_sz_bytes + SG_LIST_HDR_SIZE; in setup_sgio_list()
191 align_dlen = ALIGN(dlen, align); in setup_sgio_list()
202 info->dlen = dlen; in setup_sgio_list()
319 cpt_req->dlen = info->dlen; in process_request()
367 iq_cmd.cmd.s.dlen = cpu_to_be16(cpt_req->dlen); in process_request()
381 pr_debug("Dptr hexdump (%d bytes)\n", cpt_req->dlen); in process_request()
383 cpt_req->dlen, false); in process_request()
/drivers/crypto/
Dexynos-rng.c141 u8 *dst, unsigned int dlen, in exynos_rng_get_random() argument
164 *read = min_t(size_t, dlen, EXYNOS_RNG_SEED_SIZE); in exynos_rng_get_random()
196 u8 *dst, unsigned int dlen) in exynos_rng_generate() argument
209 ret = exynos_rng_get_random(rng, dst, dlen, &read); in exynos_rng_generate()
213 dlen -= read; in exynos_rng_generate()
217 } while (dlen > 0); in exynos_rng_generate()
/drivers/net/wireless/intersil/prism54/
Doid_mgt.c411 int dlen; in mgt_set_request() local
422 dlen = isl_oid[n].size; in mgt_set_request()
424 cache += (cache ? extra * dlen : 0); in mgt_set_request()
443 _data, dlen, &response); in mgt_set_request()
455 memcpy(cache, _data, dlen); in mgt_set_request()
473 int dlen; in mgt_set_varlen() local
478 dlen = isl_oid[n].size; in mgt_set_varlen()
485 data, dlen + extra_len, &response); in mgt_set_varlen()
511 int dlen; in mgt_get_request() local
524 dlen = isl_oid[n].size; in mgt_get_request()
[all …]
/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-prng.c58 unsigned int slen, u8 *dst, unsigned int dlen) in sun8i_ss_prng_generate() argument
83 todo = dlen + PRNG_SEED_SIZE + PRNG_DATA_SIZE; in sun8i_ss_prng_generate()
166 memcpy(dst, d, dlen); in sun8i_ss_prng_generate()
168 memcpy(ctx->seed, d + dlen, ctx->slen); in sun8i_ss_prng_generate()
/drivers/crypto/cavium/cpt/
Drequest_manager.h49 u16 dlen; member
97 u32 dlen; member
120 __be16 dlen; member
Dcptvf_reqmanager.c170 info->dlen = g_sz_bytes + s_sz_bytes + SG_LIST_HDR_SIZE; in setup_sgio_list()
171 info->in_buffer = kzalloc(info->dlen, req->may_sleep ? GFP_KERNEL : GFP_ATOMIC); in setup_sgio_list()
189 info->dlen, in setup_sgio_list()
192 dev_err(&pdev->dev, "Mapping DPTR Failed %d\n", info->dlen); in setup_sgio_list()
279 info->dlen, DMA_BIDIRECTIONAL); in do_request_cleanup()
441 cpt_req->dlen = info->dlen; in process_request()
471 vq_cmd.cmd.s.dlen = cpu_to_be16(cpt_req->dlen); in process_request()
/drivers/rpmsg/
Dqcom_glink_rpm.c151 const void *data, size_t dlen) in glink_rpm_tx_write() argument
154 size_t tlen = hlen + dlen; in glink_rpm_tx_write()
168 aligned_dlen = ALIGN_DOWN(dlen, 4); in glink_rpm_tx_write()
169 if (aligned_dlen != dlen) in glink_rpm_tx_write()
170 memcpy(padding, data + aligned_dlen, dlen - aligned_dlen); in glink_rpm_tx_write()
/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c70 unsigned int dlen = npods << PPOD_SIZE_SHIFT; in cxgbit_ppod_init_idata() local
72 sizeof(struct ulptx_idata) + dlen, 16); in cxgbit_ppod_init_idata()
86 req->dlen = htonl(ULP_MEMIO_DATA_LEN_V(dlen >> 5)); in cxgbit_ppod_init_idata()
92 idata->len = htonl(dlen); in cxgbit_ppod_init_idata()
Dcxgbit_target.c159 cxgbit_tx_data_wr(struct cxgbit_sock *csk, struct sk_buff *skb, u32 dlen, in cxgbit_tx_data_wr() argument
180 immlen += dlen; in cxgbit_tx_data_wr()
206 u32 dlen = skb->len; in cxgbit_push_tx_frames() local
217 credits_needed = DIV_ROUND_UP(dlen + iso_cpl_len, 16); in cxgbit_push_tx_frames()
263 cxgbit_tx_data_wr(csk, skb, dlen, len, credits_needed, in cxgbit_push_tx_frames()
820 pdu_cb->doffset + pdu_cb->dlen, in cxgbit_skb_copy_to_sg()
895 u32 sg_nents = max(1UL, DIV_ROUND_UP(pdu_cb->dlen, PAGE_SIZE)); in cxgbit_handle_immediate_data()
900 cmd->write_data_done += pdu_cb->dlen; in cxgbit_handle_immediate_data()
979 if (pdu_cb->dlen && (pdu_cb->dlen == cmd->se_cmd.data_length) && in cxgbit_handle_scsi_cmd()
989 if (!pdu_cb->dlen) in cxgbit_handle_scsi_cmd()
[all …]
/drivers/crypto/hisilicon/zip/
Dzip_crypto.c138 u32 dlen, u32 sskip, u32 dskip) in hisi_zip_fill_sqe() argument
146 sqe->dest_avail_out = dlen - dskip; in hisi_zip_fill_sqe()
359 u32 status, dlen, head_size; in hisi_zip_acomp_cb() local
371 dlen = sqe->produced; in hisi_zip_acomp_cb()
377 acomp_req->dlen = dlen + head_size; in hisi_zip_acomp_cb()
534 if (!a_req->src || !a_req->slen || !a_req->dst || !a_req->dlen) in hisi_zip_do_work()
558 a_req->dlen, req->sskip, req->dskip); in hisi_zip_do_work()

1234