Lines Matching refs:bytes_written
460 unsigned int bytes_written; in usbatm_write_cells() local
463 for (bytes_written = 0; bytes_written < avail_space && ctrl->len; in usbatm_write_cells()
464 bytes_written += stride, target += stride) { in usbatm_write_cells()
506 return bytes_written; in usbatm_write_cells()
575 unsigned int bytes_written = 0; in usbatm_tx_process() local
587 bytes_written = (urb->status == -EAGAIN) ? in usbatm_tx_process()
591 bytes_written += usbatm_write_cells(instance, skb, in usbatm_tx_process()
592 buffer + bytes_written, in usbatm_tx_process()
593 buf_size - bytes_written); in usbatm_tx_process()
597 __func__, bytes_written, skb, urb); in usbatm_tx_process()
608 if (bytes_written == buf_size || (!skb && bytes_written)) { in usbatm_tx_process()
609 urb->transfer_buffer_length = bytes_written; in usbatm_tx_process()