• Home
  • Raw
  • Download

Lines Matching refs:io_len

1161 	int io_len;  in usb_read()  local
1221 io_len = MIN(m->cur_data_len, resid); in usb_read()
1224 io_len, m->cur_data_ptr); in usb_read()
1226 err = copyout((const void *)m->cur_data_ptr, buffer, io_len); in usb_read()
1231 m->cur_data_len -= io_len; in usb_read()
1232 m->cur_data_ptr += io_len; in usb_read()
1253 resid -= io_len; in usb_read()
1272 int io_len; in usb_write() local
1327 io_len = m->cur_data_len; in usb_write()
1329 if (io_len > resid) in usb_write()
1330 io_len = resid; in usb_write()
1331 m->cur_data_len = io_len; in usb_write()
1333 io_len = m->max_data_len - m->cur_data_len; in usb_write()
1335 if (io_len > resid) in usb_write()
1336 io_len = resid; in usb_write()
1337 m->cur_data_len += io_len; in usb_write()
1341 io_len, pdata); in usb_write()
1343 err = copyin(buffer, pdata, io_len); in usb_write()
1377 resid -= io_len; in usb_write()
1695 usb_frlength_t io_len; in usb_fifo_put_data() local
1704 io_len = MIN(len, m->cur_data_len); in usb_fifo_put_data()
1706 usbd_copy_out(pc, offset, m->cur_data_ptr, io_len); in usb_fifo_put_data()
1708 m->cur_data_len = io_len; in usb_fifo_put_data()
1709 offset += io_len; in usb_fifo_put_data()
1710 len -= io_len; in usb_fifo_put_data()
1733 usb_size_t io_len; in usb_fifo_put_data_linear() local
1743 io_len = MIN(len, m->cur_data_len); in usb_fifo_put_data_linear()
1745 error = memcpy_s(m->cur_data_ptr, io_len, ptr, io_len); in usb_fifo_put_data_linear()
1750 m->cur_data_len = io_len; in usb_fifo_put_data_linear()
1751 ptr = USB_ADD_BYTES(ptr, io_len); in usb_fifo_put_data_linear()
1752 len -= io_len; in usb_fifo_put_data_linear()
1811 usb_frlength_t io_len; in usb_fifo_get_data() local
1824 io_len = MIN(len, m->cur_data_len); in usb_fifo_get_data()
1826 usbd_copy_in(pc, offset, m->cur_data_ptr, io_len); in usb_fifo_get_data()
1828 len -= io_len; in usb_fifo_get_data()
1829 offset += io_len; in usb_fifo_get_data()
1830 actlen[0] += io_len; in usb_fifo_get_data()
1831 m->cur_data_ptr += io_len; in usb_fifo_get_data()
1832 m->cur_data_len -= io_len; in usb_fifo_get_data()
1876 usb_size_t io_len; in usb_fifo_get_data_linear() local
1890 io_len = MIN(len, m->cur_data_len); in usb_fifo_get_data_linear()
1892 error = memcpy_s(ptr, io_len, m->cur_data_ptr, io_len); in usb_fifo_get_data_linear()
1897 len -= io_len; in usb_fifo_get_data_linear()
1898 ptr = USB_ADD_BYTES(ptr, io_len); in usb_fifo_get_data_linear()
1899 actlen[0] += io_len; in usb_fifo_get_data_linear()
1900 m->cur_data_ptr += io_len; in usb_fifo_get_data_linear()
1901 m->cur_data_len -= io_len; in usb_fifo_get_data_linear()