Lines Matching refs:bytes
75 uint32_t bytes; in usb_transfer_work() local
102 ret = usb_write(ep, trans->buffer, trans->bsize, &bytes); in usb_transfer_work()
110 trans->buffer += bytes; in usb_transfer_work()
111 trans->bsize -= bytes; in usb_transfer_work()
112 trans->tsize += bytes; in usb_transfer_work()
115 &bytes); in usb_transfer_work()
123 trans->buffer += bytes; in usb_transfer_work()
124 trans->bsize -= bytes; in usb_transfer_work()
125 trans->tsize += bytes; in usb_transfer_work()
128 if (!bytes || (bytes % usb_dc_ep_mps(ep)) || !trans->bsize) { in usb_transfer_work()
173 uint32_t bytes; in usb_transfer_ep_callback() local
183 usb_dc_ep_read_wait(ep, &data, 1, &bytes); in usb_transfer_ep_callback()
184 } while (bytes); in usb_transfer_ep_callback()