Home
last modified time | relevance | path

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

1234

/drivers/crypto/nx/
Dnx-842.c97 unsigned int slen, unsigned int dlen) in update_param() argument
101 if (p->oremain < dlen) in update_param()
106 p->out += dlen; in update_param()
107 p->oremain -= dlen; in update_param()
108 p->ototal += dlen; in update_param()
174 unsigned int slen = p->iremain, dlen = p->oremain, tmplen; in compress() local
183 if (p->oremain == 0 || hdrsize + c->minimum > dlen) in compress()
204 dlen -= hdrsize; in compress()
209 dlen -= dskip; in compress()
211 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/
Dhci_h4.c236 u16 dlen; in h4_recv_buf() local
241 dlen = 0; in h4_recv_buf()
245 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
246 hci_skb_expect(skb) += dlen; in h4_recv_buf()
248 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
255 dlen = get_unaligned_le16(skb->data + in h4_recv_buf()
257 hci_skb_expect(skb) += dlen; in h4_recv_buf()
259 if (skb_tailroom(skb) < dlen) { in h4_recv_buf()
270 if (!dlen) { in h4_recv_buf()
Dhci_ll.c408 int len, type, dlen; in ll_recv() local
441 dlen = __le16_to_cpu(ah->dlen); in ll_recv()
443 BT_DBG("ACL header: dlen %d", dlen); in ll_recv()
445 ll_check_data_len(hu->hdev, ll, dlen); in ll_recv()
451 BT_DBG("SCO header: dlen %d", sh->dlen); in ll_recv()
453 ll_check_data_len(hu->hdev, ll, sh->dlen); in ll_recv()
Dbtuart_cs.c241 int dlen; in btuart_receive() local
257 dlen = __le16_to_cpu(ah->dlen); in btuart_receive()
259 info->rx_count = dlen; in btuart_receive()
265 info->rx_count = sh->dlen; in btuart_receive()
Dhci_nokia.c89 u8 dlen; member
105 u8 dlen; member
130 u8 dlen; member
250 hdr->dlen = sizeof(*pkt); in nokia_send_alive_packet()
289 neg_hdr->dlen = sizeof(*neg_cmd); in nokia_send_negotiation()
554 if (hdr->dlen != sizeof(*evt)) { in nokia_recv_negotiation_packet()
591 if (hdr->dlen != sizeof(*pkt)) { in nokia_recv_alive_packet()
/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.c38 const u32 *data, unsigned int dlen) in pvr2_encoder_write_words() argument
55 while (dlen) { in pvr2_encoder_write_words()
57 if (chunkCnt > dlen) chunkCnt = dlen; in pvr2_encoder_write_words()
74 dlen -= chunkCnt; in pvr2_encoder_write_words()
84 u32 *data, unsigned int dlen) in pvr2_encoder_read_words() argument
100 while (dlen) { in pvr2_encoder_read_words()
102 if (chunkCnt > dlen) chunkCnt = dlen; in pvr2_encoder_read_words()
124 dlen -= chunkCnt; in pvr2_encoder_read_words()
Dpvrusb2-i2c-core.c102 u16 dlen, /* Size of data to write */ in pvr2_i2c_read() argument
110 if (!data) dlen = 0; in pvr2_i2c_read()
111 if (dlen > (sizeof(hdw->cmd_buffer) - 4)) { in pvr2_i2c_read()
115 dlen,(unsigned int)(sizeof(hdw->cmd_buffer) - 4)); in pvr2_i2c_read()
133 hdw->cmd_buffer[1] = dlen; /* arg length */ in pvr2_i2c_read()
137 if (dlen) memcpy(hdw->cmd_buffer + 4, data, dlen); in pvr2_i2c_read()
142 4 + dlen, in pvr2_i2c_read()
/drivers/scsi/fcoe/
Dfcoe_ctlr.c625 size_t dlen; in fcoe_ctlr_encaps() local
631 dlen = sizeof(struct fip_encaps) + skb->len; /* len before push */ in fcoe_ctlr_encaps()
662 cap->encaps.fd_desc.fip_dlen = dlen / FIP_BPW; in fcoe_ctlr_encaps()
665 dlen += sizeof(*mac); in fcoe_ctlr_encaps()
682 cap->fip.fip_dl_len = htons(dlen / FIP_BPW); in fcoe_ctlr_encaps()
911 size_t dlen; in fcoe_ctlr_parse_adv() local
932 dlen = desc->fip_dlen * FIP_BPW; in fcoe_ctlr_parse_adv()
933 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_parse_adv()
944 if (dlen != sizeof(struct fip_pri_desc)) in fcoe_ctlr_parse_adv()
950 if (dlen != sizeof(struct fip_mac_desc)) in fcoe_ctlr_parse_adv()
[all …]
/drivers/crypto/
Dexynos-rng.c129 u8 *dst, unsigned int dlen) in exynos_rng_copy_random() argument
141 if (++cnt >= dlen) in exynos_rng_copy_random()
158 u8 *dst, unsigned int dlen, in exynos_rng_get_random() argument
176 *read = exynos_rng_copy_random(rng, dst, dlen); in exynos_rng_get_random()
201 u8 *dst, unsigned int dlen) in exynos_rng_generate() argument
213 ret = exynos_rng_get_random(rng, dst, dlen, &read); in exynos_rng_generate()
217 dlen -= read; in exynos_rng_generate()
221 } while (dlen > 0); in exynos_rng_generate()
/drivers/scsi/qedf/
Dqedf_fip.c78 size_t dlen; in qedf_fcoe_process_vlan_resp() local
85 dlen = desc->fip_dlen * FIP_BPW; in qedf_fcoe_process_vlan_resp()
91 desc = (struct fip_desc *)((char *)desc + dlen); in qedf_fcoe_process_vlan_resp()
92 rlen -= dlen; in qedf_fcoe_process_vlan_resp()
154 size_t rlen, dlen; in qedf_fip_recv() local
194 dlen = desc->fip_dlen * FIP_BPW; in qedf_fip_recv()
222 desc = (struct fip_desc *)((char *)desc + dlen); in qedf_fip_recv()
223 rlen -= dlen; in qedf_fip_recv()
/drivers/net/wireless/ath/wil6210/
Dfw_inc.c52 u32 dlen; in wil_fw_verify() local
72 dlen = le32_to_cpu(fh_->data_len); in wil_fw_verify()
73 if (dlen % 4) { in wil_fw_verify()
74 wil_err_fw(wil, "data length not aligned: %lu\n", (ulong)dlen); in wil_fw_verify()
77 if (size < dlen) { in wil_fw_verify()
79 size, (ulong)dlen); in wil_fw_verify()
82 if (dlen < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
83 wil_err_fw(wil, "data length too short: %lu\n", (ulong)dlen); in wil_fw_verify()
108 dlen - sizeof(*hdr) - sizeof(fh)); in wil_fw_verify()
114 (ulong)dlen, crc, le32_to_cpu(fh_->crc)); in wil_fw_verify()
[all …]
/drivers/media/platform/blackfin/
Dppi.c210 if (params->dlen > 24 || params->dlen <= 0) in ppi_set_params()
216 pin_state[(params->dlen + 7) / 8 - 1]); in ppi_set_params()
223 hcount = params->width * params->bpp / params->dlen; in ppi_set_params()
224 hdelay = params->hdelay * params->bpp / params->dlen; in ppi_set_params()
225 samples_per_line = params->line * params->bpp / params->dlen; in ppi_set_params()
286 * params->bpp / params->dlen; in ppi_set_params()
Dbfin_capture.c49 int dlen; /* data length for ppi in bits */ member
81 int dlen; member
110 .dlen = 8,
117 .dlen = 8,
124 .dlen = 16,
131 .dlen = 8,
138 .dlen = 8,
278 params.dlen = bcap_dev->dlen; in bcap_start_streaming()
698 bcap_dev->dlen = bcap_fmt.dlen; in bcap_s_fmt_vid_cap()
/drivers/net/wireless/intersil/prism54/
Doid_mgt.c423 int dlen; in mgt_set_request() local
434 dlen = isl_oid[n].size; in mgt_set_request()
436 cache += (cache ? extra * dlen : 0); in mgt_set_request()
455 _data, dlen, &response); in mgt_set_request()
467 memcpy(cache, _data, dlen); in mgt_set_request()
485 int dlen; in mgt_set_varlen() local
490 dlen = isl_oid[n].size; in mgt_set_varlen()
497 data, dlen + extra_len, &response); in mgt_set_varlen()
523 int dlen; in mgt_get_request() local
536 dlen = isl_oid[n].size; in mgt_get_request()
[all …]
/drivers/crypto/cavium/cpt/
Drequest_manager.h52 u16 dlen; member
98 u32 dlen; member
121 u16 dlen; member
Dcptvf_reqmanager.c172 info->dlen = g_sz_bytes + s_sz_bytes + SG_LIST_HDR_SIZE; in setup_sgio_list()
173 info->in_buffer = kzalloc(info->dlen, GFP_KERNEL); in setup_sgio_list()
192 info->dlen, in setup_sgio_list()
195 dev_err(&pdev->dev, "Mapping DPTR Failed %d\n", info->dlen); in setup_sgio_list()
282 info->dlen, DMA_BIDIRECTIONAL); in do_request_cleanup()
454 cpt_req->dlen = info->dlen; in process_request()
484 vq_cmd.cmd.s.dlen = cpu_to_be16(cpt_req->dlen); in process_request()
/drivers/rpmsg/
Dqcom_glink_rpm.c159 const void *data, size_t dlen) in glink_rpm_tx_write() argument
162 size_t tlen = hlen + dlen; in glink_rpm_tx_write()
176 aligned_dlen = ALIGN_DOWN(dlen, 4); in glink_rpm_tx_write()
177 if (aligned_dlen != dlen) in glink_rpm_tx_write()
178 memcpy(padding, data + aligned_dlen, dlen - aligned_dlen); in glink_rpm_tx_write()
/drivers/target/iscsi/cxgbit/
Dcxgbit_target.c163 cxgbit_tx_data_wr(struct cxgbit_sock *csk, struct sk_buff *skb, u32 dlen, in cxgbit_tx_data_wr() argument
184 immlen += dlen; in cxgbit_tx_data_wr()
210 u32 dlen = skb->len; in cxgbit_push_tx_frames() local
221 credits_needed = DIV_ROUND_UP(dlen + iso_cpl_len, 16); in cxgbit_push_tx_frames()
267 cxgbit_tx_data_wr(csk, skb, dlen, len, credits_needed, in cxgbit_push_tx_frames()
840 pdu_cb->doffset + pdu_cb->dlen, in cxgbit_skb_copy_to_sg()
915 u32 sg_nents = max(1UL, DIV_ROUND_UP(pdu_cb->dlen, PAGE_SIZE)); in cxgbit_handle_immediate_data()
920 cmd->write_data_done += pdu_cb->dlen; in cxgbit_handle_immediate_data()
999 if (pdu_cb->dlen && (pdu_cb->dlen == cmd->se_cmd.data_length) && in cxgbit_handle_scsi_cmd()
1009 if (!pdu_cb->dlen) in cxgbit_handle_scsi_cmd()
[all …]
Dcxgbit_ddp.c73 unsigned int dlen = npods << PPOD_SIZE_SHIFT; in cxgbit_ppod_init_idata() local
75 sizeof(struct ulptx_idata) + dlen, 16); in cxgbit_ppod_init_idata()
89 req->dlen = htonl(ULP_MEMIO_DATA_LEN_V(dlen >> 5)); in cxgbit_ppod_init_idata()
95 idata->len = htonl(dlen); in cxgbit_ppod_init_idata()
/drivers/net/
Dsb1000.c746 short dlen; in sb1000_rx() local
823 dlen = ((buffer[NewDatagramHeaderSkip + 3] & 0x0f) << 8 | in sb1000_rx()
825 if (dlen > SB1000_MRU) { in sb1000_rx()
828 "than MRU (%d)\n", dev->name, dlen, SB1000_MRU); in sb1000_rx()
833 lp->rx_dlen[ns] = dlen; in sb1000_rx()
835 skbsize = dlen + FrameSize; in sb1000_rx()
865 dlen = lp->rx_dlen[ns]; in sb1000_rx()
867 if (skb->len < dlen + TrailerSize) { in sb1000_rx()
873 skb_trim(skb, dlen); in sb1000_rx()
875 stats->rx_bytes+=dlen; in sb1000_rx()
/drivers/net/ppp/
Dppp_async.c957 int dlen, fcs, i, code; in async_lcp_peek() local
967 dlen = get_unaligned_be16(data + 2); in async_lcp_peek()
968 if (len < dlen) in async_lcp_peek()
977 for (i = 1; i < dlen; ++i) in async_lcp_peek()
996 dlen -= 4; in async_lcp_peek()
998 while (dlen >= 2 && dlen >= data[1] && data[1] >= 2) { in async_lcp_peek()
1015 dlen -= data[1]; in async_lcp_peek()
/drivers/crypto/sunxi-ss/
Dsun4i-ss-prng.c16 unsigned int slen, u8 *dst, unsigned int dlen) in sun4i_ss_prng_generate() argument
26 unsigned int todo = (dlen / 4) * 4; in sun4i_ss_prng_generate()

1234