Lines Matching refs:length
249 len = urb->iso_frame_desc[0].length; in musb_start_urb()
473 u32 length; in musb_host_packet_rx() local
499 length = d->length; in musb_host_packet_rx()
500 if (rx_count > length) { in musb_host_packet_rx()
505 dev_dbg(musb->controller, "** OVERFLOW %d into %d\n", rx_count, length); in musb_host_packet_rx()
508 length = rx_count; in musb_host_packet_rx()
509 urb->actual_length += length; in musb_host_packet_rx()
510 d->actual_length = length; in musb_host_packet_rx()
519 length = urb->transfer_buffer_length - qh->offset; in musb_host_packet_rx()
520 if (rx_count > length) { in musb_host_packet_rx()
523 dev_dbg(musb->controller, "** OVERFLOW %d into %d\n", rx_count, length); in musb_host_packet_rx()
526 length = rx_count; in musb_host_packet_rx()
527 urb->actual_length += length; in musb_host_packet_rx()
528 qh->offset += length; in musb_host_packet_rx()
542 musb_read_fifo(hw_ep, length, buf); in musb_host_packet_rx()
633 u32 *length, u8 *mode) in musb_tx_dma_set_mode_mentor() argument
640 if (*length > channel->max_len) in musb_tx_dma_set_mode_mentor()
641 *length = channel->max_len; in musb_tx_dma_set_mode_mentor()
644 if (*length > pkt_size) { in musb_tx_dma_set_mode_mentor()
676 u32 *length, in musb_tx_dma_set_mode_cppi_tusb() argument
697 struct urb *urb, u32 offset, u32 length) in musb_tx_dma_program() argument
706 offset, &length, &mode); in musb_tx_dma_program()
709 offset, &length, &mode); in musb_tx_dma_program()
713 qh->segsize = length; in musb_tx_dma_program()
722 urb->transfer_dma + offset, length)) { in musb_tx_dma_program()
907 qh->sg_miter.length); in musb_ep_program()
1275 size_t length = 0; in musb_host_tx() local
1435 length = dma->actual_len; in musb_host_tx()
1437 length = qh->segsize; in musb_host_tx()
1438 qh->offset += length; in musb_host_tx()
1444 d->actual_length = length; in musb_host_tx()
1451 length = d->length; in musb_host_tx()
1465 length = urb->transfer_buffer_length - offset; in musb_host_tx()
1488 offset, length)) { in musb_host_tx()
1505 if (length > qh->maxpacket) in musb_host_tx()
1506 length = qh->maxpacket; in musb_host_tx()
1526 length = min_t(u32, length, qh->sg_miter.length); in musb_host_tx()
1527 musb_write_fifo(hw_ep, length, urb->transfer_buffer); in musb_host_tx()
1528 qh->sg_miter.consumed = length; in musb_host_tx()
1531 musb_write_fifo(hw_ep, length, urb->transfer_buffer + offset); in musb_host_tx()
1534 qh->segsize = length; in musb_host_tx()
1537 if (offset + length >= urb->transfer_buffer_length) in musb_host_tx()
1557 u32 length, res; in musb_rx_dma_iso_cppi41() local
1563 length = urb->iso_frame_desc[qh->iso_idx].length; in musb_rx_dma_iso_cppi41()
1570 (u32)buf, length); in musb_rx_dma_iso_cppi41()
1702 int length, pipe, done; in musb_rx_dma_in_inventra_cppi41() local
1718 if (rx_count > d->length) { in musb_rx_dma_in_inventra_cppi41()
1724 rx_count, d->length); in musb_rx_dma_in_inventra_cppi41()
1726 length = d->length; in musb_rx_dma_in_inventra_cppi41()
1728 length = rx_count; in musb_rx_dma_in_inventra_cppi41()
1732 length = rx_count; in musb_rx_dma_in_inventra_cppi41()
1746 length = rx_count; in musb_rx_dma_in_inventra_cppi41()
1749 length = urb->transfer_buffer_length; in musb_rx_dma_in_inventra_cppi41()
1775 buf, length); in musb_rx_dma_in_inventra_cppi41()
2634 size_t length; in musb_free_temp_buffer() local
2646 length = urb->transfer_buffer_length; in musb_free_temp_buffer()
2648 length = urb->actual_length; in musb_free_temp_buffer()
2650 memcpy(temp->old_xfer_buffer, temp->data, length); in musb_free_temp_buffer()