/drivers/crypto/nx/ |
D | nx-842.c | 88 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/ |
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 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 …]
|
D | zip_crypto.h | 65 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/ |
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()
|
D | btmtkuart.c | 68 __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 …]
|
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()
|
D | btmtksdio.c | 121 __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() 391 u16 dlen; in btmtksdio_rx_packet() local 447 dlen = skb->data[(&pkts[i])->loff]; in btmtksdio_rx_packet() 450 dlen = get_unaligned_le16(skb->data + in btmtksdio_rx_packet() 457 pad_size = skb->len - (&pkts[i])->hlen - dlen; in btmtksdio_rx_packet() 669 wmt_params.dlen = sizeof(param); in btmtksdio_func_query() [all …]
|
D | hci_ath.c | 148 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/ |
D | pg.c | 213 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/ |
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()
|
D | pvrusb2-i2c-core.c | 92 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/ |
D | fcoe_ctlr.c | 615 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/crypto/hisilicon/trng/ |
D | trng.c | 113 unsigned int slen, u8 *dstn, unsigned int dlen) in hisi_trng_generate() argument 123 if (dlen > SW_DRBG_BLOCKS_NUM * SW_DRBG_BYTES || dlen == 0) { in hisi_trng_generate() 124 pr_err("dlen(%d) exceeds limit(%d)!\n", dlen, in hisi_trng_generate() 140 if (dlen - currsize >= SW_DRBG_BYTES) { in hisi_trng_generate() 144 memcpy(dstn + currsize, data, dlen - currsize); in hisi_trng_generate() 145 currsize = dlen; in hisi_trng_generate() 149 } while (currsize < dlen); in hisi_trng_generate()
|
/drivers/net/wireless/ath/wil6210/ |
D | fw_inc.c | 45 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/ |
D | qedf_fip.c | 86 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/ |
D | sun8i-ce-prng.c | 56 unsigned int slen, u8 *dst, unsigned int dlen) in sun8i_ce_prng_generate() argument 80 todo = dlen + ctx->slen + PRNG_DATA_SIZE * 2; in sun8i_ce_prng_generate() 90 slen, dlen, todo, todo / PRNG_DATA_SIZE); in sun8i_ce_prng_generate() 155 memcpy(dst, d, dlen); in sun8i_ce_prng_generate() 156 memcpy(ctx->seed, d + dlen, ctx->slen); in sun8i_ce_prng_generate()
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_reqmgr.c | 163 u32 dlen, align_dlen, info_len; in info_create() local 178 dlen = g_sz_bytes + s_sz_bytes + SG_LIST_HDR_SIZE; in info_create() 179 align_dlen = ALIGN(dlen, align); in info_create() 187 info->dlen = dlen; in info_create() 255 cpt_req->dlen = info->dlen; in process_request() 302 iq_cmd.cmd.s.dlen = cpu_to_be16(cpt_req->dlen); in process_request() 318 pr_debug("Dptr hexdump (%d bytes)\n", cpt_req->dlen); in process_request() 320 cpt_req->dlen, false); in process_request()
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_reqmgr.c | 173 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/ |
D | exynos-rng.c | 141 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/broadcom/brcm80211/brcmfmac/ |
D | xtlv.c | 24 int brcmf_xtlv_data_size(int dlen, u16 opts) in brcmf_xtlv_data_size() argument 30 return roundup(dlen + hsz, 4); in brcmf_xtlv_data_size() 32 return dlen + hsz; in brcmf_xtlv_data_size()
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-prng.c | 56 unsigned int slen, u8 *dst, unsigned int dlen) in sun8i_ss_prng_generate() argument 81 todo = dlen + PRNG_SEED_SIZE + PRNG_DATA_SIZE; in sun8i_ss_prng_generate() 164 memcpy(dst, d, dlen); in sun8i_ss_prng_generate() 166 memcpy(ctx->seed, d + dlen, ctx->slen); in sun8i_ss_prng_generate()
|
/drivers/crypto/cavium/cpt/ |
D | request_manager.h | 49 u16 dlen; member 97 u32 dlen; member 120 __be16 dlen; member
|
D | cptvf_reqmanager.c | 170 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() 275 info->dlen, DMA_BIDIRECTIONAL); in do_request_cleanup() 437 cpt_req->dlen = info->dlen; in process_request() 467 vq_cmd.cmd.s.dlen = cpu_to_be16(cpt_req->dlen); in process_request()
|
/drivers/rpmsg/ |
D | qcom_glink_rpm.c | 151 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/ |
D | cxgbit_ddp.c | 70 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()
|