Home
last modified time | relevance | path

Searched refs:datalen (Results 1 – 25 of 133) sorted by relevance

123456

/drivers/base/
Ddevcoredump.c27 size_t datalen; member
71 void *data, size_t datalen);
118 return devcd->read(buffer, offset, count, devcd->data, devcd->datalen); in devcd_data_read()
235 void *data, size_t datalen) in devcd_readv() argument
237 return memory_read_from_buffer(buffer, count, &offset, data, datalen); in devcd_readv()
255 void dev_coredumpv(struct device *dev, void *data, size_t datalen, in dev_coredumpv() argument
258 dev_coredumpm(dev, NULL, data, datalen, gfp, devcd_readv, devcd_freev); in dev_coredumpv()
323 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
325 void *data, size_t datalen), in dev_coredumpm() argument
351 devcd->datalen = datalen; in dev_coredumpm()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfweh.c35 u32 datalen; member
244 emsg.datalen = be32_to_cpu(emsg_be->datalen); in brcmf_fweh_event_worker()
253 min_t(u32, emsg.datalen, 64), in brcmf_fweh_event_worker()
254 "event payload, len=%d\n", emsg.datalen); in brcmf_fweh_event_worker()
404 u32 datalen; in brcmf_fweh_process_event() local
408 datalen = get_unaligned_be32(&event_packet->msg.datalen); in brcmf_fweh_process_event()
417 if (datalen > BRCMF_DCMD_MAXLEN || in brcmf_fweh_process_event()
418 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event()
421 event = kzalloc(sizeof(*event) + datalen, gfp); in brcmf_fweh_process_event()
430 memcpy(event->data, data, datalen); in brcmf_fweh_process_event()
[all …]
Dfwil.c195 brcmf_create_iovar(const char *name, const char *data, u32 datalen, in brcmf_create_iovar() argument
202 if ((len + datalen) > buflen) in brcmf_create_iovar()
208 if (data && datalen) in brcmf_create_iovar()
209 memcpy(&buf[len], data, datalen); in brcmf_create_iovar()
211 return len + datalen; in brcmf_create_iovar()
296 brcmf_create_bsscfg(s32 bsscfgidx, const char *name, char *data, u32 datalen, in brcmf_create_bsscfg() argument
307 return brcmf_create_iovar(name, data, datalen, buf, buflen); in brcmf_create_bsscfg()
311 iolen = prefixlen + namelen + sizeof(bsscfgidx_le) + datalen; in brcmf_create_bsscfg()
334 if (datalen) in brcmf_create_bsscfg()
335 memcpy(p, data, datalen); in brcmf_create_bsscfg()
/drivers/net/wireless/ath/ath9k/
Ddfs.c101 int datalen, bool is_ctl, bool is_ext) in ath9k_check_chirping() argument
111 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping()
116 datalen, num_fft_packets); in ath9k_check_chirping()
122 if ((datalen % sizeof(*fft)) == 2) { in ath9k_check_chirping()
134 int num_fft_packets = datalen / sizeof(*fft); in ath9k_check_chirping()
138 datalen, num_fft_packets); in ath9k_check_chirping()
293 u16 datalen; in ath9k_dfs_process_phyerr() local
309 datalen = rs->rs_datalen; in ath9k_dfs_process_phyerr()
310 if (datalen == 0) { in ath9k_dfs_process_phyerr()
327 vdata_end = data + datalen; in ath9k_dfs_process_phyerr()
[all …]
/drivers/infiniband/hw/hfi1/
Duser_sdma.c44 u32 datalen);
46 struct user_sdma_txreq *tx, u32 datalen);
641 u32 datalen) in user_sdma_txadd_ahg() argument
645 u32 lrhlen = get_lrh_len(req->hdr, pad_len(datalen)); in user_sdma_txadd_ahg()
661 ret = check_header_template(req, &tx->hdr, lrhlen, datalen); in user_sdma_txadd_ahg()
665 sizeof(tx->hdr) + datalen, req->ahg_idx, in user_sdma_txadd_ahg()
706 u32 datalen = 0; in user_sdma_send_pkts() local
748 datalen = compute_data_length(req, tx); in user_sdma_send_pkts()
758 if (!datalen) { in user_sdma_send_pkts()
763 } else if (datalen <= 32) { in user_sdma_send_pkts()
[all …]
Dfault.c94 size_t copy, datalen = 1280; in fault_opcodes_write() local
98 data = kcalloc(datalen, sizeof(*data), GFP_KERNEL); in fault_opcodes_write()
101 copy = min(len, datalen - 1); in fault_opcodes_write()
168 size_t datalen = 1280, size = 0; /* see fault_opcodes_write() */ in fault_opcodes_read() local
173 data = kcalloc(datalen, sizeof(*data), GFP_KERNEL); in fault_opcodes_read()
184 datalen - size - 1, in fault_opcodes_read()
188 datalen - size - 1, "0x%lx,", in fault_opcodes_read()
/drivers/i2c/busses/
Di2c-mlxcpld.c101 u8 *data, u8 datalen) in mlxcpld_i2c_read_comm() argument
105 switch (datalen) { in mlxcpld_i2c_read_comm()
120 mlxcpld_i2c_lpc_read_buf(data, datalen, addr); in mlxcpld_i2c_read_comm()
126 u8 *data, u8 datalen) in mlxcpld_i2c_write_comm() argument
130 switch (datalen) { in mlxcpld_i2c_write_comm()
145 mlxcpld_i2c_lpc_write_buf(data, datalen, addr); in mlxcpld_i2c_write_comm()
290 u8 datalen, val; in mlxcpld_i2c_wait_for_tc() local
327 &datalen, 1); in mlxcpld_i2c_wait_for_tc()
328 if (unlikely(datalen > I2C_SMBUS_BLOCK_MAX)) { in mlxcpld_i2c_wait_for_tc()
333 datalen = priv->xfer.data_len; in mlxcpld_i2c_wait_for_tc()
[all …]
/drivers/nfc/pn544/
Di2c.c559 const u8 *data, u16 datalen) in pn544_hci_i2c_fw_write_cmd() argument
567 if (datalen > PN544_FW_I2C_WRITE_DATA_MAX_LEN) in pn544_hci_i2c_fw_write_cmd()
568 datalen = PN544_FW_I2C_WRITE_DATA_MAX_LEN; in pn544_hci_i2c_fw_write_cmd()
573 sizeof(framep->be_datalen) + datalen; in pn544_hci_i2c_fw_write_cmd()
585 put_unaligned_be16(datalen, &framep->be_datalen); in pn544_hci_i2c_fw_write_cmd()
587 memcpy(framep->data, data, datalen); in pn544_hci_i2c_fw_write_cmd()
592 return datalen; in pn544_hci_i2c_fw_write_cmd()
600 const u8 *data, u16 datalen) in pn544_hci_i2c_fw_check_cmd() argument
607 crc = crc_ccitt(0xffff, data, datalen); in pn544_hci_i2c_fw_check_cmd()
620 put_unaligned_be16(datalen, &frame.be_datalen); in pn544_hci_i2c_fw_check_cmd()
[all …]
/drivers/s390/scsi/
Dzfcp_fc.h231 u32 datalen; in zfcp_fc_scsi_to_fcp() local
244 datalen = scsi_bufflen(scsi); in zfcp_fc_scsi_to_fcp()
245 fcp->fc_dl = cpu_to_be32(datalen); in zfcp_fc_scsi_to_fcp()
248 datalen += datalen / scsi->device->sector_size * 8; in zfcp_fc_scsi_to_fcp()
249 fcp->fc_dl = cpu_to_be32(datalen); in zfcp_fc_scsi_to_fcp()
/drivers/scsi/esas2r/
Desas2r_vda.c70 u32 datalen = 0; in esas2r_process_vda_ioctl() local
110 datalen = vi->data_length; in esas2r_process_vda_ioctl()
112 rq->vrq->flash.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
124 datalen = vi->data_length; in esas2r_process_vda_ioctl()
128 rq->vrq->cli.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
157 datalen = vi->cmd.mgt.data_length; in esas2r_process_vda_ioctl()
161 datalen = vi->data_length; in esas2r_process_vda_ioctl()
169 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
185 datalen = vi->cmd.mgt.data_length; in esas2r_process_vda_ioctl()
187 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
[all …]
/drivers/nfc/pn533/
Dpn533.h52 #define PN533_STD_FRAME_CHECKSUM(f) (f->data[f->datalen])
53 #define PN533_STD_FRAME_POSTAMBLE(f) (f->data[f->datalen + 1])
55 #define PN533_STD_IS_EXTENDED(hdr) ((hdr)->datalen == 0xFF \
57 #define PN533_EXT_FRAME_CHECKSUM(f) (f->data[be16_to_cpu(f->datalen)])
119 u8 datalen; member
128 __be16 datalen; member
Dusb.c248 u32 datalen; member
270 u8 datalen; member
285 frame->ccid.datalen = sizeof(frame->apdu) + 1; in pn533_acr122_tx_frame_init()
294 frame->datalen = 2; /* data[0] + data[1] */ in pn533_acr122_tx_frame_init()
306 frame->ccid.datalen += frame->datalen; in pn533_acr122_tx_frame_finish()
313 frame->datalen += len; in pn533_acr122_tx_update_payload_len()
323 if (!frame->ccid.datalen) in pn533_acr122_is_rx_frame_valid()
326 if (frame->data[frame->ccid.datalen - 2] == 0x63) in pn533_acr122_is_rx_frame_valid()
337 return sizeof(struct pn533_acr122_rx_frame) + f->ccid.datalen; in pn533_acr122_rx_frame_size()
/drivers/block/rnbd/
Drnbd-srv-trace.h69 u32 datalen,
72 TP_ARGS(srv, msg, id, datalen, usrlen),
83 __field(u32, datalen)
96 __entry->datalen = datalen;
111 __entry->datalen,
Drnbd-srv.c118 struct rtrs_srv_op *id, void *data, u32 datalen, in process_rdma() argument
129 trace_process_rdma(srv_sess, msg, id, datalen, usrlen); in process_rdma()
150 if (bio_add_page(bio, virt_to_page(data), datalen, in process_rdma()
151 offset_in_page(data)) != datalen) { in process_rdma()
336 void *data, size_t datalen, const void *usr, in process_msg_close() argument
357 void *data, size_t datalen);
361 void *data, size_t datalen);
364 void *data, size_t datalen, in rnbd_srv_rdma_ev() argument
379 return process_rdma(srv_sess, id, data, datalen, usr, usrlen); in rnbd_srv_rdma_ev()
381 process_msg_close(srv_sess, data, datalen, usr, usrlen); in rnbd_srv_rdma_ev()
[all …]
/drivers/scsi/
Dlibiscsi_tcp.c425 conn->data, tcp_conn->in.datalen); in iscsi_tcp_data_recv_done()
444 conn->data, tcp_conn->in.datalen, in iscsi_tcp_data_recv_prep()
501 if (tcp_conn->in.datalen == 0) in iscsi_tcp_data_in()
513 if (tcp_task->data_offset + tcp_conn->in.datalen > total_in_length) { in iscsi_tcp_data_in()
516 tcp_conn->in.datalen, total_in_length); in iscsi_tcp_data_in()
573 if (tcp_conn->in.datalen) { in iscsi_tcp_r2t_rsp()
576 tcp_conn->in.datalen); in iscsi_tcp_r2t_rsp()
696 tcp_conn->in.datalen = ntoh24(hdr->dlength); in iscsi_tcp_hdr_dissect()
697 if (tcp_conn->in.datalen > conn->max_recv_dlength) { in iscsi_tcp_hdr_dissect()
700 tcp_conn->in.datalen, conn->max_recv_dlength); in iscsi_tcp_hdr_dissect()
[all …]
/drivers/mtd/nand/raw/
Dcafe_nand.c67 int datalen; member
125 memcpy(cafe->dmabuf + cafe->datalen, buf, len); in cafe_write_buf()
127 memcpy_toio(cafe->mmio + CAFE_NAND_WRITE_DATA + cafe->datalen, buf, len); in cafe_write_buf()
129 cafe->datalen += len; in cafe_write_buf()
132 len, cafe->datalen); in cafe_write_buf()
140 memcpy(buf, cafe->dmabuf + cafe->datalen, len); in cafe_read_buf()
142 memcpy_fromio(buf, cafe->mmio + CAFE_NAND_READ_DATA + cafe->datalen, len); in cafe_read_buf()
145 len, cafe->datalen); in cafe_read_buf()
146 cafe->datalen += len; in cafe_read_buf()
209 cafe->data_pos = cafe->datalen = 0; in cafe_nand_cmdfunc()
[all …]
/drivers/s390/char/
Dmonwriter.c73 (void *) buffer, myhdr->datalen); in monwrite_diag()
108 if (monhdr->datalen > MONWRITE_MAX_DATALEN || in monwrite_new_hdr()
117 monhdr->datalen = monbuf->hdr.datalen; in monwrite_new_hdr()
132 monbuf->data = kzalloc(monhdr->datalen, in monwrite_new_hdr()
245 monpriv->current_buf->hdr.datalen : 0; in monwrite_write()
251 monpriv->hdr.datalen - monpriv->data_to_read; in monwrite_write()
/drivers/input/mouse/
Dappletouch.c35 int datalen; /* size of USB transfers */ member
49 .datalen = 81,
60 .datalen = 81,
71 .datalen = 64,
81 .datalen = 64,
91 .datalen = 64,
458 dev->info->datalen, dev->urb->actual_length); in atp_status_check()
479 if (dev->urb->actual_length != dev->info->datalen) { in atp_status_check()
600 key = dev->data[dev->info->datalen - 1] & ATP_STATUS_BUTTON; in atp_complete_geyser_1_2()
689 if (dev->data[dev->info->datalen - 1] & ATP_STATUS_BASE_UPDATE) { in atp_complete_geyser_3_4()
[all …]
/drivers/md/
Ddm-log-writes.c129 u32 datalen; member
213 size_t entrylen, void *data, size_t datalen, in write_metadata() argument
237 if (datalen) in write_metadata()
238 memcpy(ptr + entrylen, data, datalen); in write_metadata()
239 memset(ptr + entrylen + datalen, 0, in write_metadata()
240 lc->sectorsize - entrylen - datalen); in write_metadata()
259 size_t entrylen, void *data, size_t datalen, in write_inline_data() argument
268 while (datalen) { in write_inline_data()
269 bio_pages = bio_max_segs(DIV_ROUND_UP(datalen, PAGE_SIZE)); in write_inline_data()
281 pg_datalen = min_t(int, datalen, PAGE_SIZE); in write_inline_data()
[all …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe-desc.c532 unsigned int offset, tso, vlan, datalen, len; in xgbe_map_tx_skb() local
579 for (datalen = skb_headlen(skb) - offset; datalen; ) { in xgbe_map_tx_skb()
580 len = min_t(unsigned int, datalen, XGBE_TX_MAX_BUF_SIZE); in xgbe_map_tx_skb()
594 datalen -= len; in xgbe_map_tx_skb()
610 for (datalen = skb_frag_size(frag); datalen; ) { in xgbe_map_tx_skb()
611 len = min_t(unsigned int, datalen, in xgbe_map_tx_skb()
628 datalen -= len; in xgbe_map_tx_skb()
/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-desc.c504 unsigned int offset, datalen, len; in xlgmac_map_tx_skb() local
555 for (datalen = skb_headlen(skb) - offset; datalen; ) { in xlgmac_map_tx_skb()
556 len = min_t(unsigned int, datalen, XLGMAC_TX_MAX_BUF_SIZE); in xlgmac_map_tx_skb()
570 datalen -= len; in xlgmac_map_tx_skb()
586 for (datalen = skb_frag_size(frag); datalen; ) { in xlgmac_map_tx_skb()
587 len = min_t(unsigned int, datalen, in xlgmac_map_tx_skb()
604 datalen -= len; in xlgmac_map_tx_skb()
/drivers/infiniband/hw/irdma/
Dpuda.c1242 if (offset > buf->datalen) in irdma_ieq_check_first_buf()
1245 buf->datalen -= (u16)offset; in irdma_ieq_check_first_buf()
1285 if (buf->datalen >= fpdu_len) { in irdma_ieq_compl_pfpdu()
1289 buf->datalen -= fpdu_len; in irdma_ieq_compl_pfpdu()
1296 buf->datalen); in irdma_ieq_compl_pfpdu()
1297 txoffset += buf->datalen; in irdma_ieq_compl_pfpdu()
1298 fpdu_len -= buf->datalen; in irdma_ieq_compl_pfpdu()
1308 if (buf->datalen) in irdma_ieq_compl_pfpdu()
1330 u16 plen = fpdu_len - buf->datalen; in irdma_ieq_create_pbufl()
1333 nextseqnum = buf->seqnum + buf->datalen; in irdma_ieq_create_pbufl()
[all …]
/drivers/crypto/
Datmel-aes.c209 size_t datalen; member
607 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_cpu_transfer()
609 if (dd->datalen < AES_BLOCK_SIZE) in atmel_aes_cpu_transfer()
648 dd->datalen = len + padlen; in atmel_aes_cpu_start()
1003 size_t datalen; in atmel_aes_ctr_transfer() local
1014 datalen = req->cryptlen - ctx->offset; in atmel_aes_ctr_transfer()
1015 ctx->blocks = DIV_ROUND_UP(datalen, AES_BLOCK_SIZE); in atmel_aes_ctr_transfer()
1024 datalen = AES_BLOCK_SIZE * (0x10000 - start); in atmel_aes_ctr_transfer()
1028 use_dma = (datalen >= ATMEL_AES_DMA_THRESHOLD); in atmel_aes_ctr_transfer()
1047 return atmel_aes_dma_start(dd, src, dst, datalen, in atmel_aes_ctr_transfer()
[all …]
/drivers/usb/serial/
Dgarmin_gps.c592 int datalen = 0; in gsp_send() local
613 datalen = getDataLength(garmin_data_p->outbuffer); in gsp_send()
614 i = GARMIN_PKTHDR_LENGTH + datalen; in gsp_send()
641 if (datalen > 255) { in gsp_send()
642 dev_dbg(dev, "packet-size %d too large\n", datalen); in gsp_send()
650 for (i = 0; i < datalen; i++) { in gsp_send()
659 dst = garmin_data_p->outbuffer+GPS_OUT_BUFSIZ-datalen; in gsp_send()
660 memcpy(dst, src, datalen); in gsp_send()
669 *dst++ = datalen; in gsp_send()
670 cksum += datalen; in gsp_send()
[all …]
/drivers/net/wireless/ath/ath11k/
Dtestmode.c104 u16 datalen; in ath11k_tm_process_event() local
131 datalen = length - (sizeof(struct wmi_ftm_seg_hdr)); in ath11k_tm_process_event()
143 if ((data_pos + datalen) > ATH11K_FTM_EVENT_MAX_BUF_LENGTH) { in ath11k_tm_process_event()
145 data_pos, datalen); in ath11k_tm_process_event()
150 memcpy(&ab->testmode.eventdata[data_pos], buf_pos, datalen); in ath11k_tm_process_event()
151 data_pos += datalen; in ath11k_tm_process_event()

123456