Home
last modified time | relevance | path

Searched refs:transfer_len (Results 1 – 23 of 23) sorted by relevance

/drivers/char/tpm/
Dtpm_tis_spi.c61 u8 transfer_len; in tpm_tis_spi_transfer() local
66 transfer_len = min_t(u16, len, MAX_SPI_FRAMESIZE); in tpm_tis_spi_transfer()
68 phy->iobuf[0] = (in ? 0x80 : 0) | (transfer_len - 1); in tpm_tis_spi_transfer()
107 spi_xfer.len = transfer_len; in tpm_tis_spi_transfer()
114 memcpy(phy->iobuf, out, transfer_len); in tpm_tis_spi_transfer()
115 out += transfer_len; in tpm_tis_spi_transfer()
125 memcpy(in, phy->iobuf, transfer_len); in tpm_tis_spi_transfer()
126 in += transfer_len; in tpm_tis_spi_transfer()
129 len -= transfer_len; in tpm_tis_spi_transfer()
/drivers/usb/musb/
Dtusb6010_omap.c46 u32 transfer_len; member
122 if (unlikely(remaining > chdat->transfer_len)) { in tusb_omap_dma_cb()
128 channel->actual_len = chdat->transfer_len - remaining; in tusb_omap_dma_cb()
131 dev_dbg(musb->controller, "DMA remaining %lu/%u\n", remaining, chdat->transfer_len); in tusb_omap_dma_cb()
138 buf = phys_to_virt((u32)chdat->dma_addr) + chdat->transfer_len; in tusb_omap_dma_cb()
141 chdat->transfer_len, in tusb_omap_dma_cb()
146 chdat->transfer_len, in tusb_omap_dma_cb()
164 if ((chdat->transfer_len < chdat->packet_sz) in tusb_omap_dma_cb()
165 || (chdat->transfer_len % chdat->packet_sz != 0)) { in tusb_omap_dma_cb()
231 chdat->transfer_len = len & ~0x1f; in tusb_omap_dma_program()
[all …]
/drivers/spi/
Dspi-zynqmp-gqspi.c807 u32 genfifoentry = 0x0, transfer_len; in zynqmp_qspi_start_transfer() local
820 transfer_len = xqspi->dma_rx_bytes; in zynqmp_qspi_start_transfer()
822 transfer_len = transfer->len; in zynqmp_qspi_start_transfer()
825 if ((transfer_len) < GQSPI_GENFIFO_IMM_DATA_MASK) { in zynqmp_qspi_start_transfer()
827 genfifoentry |= transfer_len; in zynqmp_qspi_start_transfer()
830 int tempcount = transfer_len; in zynqmp_qspi_start_transfer()
/drivers/staging/rtl8188eu/os_dep/
Dusb_ops_linux.c38 s32 transfer_len; in recvbuf2recvframe() local
48 transfer_len = (s32)pskb->len; in recvbuf2recvframe()
88 if ((pattrib->pkt_len <= 0) || (pkt_offset > transfer_len)) { in recvbuf2recvframe()
169 transfer_len -= pkt_offset; in recvbuf2recvframe()
174 if (transfer_len > 0 && pkt_cnt == 0) in recvbuf2recvframe()
177 } while ((transfer_len > 0) && (pkt_cnt > 0)); in recvbuf2recvframe()
/drivers/staging/rtl8712/
Drtl8712_recv.c110 precvbuf->transfer_len = 0; in r8712_init_recvbuf()
989 u32 transfer_len; in recvbuf2recvframe() local
1002 transfer_len = pskb->len; in recvbuf2recvframe()
1007 if (transfer_len < pkt_len) { in recvbuf2recvframe()
1075 transfer_len -= pkt_offset; in recvbuf2recvframe()
1080 } while ((transfer_len > 0) && pkt_cnt > 0); in recvbuf2recvframe()
Drtl8712_recv.h96 u32 transfer_len; member
Drecv_linux.c56 precvbuf->transfer_len = 0; in r8712_os_recvbuf_resource_alloc()
Dusb_ops_linux.c199 precvbuf->transfer_len = purb->actual_length; in r8712_usb_read_port_complete()
/drivers/nvme/target/
Dtcp.c159 cmd->rbytes_done < cmd->req.transfer_len; in nvmet_tcp_has_data_in()
170 cmd->req.transfer_len > 0 && in nvmet_tcp_need_data_out()
335 cmd->req.transfer_len += len; in nvmet_tcp_map_data()
359 (void *)&cmd->exp_ddgst, cmd->req.transfer_len); in nvmet_tcp_ddgst()
380 cmd->req.transfer_len + ddgst); in nvmet_setup_c2h_data_pdu()
382 pdu->data_length = cpu_to_le32(cmd->req.transfer_len); in nvmet_setup_c2h_data_pdu()
413 pdu->r2t_length = cpu_to_le32(cmd->req.transfer_len - cmd->rbytes_done); in nvmet_setup_r2t_pdu()
1050 cmd->rbytes_done == cmd->req.transfer_len) { in nvmet_tcp_try_recv_data()
1094 cmd->rbytes_done == cmd->req.transfer_len) in nvmet_tcp_try_recv_ddgst()
Dfc.c1723 sg = sgl_alloc(fod->req.transfer_len, GFP_KERNEL, &nent); in nvmet_fc_alloc_tgt_pgs()
1784 xfr_length = fod->req.transfer_len; in nvmet_fc_prep_fcp_rsp()
1810 xfr_length != fod->req.transfer_len || in nvmet_fc_prep_fcp_rsp()
1880 u32 remaininglen = fod->req.transfer_len - fod->offset; in nvmet_fc_transfer_fcp_data()
1926 ((fod->offset + fcpreq->transfer_length) == fod->req.transfer_len) && in nvmet_fc_transfer_fcp_data()
2006 if (fod->offset != fod->req.transfer_len) { in nvmet_fc_fod_op_done()
2041 if (fod->offset != fod->req.transfer_len) { in nvmet_fc_fod_op_done()
2206 fod->req.transfer_len = xfrlen; in nvmet_fc_handle_fcp_rqst()
2211 if (fod->req.transfer_len) { in nvmet_fc_handle_fcp_rqst()
Drdma.c155 rsp->req.transfer_len && in nvmet_rdma_need_data_in()
162 rsp->req.transfer_len && in nvmet_rdma_need_data_out()
656 rsp->req.transfer_len += len; in nvmet_rdma_map_sgl_inline()
668 rsp->req.transfer_len = get_unaligned_le24(sgl->length); in nvmet_rdma_map_sgl_keyed()
671 if (!rsp->req.transfer_len) in nvmet_rdma_map_sgl_keyed()
693 rsp->req.transfer_len = 0; in nvmet_rdma_map_sgl_keyed()
Dcore.c867 req->transfer_len = 0; in nvmet_req_init()
935 if (unlikely(req->data_len != req->transfer_len)) { in nvmet_req_execute()
955 req->transfer_len); in nvmet_req_alloc_sgl()
968 req->sg = sgl_alloc(req->transfer_len, GFP_KERNEL, &req->sg_cnt); in nvmet_req_alloc_sgl()
Dnvmet.h310 size_t transfer_len; member
Dloop.c167 iod->req.transfer_len = blk_rq_payload_bytes(req); in nvme_loop_queue_rq()
/drivers/net/wireless/ath/ath6kl/
Dhtc_pipe.c99 unsigned int transfer_len; in get_htc_packet_credit_based() local
116 transfer_len = packet->act_len + HTC_HDR_LENGTH; in get_htc_packet_credit_based()
118 if (transfer_len <= target->tgt_cred_sz) { in get_htc_packet_credit_based()
122 credits_required = transfer_len / target->tgt_cred_sz; in get_htc_packet_credit_based()
123 remainder = transfer_len % target->tgt_cred_sz; in get_htc_packet_credit_based()
/drivers/scsi/
Dscript_asm.pl467 $transfer_len = $1;
475 &parse_value ($transfer_len, 0, 0, 3);
Dhpsa_cmd.h475 __le32 transfer_len; /* 0x1C - 0x1F */ member
Dips.c3248 uint32_t transfer_len; in ips_map_status() local
3298 transfer_len = tapeDCDB->transfer_length; in ips_map_status()
3300 transfer_len = in ips_map_status()
3304 if ((scb->bus) && (transfer_len < scb->data_len)) { in ips_map_status()
Dhpsa.c4783 cp->transfer_len = cpu_to_le32(total_len); in hpsa_scsi_ioaccel1_queue_command()
9947 VERIFY_OFFSET(transfer_len, 0x1C); in verify_offsets()
/drivers/usb/host/
Dxhci-ring.c1958 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in finish_td()
2024 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
2026 remaining = EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
2123 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_isoc_td()
2128 remaining = EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_isoc_td()
2239 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2240 remaining = EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2324 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in handle_tx_event()
2378 if (EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) == 0) in handle_tx_event()
2662 le32_to_cpu(event->transfer_len), in handle_tx_event()
Dxhci.h1073 __le32 transfer_len; member
/drivers/scsi/arcmsr/
Darcmsr_hba.c2772 int retvalue = 0, transfer_len = 0; in arcmsr_iop_message_xfer() local
2788 transfer_len += sg->length; in arcmsr_iop_message_xfer()
2789 if (transfer_len > sizeof(struct CMD_MESSAGE_FIELD)) { in arcmsr_iop_message_xfer()
/drivers/scsi/ufs/
Dufshcd.c332 int transfer_len = -1; in ufshcd_add_command_trace() local
353 transfer_len = be32_to_cpu( in ufshcd_add_command_trace()
361 doorbell, transfer_len, intr, lba, opcode); in ufshcd_add_command_trace()