Lines Matching refs:bytes_written
475 unsigned int bytes_written; in usbatm_write_cells() local
478 for (bytes_written = 0; bytes_written < avail_space && ctrl->len; in usbatm_write_cells()
479 bytes_written += stride, target += stride) { in usbatm_write_cells()
521 return bytes_written; in usbatm_write_cells()
588 unsigned int bytes_written = 0; in usbatm_tx_process() local
600 bytes_written = (urb->status == -EAGAIN) ? in usbatm_tx_process()
604 bytes_written += usbatm_write_cells(instance, skb, in usbatm_tx_process()
605 buffer + bytes_written, in usbatm_tx_process()
606 buf_size - bytes_written); in usbatm_tx_process()
610 __func__, bytes_written, skb, urb); in usbatm_tx_process()
621 if (bytes_written == buf_size || (!skb && bytes_written)) { in usbatm_tx_process()
622 urb->transfer_buffer_length = bytes_written; in usbatm_tx_process()