Lines Matching refs:bytes_written
346 ssize_t *bytes_written, unsigned int tflags, int async) in sisusb_send_bulk_msg() argument
355 (*bytes_written) = 0; in sisusb_send_bulk_msg()
438 (*bytes_written) += passsize; in sisusb_send_bulk_msg()
449 (*bytes_written) = len; in sisusb_send_bulk_msg()
453 (*bytes_written) = transferred_len; in sisusb_send_bulk_msg()
458 return ((*bytes_written) == len) ? 0 : -EIO; in sisusb_send_bulk_msg()
785 ssize_t *bytes_written) in sisusb_write_mem_bulk() argument
801 (*bytes_written = 0); in sisusb_write_mem_bulk()
821 (*bytes_written)++; in sisusb_write_mem_bulk()
838 (*bytes_written) += 2; in sisusb_write_mem_bulk()
872 (*bytes_written) += 3; in sisusb_write_mem_bulk()
888 (*bytes_written) += 4; in sisusb_write_mem_bulk()
915 bytes_written, 0, 1); in sisusb_write_mem_bulk()
916 userbuffer += (*bytes_written); in sisusb_write_mem_bulk()
922 bytes_written, 0, 1); in sisusb_write_mem_bulk()
923 kernbuffer += (*bytes_written); in sisusb_write_mem_bulk()
929 bytes_written, 0, 1); in sisusb_write_mem_bulk()
930 kernbuffer += ((*bytes_written) & in sisusb_write_mem_bulk()
959 bytes_written, 0, 1); in sisusb_write_mem_bulk()
960 userbuffer += (*bytes_written); in sisusb_write_mem_bulk()
966 bytes_written, 0, 1); in sisusb_write_mem_bulk()
967 kernbuffer += (*bytes_written); in sisusb_write_mem_bulk()
973 bytes_written, 0, 1); in sisusb_write_mem_bulk()
974 kernbuffer += ((*bytes_written) & in sisusb_write_mem_bulk()
982 *bytes_written, length, ret); in sisusb_write_mem_bulk()
986 addr += (*bytes_written); in sisusb_write_mem_bulk()
987 length -= (*bytes_written); in sisusb_write_mem_bulk()
1334 u32 dest, int length, size_t *bytes_written) in sisusb_copy_memory() argument
1336 return(sisusb_write_mem_bulk(sisusb, dest, src, length, NULL, 0, bytes_written)); in sisusb_copy_memory()
1342 u32 src, int length, size_t *bytes_written) in sisusb_read_memory() argument
1344 return(sisusb_read_mem_bulk(sisusb, src, dest, length, NULL, bytes_written)); in sisusb_read_memory()
2667 ssize_t bytes_written = 0; in sisusb_write() local
2706 bytes_written = 1; in sisusb_write()
2718 bytes_written = 2; in sisusb_write()
2730 bytes_written = 4; in sisusb_write()
2752 count, buffer, 0, &bytes_written); in sisusb_write()
2754 if (bytes_written) in sisusb_write()
2755 errno = bytes_written; in sisusb_write()
2770 count, buffer, 0, &bytes_written); in sisusb_write()
2772 if (bytes_written) in sisusb_write()
2773 errno = bytes_written; in sisusb_write()
2793 bytes_written = 4; in sisusb_write()
2803 (*ppos) += bytes_written; in sisusb_write()
2807 return errno ? errno : bytes_written; in sisusb_write()