lib/libusb/libusb01.c
112
struct libusb20_transfer *xfer;
lib/libusb/libusb01.c
139
xfer = libusb20_tr_get_pointer(pdev, x);
lib/libusb/libusb01.c
141
if (xfer == NULL)
lib/libusb/libusb01.c
142
return (xfer);
lib/libusb/libusb01.c
144
err = libusb20_tr_open(xfer, bufsize, 1, ep_no);
lib/libusb/libusb01.c
147
return (xfer);
lib/libusb/libusb01.c
152
return (xfer);
lib/libusb/libusb01.c
591
struct libusb20_transfer *xfer;
lib/libusb/libusb01.c
597
xfer = usb_get_transfer_by_ep_no(dev, ep);
lib/libusb/libusb01.c
598
if (xfer == NULL)
lib/libusb/libusb01.c
601
if (libusb20_tr_pending(xfer)) {
lib/libusb/libusb01.c
605
maxsize = libusb20_tr_get_max_total_length(xfer);
lib/libusb/libusb01.c
620
libusb20_tr_setup_intr(xfer, bytes, temp, timeout);
lib/libusb/libusb01.c
622
libusb20_tr_setup_bulk(xfer, bytes, temp, timeout);
lib/libusb/libusb01.c
624
libusb20_tr_start(xfer);
lib/libusb/libusb01.c
632
if (libusb20_tr_pending(xfer) == 0) {
lib/libusb/libusb01.c
640
switch (libusb20_tr_get_status(xfer)) {
lib/libusb/libusb01.c
651
actlen = libusb20_tr_get_actual_length(xfer);
lib/libusb/libusb01.c
809
struct libusb20_transfer *xfer;
lib/libusb/libusb01.c
811
xfer = usb_get_transfer_by_ep_no(dev, ep);
lib/libusb/libusb01.c
812
if (xfer == NULL)
lib/libusb/libusb01.c
815
libusb20_tr_clear_stall_sync(xfer);
lib/libusb/libusb10.c
1030
struct libusb20_transfer *xfer;
lib/libusb/libusb10.c
1034
xfer = libusb10_get_transfer(pdev, endpoint, 0);
lib/libusb/libusb10.c
1035
if (xfer == NULL)
lib/libusb/libusb10.c
1043
err = libusb20_tr_open(xfer, 0, 1, endpoint);
lib/libusb/libusb10.c
1049
libusb20_tr_clear_stall_sync(xfer);
lib/libusb/libusb10.c
1054
libusb20_tr_close(xfer);
lib/libusb/libusb10.c
1232
libusb10_get_maxframe(struct libusb20_device *pdev, libusb_transfer *xfer)
lib/libusb/libusb10.c
1236
switch (xfer->type) {
lib/libusb/libusb10.c
1251
libusb10_get_buffsize(struct libusb20_device *pdev, libusb_transfer *xfer)
lib/libusb/libusb10.c
1258
switch (xfer->type) {
lib/libusb/libusb10.c
1889
struct libusb20_transfer *xfer;
lib/libusb/libusb10.c
1891
xfer = libusb20_tr_get_pointer(pdev, x);
lib/libusb/libusb10.c
1892
if (xfer == NULL)
lib/libusb/libusb10.c
1894
libusb20_tr_close(xfer);
lib/libusb/libusb10.c
1905
struct libusb20_transfer *xfer;
lib/libusb/libusb10.c
1907
xfer = libusb20_tr_get_pointer(pdev, x);
lib/libusb/libusb10.c
1908
if (xfer == NULL)
lib/libusb/libusb10.c
1910
if (libusb20_tr_pending(xfer) == 0)
lib/libusb/libusb10.c
1912
sxfer = libusb20_tr_get_priv_sc1(xfer);
lib/libusb/libusb10.c
1916
libusb10_complete_transfer(xfer, sxfer, LIBUSB_TRANSFER_CANCELLED);
lib/libusb/libusb10_io.c
583
struct libusb_transfer *xfer;
lib/libusb/libusb10_io.c
593
xfer = libusb_alloc_transfer(0);
lib/libusb/libusb10_io.c
594
if (xfer == NULL)
lib/libusb/libusb10_io.c
599
xfer->dev_handle = devh;
lib/libusb/libusb10_io.c
600
xfer->endpoint = endpoint;
lib/libusb/libusb10_io.c
601
xfer->type = type;
lib/libusb/libusb10_io.c
602
xfer->timeout = timeout;
lib/libusb/libusb10_io.c
603
xfer->buffer = data;
lib/libusb/libusb10_io.c
604
xfer->length = length;
lib/libusb/libusb10_io.c
605
xfer->user_data = (void *)&done;
lib/libusb/libusb10_io.c
606
xfer->callback = libusb10_do_transfer_cb;
lib/libusb/libusb10_io.c
609
if ((ret = libusb_submit_transfer(xfer)) < 0) {
lib/libusb/libusb10_io.c
610
libusb_free_transfer(xfer);
lib/libusb/libusb10_io.c
615
libusb_cancel_transfer(xfer);
lib/libusb/libusb10_io.c
620
*transferred = xfer->actual_length;
lib/libusb/libusb10_io.c
622
switch (xfer->status) {
lib/libusb/libusb10_io.c
643
libusb_free_transfer(xfer);
lib/libusb/libusb20.c
100
libusb20_tr_callback_wrapper(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
106
if (!xfer->is_pending) {
lib/libusb/libusb20.c
107
xfer->status = LIBUSB20_TRANSFER_START;
lib/libusb/libusb20.c
109
xfer->is_pending = 0;
lib/libusb/libusb20.c
112
xfer->callback(xfer);
lib/libusb/libusb20.c
114
if (xfer->is_restart) {
lib/libusb/libusb20.c
115
xfer->is_restart = 0;
lib/libusb/libusb20.c
118
if (xfer->is_draining &&
lib/libusb/libusb20.c
119
(!xfer->is_pending)) {
lib/libusb/libusb20.c
120
xfer->is_draining = 0;
lib/libusb/libusb20.c
121
xfer->status = LIBUSB20_TRANSFER_DRAINED;
lib/libusb/libusb20.c
122
xfer->callback(xfer);
lib/libusb/libusb20.c
128
libusb20_tr_close(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
132
if (!xfer->is_opened) {
lib/libusb/libusb20.c
135
error = xfer->pdev->methods->tr_close(xfer);
lib/libusb/libusb20.c
137
if (xfer->pLength) {
lib/libusb/libusb20.c
138
free(xfer->pLength);
lib/libusb/libusb20.c
140
if (xfer->ppBuffer) {
lib/libusb/libusb20.c
141
free(xfer->ppBuffer);
lib/libusb/libusb20.c
144
xfer->priv_sc0 = NULL;
lib/libusb/libusb20.c
145
xfer->priv_sc1 = NULL;
lib/libusb/libusb20.c
146
xfer->is_opened = 0;
lib/libusb/libusb20.c
147
xfer->is_pending = 0;
lib/libusb/libusb20.c
148
xfer->is_cancel = 0;
lib/libusb/libusb20.c
149
xfer->is_draining = 0;
lib/libusb/libusb20.c
150
xfer->is_restart = 0;
lib/libusb/libusb20.c
151
xfer->status = 0;
lib/libusb/libusb20.c
152
xfer->flags = 0;
lib/libusb/libusb20.c
153
xfer->nFrames = 0;
lib/libusb/libusb20.c
154
xfer->aFrames = 0;
lib/libusb/libusb20.c
155
xfer->timeout = 0;
lib/libusb/libusb20.c
156
xfer->maxFrames = 0;
lib/libusb/libusb20.c
157
xfer->maxTotalLength = 0;
lib/libusb/libusb20.c
158
xfer->maxPacketLen = 0;
lib/libusb/libusb20.c
163
libusb20_tr_open(struct libusb20_transfer *xfer, uint32_t MaxBufSize,
lib/libusb/libusb20.c
166
return (libusb20_tr_open_stream(xfer, MaxBufSize, MaxFrameCount, ep_no, 0));
lib/libusb/libusb20.c
170
libusb20_tr_open_stream(struct libusb20_transfer *xfer, uint32_t MaxBufSize,
lib/libusb/libusb20.c
177
if (xfer->is_opened)
lib/libusb/libusb20.c
194
xfer->maxFrames = MaxFrameCount;
lib/libusb/libusb20.c
196
size = MaxFrameCount * sizeof(xfer->pLength[0]);
lib/libusb/libusb20.c
197
xfer->pLength = malloc(size);
lib/libusb/libusb20.c
198
if (xfer->pLength == NULL) {
lib/libusb/libusb20.c
201
memset(xfer->pLength, 0, size);
lib/libusb/libusb20.c
203
size = MaxFrameCount * sizeof(xfer->ppBuffer[0]);
lib/libusb/libusb20.c
204
xfer->ppBuffer = malloc(size);
lib/libusb/libusb20.c
205
if (xfer->ppBuffer == NULL) {
lib/libusb/libusb20.c
206
free(xfer->pLength);
lib/libusb/libusb20.c
209
memset(xfer->ppBuffer, 0, size);
lib/libusb/libusb20.c
212
error = xfer->pdev->methods->tr_open(xfer, MaxBufSize,
lib/libusb/libusb20.c
215
error = xfer->pdev->methods->tr_open(xfer, MaxBufSize,
lib/libusb/libusb20.c
220
free(xfer->ppBuffer);
lib/libusb/libusb20.c
221
free(xfer->pLength);
lib/libusb/libusb20.c
223
xfer->is_opened = 1;
lib/libusb/libusb20.c
238
libusb20_tr_get_actual_frames(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
240
return (xfer->aFrames);
lib/libusb/libusb20.c
244
libusb20_tr_get_time_complete(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
246
return (xfer->timeComplete);
lib/libusb/libusb20.c
250
libusb20_tr_get_actual_length(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
255
for (x = 0; x != xfer->aFrames; x++) {
lib/libusb/libusb20.c
256
actlen += xfer->pLength[x];
lib/libusb/libusb20.c
262
libusb20_tr_get_max_frames(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
264
return (xfer->maxFrames);
lib/libusb/libusb20.c
268
libusb20_tr_get_max_packet_length(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
275
return (xfer->maxPacketLen);
lib/libusb/libusb20.c
279
libusb20_tr_get_max_total_length(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
281
return (xfer->maxTotalLength);
lib/libusb/libusb20.c
285
libusb20_tr_get_status(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
287
return (xfer->status);
lib/libusb/libusb20.c
291
libusb20_tr_pending(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
293
return (xfer->is_pending);
lib/libusb/libusb20.c
297
libusb20_tr_get_priv_sc0(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
299
return (xfer->priv_sc0);
lib/libusb/libusb20.c
303
libusb20_tr_get_priv_sc1(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
305
return (xfer->priv_sc1);
lib/libusb/libusb20.c
309
libusb20_tr_stop(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
311
if (!xfer->is_opened) {
lib/libusb/libusb20.c
315
if (!xfer->is_pending) {
lib/libusb/libusb20.c
319
if (xfer->is_cancel) {
lib/libusb/libusb20.c
323
xfer->is_cancel = 1; /* we are cancelling */
lib/libusb/libusb20.c
325
xfer->pdev->methods->tr_cancel_async(xfer);
lib/libusb/libusb20.c
330
libusb20_tr_drain(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
332
if (!xfer->is_opened) {
lib/libusb/libusb20.c
337
libusb20_tr_stop(xfer);
lib/libusb/libusb20.c
339
if (xfer->is_pending) {
lib/libusb/libusb20.c
340
xfer->is_draining = 1;
lib/libusb/libusb20.c
346
libusb20_tr_clear_stall_sync(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
348
xfer->pdev->methods->tr_clear_stall_sync(xfer);
lib/libusb/libusb20.c
353
libusb20_tr_set_buffer(struct libusb20_transfer *xfer, void *buffer, uint16_t frIndex)
lib/libusb/libusb20.c
355
xfer->ppBuffer[frIndex] = buffer;
lib/libusb/libusb20.c
360
libusb20_tr_set_callback(struct libusb20_transfer *xfer, libusb20_tr_callback_t *cb)
lib/libusb/libusb20.c
362
xfer->callback = cb;
lib/libusb/libusb20.c
367
libusb20_tr_set_flags(struct libusb20_transfer *xfer, uint8_t flags)
lib/libusb/libusb20.c
369
xfer->flags = flags;
lib/libusb/libusb20.c
374
libusb20_tr_get_flags(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
376
return (xfer->flags);
lib/libusb/libusb20.c
380
libusb20_tr_get_length(struct libusb20_transfer *xfer, uint16_t frIndex)
lib/libusb/libusb20.c
382
return (xfer->pLength[frIndex]);
lib/libusb/libusb20.c
386
libusb20_tr_set_length(struct libusb20_transfer *xfer, uint32_t length, uint16_t frIndex)
lib/libusb/libusb20.c
388
xfer->pLength[frIndex] = length;
lib/libusb/libusb20.c
393
libusb20_tr_set_priv_sc0(struct libusb20_transfer *xfer, void *sc0)
lib/libusb/libusb20.c
395
xfer->priv_sc0 = sc0;
lib/libusb/libusb20.c
400
libusb20_tr_set_priv_sc1(struct libusb20_transfer *xfer, void *sc1)
lib/libusb/libusb20.c
402
xfer->priv_sc1 = sc1;
lib/libusb/libusb20.c
407
libusb20_tr_set_timeout(struct libusb20_transfer *xfer, uint32_t timeout)
lib/libusb/libusb20.c
409
xfer->timeout = timeout;
lib/libusb/libusb20.c
414
libusb20_tr_set_total_frames(struct libusb20_transfer *xfer, uint32_t nFrames)
lib/libusb/libusb20.c
416
if (nFrames > xfer->maxFrames) {
lib/libusb/libusb20.c
418
nFrames = xfer->maxFrames;
lib/libusb/libusb20.c
420
xfer->nFrames = nFrames;
lib/libusb/libusb20.c
425
libusb20_tr_setup_bulk(struct libusb20_transfer *xfer, void *pBuf, uint32_t length, uint32_t timeout)
lib/libusb/libusb20.c
427
xfer->ppBuffer[0] = pBuf;
lib/libusb/libusb20.c
428
xfer->pLength[0] = length;
lib/libusb/libusb20.c
429
xfer->timeout = timeout;
lib/libusb/libusb20.c
430
xfer->nFrames = 1;
lib/libusb/libusb20.c
435
libusb20_tr_setup_control(struct libusb20_transfer *xfer, void *psetup, void *pBuf, uint32_t timeout)
lib/libusb/libusb20.c
439
xfer->ppBuffer[0] = psetup;
lib/libusb/libusb20.c
440
xfer->pLength[0] = 8; /* fixed */
lib/libusb/libusb20.c
441
xfer->timeout = timeout;
lib/libusb/libusb20.c
446
xfer->nFrames = 2;
lib/libusb/libusb20.c
447
xfer->ppBuffer[1] = pBuf;
lib/libusb/libusb20.c
448
xfer->pLength[1] = len;
lib/libusb/libusb20.c
450
xfer->nFrames = 1;
lib/libusb/libusb20.c
456
libusb20_tr_setup_intr(struct libusb20_transfer *xfer, void *pBuf, uint32_t length, uint32_t timeout)
lib/libusb/libusb20.c
458
xfer->ppBuffer[0] = pBuf;
lib/libusb/libusb20.c
459
xfer->pLength[0] = length;
lib/libusb/libusb20.c
460
xfer->timeout = timeout;
lib/libusb/libusb20.c
461
xfer->nFrames = 1;
lib/libusb/libusb20.c
466
libusb20_tr_setup_isoc(struct libusb20_transfer *xfer, void *pBuf, uint32_t length, uint16_t frIndex)
lib/libusb/libusb20.c
468
if (frIndex >= xfer->maxFrames) {
lib/libusb/libusb20.c
472
xfer->ppBuffer[frIndex] = pBuf;
lib/libusb/libusb20.c
473
xfer->pLength[frIndex] = length;
lib/libusb/libusb20.c
478
libusb20_tr_bulk_intr_sync(struct libusb20_transfer *xfer,
lib/libusb/libusb20.c
482
struct libusb20_device *pdev = xfer->pdev;
lib/libusb/libusb20.c
492
if (libusb20_tr_pending(xfer))
lib/libusb/libusb20.c
498
libusb20_tr_get_max_total_length(xfer);
lib/libusb/libusb20.c
504
libusb20_tr_setup_bulk(xfer, pbuf,
lib/libusb/libusb20.c
508
libusb20_tr_start(xfer);
lib/libusb/libusb20.c
513
if (libusb20_tr_pending(xfer) == 0)
lib/libusb/libusb20.c
519
transfer_act = libusb20_tr_get_actual_length(xfer);
lib/libusb/libusb20.c
526
retval = libusb20_tr_get_status(xfer);
lib/libusb/libusb20.c
544
libusb20_tr_submit(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
546
if (!xfer->is_opened) {
lib/libusb/libusb20.c
550
if (xfer->is_pending) {
lib/libusb/libusb20.c
554
xfer->is_pending = 1; /* we are pending */
lib/libusb/libusb20.c
555
xfer->is_cancel = 0; /* not cancelling */
lib/libusb/libusb20.c
556
xfer->is_restart = 0; /* not restarting */
lib/libusb/libusb20.c
558
xfer->pdev->methods->tr_submit(xfer);
lib/libusb/libusb20.c
563
libusb20_tr_start(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
565
if (!xfer->is_opened) {
lib/libusb/libusb20.c
569
if (xfer->is_pending) {
lib/libusb/libusb20.c
57
dummy_callback(struct libusb20_transfer *xfer)
lib/libusb/libusb20.c
570
if (xfer->is_cancel) {
lib/libusb/libusb20.c
572
xfer->is_restart = 1;
lib/libusb/libusb20.c
578
libusb20_tr_callback_wrapper(xfer);
lib/libusb/libusb20.c
587
struct libusb20_transfer *xfer;
lib/libusb/libusb20.c
595
xfer = pdev->pTransfer + x;
lib/libusb/libusb20.c
597
if (!xfer->is_opened) {
lib/libusb/libusb20.c
60
switch (libusb20_tr_get_status(xfer)) {
lib/libusb/libusb20.c
602
libusb20_tr_drain(xfer);
lib/libusb/libusb20.c
604
libusb20_tr_close(xfer);
lib/libusb/libusb20.c
62
libusb20_tr_submit(xfer);
lib/libusb/libusb20.c
680
struct libusb20_transfer *xfer;
lib/libusb/libusb20.c
701
xfer = pdev->pTransfer + x;
lib/libusb/libusb20.c
703
xfer->pdev = pdev;
lib/libusb/libusb20.c
704
xfer->trIndex = x;
lib/libusb/libusb20.c
705
xfer->callback = &dummy_callback;
lib/libusb/libusb20.h
186
typedef void (libusb20_tr_callback_t)(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
207
int libusb20_tr_close(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
208
int libusb20_tr_open(struct libusb20_transfer *xfer, uint32_t max_buf_size, uint32_t max_frame_count, uint8_t ep_no);
lib/libusb/libusb20.h
209
int libusb20_tr_open_stream(struct libusb20_transfer *xfer, uint32_t max_buf_size, uint32_t max_frame_count, uint8_t ep_no, uint16_t stream_id);
lib/libusb/libusb20.h
211
uint16_t libusb20_tr_get_time_complete(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
212
uint32_t libusb20_tr_get_actual_frames(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
213
uint32_t libusb20_tr_get_actual_length(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
214
uint32_t libusb20_tr_get_max_frames(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
215
uint32_t libusb20_tr_get_max_packet_length(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
216
uint32_t libusb20_tr_get_max_total_length(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
217
uint8_t libusb20_tr_get_flags(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
218
uint8_t libusb20_tr_get_status(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
219
uint8_t libusb20_tr_pending(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
220
void libusb20_tr_callback_wrapper(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
221
void libusb20_tr_clear_stall_sync(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
222
void libusb20_tr_drain(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
223
void libusb20_tr_set_buffer(struct libusb20_transfer *xfer, void *buffer, uint16_t fr_index);
lib/libusb/libusb20.h
224
void libusb20_tr_set_callback(struct libusb20_transfer *xfer, libusb20_tr_callback_t *cb);
lib/libusb/libusb20.h
225
void libusb20_tr_set_flags(struct libusb20_transfer *xfer, uint8_t flags);
lib/libusb/libusb20.h
226
uint32_t libusb20_tr_get_length(struct libusb20_transfer *xfer, uint16_t fr_index);
lib/libusb/libusb20.h
227
void libusb20_tr_set_length(struct libusb20_transfer *xfer, uint32_t length, uint16_t fr_index);
lib/libusb/libusb20.h
228
void libusb20_tr_set_priv_sc0(struct libusb20_transfer *xfer, void *sc0);
lib/libusb/libusb20.h
229
void libusb20_tr_set_priv_sc1(struct libusb20_transfer *xfer, void *sc1);
lib/libusb/libusb20.h
230
void libusb20_tr_set_timeout(struct libusb20_transfer *xfer, uint32_t timeout);
lib/libusb/libusb20.h
231
void libusb20_tr_set_total_frames(struct libusb20_transfer *xfer, uint32_t nFrames);
lib/libusb/libusb20.h
232
void libusb20_tr_setup_bulk(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t timeout);
lib/libusb/libusb20.h
233
void libusb20_tr_setup_control(struct libusb20_transfer *xfer, void *psetup, void *pbuf, uint32_t timeout);
lib/libusb/libusb20.h
234
void libusb20_tr_setup_intr(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t timeout);
lib/libusb/libusb20.h
235
void libusb20_tr_setup_isoc(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint16_t fr_index);
lib/libusb/libusb20.h
236
uint8_t libusb20_tr_bulk_intr_sync(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t *pactlen, uint32_t timeout);
lib/libusb/libusb20.h
237
void libusb20_tr_start(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
238
void libusb20_tr_stop(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
239
void libusb20_tr_submit(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
240
void *libusb20_tr_get_priv_sc0(struct libusb20_transfer *xfer);
lib/libusb/libusb20.h
241
void *libusb20_tr_get_priv_sc1(struct libusb20_transfer *xfer);
lib/libusb/libusb20_int.h
112
typedef int (libusb20_tr_open_t)(struct libusb20_transfer *xfer, uint32_t MaxBufSize, uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_id, uint8_t pre_scale);
lib/libusb/libusb20_int.h
113
typedef int (libusb20_tr_close_t)(struct libusb20_transfer *xfer);
lib/libusb/libusb20_int.h
114
typedef int (libusb20_tr_clear_stall_sync_t)(struct libusb20_transfer *xfer);
lib/libusb/libusb20_int.h
115
typedef void (libusb20_tr_submit_t)(struct libusb20_transfer *xfer);
lib/libusb/libusb20_int.h
116
typedef void (libusb20_tr_cancel_async_t)(struct libusb20_transfer *xfer);
lib/libusb/libusb20_ugen20.c
806
struct libusb20_transfer *xfer;
lib/libusb/libusb20_ugen20.c
828
xfer = pdev->pTransfer;
lib/libusb/libusb20_ugen20.c
830
xfer += temp.ep_index;
lib/libusb/libusb20_ugen20.c
835
xfer->aFrames = fsep->aFrames;
lib/libusb/libusb20_ugen20.c
836
xfer->timeComplete = fsep->isoc_time_complete;
lib/libusb/libusb20_ugen20.c
837
xfer->status = LIBUSB20_TRANSFER_COMPLETED;
lib/libusb/libusb20_ugen20.c
839
xfer->aFrames = 0;
lib/libusb/libusb20_ugen20.c
840
xfer->timeComplete = 0;
lib/libusb/libusb20_ugen20.c
841
xfer->status = LIBUSB20_TRANSFER_CANCELLED;
lib/libusb/libusb20_ugen20.c
843
xfer->aFrames = 0;
lib/libusb/libusb20_ugen20.c
844
xfer->timeComplete = 0;
lib/libusb/libusb20_ugen20.c
845
xfer->status = LIBUSB20_TRANSFER_STALL;
lib/libusb/libusb20_ugen20.c
847
xfer->aFrames = 0;
lib/libusb/libusb20_ugen20.c
848
xfer->timeComplete = 0;
lib/libusb/libusb20_ugen20.c
849
xfer->status = LIBUSB20_TRANSFER_TIMED_OUT;
lib/libusb/libusb20_ugen20.c
851
xfer->aFrames = 0;
lib/libusb/libusb20_ugen20.c
852
xfer->timeComplete = 0;
lib/libusb/libusb20_ugen20.c
853
xfer->status = LIBUSB20_TRANSFER_ERROR;
lib/libusb/libusb20_ugen20.c
855
libusb20_tr_callback_wrapper(xfer);
lib/libusb/libusb20_ugen20.c
861
ugen20_tr_open(struct libusb20_transfer *xfer, uint32_t MaxBufSize,
lib/libusb/libusb20_ugen20.c
876
fsep = xfer->pdev->privBeData;
lib/libusb/libusb20_ugen20.c
877
fsep += xfer->trIndex;
lib/libusb/libusb20_ugen20.c
881
temp.fs_open.ep_index = xfer->trIndex;
lib/libusb/libusb20_ugen20.c
887
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_OPEN_STREAM), &temp.fs_open_stream))
lib/libusb/libusb20_ugen20.c
890
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_OPEN), &temp.fs_open))
lib/libusb/libusb20_ugen20.c
894
xfer->maxFrames = temp.fs_open.max_frames;
lib/libusb/libusb20_ugen20.c
897
xfer->maxTotalLength = temp.fs_open.max_bufsize;
lib/libusb/libusb20_ugen20.c
898
xfer->maxPacketLen = temp.fs_open.max_packet_length;
lib/libusb/libusb20_ugen20.c
901
fsep->ppBuffer = xfer->ppBuffer;
lib/libusb/libusb20_ugen20.c
902
fsep->pLength = xfer->pLength;
lib/libusb/libusb20_ugen20.c
908
ugen20_tr_close(struct libusb20_transfer *xfer)
lib/libusb/libusb20_ugen20.c
914
temp.ep_index = xfer->trIndex;
lib/libusb/libusb20_ugen20.c
916
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_CLOSE), &temp)) {
lib/libusb/libusb20_ugen20.c
923
ugen20_tr_clear_stall_sync(struct libusb20_transfer *xfer)
lib/libusb/libusb20_ugen20.c
931
temp.ep_index = xfer->trIndex;
lib/libusb/libusb20_ugen20.c
933
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_CLEAR_STALL_SYNC), &temp)) {
lib/libusb/libusb20_ugen20.c
940
ugen20_tr_submit(struct libusb20_transfer *xfer)
lib/libusb/libusb20_ugen20.c
947
fsep = xfer->pdev->privBeData;
lib/libusb/libusb20_ugen20.c
948
fsep += xfer->trIndex;
lib/libusb/libusb20_ugen20.c
950
fsep->nFrames = xfer->nFrames;
lib/libusb/libusb20_ugen20.c
952
if (!(xfer->flags & LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK)) {
lib/libusb/libusb20_ugen20.c
955
if (!(xfer->flags & LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK)) {
lib/libusb/libusb20_ugen20.c
958
if (xfer->flags & LIBUSB20_TRANSFER_FORCE_SHORT) {
lib/libusb/libusb20_ugen20.c
961
if (xfer->flags & LIBUSB20_TRANSFER_DO_CLEAR_STALL) {
lib/libusb/libusb20_ugen20.c
965
if (xfer->timeout > 65535)
lib/libusb/libusb20_ugen20.c
968
fsep->timeout = xfer->timeout;
lib/libusb/libusb20_ugen20.c
970
temp.ep_index = xfer->trIndex;
lib/libusb/libusb20_ugen20.c
972
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_START), &temp)) {
lib/libusb/libusb20_ugen20.c
979
ugen20_tr_cancel_async(struct libusb20_transfer *xfer)
lib/libusb/libusb20_ugen20.c
985
temp.ep_index = xfer->trIndex;
lib/libusb/libusb20_ugen20.c
987
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_STOP), &temp)) {
sbin/dump/traverse.c
901
int secsize, bytes, resid, xfer, base, cnt, i;
sbin/dump/traverse.c
922
xfer = 0;
sbin/dump/traverse.c
928
xfer = MIN(secsize - base, size);
sbin/dump/traverse.c
929
offset += xfer;
sbin/dump/traverse.c
930
bytes -= xfer;
sbin/dump/traverse.c
932
memcpy(buf, &tmpbuf[base], xfer);
sbin/dump/traverse.c
935
cnt = cread(diskfd, &buf[xfer], bytes - resid, offset);
sbin/dump/traverse.c
938
xfer += cnt;
sbin/dump/traverse.c
945
memcpy(&buf[xfer], tmpbuf, resid);
stand/usb/usb_busdma_loader.c
416
struct usb_xfer *xfer;
stand/usb/usb_busdma_loader.c
419
xfer = pq->curr;
stand/usb/usb_busdma_loader.c
420
info = xfer->xroot;
stand/usb/usb_busdma_loader.c
424
if (xfer->error) {
stand/usb/usb_busdma_loader.c
427
usbd_transfer_done(xfer, 0);
stand/usb/usb_busdma_loader.c
431
if (!xfer->flags_int.bdma_setup) {
stand/usb/usb_busdma_loader.c
436
xfer->flags_int.bdma_setup = 1;
stand/usb/usb_busdma_loader.c
442
if (xfer->flags_int.isochronous_xfr) {
stand/usb/usb_busdma_loader.c
445
frlength_0 = xfer->sumlen;
stand/usb/usb_busdma_loader.c
448
nframes = xfer->nframes;
stand/usb/usb_busdma_loader.c
449
frlength_0 = xfer->frlengths[0];
stand/usb/usb_busdma_loader.c
457
isread = USB_GET_DATA_ISREAD(xfer);
stand/usb/usb_busdma_loader.c
458
pg = xfer->dma_page_ptr;
stand/usb/usb_busdma_loader.c
460
if (xfer->flags_int.control_xfr &&
stand/usb/usb_busdma_loader.c
461
xfer->flags_int.control_hdr) {
stand/usb/usb_busdma_loader.c
463
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
stand/usb/usb_busdma_loader.c
465
xfer->frbuffers[0].isread = 1;
stand/usb/usb_busdma_loader.c
468
xfer->frbuffers[0].isread = 0;
stand/usb/usb_busdma_loader.c
472
xfer->frbuffers[0].isread = isread;
stand/usb/usb_busdma_loader.c
481
xfer->frbuffers[0].page_start = pg;
stand/usb/usb_busdma_loader.c
491
xfer->frbuffers[nframes].isread = isread;
stand/usb/usb_busdma_loader.c
492
xfer->frbuffers[nframes].page_start = pg;
stand/usb/usb_busdma_loader.c
494
pg += (xfer->frlengths[nframes] / USB_PAGE_SIZE);
stand/usb/usb_busdma_loader.c
501
usbd_transfer_done(xfer, USB_ERR_DMA_LOAD_FAILED);
stand/usb/usb_busdma_loader.c
509
usb_pc_load_mem(xfer->frbuffers,
stand/usb/usb_busdma_loader.c
514
usb_pc_load_mem(xfer->frbuffers + nframes,
stand/usb/usb_busdma_loader.c
515
xfer->frlengths[nframes], 0);
stand/usb/usb_busdma_loader.c
524
usb_bdma_pre_sync(xfer);
stand/usb/usb_busdma_loader.c
530
usbd_pipe_enter(xfer);
stand/usb/usb_busdma_loader.c
563
usb_bdma_pre_sync(struct usb_xfer *xfer)
stand/usb/usb_busdma_loader.c
568
if (xfer->flags_int.isochronous_xfr) {
stand/usb/usb_busdma_loader.c
573
nframes = xfer->nframes;
stand/usb/usb_busdma_loader.c
576
pc = xfer->frbuffers;
stand/usb/usb_busdma_loader.c
596
usb_bdma_post_sync(struct usb_xfer *xfer)
stand/usb/usb_busdma_loader.c
601
if (xfer->flags_int.isochronous_xfr) {
stand/usb/usb_busdma_loader.c
606
nframes = xfer->nframes;
stand/usb/usb_busdma_loader.c
609
pc = xfer->frbuffers;
sys/arm/ti/ti_spivar.h
45
} xfer;
sys/arm/ti/ti_spivar.h
48
#define sc_cs xfer.cs
sys/arm/ti/ti_spivar.h
49
#define sc_fifolvl xfer.fifolvl
sys/arm/ti/ti_spivar.h
50
#define sc_cmd xfer.cmd
sys/arm/ti/ti_spivar.h
51
#define sc_len xfer.len
sys/arm/ti/ti_spivar.h
52
#define sc_read xfer.read
sys/arm/ti/ti_spivar.h
53
#define sc_written xfer.written
sys/compat/linuxkpi/common/src/linux_usb.c
1313
usb_linux_complete(struct usb_xfer *xfer)
sys/compat/linuxkpi/common/src/linux_usb.c
1317
urb = usbd_xfer_get_priv(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1318
usbd_xfer_set_priv(xfer, NULL);
sys/compat/linuxkpi/common/src/linux_usb.c
1333
usb_linux_isoc_callback(struct usb_xfer *xfer, usb_error_t error)
sys/compat/linuxkpi/common/src/linux_usb.c
1335
usb_frlength_t max_frame = xfer->max_frame_size;
sys/compat/linuxkpi/common/src/linux_usb.c
1338
struct urb *urb = usbd_xfer_get_priv(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1339
struct usb_host_endpoint *uhe = usbd_xfer_softc(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1344
switch (USB_GET_STATE(xfer)) {
sys/compat/linuxkpi/common/src/linux_usb.c
1354
if (uipd->length > xfer->frlengths[x]) {
sys/compat/linuxkpi/common/src/linux_usb.c
1364
uipd->actual_length = xfer->frlengths[x];
sys/compat/linuxkpi/common/src/linux_usb.c
1365
if (!xfer->flags.ext_buffer) {
sys/compat/linuxkpi/common/src/linux_usb.c
1366
usbd_copy_out(xfer->frbuffers, offset,
sys/compat/linuxkpi/common/src/linux_usb.c
1375
uipd->actual_length = xfer->frlengths[x];
sys/compat/linuxkpi/common/src/linux_usb.c
1380
urb->actual_length = xfer->actlen;
sys/compat/linuxkpi/common/src/linux_usb.c
1383
if (xfer->actlen < xfer->sumlen) {
sys/compat/linuxkpi/common/src/linux_usb.c
1397
usb_linux_complete(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1402
if (xfer->priv_fifo == NULL) {
sys/compat/linuxkpi/common/src/linux_usb.c
1412
x = xfer->max_frame_count;
sys/compat/linuxkpi/common/src/linux_usb.c
1421
urb = usbd_xfer_get_priv(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1426
if (xfer->flags.ext_buffer) {
sys/compat/linuxkpi/common/src/linux_usb.c
1428
usbd_xfer_set_frame_data(xfer, 0, urb->transfer_buffer, 0);
sys/compat/linuxkpi/common/src/linux_usb.c
1437
usbd_xfer_set_frame_len(xfer, x, uipd->length);
sys/compat/linuxkpi/common/src/linux_usb.c
1438
if (!xfer->flags.ext_buffer) {
sys/compat/linuxkpi/common/src/linux_usb.c
1439
usbd_copy_in(xfer->frbuffers, offset,
sys/compat/linuxkpi/common/src/linux_usb.c
1457
usbd_xfer_set_frame_len(xfer, x, max_frame);
sys/compat/linuxkpi/common/src/linux_usb.c
1460
usbd_xfer_set_priv(xfer, urb);
sys/compat/linuxkpi/common/src/linux_usb.c
1461
xfer->flags.force_short_xfer = 0;
sys/compat/linuxkpi/common/src/linux_usb.c
1462
xfer->timeout = urb->timeout;
sys/compat/linuxkpi/common/src/linux_usb.c
1463
xfer->nframes = urb->number_of_packets;
sys/compat/linuxkpi/common/src/linux_usb.c
1464
usbd_transfer_submit(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1468
if (xfer->error == USB_ERR_CANCELLED) {
sys/compat/linuxkpi/common/src/linux_usb.c
1484
usb_linux_complete(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1486
if (xfer->error == USB_ERR_CANCELLED) {
sys/compat/linuxkpi/common/src/linux_usb.c
1504
usb_linux_non_isoc_callback(struct usb_xfer *xfer, usb_error_t error)
sys/compat/linuxkpi/common/src/linux_usb.c
1509
struct urb *urb = usbd_xfer_get_priv(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1510
struct usb_host_endpoint *uhe = usbd_xfer_softc(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1512
usb_frlength_t max_bulk = usbd_xfer_max_len(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1513
uint8_t data_frame = xfer->flags_int.control_xfr ? 1 : 0;
sys/compat/linuxkpi/common/src/linux_usb.c
1517
switch (USB_GET_STATE(xfer)) {
sys/compat/linuxkpi/common/src/linux_usb.c
1520
if (xfer->flags_int.control_xfr) {
sys/compat/linuxkpi/common/src/linux_usb.c
1523
usbd_xfer_set_frame_len(xfer, 0, 0);
sys/compat/linuxkpi/common/src/linux_usb.c
1525
if (urb->bsd_isread && (!xfer->flags.ext_buffer)) {
sys/compat/linuxkpi/common/src/linux_usb.c
1527
usbd_copy_out(xfer->frbuffers + data_frame, 0,
sys/compat/linuxkpi/common/src/linux_usb.c
1528
urb->bsd_data_ptr, xfer->frlengths[data_frame]);
sys/compat/linuxkpi/common/src/linux_usb.c
1530
urb->bsd_length_rem -= xfer->frlengths[data_frame];
sys/compat/linuxkpi/common/src/linux_usb.c
1531
urb->bsd_data_ptr += xfer->frlengths[data_frame];
sys/compat/linuxkpi/common/src/linux_usb.c
1532
urb->actual_length += xfer->frlengths[data_frame];
sys/compat/linuxkpi/common/src/linux_usb.c
1535
if (xfer->actlen < xfer->sumlen) {
sys/compat/linuxkpi/common/src/linux_usb.c
1554
usb_linux_complete(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1567
usbd_xfer_set_priv(xfer, urb);
sys/compat/linuxkpi/common/src/linux_usb.c
1568
xfer->flags.force_short_xfer = 0;
sys/compat/linuxkpi/common/src/linux_usb.c
1569
xfer->timeout = urb->timeout;
sys/compat/linuxkpi/common/src/linux_usb.c
1571
if (xfer->flags_int.control_xfr) {
sys/compat/linuxkpi/common/src/linux_usb.c
1576
if (!xfer->flags.ext_buffer) {
sys/compat/linuxkpi/common/src/linux_usb.c
1577
usbd_copy_in(xfer->frbuffers, 0,
sys/compat/linuxkpi/common/src/linux_usb.c
1579
usbd_xfer_set_frame_len(xfer, 0, REQ_SIZE);
sys/compat/linuxkpi/common/src/linux_usb.c
1582
usbd_xfer_set_frame_data(xfer, 0,
sys/compat/linuxkpi/common/src/linux_usb.c
1611
(!xfer->flags_int.control_xfr)) {
sys/compat/linuxkpi/common/src/linux_usb.c
1612
xfer->flags.force_short_xfer = 1;
sys/compat/linuxkpi/common/src/linux_usb.c
1616
if (xfer->flags.ext_buffer) {
sys/compat/linuxkpi/common/src/linux_usb.c
1618
usbd_xfer_set_frame_data(xfer, data_frame,
sys/compat/linuxkpi/common/src/linux_usb.c
1622
usbd_copy_in(xfer->frbuffers + data_frame, 0,
sys/compat/linuxkpi/common/src/linux_usb.c
1624
usbd_xfer_set_frame_len(xfer, data_frame, max_bulk);
sys/compat/linuxkpi/common/src/linux_usb.c
1626
if (xfer->flags_int.control_xfr) {
sys/compat/linuxkpi/common/src/linux_usb.c
1628
xfer->nframes = 2;
sys/compat/linuxkpi/common/src/linux_usb.c
1630
xfer->nframes = 1;
sys/compat/linuxkpi/common/src/linux_usb.c
1633
xfer->nframes = 1;
sys/compat/linuxkpi/common/src/linux_usb.c
1635
usbd_transfer_submit(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1639
if (xfer->error == USB_ERR_CANCELLED) {
sys/compat/linuxkpi/common/src/linux_usb.c
1649
usb_linux_complete(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
1651
if (xfer->error == USB_ERR_CANCELLED) {
sys/compat/linuxkpi/common/src/linux_usb.c
472
usb_unlink_bsd(struct usb_xfer *xfer,
sys/compat/linuxkpi/common/src/linux_usb.c
475
if (xfer == NULL)
sys/compat/linuxkpi/common/src/linux_usb.c
477
if (!usbd_transfer_pending(xfer))
sys/compat/linuxkpi/common/src/linux_usb.c
479
if (xfer->priv_fifo == (void *)urb) {
sys/compat/linuxkpi/common/src/linux_usb.c
482
usbd_transfer_drain(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
485
usbd_transfer_stop(xfer);
sys/compat/linuxkpi/common/src/linux_usb.c
487
usbd_transfer_start(xfer);
sys/dev/apple_bce/apple_bce_vhci.c
1123
struct usb_xfer *xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1135
xfer = tq->create_xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1151
if (tq->create_xfer != xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
1162
if (xfer != NULL)
sys/dev/apple_bce/apple_bce_vhci.c
1163
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
1175
if (xfer != NULL && (ep_addr & UE_DIR_IN)) {
sys/dev/apple_bce/apple_bce_vhci.c
1180
len = xfer->frlengths[0];
sys/dev/apple_bce/apple_bce_vhci.c
1188
tq->active_xfer = xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1211
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
1214
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
1255
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
1258
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
1263
} else if (xfer != NULL &&
sys/dev/apple_bce/apple_bce_vhci.c
1272
len = xfer->frlengths[0];
sys/dev/apple_bce/apple_bce_vhci.c
1277
tq->active_xfer = xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1282
&xfer->frbuffers[0], 0,
sys/dev/apple_bce/apple_bce_vhci.c
1307
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
1310
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
1349
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
1352
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
1357
} else if (xfer != NULL) {
sys/dev/apple_bce/apple_bce_vhci.c
1359
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
140
static void bce_vhci_xfer_unsetup(struct usb_xfer *xfer);
sys/dev/apple_bce/apple_bce_vhci.c
143
static void bce_vhci_pipe_open(struct usb_xfer *xfer);
sys/dev/apple_bce/apple_bce_vhci.c
144
static void bce_vhci_pipe_close(struct usb_xfer *xfer);
sys/dev/apple_bce/apple_bce_vhci.c
145
static void bce_vhci_pipe_enter(struct usb_xfer *xfer);
sys/dev/apple_bce/apple_bce_vhci.c
146
static void bce_vhci_pipe_start(struct usb_xfer *xfer);
sys/dev/apple_bce/apple_bce_vhci.c
1691
struct usb_xfer *xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1695
xfer = tq->active_xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1697
if (xfer != NULL) {
sys/dev/apple_bce/apple_bce_vhci.c
1704
if (len > xfer->frlengths[0])
sys/dev/apple_bce/apple_bce_vhci.c
1705
len = xfer->frlengths[0];
sys/dev/apple_bce/apple_bce_vhci.c
1707
usbd_copy_in(&xfer->frbuffers[0], 0,
sys/dev/apple_bce/apple_bce_vhci.c
1709
xfer->frlengths[0] = len;
sys/dev/apple_bce/apple_bce_vhci.c
1710
xfer->aframes = xfer->nframes;
sys/dev/apple_bce/apple_bce_vhci.c
1723
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
1803
struct usb_xfer *xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1812
xfer = tq->active_xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1814
if (xfer != NULL) {
sys/dev/apple_bce/apple_bce_vhci.c
1827
xfer->aframes = xfer->nframes;
sys/dev/apple_bce/apple_bce_vhci.c
1828
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
1847
struct usb_xfer *xfer, *pxfer;
sys/dev/apple_bce/apple_bce_vhci.c
1850
xfer = tq->active_xfer;
sys/dev/apple_bce/apple_bce_vhci.c
1853
if (xfer != NULL) {
sys/dev/apple_bce/apple_bce_vhci.c
1860
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
2500
struct usb_xfer *xfer;
sys/dev/apple_bce/apple_bce_vhci.c
2526
xfer = tq->active_xfer;
sys/dev/apple_bce/apple_bce_vhci.c
2527
if (xfer == NULL) {
sys/dev/apple_bce/apple_bce_vhci.c
2580
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2583
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
2593
if (xfer == tq->active_xfer &&
sys/dev/apple_bce/apple_bce_vhci.c
2594
xfer->frlengths[0] > 0) {
sys/dev/apple_bce/apple_bce_vhci.c
2595
if (len > xfer->frlengths[0])
sys/dev/apple_bce/apple_bce_vhci.c
2596
len = xfer->frlengths[0];
sys/dev/apple_bce/apple_bce_vhci.c
2597
usbd_copy_out(&xfer->frbuffers[0], 0,
sys/dev/apple_bce/apple_bce_vhci.c
2618
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2621
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
2633
if (xfer == tq->active_xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2636
xfer->aframes = xfer->nframes;
sys/dev/apple_bce/apple_bce_vhci.c
2647
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
2663
if (tq->active_xfer != xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2688
usbd_copy_out(&xfer->frbuffers[0], 0, tq->dma_buf, len);
sys/dev/apple_bce/apple_bce_vhci.c
2705
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2709
usbd_transfer_done(xfer, USB_ERR_IOERROR);
sys/dev/apple_bce/apple_bce_vhci.c
2790
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2795
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
2818
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2823
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
2848
usbd_copy_out(&xfer->frbuffers[1], 0,
sys/dev/apple_bce/apple_bce_vhci.c
2866
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2871
usbd_transfer_done(xfer,
sys/dev/apple_bce/apple_bce_vhci.c
2896
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
2899
usbd_transfer_done(xfer, USB_ERR_IOERROR);
sys/dev/apple_bce/apple_bce_vhci.c
2915
struct usb_xfer *xfer;
sys/dev/apple_bce/apple_bce_vhci.c
2918
xfer = tq->active_xfer;
sys/dev/apple_bce/apple_bce_vhci.c
2919
if (xfer == NULL)
sys/dev/apple_bce/apple_bce_vhci.c
2933
xfer->aframes = xfer->nframes;
sys/dev/apple_bce/apple_bce_vhci.c
2944
usbd_copy_in(&xfer->frbuffers[1], 0,
sys/dev/apple_bce/apple_bce_vhci.c
2946
xfer->frlengths[1] = tq->ctrl_actual;
sys/dev/apple_bce/apple_bce_vhci.c
2969
usbd_transfer_done(xfer, usb_err);
sys/dev/apple_bce/apple_bce_vhci.c
4162
struct usb_xfer *xfer = parm->curr_xfer;
sys/dev/apple_bce/apple_bce_vhci.c
4174
xfer->flags_int.bdma_enable = 0;
sys/dev/apple_bce/apple_bce_vhci.c
4178
bce_vhci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/apple_bce/apple_bce_vhci.c
4191
bce_vhci_pipe_open(struct usb_xfer *xfer)
sys/dev/apple_bce/apple_bce_vhci.c
4197
bce_vhci_pipe_close(struct usb_xfer *xfer)
sys/dev/apple_bce/apple_bce_vhci.c
4202
vhci = (struct bce_vhci_softc *)xfer->xroot->bus;
sys/dev/apple_bce/apple_bce_vhci.c
4219
if (tq->active_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
4226
if (tq->pending_xfer == xfer)
sys/dev/apple_bce/apple_bce_vhci.c
4228
if (tq->create_xfer == xfer) {
sys/dev/apple_bce/apple_bce_vhci.c
4236
if (xfer->flags_int.transferring) {
sys/dev/apple_bce/apple_bce_vhci.c
4237
usbd_transfer_done(xfer, USB_ERR_CANCELLED);
sys/dev/apple_bce/apple_bce_vhci.c
4242
bce_vhci_pipe_enter(struct usb_xfer *xfer)
sys/dev/apple_bce/apple_bce_vhci.c
4258
bce_vhci_pipe_start(struct usb_xfer *xfer)
sys/dev/apple_bce/apple_bce_vhci.c
4267
vhci = (struct bce_vhci_softc *)xfer->xroot->bus;
sys/dev/apple_bce/apple_bce_vhci.c
4268
xfer_type = xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE;
sys/dev/apple_bce/apple_bce_vhci.c
4269
ep_addr = xfer->endpointno;
sys/dev/apple_bce/apple_bce_vhci.c
4272
struct usb_device *udev = xfer->xroot->udev;
sys/dev/apple_bce/apple_bce_vhci.c
4279
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4285
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4291
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4311
tq->create_edesc = xfer->endpoint->edesc;
sys/dev/apple_bce/apple_bce_vhci.c
4313
tq->create_xfer = xfer;
sys/dev/apple_bce/apple_bce_vhci.c
4317
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4331
tq->pending_xfer = xfer;
sys/dev/apple_bce/apple_bce_vhci.c
4333
usbd_transfer_done(xfer, USB_ERR_CANCELLED);
sys/dev/apple_bce/apple_bce_vhci.c
4337
tq->active_xfer = xfer;
sys/dev/apple_bce/apple_bce_vhci.c
4356
len = xfer->frlengths[0];
sys/dev/apple_bce/apple_bce_vhci.c
4375
usbd_transfer_done(xfer, USB_ERR_IOERROR);
sys/dev/apple_bce/apple_bce_vhci.c
4392
usbd_transfer_done(xfer, USB_ERR_IOERROR);
sys/dev/apple_bce/apple_bce_vhci.c
4412
len = xfer->frlengths[0];
sys/dev/apple_bce/apple_bce_vhci.c
4416
usbd_copy_out(&xfer->frbuffers[0], 0,
sys/dev/apple_bce/apple_bce_vhci.c
4433
usbd_transfer_done(xfer, USB_ERR_IOERROR);
sys/dev/apple_bce/apple_bce_vhci.c
4458
usbd_transfer_done(xfer, USB_ERR_IOERROR);
sys/dev/apple_bce/apple_bce_vhci.c
4475
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4488
struct usb_device *udev = xfer->xroot->udev;
sys/dev/apple_bce/apple_bce_vhci.c
4495
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4504
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4513
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4536
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4543
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/apple_bce/apple_bce_vhci.c
4548
usbd_copy_out(&xfer->frbuffers[0], 0, &setup, sizeof(setup));
sys/dev/apple_bce/apple_bce_vhci.c
4557
tq->active_xfer = xfer;
sys/dev/apple_bce/apple_bce_vhci.c
4568
xfer->aframes = xfer->nframes;
sys/dev/apple_bce/apple_bce_vhci.c
4569
usbd_transfer_done(xfer, USB_ERR_NORMAL_COMPLETION);
sys/dev/firewire/firewire.c
1003
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
1006
xfer = fw_xfer_alloc_buf(type, slen, rlen);
sys/dev/firewire/firewire.c
1007
if (xfer == NULL)
sys/dev/firewire/firewire.c
1009
xfer->fc = fc;
sys/dev/firewire/firewire.c
1010
xfer->sc = sc;
sys/dev/firewire/firewire.c
1011
xfer->hand = hand;
sys/dev/firewire/firewire.c
1012
STAILQ_INSERT_TAIL(q, xfer, link);
sys/dev/firewire/firewire.c
1020
struct fw_xfer *xfer, *next;
sys/dev/firewire/firewire.c
1022
for (xfer = STAILQ_FIRST(q); xfer != NULL; xfer = next) {
sys/dev/firewire/firewire.c
1023
next = STAILQ_NEXT(xfer, link);
sys/dev/firewire/firewire.c
1024
fw_xfer_free_buf(xfer);
sys/dev/firewire/firewire.c
1046
fw_tl_free(struct firewire_comm *fc, struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
1051
if (xfer->tl < 0) {
sys/dev/firewire/firewire.c
1056
STAILQ_FOREACH(txfer, &fc->tlabels[xfer->tl], tlabel)
sys/dev/firewire/firewire.c
1057
if (txfer == xfer)
sys/dev/firewire/firewire.c
1062
__FUNCTION__, xfer->tl, xfer->flag);
sys/dev/firewire/firewire.c
1063
fw_dump_hdr(&xfer->send.hdr, "send");
sys/dev/firewire/firewire.c
1064
fw_dump_hdr(&xfer->recv.hdr, "recv");
sys/dev/firewire/firewire.c
1070
STAILQ_REMOVE(&fc->tlabels[xfer->tl], xfer, fw_xfer, tlabel);
sys/dev/firewire/firewire.c
1071
xfer->tl = -1;
sys/dev/firewire/firewire.c
1085
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
1089
STAILQ_FOREACH(xfer, &fc->tlabels[tlabel], tlabel) {
sys/dev/firewire/firewire.c
1090
if (xfer->send.hdr.mode.hdr.dst != node)
sys/dev/firewire/firewire.c
1093
req = xfer->send.hdr.mode.hdr.tcode;
sys/dev/firewire/firewire.c
1094
if (xfer->fc->tcode[req].valid_res != tcode) {
sys/dev/firewire/firewire.c
1105
if (xfer->flag & FWXF_SENT) {
sys/dev/firewire/firewire.c
1106
STAILQ_REMOVE(&fc->tlabels[tlabel], xfer,
sys/dev/firewire/firewire.c
1108
xfer->tl = -1;
sys/dev/firewire/firewire.c
1113
return (xfer);
sys/dev/firewire/firewire.c
1127
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
1129
xfer = malloc(sizeof(struct fw_xfer), type, M_NOWAIT | M_ZERO);
sys/dev/firewire/firewire.c
1130
if (xfer == NULL)
sys/dev/firewire/firewire.c
1131
return xfer;
sys/dev/firewire/firewire.c
1133
xfer->malloc = type;
sys/dev/firewire/firewire.c
1134
xfer->tl = -1;
sys/dev/firewire/firewire.c
1136
return xfer;
sys/dev/firewire/firewire.c
1142
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
1144
xfer = fw_xfer_alloc(type);
sys/dev/firewire/firewire.c
1145
if (xfer == NULL)
sys/dev/firewire/firewire.c
1147
xfer->send.pay_len = send_len;
sys/dev/firewire/firewire.c
1148
xfer->recv.pay_len = recv_len;
sys/dev/firewire/firewire.c
1150
xfer->send.payload = malloc(send_len, type, M_NOWAIT | M_ZERO);
sys/dev/firewire/firewire.c
1151
if (xfer->send.payload == NULL) {
sys/dev/firewire/firewire.c
1152
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
1157
xfer->recv.payload = malloc(recv_len, type, M_NOWAIT);
sys/dev/firewire/firewire.c
1158
if (xfer->recv.payload == NULL) {
sys/dev/firewire/firewire.c
1159
if (xfer->send.payload != NULL)
sys/dev/firewire/firewire.c
1160
free(xfer->send.payload, type);
sys/dev/firewire/firewire.c
1161
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
1165
return (xfer);
sys/dev/firewire/firewire.c
1172
fw_xfer_done(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
1174
if (xfer->hand == NULL) {
sys/dev/firewire/firewire.c
1179
if (xfer->fc == NULL)
sys/dev/firewire/firewire.c
1182
fw_tl_free(xfer->fc, xfer);
sys/dev/firewire/firewire.c
1183
xfer->hand(xfer);
sys/dev/firewire/firewire.c
1187
fw_xfer_unload(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
1190
if (xfer == NULL)
sys/dev/firewire/firewire.c
1193
if (xfer->fc != NULL) {
sys/dev/firewire/firewire.c
1194
FW_GLOCK(xfer->fc);
sys/dev/firewire/firewire.c
1195
if (xfer->flag & FWXF_INQ) {
sys/dev/firewire/firewire.c
1196
STAILQ_REMOVE(&xfer->q->q, xfer, fw_xfer, link);
sys/dev/firewire/firewire.c
1197
xfer->flag &= ~FWXF_INQ;
sys/dev/firewire/firewire.c
1199
FW_GUNLOCK(xfer->fc);
sys/dev/firewire/firewire.c
1205
fw_tl_free(xfer->fc, xfer);
sys/dev/firewire/firewire.c
1206
if (firewire_debug && (xfer->flag & FWXF_START))
sys/dev/firewire/firewire.c
1209
xfer->flag = FWXF_INIT;
sys/dev/firewire/firewire.c
1210
xfer->resp = 0;
sys/dev/firewire/firewire.c
1217
fw_xfer_free_buf(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
1219
if (xfer == NULL) {
sys/dev/firewire/firewire.c
1223
fw_xfer_unload(xfer);
sys/dev/firewire/firewire.c
1224
if (xfer->send.payload != NULL)
sys/dev/firewire/firewire.c
1225
free(xfer->send.payload, xfer->malloc);
sys/dev/firewire/firewire.c
1226
if (xfer->recv.payload != NULL)
sys/dev/firewire/firewire.c
1227
free(xfer->recv.payload, xfer->malloc);
sys/dev/firewire/firewire.c
1228
free(xfer, xfer->malloc);
sys/dev/firewire/firewire.c
1232
fw_xfer_free(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
1234
if (xfer == NULL) {
sys/dev/firewire/firewire.c
1238
fw_xfer_unload(xfer);
sys/dev/firewire/firewire.c
1239
free(xfer, xfer->malloc);
sys/dev/firewire/firewire.c
1243
fw_asy_callback_free(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
1245
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
1254
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
1259
xfer = fw_xfer_alloc(M_FWXFER);
sys/dev/firewire/firewire.c
1260
if (xfer == NULL)
sys/dev/firewire/firewire.c
1262
xfer->fc = fc;
sys/dev/firewire/firewire.c
1263
xfer->hand = fw_asy_callback_free;
sys/dev/firewire/firewire.c
1265
fp = &xfer->send.hdr;
sys/dev/firewire/firewire.c
1279
fw_asyreq(fc, -1, xfer);
sys/dev/firewire/firewire.c
1454
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
1459
xfer = fwmem_read_quad(fwdev, NULL, -1, 0xffff,
sys/dev/firewire/firewire.c
1461
if (xfer == NULL)
sys/dev/firewire/firewire.c
1463
fw_xferwait(xfer);
sys/dev/firewire/firewire.c
1465
if (xfer->resp == 0)
sys/dev/firewire/firewire.c
1468
error = xfer->resp;
sys/dev/firewire/firewire.c
1469
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
1994
fw_get_tlabel(struct firewire_comm *fc, struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
1999
dst = xfer->send.hdr.mode.hdr.dst & FW_NODE_MASK;
sys/dev/firewire/firewire.c
2007
STAILQ_INSERT_TAIL(&fc->tlabels[new_tlabel], xfer, tlabel);
sys/dev/firewire/firewire.c
2009
xfer->tl = new_tlabel;
sys/dev/firewire/firewire.c
2010
xfer->send.hdr.mode.hdr.tlrt = new_tlabel << 2;
sys/dev/firewire/firewire.c
2030
rb->xfer->recv.spd = rb->spd;
sys/dev/firewire/firewire.c
2036
p = (u_char *)&rb->xfer->recv.hdr;
sys/dev/firewire/firewire.c
2042
p = (u_char *)rb->xfer->recv.payload;
sys/dev/firewire/firewire.c
2043
res = rb->xfer->recv.pay_len;
sys/dev/firewire/firewire.c
2049
rb->xfer->recv.pay_len = sizeof(uint32_t);
sys/dev/firewire/firewire.c
205
fw_asyreq(struct firewire_comm *fc, int sub, struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
2063
__func__, rb->xfer->recv.pay_len, len - res);
sys/dev/firewire/firewire.c
2073
rb->xfer->recv.pay_len -= res;
sys/dev/firewire/firewire.c
2094
rb->xfer = fw_tl2xfer(rb->fc, fp->mode.hdr.src,
sys/dev/firewire/firewire.c
2096
if (rb->xfer == NULL) {
sys/dev/firewire/firewire.c
2108
if (rb->xfer->recv.hdr.mode.wres.rtcode != RESP_CMP)
sys/dev/firewire/firewire.c
2109
rb->xfer->resp = EIO;
sys/dev/firewire/firewire.c
2111
rb->xfer->resp = 0;
sys/dev/firewire/firewire.c
2113
oldstate = rb->xfer->flag;
sys/dev/firewire/firewire.c
2114
rb->xfer->flag = FWXF_RCVD;
sys/dev/firewire/firewire.c
2117
fw_xfer_done(rb->xfer);
sys/dev/firewire/firewire.c
2124
rb->xfer->flag);
sys/dev/firewire/firewire.c
214
if (xfer == NULL)
sys/dev/firewire/firewire.c
2151
rb->xfer = fw_xfer_alloc(M_FWXFER);
sys/dev/firewire/firewire.c
2152
if (rb->xfer == NULL) {
sys/dev/firewire/firewire.c
2155
rb->xfer->send.spd = rb->spd;
sys/dev/firewire/firewire.c
2156
rb->xfer->send.pay_len = 0;
sys/dev/firewire/firewire.c
2157
resfp = &rb->xfer->send.hdr;
sys/dev/firewire/firewire.c
216
if (xfer->hand == NULL) {
sys/dev/firewire/firewire.c
2179
rb->xfer->hand = fw_xfer_free;
sys/dev/firewire/firewire.c
2180
if (fw_asyreq(rb->fc, -1, rb->xfer))
sys/dev/firewire/firewire.c
2181
fw_xfer_free(rb->xfer);
sys/dev/firewire/firewire.c
2184
rb->xfer = STAILQ_FIRST(&bind->xferlist);
sys/dev/firewire/firewire.c
2185
if (rb->xfer == NULL) {
sys/dev/firewire/firewire.c
2192
rb->xfer->hand(rb->xfer);
sys/dev/firewire/firewire.c
220
fp = &xfer->send.hdr;
sys/dev/firewire/firewire.c
2205
fw_try_bmr_callback(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
2210
if (xfer == NULL)
sys/dev/firewire/firewire.c
2212
fc = xfer->fc;
sys/dev/firewire/firewire.c
2213
if (xfer->resp != 0)
sys/dev/firewire/firewire.c
2215
if (xfer->recv.payload == NULL)
sys/dev/firewire/firewire.c
2217
if (xfer->recv.hdr.mode.lres.rtcode != FWRCODE_COMPLETE)
sys/dev/firewire/firewire.c
2220
bmr = ntohl(xfer->recv.payload[0]);
sys/dev/firewire/firewire.c
2225
fw_xfer_free_buf(xfer);
sys/dev/firewire/firewire.c
2231
fw_xfer_free_buf(xfer);
sys/dev/firewire/firewire.c
2241
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
2246
xfer = fw_xfer_alloc_buf(M_FWXFER, 8, 4);
sys/dev/firewire/firewire.c
2247
if (xfer == NULL)
sys/dev/firewire/firewire.c
2249
xfer->send.spd = 0;
sys/dev/firewire/firewire.c
2252
fp = &xfer->send.hdr;
sys/dev/firewire/firewire.c
2262
xfer->send.payload[0] = htonl(0x3f);
sys/dev/firewire/firewire.c
2263
xfer->send.payload[1] = htonl(fc->nodeid);
sys/dev/firewire/firewire.c
2264
xfer->hand = fw_try_bmr_callback;
sys/dev/firewire/firewire.c
2266
err = fw_asyreq(fc, -1, xfer);
sys/dev/firewire/firewire.c
2268
fw_xfer_free_buf(xfer);
sys/dev/firewire/firewire.c
2280
fw_vmaccess(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
2283
uint32_t *ld = (uint32_t *)xfer->recv.buf;
sys/dev/firewire/firewire.c
2286
xfer->spd, xfer->recv.len, ntohl(ld[0]), ntohl(ld[1]), ntohl(ld[2]),
sys/dev/firewire/firewire.c
2290
if (xfer->resp != 0) {
sys/dev/firewire/firewire.c
2291
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
2294
if (xfer->recv.buf == NULL) {
sys/dev/firewire/firewire.c
2295
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
2298
rfp = (struct fw_pkt *)xfer->recv.buf;
sys/dev/firewire/firewire.c
2301
xfer->send.buf = malloc(12, M_FW, M_NOWAIT);
sys/dev/firewire/firewire.c
2302
xfer->send.len = 12;
sys/dev/firewire/firewire.c
2303
sfp = (struct fw_pkt *)xfer->send.buf;
sys/dev/firewire/firewire.c
2311
xfer->send.buf = malloc(12, M_FW, M_NOWAIT);
sys/dev/firewire/firewire.c
2312
xfer->send.len = 12;
sys/dev/firewire/firewire.c
2319
xfer->send.buf = malloc(16 + rfp->mode.rreqb.len,
sys/dev/firewire/firewire.c
2321
xfer->send.len = 16 + ntohs(rfp->mode.rreqb.len);
sys/dev/firewire/firewire.c
2322
sfp = (struct fw_pkt *)xfer->send.buf;
sys/dev/firewire/firewire.c
2332
xfer->send.buf = malloc(16, M_FW, M_NOWAIT);
sys/dev/firewire/firewire.c
2333
xfer->send.len = 16;
sys/dev/firewire/firewire.c
2334
sfp = (struct fw_pkt *)xfer->send.buf;
sys/dev/firewire/firewire.c
234
xfer->resp = EAGAIN;
sys/dev/firewire/firewire.c
2341
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
2345
xfer->dst = ntohs(rfp->mode.hdr.src);
sys/dev/firewire/firewire.c
2346
xfer->hand = fw_xfer_free;
sys/dev/firewire/firewire.c
235
xfer->flag = FWXF_BUSY;
sys/dev/firewire/firewire.c
2351
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/firewire.c
244
if (xfer->send.pay_len > MAXREC(fc->maxrec)) {
sys/dev/firewire/firewire.c
254
if (len != xfer->send.pay_len) {
sys/dev/firewire/firewire.c
256
len, xfer->send.pay_len, tcode_str[tcode], tcode);
sys/dev/firewire/firewire.c
270
xfer->tl = -1;
sys/dev/firewire/firewire.c
272
if (fw_get_tlabel(fc, xfer) < 0)
sys/dev/firewire/firewire.c
276
xfer->resp = 0;
sys/dev/firewire/firewire.c
277
xfer->fc = fc;
sys/dev/firewire/firewire.c
278
xfer->q = xferq;
sys/dev/firewire/firewire.c
280
fw_asystart(xfer);
sys/dev/firewire/firewire.c
288
fw_xferwake(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
290
struct mtx *lock = &xfer->fc->wait_lock;
sys/dev/firewire/firewire.c
293
xfer->flag |= FWXF_WAKE;
sys/dev/firewire/firewire.c
296
wakeup(xfer);
sys/dev/firewire/firewire.c
301
fw_xferwait(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
303
struct mtx *lock = &xfer->fc->wait_lock;
sys/dev/firewire/firewire.c
307
while ((xfer->flag & FWXF_WAKE) == 0)
sys/dev/firewire/firewire.c
308
err = msleep(xfer, lock, PWAIT|PCATCH, "fw_xferwait", 0);
sys/dev/firewire/firewire.c
318
fw_asystart(struct fw_xfer *xfer)
sys/dev/firewire/firewire.c
320
struct firewire_comm *fc = xfer->fc;
sys/dev/firewire/firewire.c
324
xfer->flag = FWXF_INQ;
sys/dev/firewire/firewire.c
325
STAILQ_INSERT_TAIL(&xfer->q->q, xfer, link);
sys/dev/firewire/firewire.c
328
if (xfer->mbuf == NULL)
sys/dev/firewire/firewire.c
329
xfer->q->start(fc);
sys/dev/firewire/firewire.c
351
struct fw_xfer *xfer, *txfer;
sys/dev/firewire/firewire.c
366
while ((xfer = STAILQ_FIRST(&fc->tlabels[i])) != NULL) {
sys/dev/firewire/firewire.c
367
if ((xfer->flag & FWXF_SENT) == 0)
sys/dev/firewire/firewire.c
370
if (timevalcmp(&xfer->tv, &tv, >))
sys/dev/firewire/firewire.c
375
i, xfer->flag);
sys/dev/firewire/firewire.c
376
fw_dump_hdr(&xfer->send.hdr, "send");
sys/dev/firewire/firewire.c
377
xfer->resp = ETIMEDOUT;
sys/dev/firewire/firewire.c
378
xfer->tl = -1;
sys/dev/firewire/firewire.c
380
STAILQ_INSERT_TAIL(&xfer_timeout, xfer, tlabel);
sys/dev/firewire/firewire.c
386
STAILQ_FOREACH_SAFE(xfer, &xfer_timeout, tlabel, txfer)
sys/dev/firewire/firewire.c
387
xfer->hand(xfer);
sys/dev/firewire/firewire.c
601
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
603
while ((xfer = STAILQ_FIRST(&xferq->q)) != NULL) {
sys/dev/firewire/firewire.c
605
xfer->resp = EAGAIN;
sys/dev/firewire/firewire.c
606
xfer->flag = FWXF_SENTERR;
sys/dev/firewire/firewire.c
607
fw_xfer_done(xfer);
sys/dev/firewire/firewire.c
614
struct fw_xfer *xfer, *txfer;
sys/dev/firewire/firewire.c
629
while ((xfer = STAILQ_FIRST(&fc->tlabels[i])) != NULL) {
sys/dev/firewire/firewire.c
631
printf("tl=%d flag=%d\n", i, xfer->flag);
sys/dev/firewire/firewire.c
632
xfer->tl = -1;
sys/dev/firewire/firewire.c
633
xfer->resp = EAGAIN;
sys/dev/firewire/firewire.c
635
STAILQ_INSERT_TAIL(&xfer_drain, xfer, tlabel);
sys/dev/firewire/firewire.c
639
STAILQ_FOREACH_SAFE(xfer, &xfer_drain, tlabel, txfer)
sys/dev/firewire/firewire.c
640
xfer->hand(xfer);
sys/dev/firewire/firewire.c
832
struct fw_xfer *xfer;
sys/dev/firewire/firewire.c
897
xfer = fw_xfer_alloc();
sys/dev/firewire/firewire.c
898
if (xfer == NULL)
sys/dev/firewire/firewire.c
903
fw_xfer_free(xfer);
sys/dev/firewire/firewire.c
906
xfer->hand = fw_vmaccess;
sys/dev/firewire/firewire.c
907
xfer->fc = fc;
sys/dev/firewire/firewire.c
908
xfer->sc = NULL;
sys/dev/firewire/firewire.c
913
fwb->xfer = xfer;
sys/dev/firewire/firewirereg.h
288
struct fw_xfer *xfer;
sys/dev/firewire/fw_helpers.h
100
if (timedout && xfer->resp == ETIMEDOUT)
sys/dev/firewire/fw_helpers.h
109
fw_xfer_request_wait(struct firewire_comm *fc, struct fw_xfer *xfer, int timo)
sys/dev/firewire/fw_helpers.h
11
fw_xfer_timeout_cancel(struct fw_xfer *xfer)
sys/dev/firewire/fw_helpers.h
113
err = fw_asyreq(fc, -1, xfer);
sys/dev/firewire/fw_helpers.h
116
return (fw_xferwait_timo(xfer, timo));
sys/dev/firewire/fw_helpers.h
124
struct fw_xfer *xfer;
sys/dev/firewire/fw_helpers.h
128
xfer = fw_xfer_alloc_buf(mtype, 0, 4);
sys/dev/firewire/fw_helpers.h
129
if (xfer == NULL)
sys/dev/firewire/fw_helpers.h
13
struct firewire_comm *fc = xfer->fc;
sys/dev/firewire/fw_helpers.h
132
xfer->send.spd = spd;
sys/dev/firewire/fw_helpers.h
133
xfer->fc = fc;
sys/dev/firewire/fw_helpers.h
134
xfer->hand = fw_xferwake;
sys/dev/firewire/fw_helpers.h
136
fp = &xfer->send.hdr;
sys/dev/firewire/fw_helpers.h
142
err = fw_xfer_request_wait(fc, xfer, 2 * hz);
sys/dev/firewire/fw_helpers.h
146
if (xfer->resp == 0 &&
sys/dev/firewire/fw_helpers.h
147
xfer->recv.hdr.mode.rresq.rtcode == FWRCODE_COMPLETE)
sys/dev/firewire/fw_helpers.h
148
*val = ntohl(xfer->recv.hdr.mode.rresq.data);
sys/dev/firewire/fw_helpers.h
152
fw_xfer_free_buf(xfer);
sys/dev/firewire/fw_helpers.h
161
struct fw_xfer *xfer;
sys/dev/firewire/fw_helpers.h
165
xfer = fw_xfer_alloc_buf(mtype, 0, 0);
sys/dev/firewire/fw_helpers.h
166
if (xfer == NULL)
sys/dev/firewire/fw_helpers.h
169
xfer->send.spd = spd;
sys/dev/firewire/fw_helpers.h
170
xfer->fc = fc;
sys/dev/firewire/fw_helpers.h
171
xfer->hand = fw_xferwake;
sys/dev/firewire/fw_helpers.h
173
fp = &xfer->send.hdr;
sys/dev/firewire/fw_helpers.h
180
err = fw_xfer_request_wait(fc, xfer, 2 * hz);
sys/dev/firewire/fw_helpers.h
184
if (xfer->resp != 0 ||
sys/dev/firewire/fw_helpers.h
185
xfer->recv.hdr.mode.wres.rtcode != FWRCODE_COMPLETE)
sys/dev/firewire/fw_helpers.h
188
fw_xfer_free_buf(xfer);
sys/dev/firewire/fw_helpers.h
29
if ((xfer->flag & FWXF_INQ) != 0) {
sys/dev/firewire/fw_helpers.h
30
STAILQ_REMOVE(&xfer->q->q, xfer, fw_xfer, link);
sys/dev/firewire/fw_helpers.h
31
xfer->flag &= ~FWXF_INQ;
sys/dev/firewire/fw_helpers.h
34
} else if ((xfer->flag & FWXF_SENT) != 0) {
sys/dev/firewire/fw_helpers.h
41
if (xfer->tl >= 0) {
sys/dev/firewire/fw_helpers.h
42
STAILQ_FOREACH(txfer, &fc->tlabels[xfer->tl], tlabel) {
sys/dev/firewire/fw_helpers.h
43
if (txfer == xfer)
sys/dev/firewire/fw_helpers.h
46
if (txfer == xfer) {
sys/dev/firewire/fw_helpers.h
47
STAILQ_REMOVE(&fc->tlabels[xfer->tl], xfer,
sys/dev/firewire/fw_helpers.h
51
xfer->tl = -1;
sys/dev/firewire/fw_helpers.h
58
xfer->resp = ETIMEDOUT;
sys/dev/firewire/fw_helpers.h
59
xfer->flag |= FWXF_WAKE;
sys/dev/firewire/fw_helpers.h
61
wakeup(xfer);
sys/dev/firewire/fw_helpers.h
76
fw_xferwait_timo(struct fw_xfer *xfer, int timo)
sys/dev/firewire/fw_helpers.h
78
struct firewire_comm *fc = xfer->fc;
sys/dev/firewire/fw_helpers.h
84
while ((xfer->flag & FWXF_WAKE) == 0) {
sys/dev/firewire/fw_helpers.h
85
err = msleep(xfer, lock, PWAIT, "fwxfer", timo);
sys/dev/firewire/fw_helpers.h
88
if (fw_xfer_timeout_cancel(xfer))
sys/dev/firewire/fw_net.h
36
struct fw_xfer *xfer;
sys/dev/firewire/fw_net.h
38
xfer = fw_xfer_alloc(mtype);
sys/dev/firewire/fw_net.h
39
if (xfer == NULL)
sys/dev/firewire/fw_net.h
41
xfer->send.spd = speed;
sys/dev/firewire/fw_net.h
42
xfer->fc = fc;
sys/dev/firewire/fw_net.h
43
xfer->sc = (caddr_t)sc;
sys/dev/firewire/fw_net.h
44
xfer->hand = hand;
sys/dev/firewire/fw_net.h
45
return (xfer);
sys/dev/firewire/fwdev.c
202
struct fw_xfer *xfer;
sys/dev/firewire/fwdev.c
232
for (xfer = STAILQ_FIRST(&ir->q);
sys/dev/firewire/fwdev.c
233
xfer != NULL; xfer = STAILQ_FIRST(&ir->q)) {
sys/dev/firewire/fwdev.c
237
xfer->resp = 0;
sys/dev/firewire/fwdev.c
238
fw_xfer_done(xfer);
sys/dev/firewire/fwdev.c
270
struct fw_xfer *xfer;
sys/dev/firewire/fwdev.c
276
while ((xfer = STAILQ_FIRST(&d->rq)) == NULL && err == 0)
sys/dev/firewire/fwdev.c
285
FW_GUNLOCK(xfer->fc);
sys/dev/firewire/fwdev.c
286
fp = &xfer->recv.hdr;
sys/dev/firewire/fwdev.c
287
tinfo = &xfer->fc->tcode[fp->mode.hdr.tcode];
sys/dev/firewire/fwdev.c
291
err = uiomove(xfer->recv.payload, xfer->recv.pay_len, uio);
sys/dev/firewire/fwdev.c
295
fwb = (struct fw_bind *)xfer->sc;
sys/dev/firewire/fwdev.c
296
fw_xfer_unload(xfer);
sys/dev/firewire/fwdev.c
297
xfer->recv.pay_len = PAGE_SIZE;
sys/dev/firewire/fwdev.c
298
FW_GLOCK(xfer->fc);
sys/dev/firewire/fwdev.c
299
STAILQ_INSERT_TAIL(&fwb->xferlist, xfer, link);
sys/dev/firewire/fwdev.c
300
FW_GUNLOCK(xfer->fc);
sys/dev/firewire/fwdev.c
383
struct fw_xfer *xfer;
sys/dev/firewire/fwdev.c
396
if ((xfer = fw_xfer_alloc_buf(M_FWXFER, uio->uio_resid,
sys/dev/firewire/fwdev.c
400
bcopy(&pkt, &xfer->send.hdr, sizeof(struct fw_pkt));
sys/dev/firewire/fwdev.c
401
xfer->send.pay_len = uio->uio_resid;
sys/dev/firewire/fwdev.c
403
if ((err = uiomove((caddr_t)&xfer->send.payload[0],
sys/dev/firewire/fwdev.c
408
xfer->fc = d->fc;
sys/dev/firewire/fwdev.c
409
xfer->sc = NULL;
sys/dev/firewire/fwdev.c
410
xfer->hand = fw_xferwake;
sys/dev/firewire/fwdev.c
411
xfer->send.spd = FWSPD_S400;
sys/dev/firewire/fwdev.c
413
if ((err = fw_asyreq(xfer->fc, -1, xfer)))
sys/dev/firewire/fwdev.c
416
if ((err = fw_xferwait(xfer)))
sys/dev/firewire/fwdev.c
419
if (xfer->resp != 0) {
sys/dev/firewire/fwdev.c
420
err = xfer->resp;
sys/dev/firewire/fwdev.c
424
if (xfer->flag & FWXF_RCVD) {
sys/dev/firewire/fwdev.c
425
FW_GLOCK(xfer->fc);
sys/dev/firewire/fwdev.c
426
STAILQ_INSERT_TAIL(&d->rq, xfer, link);
sys/dev/firewire/fwdev.c
427
FW_GUNLOCK(xfer->fc);
sys/dev/firewire/fwdev.c
432
fw_xfer_free(xfer);
sys/dev/firewire/fwdev.c
502
fw_hand(struct fw_xfer *xfer)
sys/dev/firewire/fwdev.c
507
fwb = (struct fw_bind *)xfer->sc;
sys/dev/firewire/fwdev.c
509
FW_GLOCK(xfer->fc);
sys/dev/firewire/fwdev.c
510
STAILQ_INSERT_TAIL(&d->rq, xfer, link);
sys/dev/firewire/fwdev.c
511
FW_GUNLOCK(xfer->fc);
sys/dev/firewire/fwdev.c
527
struct fw_xfer *xfer;
sys/dev/firewire/fwdev.c
632
xfer = fw_xfer_alloc_buf(M_FWXFER, pay_len, PAGE_SIZE/*XXX*/);
sys/dev/firewire/fwdev.c
633
if (xfer == NULL)
sys/dev/firewire/fwdev.c
658
bcopy(fp, (void *)&xfer->send.hdr, tinfo->hdr_len);
sys/dev/firewire/fwdev.c
661
xfer->send.payload, pay_len);
sys/dev/firewire/fwdev.c
662
xfer->send.spd = asyreq->req.sped;
sys/dev/firewire/fwdev.c
663
xfer->hand = fw_xferwake;
sys/dev/firewire/fwdev.c
665
if ((err = fw_asyreq(fc, -1, xfer)) != 0)
sys/dev/firewire/fwdev.c
667
if ((err = fw_xferwait(xfer)) != 0)
sys/dev/firewire/fwdev.c
669
if (xfer->resp != 0) {
sys/dev/firewire/fwdev.c
677
tinfo = &fc->tcode[xfer->recv.hdr.mode.hdr.tcode];
sys/dev/firewire/fwdev.c
678
if (xfer->recv.hdr.mode.hdr.tcode == FWTCODE_RRESB ||
sys/dev/firewire/fwdev.c
679
xfer->recv.hdr.mode.hdr.tcode == FWTCODE_LRES) {
sys/dev/firewire/fwdev.c
680
pay_len = xfer->recv.pay_len;
sys/dev/firewire/fwdev.c
681
if (asyreq->req.len >= xfer->recv.pay_len + tinfo->hdr_len) {
sys/dev/firewire/fwdev.c
682
asyreq->req.len = xfer->recv.pay_len +
sys/dev/firewire/fwdev.c
691
bcopy(&xfer->recv.hdr, fp, tinfo->hdr_len);
sys/dev/firewire/fwdev.c
692
bcopy(xfer->recv.payload, (char *)fp + tinfo->hdr_len, pay_len);
sys/dev/firewire/fwdev.c
694
fw_xfer_free_buf(xfer);
sys/dev/firewire/fwdv.c
114
fwdv_fcp_handler(struct fw_xfer *xfer)
sys/dev/firewire/fwdv.c
116
struct fwdv_softc *sc = (struct fwdv_softc *)xfer->sc;
sys/dev/firewire/fwdv.c
121
fp = &xfer->recv.hdr;
sys/dev/firewire/fwdv.c
123
if (xfer->resp != 0) {
sys/dev/firewire/fwdv.c
124
FWDV_DEBUG(1, "FCP response error: %d\n", xfer->resp);
sys/dev/firewire/fwdv.c
134
if (xfer->recv.pay_len < 4) {
sys/dev/firewire/fwdv.c
136
xfer->recv.pay_len);
sys/dev/firewire/fwdv.c
139
if (xfer->recv.pay_len < len)
sys/dev/firewire/fwdv.c
140
len = xfer->recv.pay_len;
sys/dev/firewire/fwdv.c
152
if (xfer->recv.payload != NULL) {
sys/dev/firewire/fwdv.c
153
memcpy(sc->fcp_resp, xfer->recv.payload,
sys/dev/firewire/fwdv.c
162
STAILQ_INSERT_TAIL(&sc->fcp_bind.xferlist, xfer, link);
sys/dev/firewire/fwdv.c
169
struct fw_xfer *xfer;
sys/dev/firewire/fwdv.c
197
xfer = fw_xfer_alloc_buf(M_FWDV, padded_len, 0);
sys/dev/firewire/fwdv.c
198
if (xfer == NULL) {
sys/dev/firewire/fwdv.c
203
xfer->fc = sc->fd.fc;
sys/dev/firewire/fwdv.c
204
xfer->hand = fw_xferwake;
sys/dev/firewire/fwdv.c
206
fp = &xfer->send.hdr;
sys/dev/firewire/fwdv.c
213
xfer->send.spd = spd;
sys/dev/firewire/fwdv.c
214
xfer->send.pay_len = padded_len;
sys/dev/firewire/fwdv.c
216
memcpy(xfer->send.payload, cmd, cmd_len);
sys/dev/firewire/fwdv.c
218
memset((uint8_t *)xfer->send.payload + cmd_len, 0,
sys/dev/firewire/fwdv.c
230
err = fw_xfer_request_wait(xfer->fc, xfer, 2 * hz);
sys/dev/firewire/fwdv.c
232
fw_xfer_free_buf(xfer);
sys/dev/firewire/fwdv.c
236
if (xfer->resp != 0 ||
sys/dev/firewire/fwdv.c
237
xfer->recv.hdr.mode.wres.rtcode != FWRCODE_COMPLETE) {
sys/dev/firewire/fwdv.c
239
xfer->resp, xfer->recv.hdr.mode.wres.rtcode);
sys/dev/firewire/fwdv.c
242
fw_xfer_free_buf(xfer);
sys/dev/firewire/fwmem.c
101
xfer = fw_xfer_alloc(M_FWMEM);
sys/dev/firewire/fwmem.c
102
if (xfer == NULL)
sys/dev/firewire/fwmem.c
105
xfer->fc = fwdev->fc;
sys/dev/firewire/fwmem.c
106
xfer->send.hdr.mode.hdr.dst = FWLOCALBUS | fwdev->dst;
sys/dev/firewire/fwmem.c
108
xfer->send.spd = fwdev->speed;
sys/dev/firewire/fwmem.c
110
xfer->send.spd = min(spd, fwdev->speed);
sys/dev/firewire/fwmem.c
111
xfer->hand = hand;
sys/dev/firewire/fwmem.c
112
xfer->sc = sc;
sys/dev/firewire/fwmem.c
113
xfer->send.pay_len = slen;
sys/dev/firewire/fwmem.c
114
xfer->recv.pay_len = rlen;
sys/dev/firewire/fwmem.c
116
return xfer;
sys/dev/firewire/fwmem.c
129
struct fw_xfer *xfer;
sys/dev/firewire/fwmem.c
132
xfer = fwmem_xfer_req(fwdev, sc, spd, 0, 4, hand);
sys/dev/firewire/fwmem.c
133
if (xfer == NULL) {
sys/dev/firewire/fwmem.c
137
fp = &xfer->send.hdr;
sys/dev/firewire/fwmem.c
142
xfer->send.payload = NULL;
sys/dev/firewire/fwmem.c
143
xfer->recv.payload = (uint32_t *)data;
sys/dev/firewire/fwmem.c
149
if (fw_asyreq(xfer->fc, -1, xfer) == 0)
sys/dev/firewire/fwmem.c
150
return xfer;
sys/dev/firewire/fwmem.c
152
fw_xfer_free(xfer);
sys/dev/firewire/fwmem.c
166
struct fw_xfer *xfer;
sys/dev/firewire/fwmem.c
169
xfer = fwmem_xfer_req(fwdev, sc, spd, 0, 0, hand);
sys/dev/firewire/fwmem.c
170
if (xfer == NULL)
sys/dev/firewire/fwmem.c
173
fp = &xfer->send.hdr;
sys/dev/firewire/fwmem.c
179
xfer->send.payload = xfer->recv.payload = NULL;
sys/dev/firewire/fwmem.c
185
if (fw_asyreq(xfer->fc, -1, xfer) == 0)
sys/dev/firewire/fwmem.c
186
return xfer;
sys/dev/firewire/fwmem.c
188
fw_xfer_free(xfer);
sys/dev/firewire/fwmem.c
203
struct fw_xfer *xfer;
sys/dev/firewire/fwmem.c
206
xfer = fwmem_xfer_req(fwdev, sc, spd, 0, roundup2(len, 4), hand);
sys/dev/firewire/fwmem.c
207
if (xfer == NULL)
sys/dev/firewire/fwmem.c
210
fp = &xfer->send.hdr;
sys/dev/firewire/fwmem.c
217
xfer->send.payload = NULL;
sys/dev/firewire/fwmem.c
218
xfer->recv.payload = data;
sys/dev/firewire/fwmem.c
223
if (fw_asyreq(xfer->fc, -1, xfer) == 0)
sys/dev/firewire/fwmem.c
224
return xfer;
sys/dev/firewire/fwmem.c
226
fw_xfer_free(xfer);
sys/dev/firewire/fwmem.c
241
struct fw_xfer *xfer;
sys/dev/firewire/fwmem.c
244
xfer = fwmem_xfer_req(fwdev, sc, spd, len, 0, hand);
sys/dev/firewire/fwmem.c
245
if (xfer == NULL)
sys/dev/firewire/fwmem.c
248
fp = &xfer->send.hdr;
sys/dev/firewire/fwmem.c
255
xfer->send.payload = data;
sys/dev/firewire/fwmem.c
256
xfer->recv.payload = NULL;
sys/dev/firewire/fwmem.c
261
if (fw_asyreq(xfer->fc, -1, xfer) == 0)
sys/dev/firewire/fwmem.c
262
return xfer;
sys/dev/firewire/fwmem.c
264
fw_xfer_free(xfer);
sys/dev/firewire/fwmem.c
327
fwmem_biodone(struct fw_xfer *xfer)
sys/dev/firewire/fwmem.c
331
bp = (struct bio *)xfer->sc;
sys/dev/firewire/fwmem.c
332
bp->bio_error = xfer->resp;
sys/dev/firewire/fwmem.c
341
fw_xfer_free(xfer);
sys/dev/firewire/fwmem.c
350
struct fw_xfer *xfer;
sys/dev/firewire/fwmem.c
370
xfer = fwmem_read_quad(fwdev,
sys/dev/firewire/fwmem.c
375
xfer = fwmem_read_block(fwdev,
sys/dev/firewire/fwmem.c
381
xfer = fwmem_write_quad(fwdev,
sys/dev/firewire/fwmem.c
386
xfer = fwmem_write_block(fwdev,
sys/dev/firewire/fwmem.c
391
if (xfer == NULL) {
sys/dev/firewire/fwmem.c
99
struct fw_xfer *xfer;
sys/dev/firewire/fwohci.c
1056
struct fw_xfer *xfer;
sys/dev/firewire/fwohci.c
1125
if (tr->xfer != NULL) {
sys/dev/firewire/fwohci.c
1126
xfer = tr->xfer;
sys/dev/firewire/fwohci.c
1127
if (xfer->flag & FWXF_RCVD) {
sys/dev/firewire/fwohci.c
1128
fw_xfer_done(xfer);
sys/dev/firewire/fwohci.c
1130
microtime(&xfer->tv);
sys/dev/firewire/fwohci.c
1131
xfer->flag = FWXF_SENT;
sys/dev/firewire/fwohci.c
1133
xfer->flag = FWXF_BUSY;
sys/dev/firewire/fwohci.c
1134
xfer->resp = err;
sys/dev/firewire/fwohci.c
1135
xfer->recv.pay_len = 0;
sys/dev/firewire/fwohci.c
1136
fw_xfer_done(xfer);
sys/dev/firewire/fwohci.c
1139
xfer->flag = FWXF_SENTERR;
sys/dev/firewire/fwohci.c
1140
xfer->resp = err;
sys/dev/firewire/fwohci.c
1141
xfer->recv.pay_len = 0;
sys/dev/firewire/fwohci.c
1142
fw_xfer_done(xfer);
sys/dev/firewire/fwohci.c
1155
tr->xfer = NULL;
sys/dev/firewire/fwohci.c
593
db_tr->xfer = NULL;
sys/dev/firewire/fwohci.c
597
db_tr->xfer = NULL;
sys/dev/firewire/fwohci.c
866
struct fw_xfer *xfer;
sys/dev/firewire/fwohci.c
890
xfer = STAILQ_FIRST(&dbch->xferq.q);
sys/dev/firewire/fwohci.c
891
if (xfer == NULL) {
sys/dev/firewire/fwohci.c
895
db_tr->xfer = xfer;
sys/dev/firewire/fwohci.c
896
xfer->flag = FWXF_START;
sys/dev/firewire/fwohci.c
898
fp = &xfer->send.hdr;
sys/dev/firewire/fwohci.c
910
ohcifp->mode.common.spd = xfer->send.spd & 0x7;
sys/dev/firewire/fwohci.c
945
if (xfer->send.pay_len > 0) {
sys/dev/firewire/fwohci.c
948
if (xfer->mbuf == NULL) {
sys/dev/firewire/fwohci.c
950
&xfer->send.payload[0], xfer->send.pay_len,
sys/dev/firewire/fwohci.c
956
xfer->mbuf,
sys/dev/firewire/fwohci.c
966
m_copydata(xfer->mbuf, 0,
sys/dev/firewire/fwohci.c
967
xfer->mbuf->m_pkthdr.len,
sys/dev/firewire/fwohci.c
970
xfer->mbuf->m_pkthdr.len;
sys/dev/firewire/fwohci.c
971
m_freem(xfer->mbuf);
sys/dev/firewire/fwohci.c
972
xfer->mbuf = m0;
sys/dev/firewire/fwohcireg.h
333
struct fw_xfer *xfer;
sys/dev/firewire/if_fwe.c
267
struct fw_xfer *xfer;
sys/dev/firewire/if_fwe.c
305
xfer = fw_net_alloc_txfer(fwe->fd.fc, tx_speed,
sys/dev/firewire/if_fwe.c
307
if (xfer == NULL)
sys/dev/firewire/if_fwe.c
309
STAILQ_INSERT_TAIL(&fwe->xferlist, xfer, link);
sys/dev/firewire/if_fwe.c
374
fwe_output_callback(struct fw_xfer *xfer)
sys/dev/firewire/if_fwe.c
379
fwe = (struct fwe_softc *)xfer->sc;
sys/dev/firewire/if_fwe.c
382
FWEDEBUG(ifp, "resp = %d\n", xfer->resp);
sys/dev/firewire/if_fwe.c
383
if (xfer->resp != 0)
sys/dev/firewire/if_fwe.c
385
m_freem(xfer->mbuf);
sys/dev/firewire/if_fwe.c
386
fw_xfer_unload(xfer);
sys/dev/firewire/if_fwe.c
389
STAILQ_INSERT_TAIL(&fwe->xferlist, xfer, link);
sys/dev/firewire/if_fwe.c
429
struct fw_xfer *xfer;
sys/dev/firewire/if_fwe.c
434
xfer = NULL;
sys/dev/firewire/if_fwe.c
439
xfer = STAILQ_FIRST(&fwe->xferlist);
sys/dev/firewire/if_fwe.c
440
if (xfer == NULL) {
sys/dev/firewire/if_fwe.c
450
STAILQ_INSERT_HEAD(&fwe->xferlist, xfer, link);
sys/dev/firewire/if_fwe.c
458
fp = &xfer->send.hdr;
sys/dev/firewire/if_fwe.c
459
*(uint32_t *)&xfer->send.hdr = *(int32_t *)&fwe->pkt_hdr;
sys/dev/firewire/if_fwe.c
461
xfer->mbuf = m;
sys/dev/firewire/if_fwe.c
462
xfer->send.pay_len = m->m_pkthdr.len;
sys/dev/firewire/if_fwe.c
464
if (fw_asyreq(fwe->fd.fc, -1, xfer) != 0) {
sys/dev/firewire/if_fwe.c
468
fwe_output_callback(xfer);
sys/dev/firewire/if_fwip.c
275
struct fw_xfer *xfer;
sys/dev/firewire/if_fwip.c
315
xfer = fw_xfer_alloc(M_FWIP);
sys/dev/firewire/if_fwip.c
316
if (xfer == NULL)
sys/dev/firewire/if_fwip.c
319
xfer->recv.payload = mtod(m, uint32_t *);
sys/dev/firewire/if_fwip.c
320
xfer->recv.pay_len = MCLBYTES;
sys/dev/firewire/if_fwip.c
321
xfer->hand = fwip_unicast_input;
sys/dev/firewire/if_fwip.c
322
xfer->fc = fc;
sys/dev/firewire/if_fwip.c
323
xfer->sc = (caddr_t)fwip;
sys/dev/firewire/if_fwip.c
324
xfer->mbuf = m;
sys/dev/firewire/if_fwip.c
325
STAILQ_INSERT_TAIL(&fwip->fwb.xferlist, xfer, link);
sys/dev/firewire/if_fwip.c
331
xfer = fw_net_alloc_txfer(fwip->fd.fc, tx_speed,
sys/dev/firewire/if_fwip.c
333
if (xfer == NULL)
sys/dev/firewire/if_fwip.c
335
STAILQ_INSERT_TAIL(&fwip->xferlist, xfer, link);
sys/dev/firewire/if_fwip.c
423
fwip_output_callback(struct fw_xfer *xfer)
sys/dev/firewire/if_fwip.c
428
fwip = (struct fwip_softc *)xfer->sc;
sys/dev/firewire/if_fwip.c
431
FWIPDEBUG(ifp, "resp = %d\n", xfer->resp);
sys/dev/firewire/if_fwip.c
432
if (xfer->resp != 0)
sys/dev/firewire/if_fwip.c
434
m_freem(xfer->mbuf);
sys/dev/firewire/if_fwip.c
435
fw_xfer_unload(xfer);
sys/dev/firewire/if_fwip.c
438
STAILQ_INSERT_TAIL(&fwip->xferlist, xfer, link);
sys/dev/firewire/if_fwip.c
478
struct fw_xfer *xfer;
sys/dev/firewire/if_fwip.c
485
xfer = NULL;
sys/dev/firewire/if_fwip.c
490
xfer = STAILQ_FIRST(&fwip->xferlist);
sys/dev/firewire/if_fwip.c
491
if (xfer == NULL) {
sys/dev/firewire/if_fwip.c
501
STAILQ_INSERT_HEAD(&fwip->xferlist, xfer, link);
sys/dev/firewire/if_fwip.c
529
fp = &xfer->send.hdr;
sys/dev/firewire/if_fwip.c
544
xfer->mbuf = NULL;
sys/dev/firewire/if_fwip.c
548
fwip_output_callback(xfer);
sys/dev/firewire/if_fwip.c
551
xfer->mbuf = m;
sys/dev/firewire/if_fwip.c
557
xfer->send.spd = FWSPD_S100;
sys/dev/firewire/if_fwip.c
577
xfer->mbuf = m;
sys/dev/firewire/if_fwip.c
587
fwip_output_callback(xfer);
sys/dev/firewire/if_fwip.c
606
xfer->send.spd = min(destfw->sspd, fc->speed);
sys/dev/firewire/if_fwip.c
609
xfer->send.pay_len = m->m_pkthdr.len;
sys/dev/firewire/if_fwip.c
611
error = fw_asyreq(fc, -1, xfer);
sys/dev/firewire/if_fwip.c
617
xfer->mbuf = 0;
sys/dev/firewire/if_fwip.c
619
STAILQ_INSERT_TAIL(&fwip->xferlist, xfer, link);
sys/dev/firewire/if_fwip.c
628
fwip_output_callback(xfer);
sys/dev/firewire/if_fwip.c
759
fwip_unicast_input_recycle(struct fwip_softc *fwip, struct fw_xfer *xfer)
sys/dev/firewire/if_fwip.c
768
xfer->mbuf = m;
sys/dev/firewire/if_fwip.c
769
xfer->recv.payload = mtod(m, uint32_t *);
sys/dev/firewire/if_fwip.c
770
xfer->recv.pay_len = MCLBYTES;
sys/dev/firewire/if_fwip.c
771
xfer->mbuf = m;
sys/dev/firewire/if_fwip.c
772
STAILQ_INSERT_TAIL(&fwip->fwb.xferlist, xfer, link);
sys/dev/firewire/if_fwip.c
776
fwip_unicast_input(struct fw_xfer *xfer)
sys/dev/firewire/if_fwip.c
788
fwip = (struct fwip_softc *)xfer->sc;
sys/dev/firewire/if_fwip.c
790
m = xfer->mbuf;
sys/dev/firewire/if_fwip.c
791
xfer->mbuf = 0;
sys/dev/firewire/if_fwip.c
792
fp = &xfer->recv.hdr;
sys/dev/firewire/if_fwip.c
813
fwip_unicast_input_recycle(fwip, xfer);
sys/dev/firewire/sbp.c
1037
sbp_do_attach(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
1043
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
1051
sbp_xfer_free(xfer);
sys/dev/firewire/sbp.c
1074
sbp_agent_reset_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
1078
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
1083
if (xfer->resp != 0) {
sys/dev/firewire/sbp.c
1085
"%s:%s resp=%d\n", __func__, sdev->bustgtlun, xfer->resp);
sys/dev/firewire/sbp.c
1089
sbp_xfer_free(xfer);
sys/dev/firewire/sbp.c
1100
struct fw_xfer *xfer;
sys/dev/firewire/sbp.c
1108
xfer = sbp_write_cmd(sdev, FWTCODE_WREQQ, 0x04);
sys/dev/firewire/sbp.c
1109
if (xfer == NULL)
sys/dev/firewire/sbp.c
1112
xfer->hand = sbp_agent_reset_callback;
sys/dev/firewire/sbp.c
1114
xfer->hand = sbp_do_attach;
sys/dev/firewire/sbp.c
1115
fp = &xfer->send.hdr;
sys/dev/firewire/sbp.c
1117
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/sbp.c
1122
sbp_busy_timeout_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
1126
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
1132
sbp_xfer_free(xfer);
sys/dev/firewire/sbp.c
1141
struct fw_xfer *xfer;
sys/dev/firewire/sbp.c
1146
xfer = sbp_write_cmd(sdev, FWTCODE_WREQQ, 0);
sys/dev/firewire/sbp.c
1148
xfer->hand = sbp_busy_timeout_callback;
sys/dev/firewire/sbp.c
1149
fp = &xfer->send.hdr;
sys/dev/firewire/sbp.c
1153
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/sbp.c
1157
sbp_orb_pointer_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
1160
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
1166
if (xfer->resp != 0) {
sys/dev/firewire/sbp.c
1168
printf("%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/firewire/sbp.c
1171
sbp_xfer_free(xfer);
sys/dev/firewire/sbp.c
1190
struct fw_xfer *xfer;
sys/dev/firewire/sbp.c
1210
xfer = sbp_write_cmd(sdev, FWTCODE_WREQB, 0x08);
sys/dev/firewire/sbp.c
1211
if (xfer == NULL)
sys/dev/firewire/sbp.c
1213
xfer->hand = sbp_orb_pointer_callback;
sys/dev/firewire/sbp.c
1215
fp = &xfer->send.hdr;
sys/dev/firewire/sbp.c
1218
xfer->send.payload[0] =
sys/dev/firewire/sbp.c
1220
xfer->send.payload[1] = htonl((uint32_t)ocb->bus_addr);
sys/dev/firewire/sbp.c
1222
if (fw_asyreq(xfer->fc, -1, xfer) != 0) {
sys/dev/firewire/sbp.c
1223
sbp_xfer_free(xfer);
sys/dev/firewire/sbp.c
1230
sbp_doorbell_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
1233
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
1239
if (xfer->resp != 0) {
sys/dev/firewire/sbp.c
1242
"%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/firewire/sbp.c
1245
sbp_xfer_free(xfer);
sys/dev/firewire/sbp.c
1257
struct fw_xfer *xfer;
sys/dev/firewire/sbp.c
1269
xfer = sbp_write_cmd(sdev, FWTCODE_WREQQ, 0x10);
sys/dev/firewire/sbp.c
1270
if (xfer == NULL)
sys/dev/firewire/sbp.c
1272
xfer->hand = sbp_doorbell_callback;
sys/dev/firewire/sbp.c
1273
fp = &xfer->send.hdr;
sys/dev/firewire/sbp.c
1275
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/sbp.c
1281
struct fw_xfer *xfer;
sys/dev/firewire/sbp.c
1289
xfer = STAILQ_FIRST(&target->xferlist);
sys/dev/firewire/sbp.c
1290
if (xfer == NULL) {
sys/dev/firewire/sbp.c
1295
xfer = fw_xfer_alloc_buf(M_SBP, 8, 0);
sys/dev/firewire/sbp.c
1296
if (xfer == NULL) {
sys/dev/firewire/sbp.c
1309
xfer->recv.pay_len = 0;
sys/dev/firewire/sbp.c
1310
xfer->send.spd = min(sdev->target->fwdev->speed, max_speed);
sys/dev/firewire/sbp.c
1311
xfer->fc = sdev->target->sbp->fd.fc;
sys/dev/firewire/sbp.c
1315
xfer->send.pay_len = 8;
sys/dev/firewire/sbp.c
1317
xfer->send.pay_len = 0;
sys/dev/firewire/sbp.c
1319
xfer->sc = (caddr_t)sdev;
sys/dev/firewire/sbp.c
1320
fp = &xfer->send.hdr;
sys/dev/firewire/sbp.c
1328
return xfer;
sys/dev/firewire/sbp.c
1334
struct fw_xfer *xfer;
sys/dev/firewire/sbp.c
1403
xfer = sbp_write_cmd(sdev, FWTCODE_WREQB, 0);
sys/dev/firewire/sbp.c
1404
if (xfer == NULL) {
sys/dev/firewire/sbp.c
1407
xfer->hand = sbp_mgm_callback;
sys/dev/firewire/sbp.c
1409
fp = &xfer->send.hdr;
sys/dev/firewire/sbp.c
1414
xfer->send.payload[0] = htonl(nid << 16);
sys/dev/firewire/sbp.c
1415
xfer->send.payload[1] = htonl(ocb->bus_addr & 0xffffffff);
sys/dev/firewire/sbp.c
1417
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/sbp.c
1577
sbp_recv1(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
1599
sbp = (struct sbp_softc *)xfer->sc;
sys/dev/firewire/sbp.c
1601
if (xfer->resp != 0) {
sys/dev/firewire/sbp.c
1602
printf("sbp_recv: xfer->resp = %d\n", xfer->resp);
sys/dev/firewire/sbp.c
1605
if (xfer->recv.payload == NULL) {
sys/dev/firewire/sbp.c
1609
rfp = &xfer->recv.hdr;
sys/dev/firewire/sbp.c
1614
sbp_status = (struct sbp_status *)xfer->recv.payload;
sys/dev/firewire/sbp.c
1833
xfer->recv.pay_len = SBP_RECV_LEN;
sys/dev/firewire/sbp.c
1842
xfer->send.off = 0;
sys/dev/firewire/sbp.c
1843
sfp = (struct fw_pkt *)xfer->send.buf;
sys/dev/firewire/sbp.c
1845
xfer->dst = sfp->mode.wres.dst;
sys/dev/firewire/sbp.c
1846
xfer->spd = min(sdev->target->fwdev->speed, max_speed);
sys/dev/firewire/sbp.c
1847
xfer->hand = sbp_loginres_callback;
sys/dev/firewire/sbp.c
1854
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/sbp.c
1857
STAILQ_INSERT_TAIL(&sbp->fwb.xferlist, xfer, link);
sys/dev/firewire/sbp.c
1862
sbp_recv(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
1866
sbp = (struct sbp_softc *)xfer->sc;
sys/dev/firewire/sbp.c
1868
sbp_recv1(xfer);
sys/dev/firewire/sbp.c
2049
struct fw_xfer *xfer, *next;
sys/dev/firewire/sbp.c
2063
STAILQ_FOREACH_SAFE(xfer, &target->xferlist, link, next) {
sys/dev/firewire/sbp.c
2064
fw_xfer_free_buf(xfer);
sys/dev/firewire/sbp.c
853
sbp_loginres_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
856
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
862
STAILQ_INSERT_TAIL(&sdev->target->sbp->fwb.xferlist, xfer, link);
sys/dev/firewire/sbp.c
869
sbp_xfer_free(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
873
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
874
fw_xfer_unload(xfer);
sys/dev/firewire/sbp.c
876
STAILQ_INSERT_TAIL(&sdev->target->xferlist, xfer, link);
sys/dev/firewire/sbp.c
880
sbp_reset_start_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
882
struct sbp_dev *tsdev, *sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
886
if (xfer->resp != 0) {
sys/dev/firewire/sbp.c
888
"%s: %s failed: resp=%d\n", __func__, sdev->bustgtlun, xfer->resp);
sys/dev/firewire/sbp.c
903
struct fw_xfer *xfer;
sys/dev/firewire/sbp.c
911
xfer = sbp_write_cmd(sdev, FWTCODE_WREQQ, 0);
sys/dev/firewire/sbp.c
912
xfer->hand = sbp_reset_start_callback;
sys/dev/firewire/sbp.c
913
fp = &xfer->send.hdr;
sys/dev/firewire/sbp.c
917
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/sbp.c
921
sbp_mgm_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp.c
925
sdev = (struct sbp_dev *)xfer->sc;
sys/dev/firewire/sbp.c
932
sbp_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1000
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1022
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1101
struct fw_xfer *xfer;
sys/dev/firewire/sbp_targ.c
1121
xfer = fwmem_read_block(orbi->fwdev, (void *)orbi, /*spd*/FWSPD_S400,
sys/dev/firewire/sbp_targ.c
1126
if (xfer != NULL)
sys/dev/firewire/sbp_targ.c
1389
sbp_targ_cmd_handler(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
1398
orbi = (struct orb_info *)xfer->sc;
sys/dev/firewire/sbp_targ.c
1399
if (xfer->resp != 0) {
sys/dev/firewire/sbp_targ.c
1400
printf("%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/firewire/sbp_targ.c
1409
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1494
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1540
sbp_targ_mgm_handler(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
1549
orbi = (struct orb_info *)xfer->sc;
sys/dev/firewire/sbp_targ.c
1550
if (xfer->resp != 0) {
sys/dev/firewire/sbp_targ.c
1551
printf("%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/firewire/sbp_targ.c
1560
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1654
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1659
sbp_targ_pointer_handler(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
1664
orbi = (struct orb_info *)xfer->sc;
sys/dev/firewire/sbp_targ.c
1665
if (xfer->resp != 0) {
sys/dev/firewire/sbp_targ.c
1666
printf("%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/firewire/sbp_targ.c
1680
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
1749
sbp_targ_resp_callback(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
1754
printf("%s: xfer=%p\n", __func__, xfer);
sys/dev/firewire/sbp_targ.c
1755
sc = (struct sbp_targ_softc *)xfer->sc;
sys/dev/firewire/sbp_targ.c
1756
fw_xfer_unload(xfer);
sys/dev/firewire/sbp_targ.c
1757
xfer->recv.pay_len = SBP_TARG_RECV_LEN;
sys/dev/firewire/sbp_targ.c
1758
xfer->hand = sbp_targ_recv;
sys/dev/firewire/sbp_targ.c
1759
STAILQ_INSERT_TAIL(&sc->fwb.xferlist, xfer, link);
sys/dev/firewire/sbp_targ.c
1763
sbp_targ_cmd(struct fw_xfer *xfer, struct fw_device *fwdev, int login_id,
sys/dev/firewire/sbp_targ.c
1773
sc = (struct sbp_targ_softc *)xfer->sc;
sys/dev/firewire/sbp_targ.c
1793
ntohl(xfer->recv.payload[0]),
sys/dev/firewire/sbp_targ.c
1794
ntohl(xfer->recv.payload[1]),
sys/dev/firewire/sbp_targ.c
1839
sbp_targ_mgm(struct fw_xfer *xfer, struct fw_device *fwdev)
sys/dev/firewire/sbp_targ.c
1844
sc = (struct sbp_targ_softc *)xfer->sc;
sys/dev/firewire/sbp_targ.c
1846
fp = &xfer->recv.hdr;
sys/dev/firewire/sbp_targ.c
1853
ntohl(xfer->recv.payload[0]),
sys/dev/firewire/sbp_targ.c
1854
ntohl(xfer->recv.payload[1]),
sys/dev/firewire/sbp_targ.c
1861
sbp_targ_recv(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
1869
sc = (struct sbp_targ_softc *)xfer->sc;
sys/dev/firewire/sbp_targ.c
1870
fp = &xfer->recv.hdr;
sys/dev/firewire/sbp_targ.c
1881
rtcode = sbp_targ_mgm(xfer, fwdev);
sys/dev/firewire/sbp_targ.c
1883
rtcode = sbp_targ_cmd(xfer, fwdev, SBP_TARG_LOGIN_ID(lo),
sys/dev/firewire/sbp_targ.c
1891
sfp = &xfer->send.hdr;
sys/dev/firewire/sbp_targ.c
1892
xfer->send.spd = FWSPD_S400;
sys/dev/firewire/sbp_targ.c
1893
xfer->hand = sbp_targ_resp_callback;
sys/dev/firewire/sbp_targ.c
1900
fw_asyreq(xfer->fc, -1, xfer);
sys/dev/firewire/sbp_targ.c
611
sbp_targ_free_orbi(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
615
if (xfer->resp != 0) {
sys/dev/firewire/sbp_targ.c
617
printf("%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/firewire/sbp_targ.c
619
orbi = (struct orb_info *)xfer->sc;
sys/dev/firewire/sbp_targ.c
630
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
637
struct fw_xfer *xfer;
sys/dev/firewire/sbp_targ.c
642
xfer = fwmem_write_block(orbi->fwdev, (void *)orbi,
sys/dev/firewire/sbp_targ.c
647
if (xfer == NULL) {
sys/dev/firewire/sbp_targ.c
799
sbp_targ_cam_done(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
804
orbi = (struct orb_info *)xfer->sc;
sys/dev/firewire/sbp_targ.c
808
xfer->resp, orbi->refcount);
sys/dev/firewire/sbp_targ.c
810
if (xfer->resp != 0) {
sys/dev/firewire/sbp_targ.c
811
printf("%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/firewire/sbp_targ.c
858
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
924
struct fw_xfer *xfer;
sys/dev/firewire/sbp_targ.c
941
xfer = fwmem_read_block(orbi->fwdev,
sys/dev/firewire/sbp_targ.c
948
xfer = fwmem_write_block(orbi->fwdev,
sys/dev/firewire/sbp_targ.c
953
if (xfer == NULL) {
sys/dev/firewire/sbp_targ.c
963
sbp_targ_pt_done(struct fw_xfer *xfer)
sys/dev/firewire/sbp_targ.c
969
orbi = (struct orb_info *)xfer->sc;
sys/dev/firewire/sbp_targ.c
982
fw_xfer_free(xfer);
sys/dev/firewire/sbp_targ.c
985
if (xfer->resp != 0) {
sys/dev/firewire/sbp_targ.c
986
printf("%s: xfer->resp = %d\n", __func__, xfer->resp);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
103
struct mem_transfer xfer;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
110
xfer.t.data = buf;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
111
xfer.t.size = size;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
112
xfer.t.addr = addr;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
113
xfer.t.conn = fdev->shell_conn;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
114
xfer.t.direction = direction;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
115
xfer.t.complete1 = mem_complete;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
116
init_completion(&xfer.comp);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
117
ret = mlx5_fpga_xfer_exec(&xfer.t);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
122
wait_for_completion(&xfer.comp);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
123
if (xfer.status != 0)
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
89
struct mem_transfer *xfer;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
94
xfer = container_of(complete, struct mem_transfer, t);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
95
xfer->status = status;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
96
complete_all(&xfer->comp);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
110
xfer_trans->transaction.conn = xfer_state->xfer->conn;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
112
xfer_trans->transaction.direction = xfer_state->xfer->direction;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
117
mlx5_fpga_dbg(xfer_state->xfer->conn->fdev, "Starting %zu bytes at %p done; %u started %u inflight %u done %u error\n",
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
132
mlx5_fpga_warn(xfer_state->xfer->conn->fdev, "Transfer failed to start transaction: %d. %u started %u done %u error\n",
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
193
int mlx5_fpga_xfer_exec(const struct mlx5_fpga_transaction *xfer)
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
195
u64 base = mlx5_fpga_ddr_base_get(xfer->conn->fdev);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
196
u64 size = mlx5_fpga_ddr_size_get(xfer->conn->fdev);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
202
if (xfer->addr + xfer->size > base + size) {
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
203
mlx5_fpga_warn(xfer->conn->fdev, "Transfer ends at %jx outside of DDR range %jx\n",
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
204
(uintmax_t)(xfer->addr + xfer->size), (uintmax_t)(base + size));
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
208
if (xfer->addr & MLX5_FPGA_TRANSACTION_SEND_ALIGN_BITS) {
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
209
mlx5_fpga_warn(xfer->conn->fdev, "Transfer address %jx not aligned\n",
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
210
(uintmax_t)xfer->addr);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
214
if (xfer->size & MLX5_FPGA_TRANSACTION_SEND_ALIGN_BITS) {
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
215
mlx5_fpga_warn(xfer->conn->fdev, "Transfer size %zu not aligned\n",
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
216
xfer->size);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
220
if (xfer->size < 1) {
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
221
mlx5_fpga_warn(xfer->conn->fdev, "Empty transfer size %zu not allowed\n",
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
222
xfer->size);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
227
xfer_state->xfer = xfer;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
37
const struct mlx5_fpga_transaction *xfer;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
61
const struct mlx5_fpga_transaction *xfer = xfer_state->xfer;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
65
xfer->complete1(xfer, status);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
77
ddr_base = mlx5_fpga_ddr_base_get(xfer_state->xfer->conn->fdev);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
78
page_size = (xfer_state->xfer->addr + xfer_state->pos < ddr_base) ?
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
87
left = xfer_state->xfer->size - xfer_state->pos;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
97
pos_addr = xfer_state->xfer->addr + xfer_state->pos;
sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c
98
pos_data = xfer_state->xfer->data + xfer_state->pos;
sys/dev/mlx5/mlx5_fpga/xfer.h
38
int mlx5_fpga_xfer_exec(const struct mlx5_fpga_transaction *xfer);
sys/dev/ocs_fc/ocs_hw.c
4144
fcp_xfer_rdy_iu_t *xfer = io->xfer_rdy.virt;
sys/dev/ocs_fc/ocs_hw.c
4149
*((uint32_t *)xfer->fcp_data_ro) = ocs_htobe32(iparam->fcp_tgt.offset);
sys/dev/ocs_fc/ocs_hw.c
4150
*((uint32_t *)xfer->fcp_burst_len) = ocs_htobe32(len);
sys/dev/ocs_fc/ocs_hw.c
4151
*((uint32_t *)xfer->rsvd) = 0;
sys/dev/otus/if_otus.c
1761
otus_rxeof(struct usb_xfer *xfer, struct otus_data *data, struct mbufq *rxq)
sys/dev/otus/if_otus.c
1763
struct otus_softc *sc = usbd_xfer_softc(xfer);
sys/dev/otus/if_otus.c
1769
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/otus/if_otus.c
1810
otus_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/otus/if_otus.c
1812
struct otus_softc *sc = usbd_xfer_softc(xfer);
sys/dev/otus/if_otus.c
1827
USB_GET_STATE(xfer),
sys/dev/otus/if_otus.c
1831
switch (USB_GET_STATE(xfer)) {
sys/dev/otus/if_otus.c
1837
otus_rxeof(xfer, data, &scrx);
sys/dev/otus/if_otus.c
1853
usbd_xfer_set_frame_data(xfer, 0, data->buf,
sys/dev/otus/if_otus.c
1854
usbd_xfer_max_len(xfer));
sys/dev/otus/if_otus.c
1855
usbd_transfer_submit(xfer);
sys/dev/otus/if_otus.c
1887
usbd_xfer_set_stall(xfer);
sys/dev/otus/if_otus.c
1896
otus_txeof(struct usb_xfer *xfer, struct otus_data *data)
sys/dev/otus/if_otus.c
1898
struct otus_softc *sc = usbd_xfer_softc(xfer);
sys/dev/otus/if_otus.c
1923
otus_txcmdeof(struct usb_xfer *xfer, struct otus_tx_cmd *cmd)
sys/dev/otus/if_otus.c
1925
struct otus_softc *sc = usbd_xfer_softc(xfer);
sys/dev/otus/if_otus.c
1947
otus_bulk_tx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/otus/if_otus.c
1950
struct otus_softc *sc = usbd_xfer_softc(xfer);
sys/dev/otus/if_otus.c
1956
switch (USB_GET_STATE(xfer)) {
sys/dev/otus/if_otus.c
1964
otus_txeof(xfer, data);
sys/dev/otus/if_otus.c
1978
usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen);
sys/dev/otus/if_otus.c
1981
usbd_transfer_submit(xfer);
sys/dev/otus/if_otus.c
1988
otus_txeof(xfer, data);
sys/dev/otus/if_otus.c
1994
usbd_xfer_set_stall(xfer);
sys/dev/otus/if_otus.c
2022
otus_bulk_cmd_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/otus/if_otus.c
2024
struct otus_softc *sc = usbd_xfer_softc(xfer);
sys/dev/otus/if_otus.c
2032
switch (USB_GET_STATE(xfer)) {
sys/dev/otus/if_otus.c
2040
otus_txcmdeof(xfer, cmd);
sys/dev/otus/if_otus.c
2052
usbd_xfer_set_frame_data(xfer, 0, cmd->buf, cmd->buflen);
sys/dev/otus/if_otus.c
2055
usbd_transfer_submit(xfer);
sys/dev/otus/if_otus.c
2061
otus_txcmdeof(xfer, cmd);
sys/dev/otus/if_otus.c
2065
usbd_xfer_set_stall(xfer);
sys/dev/otus/if_otus.c
2077
otus_bulk_irq_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/otus/if_otus.c
2079
struct otus_softc *sc = usbd_xfer_softc(xfer);
sys/dev/otus/if_otus.c
2083
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/otus/if_otus.c
2085
"%s: called; state=%d\n", __func__, USB_GET_STATE(xfer));
sys/dev/otus/if_otus.c
2087
switch (USB_GET_STATE(xfer)) {
sys/dev/otus/if_otus.c
2099
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/otus/if_otus.c
2108
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/otus/if_otus.c
2109
usbd_transfer_submit(xfer);
sys/dev/ppbus/ppb_msq.c
122
struct ppb_xfer *xfer = mode2xfer(bus, ppbdev, opcode);
sys/dev/ppbus/ppb_msq.c
125
xfer->loop = loop;
sys/dev/ppbus/ppb_msq.c
264
struct ppb_xfer *xfer;
sys/dev/ppbus/ppb_msq.c
286
xfer = mode2xfer(bus, ppbdev, mi->opcode);
sys/dev/ppbus/ppb_msq.c
289
if (!xfer->loop) {
sys/dev/ppbus/ppb_msq.c
316
ppb_MS_microseq(bus, dev, xfer->loop, &error);
sys/dev/rtwn/usb/rtwn_usb_rx.c
298
rtwn_report_intr(struct rtwn_usb_softc *uc, struct usb_xfer *xfer,
sys/dev/rtwn/usb/rtwn_usb_rx.c
306
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/rtwn/usb/rtwn_usb_rx.c
388
rtwn_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/rtwn/usb/rtwn_usb_rx.c
390
struct rtwn_usb_softc *uc = usbd_xfer_softc(xfer);
sys/dev/rtwn/usb/rtwn_usb_rx.c
399
switch (USB_GET_STATE(xfer)) {
sys/dev/rtwn/usb/rtwn_usb_rx.c
405
m = rtwn_report_intr(uc, xfer, data);
sys/dev/rtwn/usb/rtwn_usb_rx.c
417
usbd_xfer_set_frame_data(xfer, 0, data->buf,
sys/dev/rtwn/usb/rtwn_usb_rx.c
418
usbd_xfer_max_len(xfer));
sys/dev/rtwn/usb/rtwn_usb_rx.c
419
usbd_transfer_submit(xfer);
sys/dev/rtwn/usb/rtwn_usb_rx.c
460
usbd_xfer_set_stall(xfer);
sys/dev/rtwn/usb/rtwn_usb_tx.c
136
rtwn_bulk_tx_callback_qid(struct usb_xfer *xfer, usb_error_t error, int qid)
sys/dev/rtwn/usb/rtwn_usb_tx.c
138
struct rtwn_usb_softc *uc = usbd_xfer_softc(xfer);
sys/dev/rtwn/usb/rtwn_usb_tx.c
149
switch (USB_GET_STATE(xfer)){
sys/dev/rtwn/usb/rtwn_usb_tx.c
175
usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen);
sys/dev/rtwn/usb/rtwn_usb_tx.c
176
usbd_transfer_submit(xfer);
sys/dev/rtwn/usb/rtwn_usb_tx.c
193
usbd_xfer_set_stall(xfer);
sys/dev/rtwn/usb/rtwn_usb_tx.c
242
rtwn_bulk_tx_callback_be(struct usb_xfer *xfer, usb_error_t error)
sys/dev/rtwn/usb/rtwn_usb_tx.c
245
rtwn_bulk_tx_callback_qid(xfer, error, RTWN_BULK_TX_BE);
sys/dev/rtwn/usb/rtwn_usb_tx.c
249
rtwn_bulk_tx_callback_bk(struct usb_xfer *xfer, usb_error_t error)
sys/dev/rtwn/usb/rtwn_usb_tx.c
252
rtwn_bulk_tx_callback_qid(xfer, error, RTWN_BULK_TX_BK);
sys/dev/rtwn/usb/rtwn_usb_tx.c
256
rtwn_bulk_tx_callback_vi(struct usb_xfer *xfer, usb_error_t error)
sys/dev/rtwn/usb/rtwn_usb_tx.c
259
rtwn_bulk_tx_callback_qid(xfer, error, RTWN_BULK_TX_VI);
sys/dev/rtwn/usb/rtwn_usb_tx.c
263
rtwn_bulk_tx_callback_vo(struct usb_xfer *xfer, usb_error_t error)
sys/dev/rtwn/usb/rtwn_usb_tx.c
266
rtwn_bulk_tx_callback_qid(xfer, error, RTWN_BULK_TX_VO);
sys/dev/rtwn/usb/rtwn_usb_tx.c
283
struct usb_xfer *xfer;
sys/dev/rtwn/usb/rtwn_usb_tx.c
308
xfer = uc->uc_xfer[qid];
sys/dev/rtwn/usb/rtwn_usb_tx.c
312
__func__, ac, qid, xfer);
sys/dev/rtwn/usb/rtwn_usb_tx.c
342
usbd_transfer_start(xfer);
sys/dev/sound/usb/uaudio.c
1282
usbd_transfer_unsetup(sc->sc_play_chan[i].xfer, UAUDIO_NCHANBUFS + 1);
sys/dev/sound/usb/uaudio.c
1283
usbd_transfer_unsetup(sc->sc_rec_chan[i].xfer, UAUDIO_NCHANBUFS + 1);
sys/dev/sound/usb/uaudio.c
1434
usbd_transfer_unsetup(chan->xfer, UAUDIO_NCHANBUFS + 1);
sys/dev/sound/usb/uaudio.c
1454
usbd_transfer_unsetup(chan->xfer, UAUDIO_NCHANBUFS + 1);
sys/dev/sound/usb/uaudio.c
1548
if (usbd_transfer_setup(sc->sc_udev, &chan_alt->iface_index, chan->xfer,
sys/dev/sound/usb/uaudio.c
1564
fps_shift = usbd_xfer_get_fps_shift(chan->xfer[0]);
sys/dev/sound/usb/uaudio.c
1604
usbd_transfer_start(chan->xfer[0]);
sys/dev/sound/usb/uaudio.c
1605
usbd_transfer_start(chan->xfer[1]);
sys/dev/sound/usb/uaudio.c
1609
usbd_transfer_unsetup(chan->xfer, UAUDIO_NCHANBUFS + 1);
sys/dev/sound/usb/uaudio.c
2318
uaudio_chan_play_sync_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
2320
struct uaudio_chan *ch = usbd_xfer_softc(xfer);
sys/dev/sound/usb/uaudio.c
2330
usbd_xfer_status(xfer, &actlen, NULL, NULL, &nframes);
sys/dev/sound/usb/uaudio.c
2334
switch (USB_GET_STATE(xfer)) {
sys/dev/sound/usb/uaudio.c
2341
len = usbd_xfer_frame_len(xfer, 0);
sys/dev/sound/usb/uaudio.c
2349
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/sound/usb/uaudio.c
237
struct usb_xfer *xfer[UAUDIO_NCHANBUFS + 1];
sys/dev/sound/usb/uaudio.c
2410
usbd_xfer_set_frames(xfer, 1);
sys/dev/sound/usb/uaudio.c
2411
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_framelen(xfer));
sys/dev/sound/usb/uaudio.c
2412
usbd_transfer_submit(xfer);
sys/dev/sound/usb/uaudio.c
2428
uaudio_chan_play_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
2430
struct uaudio_chan *ch = usbd_xfer_softc(xfer);
sys/dev/sound/usb/uaudio.c
2456
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/sound/usb/uaudio.c
2458
switch (USB_GET_STATE(xfer)) {
sys/dev/sound/usb/uaudio.c
2524
usbd_transfer_start(ch->xfer[UAUDIO_NCHANBUFS]);
sys/dev/sound/usb/uaudio.c
2527
mfl = usbd_xfer_max_framelen(xfer);
sys/dev/sound/usb/uaudio.c
2540
usbd_xfer_set_frames(xfer, blockcount);
sys/dev/sound/usb/uaudio.c
2572
usbd_xfer_set_frame_len(xfer, n, frame_len);
sys/dev/sound/usb/uaudio.c
2580
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/sound/usb/uaudio.c
2595
usbd_transfer_submit(xfer);
sys/dev/sound/usb/uaudio.c
2606
uaudio_chan_record_sync_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
2612
uaudio_chan_record_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
2614
struct uaudio_chan *ch = usbd_xfer_softc(xfer);
sys/dev/sound/usb/uaudio.c
2631
usbd_xfer_status(xfer, &actlen, NULL, NULL, &nframes);
sys/dev/sound/usb/uaudio.c
2632
mfl = usbd_xfer_max_framelen(xfer);
sys/dev/sound/usb/uaudio.c
2634
switch (USB_GET_STATE(xfer)) {
sys/dev/sound/usb/uaudio.c
2638
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/sound/usb/uaudio.c
2657
len = usbd_xfer_frame_len(xfer, n);
sys/dev/sound/usb/uaudio.c
2711
usbd_xfer_set_frames(xfer, nframes);
sys/dev/sound/usb/uaudio.c
2713
usbd_xfer_set_frame_len(xfer, n, mfl);
sys/dev/sound/usb/uaudio.c
2715
usbd_transfer_submit(xfer);
sys/dev/sound/usb/uaudio.c
2773
usbd_transfer_unsetup(ch->xfer, UAUDIO_NCHANBUFS + 1);
sys/dev/sound/usb/uaudio.c
306
struct usb_xfer *xfer[UMIDI_N_TRANSFER];
sys/dev/sound/usb/uaudio.c
3318
usbd_transfer_start(sc->sc_hid.xfer[0]);
sys/dev/sound/usb/uaudio.c
334
struct usb_xfer *xfer[UAUDIO_HID_N_TRANSFER];
sys/dev/sound/usb/uaudio.c
5306
uaudio_mixer_write_cfg_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
5309
struct uaudio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/sound/usb/uaudio.c
5320
switch (USB_GET_STATE(xfer)) {
sys/dev/sound/usb/uaudio.c
5363
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/sound/usb/uaudio.c
5365
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/sound/usb/uaudio.c
5368
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/sound/usb/uaudio.c
5369
usbd_xfer_set_frame_len(xfer, 1, len);
sys/dev/sound/usb/uaudio.c
5370
usbd_xfer_set_frames(xfer, len ? 2 : 1);
sys/dev/sound/usb/uaudio.c
5371
usbd_transfer_submit(xfer);
sys/dev/sound/usb/uaudio.c
5635
umidi_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
5637
struct umidi_chan *chan = usbd_xfer_softc(xfer);
sys/dev/sound/usb/uaudio.c
5646
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/sound/usb/uaudio.c
5648
switch (USB_GET_STATE(xfer)) {
sys/dev/sound/usb/uaudio.c
5654
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/sound/usb/uaudio.c
5683
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/sound/usb/uaudio.c
5684
usbd_transfer_submit(xfer);
sys/dev/sound/usb/uaudio.c
5692
usbd_xfer_set_stall(xfer);
sys/dev/sound/usb/uaudio.c
5835
umidi_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
5837
struct umidi_chan *chan = usbd_xfer_softc(xfer);
sys/dev/sound/usb/uaudio.c
5847
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/sound/usb/uaudio.c
5853
switch (USB_GET_STATE(xfer)) {
sys/dev/sound/usb/uaudio.c
5864
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/sound/usb/uaudio.c
5911
usbd_xfer_set_frame_len(xfer, 0, 4 * nframes);
sys/dev/sound/usb/uaudio.c
5912
usbd_transfer_submit(xfer);
sys/dev/sound/usb/uaudio.c
5922
usbd_xfer_set_stall(xfer);
sys/dev/sound/usb/uaudio.c
5955
usbd_transfer_start(chan->xfer[UMIDI_RX_TRANSFER]);
sys/dev/sound/usb/uaudio.c
5982
if (chan->xfer[UMIDI_TX_TRANSFER] == NULL) {
sys/dev/sound/usb/uaudio.c
5990
usbd_transfer_start(chan->xfer[UMIDI_TX_TRANSFER]);
sys/dev/sound/usb/uaudio.c
6006
usbd_transfer_stop(chan->xfer[UMIDI_TX_TRANSFER]);
sys/dev/sound/usb/uaudio.c
6104
chan->xfer, umidi_config, UMIDI_N_TRANSFER,
sys/dev/sound/usb/uaudio.c
6110
if (chan->xfer[UMIDI_TX_TRANSFER] == NULL &&
sys/dev/sound/usb/uaudio.c
6111
chan->xfer[UMIDI_RX_TRANSFER] == NULL) {
sys/dev/sound/usb/uaudio.c
6128
if (chan->xfer[UMIDI_TX_TRANSFER] != NULL &&
sys/dev/sound/usb/uaudio.c
6129
usbd_xfer_maxp_was_clamped(chan->xfer[UMIDI_TX_TRANSFER]))
sys/dev/sound/usb/uaudio.c
6160
usbd_transfer_start(chan->xfer[UMIDI_RX_TRANSFER]);
sys/dev/sound/usb/uaudio.c
6182
usbd_transfer_stop(chan->xfer[UMIDI_RX_TRANSFER]);
sys/dev/sound/usb/uaudio.c
6186
usbd_transfer_unsetup(chan->xfer, UMIDI_N_TRANSFER);
sys/dev/sound/usb/uaudio.c
6194
uaudio_hid_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/sound/usb/uaudio.c
6196
struct uaudio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/sound/usb/uaudio.c
6197
const uint8_t *buffer = usbd_xfer_get_frame_buffer(xfer, 0);
sys/dev/sound/usb/uaudio.c
6202
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/sound/usb/uaudio.c
6204
switch (USB_GET_STATE(xfer)) {
sys/dev/sound/usb/uaudio.c
6249
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/sound/usb/uaudio.c
6250
usbd_transfer_submit(xfer);
sys/dev/sound/usb/uaudio.c
6259
usbd_xfer_set_stall(xfer);
sys/dev/sound/usb/uaudio.c
6336
sc->sc_hid.xfer, uaudio_hid_config, UAUDIO_HID_N_TRANSFER,
sys/dev/sound/usb/uaudio.c
6348
usbd_transfer_unsetup(sc->sc_hid.xfer, UAUDIO_HID_N_TRANSFER);
sys/dev/usb/controller/atmegadci.c
1019
xfer->td_transfer_cache = td;
sys/dev/usb/controller/atmegadci.c
1026
atmegadci_standard_done(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1031
xfer, xfer->endpoint);
sys/dev/usb/controller/atmegadci.c
1035
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/atmegadci.c
1037
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/atmegadci.c
1038
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/atmegadci.c
1039
err = atmegadci_standard_done_sub(xfer);
sys/dev/usb/controller/atmegadci.c
1041
xfer->aframes = 1;
sys/dev/usb/controller/atmegadci.c
1043
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/atmegadci.c
1047
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/atmegadci.c
1048
err = atmegadci_standard_done_sub(xfer);
sys/dev/usb/controller/atmegadci.c
1049
xfer->aframes++;
sys/dev/usb/controller/atmegadci.c
1051
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/atmegadci.c
1056
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/atmegadci.c
1057
!xfer->flags_int.control_act) {
sys/dev/usb/controller/atmegadci.c
1058
err = atmegadci_standard_done_sub(xfer);
sys/dev/usb/controller/atmegadci.c
1061
atmegadci_device_done(xfer, err);
sys/dev/usb/controller/atmegadci.c
1071
atmegadci_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/atmegadci.c
1073
struct atmegadci_softc *sc = ATMEGA_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/atmegadci.c
1079
xfer, xfer->endpoint, error);
sys/dev/usb/controller/atmegadci.c
1081
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/controller/atmegadci.c
1082
ep_no = (xfer->endpointno & UE_ADDR);
sys/dev/usb/controller/atmegadci.c
1093
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/atmegadci.c
1097
atmegadci_xfer_stall(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1099
atmegadci_device_done(xfer, USB_ERR_STALLED);
sys/dev/usb/controller/atmegadci.c
1365
atmegadci_device_non_isoc_open(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1371
atmegadci_device_non_isoc_close(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1373
atmegadci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/atmegadci.c
1377
atmegadci_device_non_isoc_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1383
atmegadci_device_non_isoc_start(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1386
atmegadci_setup_standard_chain(xfer);
sys/dev/usb/controller/atmegadci.c
1387
atmegadci_start_standard_chain(xfer);
sys/dev/usb/controller/atmegadci.c
1402
atmegadci_device_isoc_fs_open(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1408
atmegadci_device_isoc_fs_close(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1410
atmegadci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/atmegadci.c
1414
atmegadci_device_isoc_fs_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1416
struct atmegadci_softc *sc = ATMEGA_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/atmegadci.c
1420
xfer, xfer->endpoint->isoc_next, xfer->nframes);
sys/dev/usb/controller/atmegadci.c
1429
xfer, nframes, 0, 1, ATMEGA_FRAME_MASK, NULL))
sys/dev/usb/controller/atmegadci.c
1430
DPRINTFN(3, "start next=%d\n", xfer->endpoint->isoc_next);
sys/dev/usb/controller/atmegadci.c
1433
atmegadci_setup_standard_chain(xfer);
sys/dev/usb/controller/atmegadci.c
1437
atmegadci_device_isoc_fs_start(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
1440
atmegadci_start_standard_chain(xfer);
sys/dev/usb/controller/atmegadci.c
1953
struct usb_xfer *xfer;
sys/dev/usb/controller/atmegadci.c
1959
xfer = parm->curr_xfer;
sys/dev/usb/controller/atmegadci.c
1975
if ((xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE) == UE_CONTROL) {
sys/dev/usb/controller/atmegadci.c
1976
ntd = xfer->nframes + 1 /* STATUS */ + 1 /* SYNC 1 */
sys/dev/usb/controller/atmegadci.c
1979
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/atmegadci.c
1996
ep_no = xfer->endpointno & UE_ADDR;
sys/dev/usb/controller/atmegadci.c
2015
td->max_packet_size = xfer->max_packet_size;
sys/dev/usb/controller/atmegadci.c
2027
xfer->td_start[0] = last_obj;
sys/dev/usb/controller/atmegadci.c
2031
atmegadci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
570
atmegadci_xfer_do_fifo(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
576
td = xfer->td_transfer_cache;
sys/dev/usb/controller/atmegadci.c
582
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/atmegadci.c
601
xfer->td_transfer_cache = td;
sys/dev/usb/controller/atmegadci.c
608
atmegadci_standard_done(xfer);
sys/dev/usb/controller/atmegadci.c
615
struct usb_xfer *xfer;
sys/dev/usb/controller/atmegadci.c
618
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/atmegadci.c
619
if (!atmegadci_xfer_do_fifo(xfer)) {
sys/dev/usb/controller/atmegadci.c
774
atmegadci_setup_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
782
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/atmegadci.c
783
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/atmegadci.c
785
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/atmegadci.c
787
td = xfer->td_start[0];
sys/dev/usb/controller/atmegadci.c
788
xfer->td_transfer_first = td;
sys/dev/usb/controller/atmegadci.c
789
xfer->td_transfer_cache = td;
sys/dev/usb/controller/atmegadci.c
795
temp.td_next = xfer->td_start[0];
sys/dev/usb/controller/atmegadci.c
797
temp.setup_alt_next = xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/atmegadci.c
798
xfer->flags_int.isochronous_xfr;
sys/dev/usb/controller/atmegadci.c
799
temp.did_stall = !xfer->flags_int.control_stall;
sys/dev/usb/controller/atmegadci.c
803
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/atmegadci.c
804
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/atmegadci.c
806
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/atmegadci.c
807
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/atmegadci.c
810
if (xfer->nframes == 1) {
sys/dev/usb/controller/atmegadci.c
812
if (xfer->flags_int.control_act)
sys/dev/usb/controller/atmegadci.c
823
if (x != xfer->nframes) {
sys/dev/usb/controller/atmegadci.c
824
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/atmegadci.c
833
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/atmegadci.c
837
while (x != xfer->nframes) {
sys/dev/usb/controller/atmegadci.c
840
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/atmegadci.c
844
if (x == xfer->nframes) {
sys/dev/usb/controller/atmegadci.c
845
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/atmegadci.c
846
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/atmegadci.c
861
temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1;
sys/dev/usb/controller/atmegadci.c
866
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/atmegadci.c
870
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/atmegadci.c
874
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/atmegadci.c
876
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/atmegadci.c
889
if (!xfer->flags_int.control_act) {
sys/dev/usb/controller/atmegadci.c
894
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/atmegadci.c
912
xfer->td_transfer_last = td;
sys/dev/usb/controller/atmegadci.c
918
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/atmegadci.c
920
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/atmegadci.c
922
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/atmegadci.c
925
atmegadci_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/atmegadci.c
929
atmegadci_start_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
934
if (atmegadci_xfer_do_fifo(xfer)) {
sys/dev/usb/controller/atmegadci.c
936
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/atmegadci.c
939
if (xfer->timeout != 0) {
sys/dev/usb/controller/atmegadci.c
940
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/controller/atmegadci.c
941
&atmegadci_timeout, xfer->timeout);
sys/dev/usb/controller/atmegadci.c
961
atmegadci_standard_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/atmegadci.c
969
td = xfer->td_transfer_cache;
sys/dev/usb/controller/atmegadci.c
974
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/atmegadci.c
979
if (len > xfer->frlengths[xfer->aframes]) {
sys/dev/usb/controller/atmegadci.c
982
xfer->frlengths[xfer->aframes] -= len;
sys/dev/usb/controller/atmegadci.c
994
if (xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/atmegadci.c
995
xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/avr32dci.c
1003
avr32dci_standard_done(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1008
xfer, xfer->endpoint);
sys/dev/usb/controller/avr32dci.c
1012
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/avr32dci.c
1014
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/avr32dci.c
1015
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/avr32dci.c
1016
err = avr32dci_standard_done_sub(xfer);
sys/dev/usb/controller/avr32dci.c
1018
xfer->aframes = 1;
sys/dev/usb/controller/avr32dci.c
1020
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/avr32dci.c
1024
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/avr32dci.c
1025
err = avr32dci_standard_done_sub(xfer);
sys/dev/usb/controller/avr32dci.c
1026
xfer->aframes++;
sys/dev/usb/controller/avr32dci.c
1028
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/avr32dci.c
1033
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/avr32dci.c
1034
!xfer->flags_int.control_act) {
sys/dev/usb/controller/avr32dci.c
1035
err = avr32dci_standard_done_sub(xfer);
sys/dev/usb/controller/avr32dci.c
1038
avr32dci_device_done(xfer, err);
sys/dev/usb/controller/avr32dci.c
1048
avr32dci_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/avr32dci.c
1050
struct avr32dci_softc *sc = AVR32_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/avr32dci.c
1056
xfer, xfer->endpoint, error);
sys/dev/usb/controller/avr32dci.c
1058
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/controller/avr32dci.c
1059
ep_no = (xfer->endpointno & UE_ADDR);
sys/dev/usb/controller/avr32dci.c
1067
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/avr32dci.c
1071
avr32dci_xfer_stall(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1073
avr32dci_device_done(xfer, USB_ERR_STALLED);
sys/dev/usb/controller/avr32dci.c
1304
avr32dci_device_non_isoc_open(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1310
avr32dci_device_non_isoc_close(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1312
avr32dci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/avr32dci.c
1316
avr32dci_device_non_isoc_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1322
avr32dci_device_non_isoc_start(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1325
avr32dci_setup_standard_chain(xfer);
sys/dev/usb/controller/avr32dci.c
1326
avr32dci_start_standard_chain(xfer);
sys/dev/usb/controller/avr32dci.c
1341
avr32dci_device_isoc_fs_open(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1347
avr32dci_device_isoc_fs_close(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1349
avr32dci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/avr32dci.c
1353
avr32dci_device_isoc_fs_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1355
struct avr32dci_softc *sc = AVR32_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/avr32dci.c
1360
xfer, xfer->endpoint->isoc_next, xfer->nframes);
sys/dev/usb/controller/avr32dci.c
1363
ep_no = xfer->endpointno & UE_ADDR;
sys/dev/usb/controller/avr32dci.c
1367
xfer, nframes, 0, 1, AVR32_FRAME_MASK, NULL))
sys/dev/usb/controller/avr32dci.c
1368
DPRINTFN(3, "start next=%d\n", xfer->endpoint->isoc_next);
sys/dev/usb/controller/avr32dci.c
1371
avr32dci_setup_standard_chain(xfer);
sys/dev/usb/controller/avr32dci.c
1375
avr32dci_device_isoc_fs_start(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
1378
avr32dci_start_standard_chain(xfer);
sys/dev/usb/controller/avr32dci.c
1908
struct usb_xfer *xfer;
sys/dev/usb/controller/avr32dci.c
1915
xfer = parm->curr_xfer;
sys/dev/usb/controller/avr32dci.c
1931
if ((xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE) == UE_CONTROL) {
sys/dev/usb/controller/avr32dci.c
1932
ntd = xfer->nframes + 1 /* STATUS */ + 1 /* SYNC 1 */
sys/dev/usb/controller/avr32dci.c
1935
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/avr32dci.c
1952
ep_no = xfer->endpointno & UE_ADDR;
sys/dev/usb/controller/avr32dci.c
1972
td->max_packet_size = xfer->max_packet_size;
sys/dev/usb/controller/avr32dci.c
1988
xfer->td_start[0] = last_obj;
sys/dev/usb/controller/avr32dci.c
1992
avr32dci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
558
avr32dci_xfer_do_fifo(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
564
td = xfer->td_transfer_cache;
sys/dev/usb/controller/avr32dci.c
570
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/avr32dci.c
589
xfer->td_transfer_cache = td;
sys/dev/usb/controller/avr32dci.c
596
avr32dci_standard_done(xfer);
sys/dev/usb/controller/avr32dci.c
603
struct usb_xfer *xfer;
sys/dev/usb/controller/avr32dci.c
606
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/avr32dci.c
607
if (!avr32dci_xfer_do_fifo(xfer)) {
sys/dev/usb/controller/avr32dci.c
743
avr32dci_setup_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
753
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/avr32dci.c
754
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/avr32dci.c
756
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/avr32dci.c
758
td = xfer->td_start[0];
sys/dev/usb/controller/avr32dci.c
759
xfer->td_transfer_first = td;
sys/dev/usb/controller/avr32dci.c
760
xfer->td_transfer_cache = td;
sys/dev/usb/controller/avr32dci.c
766
temp.td_next = xfer->td_start[0];
sys/dev/usb/controller/avr32dci.c
768
temp.setup_alt_next = xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/avr32dci.c
769
xfer->flags_int.isochronous_xfr;
sys/dev/usb/controller/avr32dci.c
770
temp.did_stall = !xfer->flags_int.control_stall;
sys/dev/usb/controller/avr32dci.c
772
sc = AVR32_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/avr32dci.c
773
ep_no = (xfer->endpointno & UE_ADDR);
sys/dev/usb/controller/avr32dci.c
777
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/avr32dci.c
778
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/avr32dci.c
780
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/avr32dci.c
781
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/avr32dci.c
784
if (xfer->nframes == 1) {
sys/dev/usb/controller/avr32dci.c
786
if (xfer->flags_int.control_act)
sys/dev/usb/controller/avr32dci.c
796
if (x != xfer->nframes) {
sys/dev/usb/controller/avr32dci.c
797
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/avr32dci.c
806
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/avr32dci.c
810
while (x != xfer->nframes) {
sys/dev/usb/controller/avr32dci.c
813
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/avr32dci.c
817
if (x == xfer->nframes) {
sys/dev/usb/controller/avr32dci.c
818
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/avr32dci.c
819
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/avr32dci.c
834
temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1;
sys/dev/usb/controller/avr32dci.c
839
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/avr32dci.c
843
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/avr32dci.c
847
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/avr32dci.c
849
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/avr32dci.c
861
if (!xfer->flags_int.control_act) {
sys/dev/usb/controller/avr32dci.c
866
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/avr32dci.c
884
xfer->td_transfer_last = td;
sys/dev/usb/controller/avr32dci.c
890
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/avr32dci.c
892
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/avr32dci.c
894
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/avr32dci.c
897
avr32dci_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/avr32dci.c
901
avr32dci_start_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
906
if (avr32dci_xfer_do_fifo(xfer)) {
sys/dev/usb/controller/avr32dci.c
907
uint8_t ep_no = xfer->endpointno & UE_ADDR;
sys/dev/usb/controller/avr32dci.c
908
struct avr32dci_softc *sc = AVR32_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/avr32dci.c
913
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/avr32dci.c
916
if (xfer->timeout != 0) {
sys/dev/usb/controller/avr32dci.c
917
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/controller/avr32dci.c
918
&avr32dci_timeout, xfer->timeout);
sys/dev/usb/controller/avr32dci.c
938
avr32dci_standard_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/avr32dci.c
946
td = xfer->td_transfer_cache;
sys/dev/usb/controller/avr32dci.c
951
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/avr32dci.c
956
if (len > xfer->frlengths[xfer->aframes]) {
sys/dev/usb/controller/avr32dci.c
959
xfer->frlengths[xfer->aframes] -= len;
sys/dev/usb/controller/avr32dci.c
971
if (xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/avr32dci.c
972
xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/avr32dci.c
996
xfer->td_transfer_cache = td;
sys/dev/usb/controller/dwc_otg.c
2358
dwc_otg_xfer_do_fifo(struct dwc_otg_softc *sc, struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
2367
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2376
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/dwc_otg.c
2398
xfer->td_transfer_cache = td;
sys/dev/usb/controller/dwc_otg.c
2406
xfer->td_transfer_cache = NULL;
sys/dev/usb/controller/dwc_otg.c
2411
dwc_otg_xfer_do_complete_locked(struct dwc_otg_softc *sc, struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
2417
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2420
dwc_otg_standard_done(xfer);
sys/dev/usb/controller/dwc_otg.c
2491
struct usb_xfer *xfer;
sys/dev/usb/controller/dwc_otg.c
2510
TAILQ_FOREACH_SAFE(xfer, &sc->sc_bus.intr_q.head, wait_entry, xfer_next) {
sys/dev/usb/controller/dwc_otg.c
2511
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2537
TAILQ_REMOVE(&sc->sc_bus.intr_q.head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2538
TAILQ_INSERT_TAIL(&head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2541
TAILQ_FOREACH_SAFE(xfer, &sc->sc_bus.intr_q.head, wait_entry, xfer_next) {
sys/dev/usb/controller/dwc_otg.c
2542
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2558
TAILQ_REMOVE(&sc->sc_bus.intr_q.head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2559
TAILQ_INSERT_TAIL(&head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2562
TAILQ_FOREACH_SAFE(xfer, &sc->sc_bus.intr_q.head, wait_entry, xfer_next) {
sys/dev/usb/controller/dwc_otg.c
2563
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2585
TAILQ_REMOVE(&sc->sc_bus.intr_q.head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2586
TAILQ_INSERT_TAIL(&head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2589
TAILQ_FOREACH_SAFE(xfer, &sc->sc_bus.intr_q.head, wait_entry, xfer_next) {
sys/dev/usb/controller/dwc_otg.c
2590
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2604
TAILQ_REMOVE(&sc->sc_bus.intr_q.head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2605
TAILQ_INSERT_TAIL(&head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2609
TAILQ_FOREACH_SAFE(xfer, &sc->sc_bus.intr_q.head, wait_entry, xfer_next) {
sys/dev/usb/controller/dwc_otg.c
2610
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2624
TAILQ_REMOVE(&sc->sc_bus.intr_q.head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2625
TAILQ_INSERT_TAIL(&head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2633
TAILQ_FOREACH_SAFE(xfer, &sc->sc_bus.intr_q.head, wait_entry, xfer_next) {
sys/dev/usb/controller/dwc_otg.c
2634
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2637
TAILQ_REMOVE(&sc->sc_bus.intr_q.head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2638
TAILQ_INSERT_TAIL(&head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2644
TAILQ_FOREACH_SAFE(xfer, &sc->sc_bus.intr_q.head, wait_entry, xfer_next) {
sys/dev/usb/controller/dwc_otg.c
2645
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
2648
TAILQ_REMOVE(&sc->sc_bus.intr_q.head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2649
TAILQ_INSERT_TAIL(&head, xfer, wait_entry);
sys/dev/usb/controller/dwc_otg.c
2679
struct usb_xfer *xfer;
sys/dev/usb/controller/dwc_otg.c
2790
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry)
sys/dev/usb/controller/dwc_otg.c
2791
dwc_otg_xfer_do_fifo(sc, xfer);
sys/dev/usb/controller/dwc_otg.c
2807
struct usb_xfer *xfer;
sys/dev/usb/controller/dwc_otg.c
2810
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/dwc_otg.c
2811
if (dwc_otg_xfer_do_complete_locked(sc, xfer))
sys/dev/usb/controller/dwc_otg.c
3122
dwc_otg_setup_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
3131
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/dwc_otg.c
3132
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/dwc_otg.c
3134
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/dwc_otg.c
3136
td = xfer->td_start[0];
sys/dev/usb/controller/dwc_otg.c
3137
xfer->td_transfer_first = td;
sys/dev/usb/controller/dwc_otg.c
3138
xfer->td_transfer_cache = td;
sys/dev/usb/controller/dwc_otg.c
3144
temp.td_next = xfer->td_start[0];
sys/dev/usb/controller/dwc_otg.c
3146
temp.setup_alt_next = xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/dwc_otg.c
3147
xfer->flags_int.isochronous_xfr;
sys/dev/usb/controller/dwc_otg.c
3148
temp.did_stall = !xfer->flags_int.control_stall;
sys/dev/usb/controller/dwc_otg.c
3150
is_host = (xfer->xroot->udev->flags.usb_mode == USB_MODE_HOST);
sys/dev/usb/controller/dwc_otg.c
3154
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/dwc_otg.c
3155
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/dwc_otg.c
3161
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/dwc_otg.c
3162
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/dwc_otg.c
3166
if (xfer->nframes == 1) {
sys/dev/usb/controller/dwc_otg.c
3168
if (xfer->flags_int.control_act)
sys/dev/usb/controller/dwc_otg.c
3179
if (x != xfer->nframes) {
sys/dev/usb/controller/dwc_otg.c
3180
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/dwc_otg.c
3199
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/dwc_otg.c
3203
while (x != xfer->nframes) {
sys/dev/usb/controller/dwc_otg.c
3206
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/dwc_otg.c
3210
if (x == xfer->nframes) {
sys/dev/usb/controller/dwc_otg.c
3211
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/dwc_otg.c
3212
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/dwc_otg.c
3227
temp.short_pkt = (xfer->flags.force_short_xfer ? 0 : 1);
sys/dev/usb/controller/dwc_otg.c
3232
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/dwc_otg.c
3236
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/dwc_otg.c
3240
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/dwc_otg.c
3242
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/dwc_otg.c
3255
if (!xfer->flags_int.control_act) {
sys/dev/usb/controller/dwc_otg.c
3260
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/dwc_otg.c
3293
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/dwc_otg.c
3306
xfer->td_transfer_last = td;
sys/dev/usb/controller/dwc_otg.c
3313
sc = DWC_OTG_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/dwc_otg.c
3316
td = xfer->td_transfer_first;
sys/dev/usb/controller/dwc_otg.c
3317
td->toggle = (xfer->endpoint->toggle_next ? 1 : 0);
sys/dev/usb/controller/dwc_otg.c
3320
(xfer->address << HCCHAR_DEVADDR_SHIFT) |
sys/dev/usb/controller/dwc_otg.c
3321
((xfer->endpointno & UE_ADDR) << HCCHAR_EPNUM_SHIFT) |
sys/dev/usb/controller/dwc_otg.c
3322
(xfer->max_packet_size << HCCHAR_MPS_SHIFT) |
sys/dev/usb/controller/dwc_otg.c
3343
if (UE_GET_DIR(xfer->endpointno) == UE_DIR_IN)
sys/dev/usb/controller/dwc_otg.c
3346
switch (xfer->xroot->udev->speed) {
sys/dev/usb/controller/dwc_otg.c
3352
if (dwc_otg_uses_split(xfer->xroot->udev)) {
sys/dev/usb/controller/dwc_otg.c
3354
(xfer->xroot->udev->hs_port_no <<
sys/dev/usb/controller/dwc_otg.c
3356
(xfer->xroot->udev->hs_hub_addr <<
sys/dev/usb/controller/dwc_otg.c
3363
ival = xfer->interval / DWC_OTG_HOST_TIMER_RATE;
sys/dev/usb/controller/dwc_otg.c
3384
hcchar |= ((xfer->max_packet_count & 3)
sys/dev/usb/controller/dwc_otg.c
3386
ival = xfer->interval / DWC_OTG_HOST_TIMER_RATE;
sys/dev/usb/controller/dwc_otg.c
3394
hcchar |= ((xfer->max_packet_count & 3)
sys/dev/usb/controller/dwc_otg.c
3396
td->tmr_res = 1 << usbd_xfer_get_fps_shift(xfer);
sys/dev/usb/controller/dwc_otg.c
3418
if (((void *)td) == xfer->td_transfer_last)
sys/dev/usb/controller/dwc_otg.c
3429
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/dwc_otg.c
3431
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/dwc_otg.c
3433
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/dwc_otg.c
3436
dwc_otg_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/dwc_otg.c
3440
dwc_otg_start_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
3442
struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/dwc_otg.c
3454
dwc_otg_xfer_do_fifo(sc, xfer);
sys/dev/usb/controller/dwc_otg.c
3455
if (dwc_otg_xfer_do_complete_locked(sc, xfer))
sys/dev/usb/controller/dwc_otg.c
3458
struct dwc_otg_td *td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
3466
dwc_otg_xfer_do_fifo(sc, xfer);
sys/dev/usb/controller/dwc_otg.c
3467
if (dwc_otg_xfer_do_complete_locked(sc, xfer))
sys/dev/usb/controller/dwc_otg.c
3473
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/dwc_otg.c
3476
if (xfer->timeout != 0) {
sys/dev/usb/controller/dwc_otg.c
3477
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/controller/dwc_otg.c
3478
&dwc_otg_timeout, xfer->timeout);
sys/dev/usb/controller/dwc_otg.c
3505
dwc_otg_standard_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
3513
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
3519
xfer->endpoint->toggle_next = td->toggle;
sys/dev/usb/controller/dwc_otg.c
3521
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/dwc_otg.c
3526
if (len > xfer->frlengths[xfer->aframes]) {
sys/dev/usb/controller/dwc_otg.c
3529
xfer->frlengths[xfer->aframes] -= len;
sys/dev/usb/controller/dwc_otg.c
3542
if (xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/dwc_otg.c
3543
xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/dwc_otg.c
3567
xfer->td_transfer_cache = td;
sys/dev/usb/controller/dwc_otg.c
3573
dwc_otg_standard_done(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
3578
xfer, xfer->endpoint);
sys/dev/usb/controller/dwc_otg.c
3582
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/dwc_otg.c
3584
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/dwc_otg.c
3585
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/dwc_otg.c
3586
err = dwc_otg_standard_done_sub(xfer);
sys/dev/usb/controller/dwc_otg.c
3588
xfer->aframes = 1;
sys/dev/usb/controller/dwc_otg.c
3590
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/dwc_otg.c
3594
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/dwc_otg.c
3595
err = dwc_otg_standard_done_sub(xfer);
sys/dev/usb/controller/dwc_otg.c
3596
xfer->aframes++;
sys/dev/usb/controller/dwc_otg.c
3598
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/dwc_otg.c
3603
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/dwc_otg.c
3604
!xfer->flags_int.control_act) {
sys/dev/usb/controller/dwc_otg.c
3605
err = dwc_otg_standard_done_sub(xfer);
sys/dev/usb/controller/dwc_otg.c
3608
dwc_otg_device_done(xfer, err);
sys/dev/usb/controller/dwc_otg.c
3618
dwc_otg_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/dwc_otg.c
3620
struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/dwc_otg.c
3623
xfer, xfer->endpoint, error);
sys/dev/usb/controller/dwc_otg.c
3627
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/controller/dwc_otg.c
3632
td = xfer->td_transfer_cache;
sys/dev/usb/controller/dwc_otg.c
3637
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/dwc_otg.c
3643
dwc_otg_xfer_stall(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
3645
dwc_otg_device_done(xfer, USB_ERR_STALLED);
sys/dev/usb/controller/dwc_otg.c
4135
dwc_otg_device_non_isoc_open(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4140
dwc_otg_device_non_isoc_close(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4142
dwc_otg_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/dwc_otg.c
4146
dwc_otg_device_non_isoc_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4151
dwc_otg_device_non_isoc_start(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4154
dwc_otg_setup_standard_chain(xfer);
sys/dev/usb/controller/dwc_otg.c
4155
dwc_otg_start_standard_chain(xfer);
sys/dev/usb/controller/dwc_otg.c
4170
dwc_otg_device_isoc_open(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4175
dwc_otg_device_isoc_close(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4177
dwc_otg_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/dwc_otg.c
4181
dwc_otg_device_isoc_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4186
dwc_otg_device_isoc_start(struct usb_xfer *xfer)
sys/dev/usb/controller/dwc_otg.c
4188
struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/dwc_otg.c
4193
xfer, xfer->endpoint->isoc_next, xfer->nframes);
sys/dev/usb/controller/dwc_otg.c
4195
if (xfer->xroot->udev->flags.usb_mode == USB_MODE_HOST) {
sys/dev/usb/controller/dwc_otg.c
4214
xfer, framenum, 0, 1, DWC_OTG_FRAME_MASK, NULL))
sys/dev/usb/controller/dwc_otg.c
4215
DPRINTFN(3, "start next=%d\n", xfer->endpoint->isoc_next);
sys/dev/usb/controller/dwc_otg.c
4218
dwc_otg_setup_standard_chain(xfer);
sys/dev/usb/controller/dwc_otg.c
4221
dwc_otg_start_standard_chain(xfer);
sys/dev/usb/controller/dwc_otg.c
4774
struct usb_xfer *xfer;
sys/dev/usb/controller/dwc_otg.c
4781
xfer = parm->curr_xfer;
sys/dev/usb/controller/dwc_otg.c
4797
ep_type = (xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE);
sys/dev/usb/controller/dwc_otg.c
4800
ntd = xfer->nframes + 1 /* STATUS */ + 1 /* SYNC 1 */
sys/dev/usb/controller/dwc_otg.c
4803
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/dwc_otg.c
4817
ep_no = xfer->endpointno & UE_ADDR;
sys/dev/usb/controller/dwc_otg.c
4822
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/controller/dwc_otg.c
4854
td->max_packet_size = xfer->max_packet_size;
sys/dev/usb/controller/dwc_otg.c
4855
td->max_packet_count = xfer->max_packet_count;
sys/dev/usb/controller/dwc_otg.c
4868
xfer->td_start[0] = last_obj;
sys/dev/usb/controller/dwc_otg.c
4872
dwc_otg_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
1071
ehci_data_toggle_update(struct usb_xfer *xfer, uint16_t actlen, uint16_t xlen)
sys/dev/usb/controller/ehci.c
1077
dt = (actlen / xfer->max_packet_size) & 1;
sys/dev/usb/controller/ehci.c
1080
rem = actlen % xfer->max_packet_size;
sys/dev/usb/controller/ehci.c
1089
xfer->endpoint->toggle_next ^= dt;
sys/dev/usb/controller/ehci.c
1093
ehci_non_isoc_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
1095
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
1101
td = xfer->td_transfer_cache;
sys/dev/usb/controller/ehci.c
1104
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/ehci.c
1105
usbd_xfer_set_frame_len(xfer, xfer->aframes, 0);
sys/dev/usb/controller/ehci.c
1122
} else if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/ehci.c
1123
xfer->frlengths[xfer->aframes] += td->len - len;
sys/dev/usb/controller/ehci.c
1125
ehci_data_toggle_update(xfer, td->len - len, td->len);
sys/dev/usb/controller/ehci.c
1129
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/ehci.c
1141
if (xfer->flags_int.short_frames_ok) {
sys/dev/usb/controller/ehci.c
1160
xfer->td_transfer_cache = td;
sys/dev/usb/controller/ehci.c
1166
xfer->address, xfer->endpointno, xfer->aframes,
sys/dev/usb/controller/ehci.c
1178
if ((xfer->xroot->udev->parent_hs_hub != NULL) ||
sys/dev/usb/controller/ehci.c
1179
(xfer->xroot->udev->address != 0)) {
sys/dev/usb/controller/ehci.c
1190
ehci_non_isoc_done(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
1196
xfer, xfer->endpoint);
sys/dev/usb/controller/ehci.c
1200
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
1202
ehci_dump_sqtds(sc, xfer->td_transfer_first);
sys/dev/usb/controller/ehci.c
1208
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ehci.c
1214
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/ehci.c
1216
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/ehci.c
1217
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/ehci.c
1218
err = ehci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/ehci.c
1220
xfer->aframes = 1;
sys/dev/usb/controller/ehci.c
1222
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/ehci.c
1226
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/ehci.c
1227
err = ehci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/ehci.c
1228
xfer->aframes++;
sys/dev/usb/controller/ehci.c
1230
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/ehci.c
1235
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/ehci.c
1236
!xfer->flags_int.control_act) {
sys/dev/usb/controller/ehci.c
1237
err = ehci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/ehci.c
1240
ehci_device_done(xfer, err);
sys/dev/usb/controller/ehci.c
1251
ehci_check_transfer(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
1253
const struct usb_pipe_methods *methods = xfer->endpoint->methods;
sys/dev/usb/controller/ehci.c
1254
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
1258
DPRINTFN(13, "xfer=%p checking transfer\n", xfer);
sys/dev/usb/controller/ehci.c
1265
td = xfer->td_transfer_last;
sys/dev/usb/controller/ehci.c
1271
td = xfer->td_transfer_first;
sys/dev/usb/controller/ehci.c
1276
ehci_device_done(xfer, USB_ERR_NORMAL_COMPLETION);
sys/dev/usb/controller/ehci.c
1285
td = xfer->td_transfer_last;
sys/dev/usb/controller/ehci.c
1297
td = xfer->td_transfer_first;
sys/dev/usb/controller/ehci.c
1310
ehci_device_done(xfer, USB_ERR_NORMAL_COMPLETION);
sys/dev/usb/controller/ehci.c
1323
td = xfer->td_transfer_cache;
sys/dev/usb/controller/ehci.c
1325
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ehci.c
1345
xfer->td_transfer_cache = td;
sys/dev/usb/controller/ehci.c
1351
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/ehci.c
1365
if (xfer->flags_int.short_frames_ok) {
sys/dev/usb/controller/ehci.c
1377
ehci_non_isoc_done(xfer);
sys/dev/usb/controller/ehci.c
1382
DPRINTFN(13, "xfer=%p is still active\n", xfer);
sys/dev/usb/controller/ehci.c
1406
struct usb_xfer *xfer;
sys/dev/usb/controller/ehci.c
1409
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/ehci.c
1413
if (ehci_check_transfer(xfer)) {
sys/dev/usb/controller/ehci.c
1524
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/ehci.c
1526
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/ehci.c
1528
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/ehci.c
1531
ehci_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/ehci.c
1733
ehci_setup_standard_chain(struct usb_xfer *xfer, ehci_qh_t **qh_last)
sys/dev/usb/controller/ehci.c
1744
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/ehci.c
1745
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/ehci.c
1747
temp.average = xfer->max_hc_frame_size;
sys/dev/usb/controller/ehci.c
1748
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/ehci.c
1749
temp.sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
1752
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/ehci.c
1755
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ehci.c
1757
xfer->td_transfer_first = td;
sys/dev/usb/controller/ehci.c
1758
xfer->td_transfer_cache = td;
sys/dev/usb/controller/ehci.c
1764
temp.setup_alt_next = xfer->flags_int.short_frames_ok;
sys/dev/usb/controller/ehci.c
1766
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/ehci.c
1767
if (xfer->endpoint->toggle_next) {
sys/dev/usb/controller/ehci.c
1777
if ((xfer->xroot->udev->parent_hs_hub != NULL) ||
sys/dev/usb/controller/ehci.c
1778
(xfer->xroot->udev->address != 0)) {
sys/dev/usb/controller/ehci.c
1785
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/ehci.c
1786
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/ehci.c
1787
xfer->endpoint->toggle_next = 0;
sys/dev/usb/controller/ehci.c
1796
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/ehci.c
1797
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/ehci.c
1800
if (xfer->nframes == 1) {
sys/dev/usb/controller/ehci.c
1802
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/ehci.c
1814
while (x != xfer->nframes) {
sys/dev/usb/controller/ehci.c
1817
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/ehci.c
1818
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/ehci.c
1822
if (x == xfer->nframes) {
sys/dev/usb/controller/ehci.c
1823
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/ehci.c
1825
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/ehci.c
1848
temp.shortpkt = (xfer->flags.force_short_xfer) ? 0 : 1;
sys/dev/usb/controller/ehci.c
1854
(UE_GET_DIR(xfer->endpointno) == UE_DIR_IN) ?
sys/dev/usb/controller/ehci.c
1865
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/ehci.c
1866
!xfer->flags_int.control_act) {
sys/dev/usb/controller/ehci.c
1875
(UE_GET_DIR(xfer->endpointno) == UE_DIR_OUT) ?
sys/dev/usb/controller/ehci.c
1901
xfer->td_transfer_last = td;
sys/dev/usb/controller/ehci.c
1906
xfer->endpoint->toggle_next);
sys/dev/usb/controller/ehci.c
1908
xfer->td_transfer_first);
sys/dev/usb/controller/ehci.c
1912
methods = xfer->endpoint->methods;
sys/dev/usb/controller/ehci.c
1914
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ehci.c
1919
(EHCI_QH_SET_ADDR(xfer->address) |
sys/dev/usb/controller/ehci.c
1920
EHCI_QH_SET_ENDPT(UE_GET_ADDR(xfer->endpointno)) |
sys/dev/usb/controller/ehci.c
1921
EHCI_QH_SET_MPL(xfer->max_packet_size));
sys/dev/usb/controller/ehci.c
1923
if (usbd_get_speed(xfer->xroot->udev) == USB_SPEED_HIGH) {
sys/dev/usb/controller/ehci.c
1928
if (usbd_get_speed(xfer->xroot->udev) == USB_SPEED_FULL) {
sys/dev/usb/controller/ehci.c
1951
(EHCI_QH_SET_MULT(xfer->max_packet_count & 3) |
sys/dev/usb/controller/ehci.c
1952
EHCI_QH_SET_CMASK(xfer->endpoint->usb_cmask) |
sys/dev/usb/controller/ehci.c
1953
EHCI_QH_SET_SMASK(xfer->endpoint->usb_smask) |
sys/dev/usb/controller/ehci.c
1954
EHCI_QH_SET_HUBA(xfer->xroot->udev->hs_hub_addr) |
sys/dev/usb/controller/ehci.c
1955
EHCI_QH_SET_PORT(xfer->xroot->udev->hs_port_no));
sys/dev/usb/controller/ehci.c
1962
if (temp.auto_data_toggle && xfer->endpoint->toggle_next) {
sys/dev/usb/controller/ehci.c
1969
td = xfer->td_transfer_first;
sys/dev/usb/controller/ehci.c
1989
if (xfer->xroot->udev->flags.self_suspended == 0) {
sys/dev/usb/controller/ehci.c
2022
ehci_isoc_fs_done(ehci_softc_t *sc, struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2024
uint32_t nframes = xfer->nframes;
sys/dev/usb/controller/ehci.c
2026
uint32_t *plen = xfer->frlengths;
sys/dev/usb/controller/ehci.c
2028
ehci_sitd_t *td = xfer->td_transfer_first;
sys/dev/usb/controller/ehci.c
2029
ehci_sitd_t **pp_last = &sc->sc_isoc_fs_p_last[xfer->qh_pos];
sys/dev/usb/controller/ehci.c
2032
xfer, xfer->endpoint);
sys/dev/usb/controller/ehci.c
2071
xfer->aframes = xfer->nframes;
sys/dev/usb/controller/ehci.c
2075
ehci_isoc_hs_done(ehci_softc_t *sc, struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2077
uint32_t nframes = xfer->nframes;
sys/dev/usb/controller/ehci.c
2079
uint32_t *plen = xfer->frlengths;
sys/dev/usb/controller/ehci.c
2082
ehci_itd_t *td = xfer->td_transfer_first;
sys/dev/usb/controller/ehci.c
2083
ehci_itd_t **pp_last = &sc->sc_isoc_hs_p_last[xfer->qh_pos];
sys/dev/usb/controller/ehci.c
2086
xfer, xfer->endpoint);
sys/dev/usb/controller/ehci.c
2110
if (xfer->endpoint->usb_smask & (1 << td_no)) {
sys/dev/usb/controller/ehci.c
2140
xfer->aframes = xfer->nframes;
sys/dev/usb/controller/ehci.c
2147
ehci_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/ehci.c
2149
const struct usb_pipe_methods *methods = xfer->endpoint->methods;
sys/dev/usb/controller/ehci.c
2150
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2155
xfer, xfer->endpoint, error);
sys/dev/usb/controller/ehci.c
2162
xfer->endpoint->toggle_next);
sys/dev/usb/controller/ehci.c
2164
xfer->td_transfer_first);
sys/dev/usb/controller/ehci.c
2168
EHCI_REMOVE_QH(xfer->qh_start[xfer->flags_int.curr_dma_set],
sys/dev/usb/controller/ehci.c
2172
EHCI_REMOVE_QH(xfer->qh_start[xfer->flags_int.curr_dma_set],
sys/dev/usb/controller/ehci.c
2173
sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ehci.c
2179
if (xfer->td_transfer_first &&
sys/dev/usb/controller/ehci.c
2180
xfer->td_transfer_last) {
sys/dev/usb/controller/ehci.c
2182
ehci_isoc_fs_done(sc, xfer);
sys/dev/usb/controller/ehci.c
2185
ehci_isoc_hs_done(sc, xfer);
sys/dev/usb/controller/ehci.c
2187
xfer->td_transfer_first = NULL;
sys/dev/usb/controller/ehci.c
2188
xfer->td_transfer_last = NULL;
sys/dev/usb/controller/ehci.c
2191
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/ehci.c
2198
ehci_device_bulk_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2204
ehci_device_bulk_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2206
ehci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ehci.c
2210
ehci_device_bulk_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2233
ehci_device_bulk_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2235
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2238
ehci_setup_standard_chain(xfer, &sc->sc_async_p_last);
sys/dev/usb/controller/ehci.c
2241
ehci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ehci.c
2265
ehci_device_ctrl_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2271
ehci_device_ctrl_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2273
ehci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ehci.c
2277
ehci_device_ctrl_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2283
ehci_device_ctrl_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2285
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2288
ehci_setup_standard_chain(xfer, &sc->sc_async_p_last);
sys/dev/usb/controller/ehci.c
2291
ehci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ehci.c
2306
ehci_device_intr_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2308
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2313
usb_hs_bandwidth_alloc(xfer);
sys/dev/usb/controller/ehci.c
2322
if (xfer->interval >= bit) {
sys/dev/usb/controller/ehci.c
2338
xfer->qh_pos = best;
sys/dev/usb/controller/ehci.c
2341
best, xfer->interval);
sys/dev/usb/controller/ehci.c
2345
ehci_device_intr_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2347
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2349
sc->sc_intr_stat[xfer->qh_pos]--;
sys/dev/usb/controller/ehci.c
2351
ehci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ehci.c
2354
usb_hs_bandwidth_free(xfer);
sys/dev/usb/controller/ehci.c
2358
ehci_device_intr_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2364
ehci_device_intr_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2366
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2369
ehci_setup_standard_chain(xfer, &sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ehci.c
2372
ehci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ehci.c
2387
ehci_device_isoc_fs_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2389
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2395
EHCI_SITD_SET_ADDR(xfer->address) |
sys/dev/usb/controller/ehci.c
2396
EHCI_SITD_SET_ENDPT(UE_GET_ADDR(xfer->endpointno)) |
sys/dev/usb/controller/ehci.c
2397
EHCI_SITD_SET_HUBA(xfer->xroot->udev->hs_hub_addr) |
sys/dev/usb/controller/ehci.c
2398
EHCI_SITD_SET_PORT(xfer->xroot->udev->hs_port_no);
sys/dev/usb/controller/ehci.c
2400
if (UE_GET_DIR(xfer->endpointno) == UE_DIR_IN)
sys/dev/usb/controller/ehci.c
2408
for (td = xfer->td_start[ds]; td; td = td->obj_next) {
sys/dev/usb/controller/ehci.c
2426
ehci_device_isoc_fs_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2428
ehci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ehci.c
2432
ehci_device_isoc_fs_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2435
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2455
xfer, xfer->endpoint->isoc_next, xfer->nframes);
sys/dev/usb/controller/ehci.c
2462
xfer, nframes, 0, 1, EHCI_VIRTUAL_FRAMELIST_COUNT - 1, &startframe))
sys/dev/usb/controller/ehci.c
2467
nframes = xfer->nframes;
sys/dev/usb/controller/ehci.c
2471
plen = xfer->frlengths;
sys/dev/usb/controller/ehci.c
2474
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/ehci.c
2477
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ehci.c
2478
xfer->td_transfer_first = td;
sys/dev/usb/controller/ehci.c
2484
xfer->qh_pos = startframe;
sys/dev/usb/controller/ehci.c
2496
if (*plen > xfer->max_frame_size) {
sys/dev/usb/controller/ehci.c
2503
xfer->max_frame_size);
sys/dev/usb/controller/ehci.c
2506
*plen = xfer->max_frame_size;
sys/dev/usb/controller/ehci.c
2511
sa = usbd_fs_isoc_schedule_alloc_slot(xfer,
sys/dev/usb/controller/ehci.c
2512
xfer->isoc_time_complete - nframes - 1);
sys/dev/usb/controller/ehci.c
2527
usbd_get_page(xfer->frbuffers, buf_offset, &buf_res);
sys/dev/usb/controller/ehci.c
2534
usbd_get_page(xfer->frbuffers, buf_offset - 1,
sys/dev/usb/controller/ehci.c
2542
if (UE_GET_DIR(xfer->endpointno) == UE_DIR_OUT) {
sys/dev/usb/controller/ehci.c
2604
xfer->td_transfer_last = td_last;
sys/dev/usb/controller/ehci.c
2611
xfer->flags_int.can_cancel_immed = 0;
sys/dev/usb/controller/ehci.c
2615
ehci_device_isoc_fs_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2622
xfer->flags_int.can_cancel_immed = 0;
sys/dev/usb/controller/ehci.c
2625
if (xfer->timeout == 0)
sys/dev/usb/controller/ehci.c
2626
xfer->timeout = 500; /* ms */
sys/dev/usb/controller/ehci.c
2629
ehci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ehci.c
2644
ehci_device_isoc_hs_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2646
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2651
usb_hs_bandwidth_alloc(xfer);
sys/dev/usb/controller/ehci.c
2656
for (td = xfer->td_start[ds]; td; td = td->obj_next) {
sys/dev/usb/controller/ehci.c
2669
EHCI_ITD_SET_ADDR(xfer->address) |
sys/dev/usb/controller/ehci.c
2670
EHCI_ITD_SET_ENDPT(UE_GET_ADDR(xfer->endpointno)));
sys/dev/usb/controller/ehci.c
2673
EHCI_ITD_SET_MPL(xfer->max_packet_size & 0x7FF);
sys/dev/usb/controller/ehci.c
2676
if (UE_GET_DIR(xfer->endpointno) == UE_DIR_IN) {
sys/dev/usb/controller/ehci.c
2683
td->itd_bp[2] = htohc32(sc, xfer->max_packet_count & 3);
sys/dev/usb/controller/ehci.c
2691
ehci_device_isoc_hs_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2693
ehci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ehci.c
2696
usb_hs_bandwidth_free(xfer);
sys/dev/usb/controller/ehci.c
2700
ehci_device_isoc_hs_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2703
ehci_softc_t *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
2724
xfer, xfer->endpoint->isoc_next, xfer->nframes,
sys/dev/usb/controller/ehci.c
2725
usbd_xfer_get_fps_shift(xfer));
sys/dev/usb/controller/ehci.c
2732
xfer, nframes, 0, 1, EHCI_VIRTUAL_FRAMELIST_COUNT - 1, &startframe))
sys/dev/usb/controller/ehci.c
2735
nframes = xfer->nframes;
sys/dev/usb/controller/ehci.c
2740
plen = xfer->frlengths;
sys/dev/usb/controller/ehci.c
2743
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/ehci.c
2746
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ehci.c
2747
xfer->td_transfer_first = td;
sys/dev/usb/controller/ehci.c
2753
xfer->qh_pos = startframe;
sys/dev/usb/controller/ehci.c
2764
if (*plen > xfer->max_frame_size) {
sys/dev/usb/controller/ehci.c
2770
__FUNCTION__, *plen, xfer->max_frame_size);
sys/dev/usb/controller/ehci.c
2773
*plen = xfer->max_frame_size;
sys/dev/usb/controller/ehci.c
2776
if (xfer->endpoint->usb_smask & (1 << td_no)) {
sys/dev/usb/controller/ehci.c
2804
usbd_get_page(xfer->frbuffers, itd_offset[0], &buf_res);
sys/dev/usb/controller/ehci.c
2824
usbd_get_page(xfer->frbuffers, buf_offset - 1, &buf_res);
sys/dev/usb/controller/ehci.c
2826
usbd_get_page(xfer->frbuffers, itd_offset[x + 1], &buf_res);
sys/dev/usb/controller/ehci.c
2864
xfer->td_transfer_last = td_last;
sys/dev/usb/controller/ehci.c
2868
ehci_device_isoc_hs_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
2871
ehci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ehci.c
3398
struct usb_xfer *xfer;
sys/dev/usb/controller/ehci.c
3407
xfer = parm->curr_xfer;
sys/dev/usb/controller/ehci.c
3450
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ehci.c
3455
nqtd = ((2 * xfer->nframes) + 1 /* STATUS */
sys/dev/usb/controller/ehci.c
3456
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/ehci.c
3462
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ehci.c
3467
nqtd = ((2 * xfer->nframes)
sys/dev/usb/controller/ehci.c
3468
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/ehci.c
3483
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ehci.c
3488
nqtd = ((2 * xfer->nframes)
sys/dev/usb/controller/ehci.c
3489
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/ehci.c
3495
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ehci.c
3499
nsitd = xfer->nframes;
sys/dev/usb/controller/ehci.c
3505
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ehci.c
3509
nitd = ((xfer->nframes + 7) / 8) <<
sys/dev/usb/controller/ehci.c
3510
usbd_xfer_get_fps_shift(xfer);
sys/dev/usb/controller/ehci.c
3602
xfer->td_start[xfer->flags_int.curr_dma_set] = last_obj;
sys/dev/usb/controller/ehci.c
3630
xfer->qh_start[xfer->flags_int.curr_dma_set] = last_obj;
sys/dev/usb/controller/ehci.c
3632
if (!xfer->flags_int.curr_dma_set) {
sys/dev/usb/controller/ehci.c
3633
xfer->flags_int.curr_dma_set = 1;
sys/dev/usb/controller/ehci.c
3639
ehci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
3704
struct usb_xfer *xfer;
sys/dev/usb/controller/ehci.c
3711
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/ehci.c
3712
if (xfer->xroot->udev == udev) {
sys/dev/usb/controller/ehci.c
3713
methods = xfer->endpoint->methods;
sys/dev/usb/controller/ehci.c
3717
EHCI_APPEND_QH(xfer->qh_start[xfer->flags_int.curr_dma_set],
sys/dev/usb/controller/ehci.c
3721
EHCI_APPEND_QH(xfer->qh_start[xfer->flags_int.curr_dma_set],
sys/dev/usb/controller/ehci.c
3722
sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ehci.c
3736
struct usb_xfer *xfer;
sys/dev/usb/controller/ehci.c
3743
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/ehci.c
3744
if (xfer->xroot->udev == udev) {
sys/dev/usb/controller/ehci.c
3745
methods = xfer->endpoint->methods;
sys/dev/usb/controller/ehci.c
3749
EHCI_REMOVE_QH(xfer->qh_start[xfer->flags_int.curr_dma_set],
sys/dev/usb/controller/ehci.c
3753
EHCI_REMOVE_QH(xfer->qh_start[xfer->flags_int.curr_dma_set],
sys/dev/usb/controller/ehci.c
3754
sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ehci.c
3815
ehci_start_dma_delay_second(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
3817
struct ehci_softc *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
3825
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/controller/ehci.c
3835
ehci_start_dma_delay(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
3837
struct ehci_softc *sc = EHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ehci.c
3845
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/controller/ehci.c
903
ehci_transfer_intr_enqueue(struct usb_xfer *xfer)
sys/dev/usb/controller/ehci.c
906
if (ehci_check_transfer(xfer)) {
sys/dev/usb/controller/ehci.c
910
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/ehci.c
913
if (xfer->timeout != 0) {
sys/dev/usb/controller/ehci.c
914
usbd_transfer_timeout_ms(xfer, &ehci_timeout, xfer->timeout);
sys/dev/usb/controller/musb_otg.c
2126
musbotg_xfer_do_fifo(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
2131
td = xfer->td_transfer_cache;
sys/dev/usb/controller/musb_otg.c
2138
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/musb_otg.c
2157
xfer->td_transfer_cache = td;
sys/dev/usb/controller/musb_otg.c
2163
musbotg_standard_done(xfer);
sys/dev/usb/controller/musb_otg.c
2171
struct usb_xfer *xfer;
sys/dev/usb/controller/musb_otg.c
2174
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/musb_otg.c
2175
if (!musbotg_xfer_do_fifo(xfer)) {
sys/dev/usb/controller/musb_otg.c
2387
musbotg_setup_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
2400
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/musb_otg.c
2401
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/musb_otg.c
2403
sc = MUSBOTG_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/musb_otg.c
2404
ep_no = (xfer->endpointno & UE_ADDR);
sys/dev/usb/controller/musb_otg.c
2406
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/musb_otg.c
2408
td = xfer->td_start[0];
sys/dev/usb/controller/musb_otg.c
2409
xfer->td_transfer_first = td;
sys/dev/usb/controller/musb_otg.c
2410
xfer->td_transfer_cache = td;
sys/dev/usb/controller/musb_otg.c
2413
dev_addr = xfer->address;
sys/dev/usb/controller/musb_otg.c
2415
xfer_type = xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE;
sys/dev/usb/controller/musb_otg.c
2419
temp.td_next = xfer->td_start[0];
sys/dev/usb/controller/musb_otg.c
2421
temp.setup_alt_next = xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/musb_otg.c
2422
xfer->flags_int.isochronous_xfr;
sys/dev/usb/controller/musb_otg.c
2423
temp.did_stall = !xfer->flags_int.control_stall;
sys/dev/usb/controller/musb_otg.c
2426
temp.haddr = xfer->xroot->udev->hs_hub_addr;
sys/dev/usb/controller/musb_otg.c
2427
temp.hport = xfer->xroot->udev->hs_port_no;
sys/dev/usb/controller/musb_otg.c
2429
if (xfer->flags_int.usb_mode == USB_MODE_HOST) {
sys/dev/usb/controller/musb_otg.c
2430
speed = usbd_get_speed(xfer->xroot->udev);
sys/dev/usb/controller/musb_otg.c
2468
td->toggle = xfer->endpoint->toggle_next;
sys/dev/usb/controller/musb_otg.c
2473
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/musb_otg.c
2474
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/musb_otg.c
2475
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE)
sys/dev/usb/controller/musb_otg.c
2480
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/musb_otg.c
2481
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/musb_otg.c
2493
if (x != xfer->nframes) {
sys/dev/usb/controller/musb_otg.c
2494
if (xfer->endpointno & UE_DIR_IN)
sys/dev/usb/controller/musb_otg.c
2497
if (xfer->flags_int.usb_mode == USB_MODE_HOST) {
sys/dev/usb/controller/musb_otg.c
2501
if (xfer->flags_int.control_xfr)
sys/dev/usb/controller/musb_otg.c
2506
if (xfer->flags_int.control_xfr)
sys/dev/usb/controller/musb_otg.c
2514
if (xfer->flags_int.control_xfr)
sys/dev/usb/controller/musb_otg.c
2519
if (xfer->flags_int.control_xfr)
sys/dev/usb/controller/musb_otg.c
2527
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/musb_otg.c
2529
while (x != xfer->nframes) {
sys/dev/usb/controller/musb_otg.c
2532
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/musb_otg.c
2536
if (x == xfer->nframes) {
sys/dev/usb/controller/musb_otg.c
2537
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/musb_otg.c
2538
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/musb_otg.c
2551
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/musb_otg.c
2557
temp.short_pkt = (xfer->flags.force_short_xfer ? 0 : 1);
sys/dev/usb/controller/musb_otg.c
2563
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/musb_otg.c
2567
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/musb_otg.c
2572
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/musb_otg.c
2574
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/musb_otg.c
2580
if (!xfer->flags_int.control_act) {
sys/dev/usb/controller/musb_otg.c
2588
if (xfer->endpointno & UE_DIR_IN)
sys/dev/usb/controller/musb_otg.c
2598
xfer->td_transfer_last = td;
sys/dev/usb/controller/musb_otg.c
2604
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/musb_otg.c
2606
DPRINTFN(1, "xfer=%p\n", xfer);
sys/dev/usb/controller/musb_otg.c
2608
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/musb_otg.c
2611
musbotg_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/musb_otg.c
2658
musbotg_start_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
2663
if (musbotg_xfer_do_fifo(xfer)) {
sys/dev/usb/controller/musb_otg.c
2667
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/musb_otg.c
2670
if (xfer->timeout != 0) {
sys/dev/usb/controller/musb_otg.c
2671
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/controller/musb_otg.c
2672
&musbotg_timeout, xfer->timeout);
sys/dev/usb/controller/musb_otg.c
2692
musbotg_standard_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
2700
td = xfer->td_transfer_cache;
sys/dev/usb/controller/musb_otg.c
2705
xfer->endpoint->toggle_next = td->toggle;
sys/dev/usb/controller/musb_otg.c
2707
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/musb_otg.c
2712
if (len > xfer->frlengths[xfer->aframes]) {
sys/dev/usb/controller/musb_otg.c
2715
xfer->frlengths[xfer->aframes] -= len;
sys/dev/usb/controller/musb_otg.c
2727
if (xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/musb_otg.c
2728
xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/musb_otg.c
2752
xfer->td_transfer_cache = td;
sys/dev/usb/controller/musb_otg.c
2759
musbotg_standard_done(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
2764
xfer, xfer->endpoint);
sys/dev/usb/controller/musb_otg.c
2768
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/musb_otg.c
2770
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/musb_otg.c
2771
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/musb_otg.c
2772
err = musbotg_standard_done_sub(xfer);
sys/dev/usb/controller/musb_otg.c
2774
xfer->aframes = 1;
sys/dev/usb/controller/musb_otg.c
2776
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/musb_otg.c
2780
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/musb_otg.c
2781
err = musbotg_standard_done_sub(xfer);
sys/dev/usb/controller/musb_otg.c
2782
xfer->aframes++;
sys/dev/usb/controller/musb_otg.c
2784
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/musb_otg.c
2789
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/musb_otg.c
2790
!xfer->flags_int.control_act) {
sys/dev/usb/controller/musb_otg.c
2791
err = musbotg_standard_done_sub(xfer);
sys/dev/usb/controller/musb_otg.c
2794
musbotg_device_done(xfer, err);
sys/dev/usb/controller/musb_otg.c
2804
musbotg_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/musb_otg.c
2809
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/musb_otg.c
2812
xfer, xfer->endpoint, error);
sys/dev/usb/controller/musb_otg.c
2816
sc = MUSBOTG_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/musb_otg.c
2817
td = xfer->td_transfer_cache;
sys/dev/usb/controller/musb_otg.c
2823
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/musb_otg.c
2827
musbotg_xfer_stall(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
2829
musbotg_device_done(xfer, USB_ERR_STALLED);
sys/dev/usb/controller/musb_otg.c
3308
musbotg_device_bulk_open(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3314
musbotg_device_bulk_close(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3316
musbotg_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/musb_otg.c
3320
musbotg_device_bulk_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3326
musbotg_device_bulk_start(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3329
musbotg_setup_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
3330
musbotg_start_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
3345
musbotg_device_ctrl_open(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3351
musbotg_device_ctrl_close(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3353
musbotg_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/musb_otg.c
3357
musbotg_device_ctrl_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3363
musbotg_device_ctrl_start(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3366
musbotg_setup_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
3367
musbotg_start_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
3382
musbotg_device_intr_open(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3388
musbotg_device_intr_close(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3390
musbotg_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/musb_otg.c
3394
musbotg_device_intr_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3400
musbotg_device_intr_start(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3403
musbotg_setup_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
3404
musbotg_start_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
3419
musbotg_device_isoc_open(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3425
musbotg_device_isoc_close(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3427
musbotg_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/musb_otg.c
3431
musbotg_device_isoc_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3433
struct musbotg_softc *sc = MUSBOTG_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/musb_otg.c
3437
xfer, xfer->endpoint->isoc_next, xfer->nframes);
sys/dev/usb/controller/musb_otg.c
3444
xfer, nframes, 0, 1, MUSB2_MASK_FRAME, NULL))
sys/dev/usb/controller/musb_otg.c
3445
DPRINTFN(2, "start next=%d\n", xfer->endpoint->isoc_next);
sys/dev/usb/controller/musb_otg.c
3448
musbotg_setup_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
3452
musbotg_device_isoc_start(struct usb_xfer *xfer)
sys/dev/usb/controller/musb_otg.c
3455
musbotg_start_standard_chain(xfer);
sys/dev/usb/controller/musb_otg.c
4011
struct usb_xfer *xfer;
sys/dev/usb/controller/musb_otg.c
4017
xfer = parm->curr_xfer;
sys/dev/usb/controller/musb_otg.c
4039
ntd = xfer->nframes + 1 /* STATUS */ + 1 /* SYNC */ ;
sys/dev/usb/controller/musb_otg.c
4042
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/musb_otg.c
4045
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/musb_otg.c
4048
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/musb_otg.c
4065
ep_no = xfer->endpointno & UE_ADDR;
sys/dev/usb/controller/musb_otg.c
4070
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/controller/musb_otg.c
4092
td->max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/musb_otg.c
4093
td->reg_max_packet = xfer->max_packet_size |
sys/dev/usb/controller/musb_otg.c
4094
((xfer->max_packet_count - 1) << 11);
sys/dev/usb/controller/musb_otg.c
4103
xfer->td_start[0] = last_obj;
sys/dev/usb/controller/musb_otg.c
4107
musbotg_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1001
} else if (xfer->endpoint->methods == &ohci_device_bulk_methods) {
sys/dev/usb/controller/ohci.c
1002
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1005
} else if (xfer->endpoint->methods == &ohci_device_ctrl_methods) {
sys/dev/usb/controller/ohci.c
1006
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1021
ohci_check_transfer(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1027
DPRINTFN(13, "xfer=%p checking transfer\n", xfer);
sys/dev/usb/controller/ohci.c
1029
ed = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
1037
if (xfer->endpoint->methods == &ohci_device_isoc_methods) {
sys/dev/usb/controller/ohci.c
1039
ohci_isoc_done(xfer);
sys/dev/usb/controller/ohci.c
1041
if (xfer->flags_int.short_frames_ok) {
sys/dev/usb/controller/ohci.c
1042
ohci_check_transfer_sub(xfer);
sys/dev/usb/controller/ohci.c
1043
if (xfer->td_transfer_cache) {
sys/dev/usb/controller/ohci.c
1050
xfer->endpoint->toggle_next = 1;
sys/dev/usb/controller/ohci.c
1052
xfer->endpoint->toggle_next = 0;
sys/dev/usb/controller/ohci.c
1056
ohci_non_isoc_done(xfer);
sys/dev/usb/controller/ohci.c
1060
DPRINTFN(13, "xfer=%p is still active\n", xfer);
sys/dev/usb/controller/ohci.c
1083
struct usb_xfer *xfer;
sys/dev/usb/controller/ohci.c
1086
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/ohci.c
1090
if (ohci_check_transfer(xfer)) {
sys/dev/usb/controller/ohci.c
121
static void ohci_device_done(struct usb_xfer *xfer, usb_error_t error);
sys/dev/usb/controller/ohci.c
1219
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/ohci.c
1221
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/ohci.c
1223
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/ohci.c
1226
ohci_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/ohci.c
123
static uint8_t ohci_check_transfer(struct usb_xfer *xfer);
sys/dev/usb/controller/ohci.c
1379
ohci_setup_standard_chain(struct usb_xfer *xfer, ohci_ed_t **ed_last)
sys/dev/usb/controller/ohci.c
1389
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/ohci.c
1390
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/ohci.c
1392
temp.average = xfer->max_hc_frame_size;
sys/dev/usb/controller/ohci.c
1393
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/ohci.c
1396
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/ohci.c
1399
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
1401
xfer->td_transfer_first = td;
sys/dev/usb/controller/ohci.c
1402
xfer->td_transfer_cache = td;
sys/dev/usb/controller/ohci.c
1407
temp.setup_alt_next = xfer->flags_int.short_frames_ok;
sys/dev/usb/controller/ohci.c
1409
methods = xfer->endpoint->methods;
sys/dev/usb/controller/ohci.c
1413
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/ohci.c
1414
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/ohci.c
1418
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/ohci.c
1419
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/ohci.c
1422
if (xfer->nframes == 1) {
sys/dev/usb/controller/ohci.c
1424
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/ohci.c
1435
xfer->endpoint->toggle_next = 1;
sys/dev/usb/controller/ohci.c
1445
if (xfer->endpoint->toggle_next) {
sys/dev/usb/controller/ohci.c
1453
if (UE_GET_DIR(xfer->endpointno) == UE_DIR_IN) {
sys/dev/usb/controller/ohci.c
1459
while (x != xfer->nframes) {
sys/dev/usb/controller/ohci.c
1462
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/ohci.c
1463
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/ohci.c
1467
if (x == xfer->nframes) {
sys/dev/usb/controller/ohci.c
1468
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/ohci.c
1470
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/ohci.c
1487
temp.shortpkt = (xfer->flags.force_short_xfer) ? 0 : 1;
sys/dev/usb/controller/ohci.c
1495
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/ohci.c
1496
!xfer->flags_int.control_act) {
sys/dev/usb/controller/ohci.c
1504
if (UE_GET_DIR(xfer->endpointno) == UE_DIR_IN) {
sys/dev/usb/controller/ohci.c
1531
xfer->td_transfer_last = td;
sys/dev/usb/controller/ohci.c
1536
xfer->endpoint->toggle_next);
sys/dev/usb/controller/ohci.c
1537
ohci_dump_tds(xfer->td_transfer_first);
sys/dev/usb/controller/ohci.c
1541
ed = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
1543
ed_flags = (OHCI_ED_SET_FA(xfer->address) |
sys/dev/usb/controller/ohci.c
1544
OHCI_ED_SET_EN(UE_GET_ADDR(xfer->endpointno)) |
sys/dev/usb/controller/ohci.c
1545
OHCI_ED_SET_MAXP(xfer->max_frame_size));
sys/dev/usb/controller/ohci.c
1549
if (xfer->xroot->udev->speed == USB_SPEED_LOW) {
sys/dev/usb/controller/ohci.c
1554
td = xfer->td_transfer_first;
sys/dev/usb/controller/ohci.c
1558
if (xfer->xroot->udev->flags.self_suspended == 0) {
sys/dev/usb/controller/ohci.c
1563
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1568
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1614
ohci_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/ohci.c
1616
const struct usb_pipe_methods *methods = xfer->endpoint->methods;
sys/dev/usb/controller/ohci.c
1617
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1623
xfer, xfer->endpoint, error);
sys/dev/usb/controller/ohci.c
1625
ed = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
1636
OHCI_REMOVE_QH(ed, sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ohci.c
1641
xfer->td_transfer_first = NULL;
sys/dev/usb/controller/ohci.c
1642
xfer->td_transfer_last = NULL;
sys/dev/usb/controller/ohci.c
1645
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/ohci.c
1652
ohci_device_bulk_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1658
ohci_device_bulk_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1660
ohci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ohci.c
1664
ohci_device_bulk_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1670
ohci_device_bulk_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1672
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1675
ohci_setup_standard_chain(xfer, &sc->sc_bulk_p_last);
sys/dev/usb/controller/ohci.c
1678
ohci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ohci.c
1693
ohci_device_ctrl_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1699
ohci_device_ctrl_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1701
ohci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ohci.c
1705
ohci_device_ctrl_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1711
ohci_device_ctrl_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1713
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1716
ohci_setup_standard_chain(xfer, &sc->sc_ctrl_p_last);
sys/dev/usb/controller/ohci.c
1719
ohci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ohci.c
1734
ohci_device_intr_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1736
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1744
if (xfer->interval >= bit) {
sys/dev/usb/controller/ohci.c
1760
xfer->qh_pos = best;
sys/dev/usb/controller/ohci.c
1763
best, xfer->interval);
sys/dev/usb/controller/ohci.c
1767
ohci_device_intr_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1769
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1771
sc->sc_intr_stat[xfer->qh_pos]--;
sys/dev/usb/controller/ohci.c
1773
ohci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ohci.c
1777
ohci_device_intr_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1783
ohci_device_intr_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1785
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1788
ohci_setup_standard_chain(xfer, &sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ohci.c
1791
ohci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ohci.c
1806
ohci_device_isoc_open(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1812
ohci_device_isoc_close(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1815
ohci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/ohci.c
1819
ohci_device_isoc_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1822
ohci_softc_t *sc = OHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/ohci.c
1841
xfer, xfer->endpoint->isoc_next, xfer->nframes, nframes);
sys/dev/usb/controller/ohci.c
1844
xfer, nframes, 0, 1, 0xFFFF, &startframe))
sys/dev/usb/controller/ohci.c
1849
nframes = xfer->nframes;
sys/dev/usb/controller/ohci.c
1853
plen = xfer->frlengths;
sys/dev/usb/controller/ohci.c
1856
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/ohci.c
1859
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
1861
xfer->td_transfer_first = td;
sys/dev/usb/controller/ohci.c
1903
usbd_get_page(xfer->frbuffers, buf_offset - length, &buf_res);
sys/dev/usb/controller/ohci.c
1908
usbd_get_page(xfer->frbuffers, buf_offset - 1, &buf_res);
sys/dev/usb/controller/ohci.c
1939
xfer->td_transfer_last = td_last;
sys/dev/usb/controller/ohci.c
1944
ohci_dump_itds(xfer->td_transfer_first);
sys/dev/usb/controller/ohci.c
1947
ed = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
1949
if (UE_GET_DIR(xfer->endpointno) == UE_DIR_IN)
sys/dev/usb/controller/ohci.c
1954
ed_flags |= (OHCI_ED_SET_FA(xfer->address) |
sys/dev/usb/controller/ohci.c
1955
OHCI_ED_SET_EN(UE_GET_ADDR(xfer->endpointno)) |
sys/dev/usb/controller/ohci.c
1956
OHCI_ED_SET_MAXP(xfer->max_frame_size));
sys/dev/usb/controller/ohci.c
1958
if (xfer->xroot->udev->speed == USB_SPEED_LOW) {
sys/dev/usb/controller/ohci.c
1963
td = xfer->td_transfer_first;
sys/dev/usb/controller/ohci.c
1974
ohci_device_isoc_start(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
1977
ohci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/ohci.c
2345
struct usb_xfer *xfer;
sys/dev/usb/controller/ohci.c
2352
xfer = parm->curr_xfer;
sys/dev/usb/controller/ohci.c
2362
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ohci.c
2367
ntd = ((2 * xfer->nframes) + 1 /* STATUS */
sys/dev/usb/controller/ohci.c
2368
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/ohci.c
2372
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ohci.c
2377
ntd = ((2 * xfer->nframes)
sys/dev/usb/controller/ohci.c
2378
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/ohci.c
2382
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ohci.c
2387
ntd = ((2 * xfer->nframes)
sys/dev/usb/controller/ohci.c
2388
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/ohci.c
2392
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/ohci.c
2396
nitd = ((xfer->max_data_length / OHCI_PAGE_SIZE) +
sys/dev/usb/controller/ohci.c
2397
howmany(xfer->nframes, OHCI_ITD_NOFFSET) +
sys/dev/usb/controller/ohci.c
2465
xfer->td_start[xfer->flags_int.curr_dma_set] = last_obj;
sys/dev/usb/controller/ohci.c
2493
xfer->qh_start[xfer->flags_int.curr_dma_set] = last_obj;
sys/dev/usb/controller/ohci.c
2495
if (!xfer->flags_int.curr_dma_set) {
sys/dev/usb/controller/ohci.c
2496
xfer->flags_int.curr_dma_set = 1;
sys/dev/usb/controller/ohci.c
2536
ohci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
2555
struct usb_xfer *xfer;
sys/dev/usb/controller/ohci.c
2563
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/ohci.c
2564
if (xfer->xroot->udev == udev) {
sys/dev/usb/controller/ohci.c
2565
methods = xfer->endpoint->methods;
sys/dev/usb/controller/ohci.c
2566
ed = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
2577
OHCI_APPEND_QH(ed, sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ohci.c
2591
struct usb_xfer *xfer;
sys/dev/usb/controller/ohci.c
2599
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/ohci.c
2600
if (xfer->xroot->udev == udev) {
sys/dev/usb/controller/ohci.c
2601
methods = xfer->endpoint->methods;
sys/dev/usb/controller/ohci.c
2602
ed = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
2611
OHCI_REMOVE_QH(ed, sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/ohci.c
640
ohci_transfer_intr_enqueue(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
643
if (ohci_check_transfer(xfer)) {
sys/dev/usb/controller/ohci.c
647
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/ohci.c
650
if (xfer->timeout != 0) {
sys/dev/usb/controller/ohci.c
651
usbd_transfer_timeout_ms(xfer, &ohci_timeout, xfer->timeout);
sys/dev/usb/controller/ohci.c
717
ohci_isoc_done(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
720
uint32_t *plen = xfer->frlengths;
sys/dev/usb/controller/ohci.c
723
ohci_itd_t *td = xfer->td_transfer_first;
sys/dev/usb/controller/ohci.c
761
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/ohci.c
767
xfer->aframes = xfer->nframes;
sys/dev/usb/controller/ohci.c
768
ohci_device_done(xfer, USB_ERR_NORMAL_COMPLETION);
sys/dev/usb/controller/ohci.c
799
ohci_non_isoc_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
809
td = xfer->td_transfer_cache;
sys/dev/usb/controller/ohci.c
813
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/ohci.c
814
usbd_xfer_set_frame_len(xfer, xfer->aframes, 0);
sys/dev/usb/controller/ohci.c
836
} else if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/ohci.c
841
xfer->frlengths[xfer->aframes] += td->len - temp;
sys/dev/usb/controller/ohci.c
844
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/ohci.c
846
xfer->frlengths[xfer->aframes] += td->len;
sys/dev/usb/controller/ohci.c
850
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/ohci.c
862
if (xfer->flags_int.short_frames_ok) {
sys/dev/usb/controller/ohci.c
881
xfer->td_transfer_cache = td;
sys/dev/usb/controller/ohci.c
891
ohci_non_isoc_done(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
896
xfer, xfer->endpoint);
sys/dev/usb/controller/ohci.c
900
ohci_dump_tds(xfer->td_transfer_first);
sys/dev/usb/controller/ohci.c
906
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/ohci.c
908
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/ohci.c
909
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/ohci.c
910
err = ohci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/ohci.c
912
xfer->aframes = 1;
sys/dev/usb/controller/ohci.c
914
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/ohci.c
918
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/ohci.c
919
err = ohci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/ohci.c
920
xfer->aframes++;
sys/dev/usb/controller/ohci.c
922
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/ohci.c
927
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/ohci.c
928
!xfer->flags_int.control_act) {
sys/dev/usb/controller/ohci.c
929
err = ohci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/ohci.c
932
ohci_device_done(xfer, err);
sys/dev/usb/controller/ohci.c
939
ohci_check_transfer_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/ohci.c
948
td = xfer->td_transfer_cache;
sys/dev/usb/controller/ohci.c
957
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/ohci.c
984
xfer->td_transfer_cache = td;
sys/dev/usb/controller/ohci.c
987
ed = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/ohci.c
992
DPRINTFN(13, "xfer=%p following alt next\n", xfer);
sys/dev/usb/controller/ohci.c
999
if (xfer->xroot->udev->flags.self_suspended) {
sys/dev/usb/controller/uhci.c
1002
uint32_t nframes = xfer->nframes;
sys/dev/usb/controller/uhci.c
1005
uint32_t *plen = xfer->frlengths;
sys/dev/usb/controller/uhci.c
1007
uhci_td_t *td = xfer->td_transfer_first;
sys/dev/usb/controller/uhci.c
1008
uhci_td_t **pp_last = &sc->sc_isoc_p_last[xfer->qh_pos];
sys/dev/usb/controller/uhci.c
1011
xfer, xfer->endpoint);
sys/dev/usb/controller/uhci.c
1015
usb_bdma_post_sync(xfer);
sys/dev/usb/controller/uhci.c
1046
usbd_copy_in(xfer->frbuffers, offset,
sys/dev/usb/controller/uhci.c
1061
xfer->aframes = xfer->nframes;
sys/dev/usb/controller/uhci.c
1065
uhci_non_isoc_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1074
td = xfer->td_transfer_cache;
sys/dev/usb/controller/uhci.c
1077
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/uhci.c
1078
usbd_xfer_set_frame_len(xfer, xfer->aframes, 0);
sys/dev/usb/controller/uhci.c
1097
} else if ((xfer->aframes != xfer->nframes) && (len > 0)) {
sys/dev/usb/controller/uhci.c
1108
usbd_copy_in(xfer->frbuffers + xfer->aframes,
sys/dev/usb/controller/uhci.c
1109
xfer->frlengths[xfer->aframes], res.buffer, len);
sys/dev/usb/controller/uhci.c
1113
xfer->frlengths[xfer->aframes] += len;
sys/dev/usb/controller/uhci.c
1116
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/uhci.c
1127
if (xfer->flags_int.short_frames_ok) {
sys/dev/usb/controller/uhci.c
1146
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uhci.c
1150
xfer->endpoint->toggle_next = (token & UHCI_TD_SET_DT(1)) ? 0 : 1;
sys/dev/usb/controller/uhci.c
1156
xfer->address, xfer->endpointno, xfer->aframes,
sys/dev/usb/controller/uhci.c
1180
uhci_non_isoc_done(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1185
xfer, xfer->endpoint);
sys/dev/usb/controller/uhci.c
1189
uhci_dump_tds(xfer->td_transfer_first);
sys/dev/usb/controller/uhci.c
1195
usb_bdma_post_sync(xfer);
sys/dev/usb/controller/uhci.c
1199
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/uhci.c
1201
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uhci.c
1202
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/uhci.c
1203
err = uhci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/uhci.c
1205
xfer->aframes = 1;
sys/dev/usb/controller/uhci.c
1207
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/uhci.c
1211
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/uhci.c
1212
err = uhci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/uhci.c
1213
xfer->aframes++;
sys/dev/usb/controller/uhci.c
1215
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/uhci.c
1220
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/uhci.c
1221
!xfer->flags_int.control_act) {
sys/dev/usb/controller/uhci.c
1222
err = uhci_non_isoc_done_sub(xfer);
sys/dev/usb/controller/uhci.c
1225
uhci_device_done(xfer, err);
sys/dev/usb/controller/uhci.c
1235
uhci_check_transfer_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1244
td = xfer->td_transfer_cache;
sys/dev/usb/controller/uhci.c
1245
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
1249
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uhci.c
1253
if (xfer->flags_int.control_xfr)
sys/dev/usb/controller/uhci.c
1266
if (td == xfer->td_transfer_last) {
sys/dev/usb/controller/uhci.c
1283
DPRINTFN(13, "xfer=%p following alt next\n", xfer);
sys/dev/usb/controller/uhci.c
1294
uhci_check_transfer(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1299
DPRINTFN(16, "xfer=%p checking transfer\n", xfer);
sys/dev/usb/controller/uhci.c
1301
if (xfer->endpoint->methods == &uhci_device_isoc_methods) {
sys/dev/usb/controller/uhci.c
1304
td = xfer->td_transfer_last;
sys/dev/usb/controller/uhci.c
1311
td = xfer->td_transfer_first;
sys/dev/usb/controller/uhci.c
1317
uhci_device_done(xfer, USB_ERR_NORMAL_COMPLETION);
sys/dev/usb/controller/uhci.c
1328
td = xfer->td_transfer_cache;
sys/dev/usb/controller/uhci.c
1339
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uhci.c
1345
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/uhci.c
1360
if (xfer->flags_int.short_frames_ok) {
sys/dev/usb/controller/uhci.c
1364
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uhci.c
1365
uhci_check_transfer_sub(xfer);
sys/dev/usb/controller/uhci.c
1374
uhci_non_isoc_done(xfer);
sys/dev/usb/controller/uhci.c
1379
DPRINTFN(13, "xfer=%p is still active\n", xfer);
sys/dev/usb/controller/uhci.c
1389
struct usb_xfer *xfer;
sys/dev/usb/controller/uhci.c
1392
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/uhci.c
1396
if (uhci_check_transfer(xfer)) {
sys/dev/usb/controller/uhci.c
1484
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/uhci.c
1486
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/uhci.c
1488
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/uhci.c
1491
uhci_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/uhci.c
1640
uhci_setup_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1647
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/uhci.c
1648
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/uhci.c
1650
temp.average = xfer->max_frame_size;
sys/dev/usb/controller/uhci.c
1651
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/uhci.c
1654
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/uhci.c
1657
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
1658
xfer->td_transfer_first = td;
sys/dev/usb/controller/uhci.c
1659
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uhci.c
1664
temp.setup_alt_next = xfer->flags_int.short_frames_ok;
sys/dev/usb/controller/uhci.c
1666
uhci_mem_layout_init(&temp.ml, xfer);
sys/dev/usb/controller/uhci.c
1672
if (xfer->xroot->udev->speed == USB_SPEED_LOW) {
sys/dev/usb/controller/uhci.c
1676
htole32(UHCI_TD_SET_ENDPT(xfer->endpointno) |
sys/dev/usb/controller/uhci.c
1677
UHCI_TD_SET_DEVADDR(xfer->address));
sys/dev/usb/controller/uhci.c
1679
if (xfer->endpoint->toggle_next) {
sys/dev/usb/controller/uhci.c
1685
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uhci.c
1686
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/uhci.c
1692
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/uhci.c
1693
temp.ml.buf_pc = xfer->frbuffers + 0;
sys/dev/usb/controller/uhci.c
1696
if (xfer->nframes == 1) {
sys/dev/usb/controller/uhci.c
1698
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/uhci.c
1710
while (x != xfer->nframes) {
sys/dev/usb/controller/uhci.c
1713
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/uhci.c
1714
temp.ml.buf_pc = xfer->frbuffers + x;
sys/dev/usb/controller/uhci.c
1718
if (x == xfer->nframes) {
sys/dev/usb/controller/uhci.c
1719
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uhci.c
1721
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/uhci.c
1747
temp.shortpkt = (xfer->flags.force_short_xfer) ? 0 : 1;
sys/dev/usb/controller/uhci.c
1753
(UE_GET_DIR(xfer->endpointno) == UE_DIR_IN) ?
sys/dev/usb/controller/uhci.c
1762
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/uhci.c
1763
!xfer->flags_int.control_act) {
sys/dev/usb/controller/uhci.c
1773
(UE_GET_DIR(xfer->endpointno) == UE_DIR_OUT) ?
sys/dev/usb/controller/uhci.c
1798
xfer->td_transfer_last = td;
sys/dev/usb/controller/uhci.c
1803
xfer->endpoint->toggle_next);
sys/dev/usb/controller/uhci.c
1804
uhci_dump_tds(xfer->td_transfer_first);
sys/dev/usb/controller/uhci.c
1807
return (xfer->td_transfer_first);
sys/dev/usb/controller/uhci.c
1815
uhci_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/uhci.c
1817
const struct usb_pipe_methods *methods = xfer->endpoint->methods;
sys/dev/usb/controller/uhci.c
1818
uhci_softc_t *sc = UHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uhci.c
1824
xfer, xfer->endpoint, error);
sys/dev/usb/controller/uhci.c
1826
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
1830
if (xfer->flags_int.bandwidth_reclaimed) {
sys/dev/usb/controller/uhci.c
1831
xfer->flags_int.bandwidth_reclaimed = 0;
sys/dev/usb/controller/uhci.c
1838
if (xfer->xroot->udev->speed == USB_SPEED_LOW) {
sys/dev/usb/controller/uhci.c
1845
UHCI_REMOVE_QH(qh, sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/uhci.c
1851
if (xfer->td_transfer_first &&
sys/dev/usb/controller/uhci.c
1852
xfer->td_transfer_last) {
sys/dev/usb/controller/uhci.c
1854
uhci_isoc_done(sc, xfer);
sys/dev/usb/controller/uhci.c
1856
xfer->td_transfer_first = NULL;
sys/dev/usb/controller/uhci.c
1857
xfer->td_transfer_last = NULL;
sys/dev/usb/controller/uhci.c
1860
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/uhci.c
1867
uhci_device_bulk_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1873
uhci_device_bulk_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1875
uhci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uhci.c
1879
uhci_device_bulk_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1885
uhci_device_bulk_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1887
uhci_softc_t *sc = UHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uhci.c
1892
td = uhci_setup_standard_chain(xfer);
sys/dev/usb/controller/uhci.c
1895
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
1900
if (xfer->xroot->udev->flags.self_suspended == 0) {
sys/dev/usb/controller/uhci.c
1903
xfer->flags_int.bandwidth_reclaimed = 1;
sys/dev/usb/controller/uhci.c
1909
uhci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/uhci.c
1924
uhci_device_ctrl_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1930
uhci_device_ctrl_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1932
uhci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uhci.c
1936
uhci_device_ctrl_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1942
uhci_device_ctrl_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1944
uhci_softc_t *sc = UHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uhci.c
1949
td = uhci_setup_standard_chain(xfer);
sys/dev/usb/controller/uhci.c
1952
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
1961
if (xfer->xroot->udev->flags.self_suspended == 0) {
sys/dev/usb/controller/uhci.c
1962
if (xfer->xroot->udev->speed == USB_SPEED_LOW) {
sys/dev/usb/controller/uhci.c
1971
uhci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/uhci.c
1986
uhci_device_intr_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
1988
uhci_softc_t *sc = UHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uhci.c
1996
if (xfer->interval >= bit) {
sys/dev/usb/controller/uhci.c
2012
xfer->qh_pos = best;
sys/dev/usb/controller/uhci.c
2015
best, xfer->interval);
sys/dev/usb/controller/uhci.c
2019
uhci_device_intr_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
2021
uhci_softc_t *sc = UHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uhci.c
2023
sc->sc_intr_stat[xfer->qh_pos]--;
sys/dev/usb/controller/uhci.c
2025
uhci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uhci.c
2029
uhci_device_intr_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
203
uhci_mem_layout_init(struct uhci_mem_layout *ml, struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
2035
uhci_device_intr_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
2037
uhci_softc_t *sc = UHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uhci.c
2042
td = uhci_setup_standard_chain(xfer);
sys/dev/usb/controller/uhci.c
2045
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
205
ml->buf_pc = xfer->frbuffers + 0;
sys/dev/usb/controller/uhci.c
2050
if (xfer->xroot->udev->flags.self_suspended == 0) {
sys/dev/usb/controller/uhci.c
2052
UHCI_APPEND_QH(qh, sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/uhci.c
2058
uhci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/uhci.c
206
ml->fix_pc = xfer->buf_fixup;
sys/dev/usb/controller/uhci.c
2073
uhci_device_isoc_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
2080
(UE_GET_DIR(xfer->endpointno) == UE_DIR_IN) ?
sys/dev/usb/controller/uhci.c
2081
UHCI_TD_IN(0, xfer->endpointno, xfer->address, 0) :
sys/dev/usb/controller/uhci.c
2082
UHCI_TD_OUT(0, xfer->endpointno, xfer->address, 0);
sys/dev/usb/controller/uhci.c
2089
for (td = xfer->td_start[ds]; td; td = td->obj_next) {
sys/dev/usb/controller/uhci.c
210
ml->max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/uhci.c
2100
uhci_device_isoc_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
2102
uhci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uhci.c
2106
uhci_device_isoc_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
2109
uhci_softc_t *sc = UHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uhci.c
2123
xfer, xfer->endpoint->isoc_next, xfer->nframes);
sys/dev/usb/controller/uhci.c
2128
xfer, nframes, 0, 1, UHCI_VFRAMELIST_COUNT - 1, &startframe))
sys/dev/usb/controller/uhci.c
2133
nframes = xfer->nframes;
sys/dev/usb/controller/uhci.c
2135
uhci_mem_layout_init(&ml, xfer);
sys/dev/usb/controller/uhci.c
2137
plen = xfer->frlengths;
sys/dev/usb/controller/uhci.c
2140
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/uhci.c
2143
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
2144
xfer->td_transfer_first = td;
sys/dev/usb/controller/uhci.c
2150
xfer->qh_pos = startframe;
sys/dev/usb/controller/uhci.c
2160
if (*plen > xfer->max_frame_size) {
sys/dev/usb/controller/uhci.c
2167
xfer->max_frame_size);
sys/dev/usb/controller/uhci.c
2170
*plen = xfer->max_frame_size;
sys/dev/usb/controller/uhci.c
2226
xfer->td_transfer_last = td_last;
sys/dev/usb/controller/uhci.c
2230
uhci_device_isoc_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
2233
uhci_transfer_intr_enqueue(xfer);
sys/dev/usb/controller/uhci.c
2772
struct usb_xfer *xfer;
sys/dev/usb/controller/uhci.c
2780
xfer = parm->curr_xfer;
sys/dev/usb/controller/uhci.c
2790
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/uhci.c
2791
xfer->flags_int.bdma_no_post_sync = 1;
sys/dev/usb/controller/uhci.c
2798
ntd = ((2 * xfer->nframes) + 1 /* STATUS */
sys/dev/usb/controller/uhci.c
2799
+ (xfer->max_data_length / xfer->max_frame_size));
sys/dev/usb/controller/uhci.c
2802
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/uhci.c
2803
xfer->flags_int.bdma_no_post_sync = 1;
sys/dev/usb/controller/uhci.c
2808
ntd = ((2 * xfer->nframes)
sys/dev/usb/controller/uhci.c
2809
+ (xfer->max_data_length / xfer->max_frame_size));
sys/dev/usb/controller/uhci.c
2812
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/uhci.c
2813
xfer->flags_int.bdma_no_post_sync = 1;
sys/dev/usb/controller/uhci.c
2818
ntd = ((2 * xfer->nframes)
sys/dev/usb/controller/uhci.c
2819
+ (xfer->max_data_length / xfer->max_frame_size));
sys/dev/usb/controller/uhci.c
2822
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/uhci.c
2823
xfer->flags_int.bdma_no_post_sync = 1;
sys/dev/usb/controller/uhci.c
2828
ntd = xfer->nframes;
sys/dev/usb/controller/uhci.c
2851
align = xfer->max_frame_size;
sys/dev/usb/controller/uhci.c
2859
if (!(xfer->max_frame_size &
sys/dev/usb/controller/uhci.c
2860
(xfer->max_frame_size - 1))) {
sys/dev/usb/controller/uhci.c
2876
parm, &pc, xfer->max_frame_size,
sys/dev/usb/controller/uhci.c
2881
xfer->buf_fixup = pc;
sys/dev/usb/controller/uhci.c
2924
xfer->td_start[xfer->flags_int.curr_dma_set] = last_obj;
sys/dev/usb/controller/uhci.c
2952
xfer->qh_start[xfer->flags_int.curr_dma_set] = last_obj;
sys/dev/usb/controller/uhci.c
2954
if (!xfer->flags_int.curr_dma_set) {
sys/dev/usb/controller/uhci.c
2955
xfer->flags_int.curr_dma_set = 1;
sys/dev/usb/controller/uhci.c
2995
uhci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
3014
struct usb_xfer *xfer;
sys/dev/usb/controller/uhci.c
3022
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/uhci.c
3023
if (xfer->xroot->udev == udev) {
sys/dev/usb/controller/uhci.c
3024
methods = xfer->endpoint->methods;
sys/dev/usb/controller/uhci.c
3025
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
3030
xfer->flags_int.bandwidth_reclaimed = 1;
sys/dev/usb/controller/uhci.c
3033
if (xfer->xroot->udev->speed == USB_SPEED_LOW) {
sys/dev/usb/controller/uhci.c
3040
UHCI_APPEND_QH(qh, sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/uhci.c
3054
struct usb_xfer *xfer;
sys/dev/usb/controller/uhci.c
3062
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/uhci.c
3063
if (xfer->xroot->udev == udev) {
sys/dev/usb/controller/uhci.c
3064
methods = xfer->endpoint->methods;
sys/dev/usb/controller/uhci.c
3065
qh = xfer->qh_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/uhci.c
3067
if (xfer->flags_int.bandwidth_reclaimed) {
sys/dev/usb/controller/uhci.c
3068
xfer->flags_int.bandwidth_reclaimed = 0;
sys/dev/usb/controller/uhci.c
3075
if (xfer->xroot->udev->speed == USB_SPEED_LOW) {
sys/dev/usb/controller/uhci.c
3082
UHCI_REMOVE_QH(qh, sc->sc_intr_p_last[xfer->qh_pos]);
sys/dev/usb/controller/uhci.c
873
uhci_transfer_intr_enqueue(struct usb_xfer *xfer)
sys/dev/usb/controller/uhci.c
876
if (uhci_check_transfer(xfer)) {
sys/dev/usb/controller/uhci.c
880
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/uhci.c
883
if (xfer->timeout != 0) {
sys/dev/usb/controller/uhci.c
884
usbd_transfer_timeout_ms(xfer, &uhci_timeout, xfer->timeout);
sys/dev/usb/controller/uhci.c
999
uhci_isoc_done(uhci_softc_t *sc, struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1008
xfer->td_transfer_last = td;
sys/dev/usb/controller/uss820dci.c
1014
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/uss820dci.c
1016
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/uss820dci.c
1018
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/uss820dci.c
1021
uss820dci_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/uss820dci.c
1025
uss820dci_intr_set(struct usb_xfer *xfer, uint8_t set)
sys/dev/usb/controller/uss820dci.c
1027
struct uss820dci_softc *sc = USS820_DCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uss820dci.c
1028
uint8_t ep_no = (xfer->endpointno & UE_ADDR);
sys/dev/usb/controller/uss820dci.c
1032
DPRINTFN(15, "endpoint 0x%02x\n", xfer->endpointno);
sys/dev/usb/controller/uss820dci.c
1043
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uss820dci.c
1044
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/uss820dci.c
1050
if (!(xfer->endpointno & UE_DIR_IN)) {
sys/dev/usb/controller/uss820dci.c
1064
uss820dci_start_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1066
struct uss820dci_softc *sc = USS820_DCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uss820dci.c
1073
uss820dci_xfer_do_fifo(xfer);
sys/dev/usb/controller/uss820dci.c
1075
if (uss820dci_xfer_do_complete(xfer) == 0) {
sys/dev/usb/controller/uss820dci.c
1081
uss820dci_intr_set(xfer, 1);
sys/dev/usb/controller/uss820dci.c
1084
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/uss820dci.c
1087
if (xfer->timeout != 0) {
sys/dev/usb/controller/uss820dci.c
1088
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/controller/uss820dci.c
1089
&uss820dci_timeout, xfer->timeout);
sys/dev/usb/controller/uss820dci.c
1110
uss820dci_standard_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1118
td = xfer->td_transfer_cache;
sys/dev/usb/controller/uss820dci.c
1123
if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/uss820dci.c
1128
if (len > xfer->frlengths[xfer->aframes]) {
sys/dev/usb/controller/uss820dci.c
1131
xfer->frlengths[xfer->aframes] -= len;
sys/dev/usb/controller/uss820dci.c
1143
if (xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/uss820dci.c
1144
xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/uss820dci.c
1168
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uss820dci.c
1175
uss820dci_standard_done(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1180
xfer, xfer->endpoint);
sys/dev/usb/controller/uss820dci.c
1184
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/uss820dci.c
1186
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uss820dci.c
1187
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/uss820dci.c
1188
err = uss820dci_standard_done_sub(xfer);
sys/dev/usb/controller/uss820dci.c
1190
xfer->aframes = 1;
sys/dev/usb/controller/uss820dci.c
1192
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/uss820dci.c
1196
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/uss820dci.c
1197
err = uss820dci_standard_done_sub(xfer);
sys/dev/usb/controller/uss820dci.c
1198
xfer->aframes++;
sys/dev/usb/controller/uss820dci.c
1200
if (xfer->td_transfer_cache == NULL) {
sys/dev/usb/controller/uss820dci.c
1205
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/uss820dci.c
1206
!xfer->flags_int.control_act) {
sys/dev/usb/controller/uss820dci.c
1207
err = uss820dci_standard_done_sub(xfer);
sys/dev/usb/controller/uss820dci.c
1210
uss820dci_device_done(xfer, err);
sys/dev/usb/controller/uss820dci.c
1220
uss820dci_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/uss820dci.c
1222
struct uss820dci_softc *sc = USS820_DCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uss820dci.c
1224
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/uss820dci.c
1227
xfer, xfer->endpoint, error);
sys/dev/usb/controller/uss820dci.c
1231
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/controller/uss820dci.c
1232
uss820dci_intr_set(xfer, 0);
sys/dev/usb/controller/uss820dci.c
1235
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/uss820dci.c
1241
uss820dci_xfer_stall(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1243
uss820dci_device_done(xfer, USB_ERR_STALLED);
sys/dev/usb/controller/uss820dci.c
1576
uss820dci_device_bulk_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1582
uss820dci_device_bulk_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1584
uss820dci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uss820dci.c
1588
uss820dci_device_bulk_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1594
uss820dci_device_bulk_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1597
uss820dci_setup_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
1598
uss820dci_start_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
1613
uss820dci_device_ctrl_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1619
uss820dci_device_ctrl_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1621
uss820dci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uss820dci.c
1625
uss820dci_device_ctrl_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1631
uss820dci_device_ctrl_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1634
uss820dci_setup_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
1635
uss820dci_start_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
1650
uss820dci_device_intr_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1656
uss820dci_device_intr_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1658
uss820dci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uss820dci.c
1662
uss820dci_device_intr_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1668
uss820dci_device_intr_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1671
uss820dci_setup_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
1672
uss820dci_start_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
1687
uss820dci_device_isoc_fs_open(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1693
uss820dci_device_isoc_fs_close(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1695
uss820dci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/uss820dci.c
1699
uss820dci_device_isoc_fs_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1701
struct uss820dci_softc *sc = USS820_DCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uss820dci.c
1705
xfer, xfer->endpoint->isoc_next, xfer->nframes);
sys/dev/usb/controller/uss820dci.c
1712
xfer, nframes, 0, 1, USS820_SOFL_MASK, NULL))
sys/dev/usb/controller/uss820dci.c
1713
DPRINTFN(3, "start next=%d\n", xfer->endpoint->isoc_next);
sys/dev/usb/controller/uss820dci.c
1716
uss820dci_setup_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
1720
uss820dci_device_isoc_fs_start(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
1723
uss820dci_start_standard_chain(xfer);
sys/dev/usb/controller/uss820dci.c
2214
struct usb_xfer *xfer;
sys/dev/usb/controller/uss820dci.c
2220
xfer = parm->curr_xfer;
sys/dev/usb/controller/uss820dci.c
2237
ntd = xfer->nframes + 1 /* STATUS */ + 1 /* SYNC */ ;
sys/dev/usb/controller/uss820dci.c
2240
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/uss820dci.c
2243
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/uss820dci.c
2246
ntd = xfer->nframes + 1 /* SYNC */ ;
sys/dev/usb/controller/uss820dci.c
2267
ep_no = xfer->endpointno & UE_ADDR;
sys/dev/usb/controller/uss820dci.c
2290
td->max_packet_size = xfer->max_packet_size;
sys/dev/usb/controller/uss820dci.c
2303
xfer->td_start[0] = last_obj;
sys/dev/usb/controller/uss820dci.c
2307
uss820dci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
647
uss820dci_xfer_do_fifo(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
649
struct uss820dci_softc *sc = USS820_DCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/uss820dci.c
654
td = xfer->td_transfer_cache;
sys/dev/usb/controller/uss820dci.c
663
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/uss820dci.c
681
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uss820dci.c
687
xfer->td_transfer_cache = NULL;
sys/dev/usb/controller/uss820dci.c
692
uss820dci_xfer_do_complete(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
698
td = xfer->td_transfer_cache;
sys/dev/usb/controller/uss820dci.c
701
uss820dci_standard_done(xfer);
sys/dev/usb/controller/uss820dci.c
710
struct usb_xfer *xfer;
sys/dev/usb/controller/uss820dci.c
712
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry)
sys/dev/usb/controller/uss820dci.c
713
uss820dci_xfer_do_fifo(xfer);
sys/dev/usb/controller/uss820dci.c
719
struct usb_xfer *xfer;
sys/dev/usb/controller/uss820dci.c
721
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/uss820dci.c
722
if (uss820dci_xfer_do_complete(xfer))
sys/dev/usb/controller/uss820dci.c
877
uss820dci_setup_standard_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/uss820dci.c
884
xfer->address, UE_GET_ADDR(xfer->endpointno),
sys/dev/usb/controller/uss820dci.c
885
xfer->sumlen, usbd_get_speed(xfer->xroot->udev));
sys/dev/usb/controller/uss820dci.c
887
temp.max_frame_size = xfer->max_frame_size;
sys/dev/usb/controller/uss820dci.c
889
td = xfer->td_start[0];
sys/dev/usb/controller/uss820dci.c
890
xfer->td_transfer_first = td;
sys/dev/usb/controller/uss820dci.c
891
xfer->td_transfer_cache = td;
sys/dev/usb/controller/uss820dci.c
897
temp.td_next = xfer->td_start[0];
sys/dev/usb/controller/uss820dci.c
899
temp.setup_alt_next = xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/uss820dci.c
900
xfer->flags_int.isochronous_xfr;
sys/dev/usb/controller/uss820dci.c
901
temp.did_stall = !xfer->flags_int.control_stall;
sys/dev/usb/controller/uss820dci.c
905
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uss820dci.c
906
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/uss820dci.c
908
temp.len = xfer->frlengths[0];
sys/dev/usb/controller/uss820dci.c
909
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/uss820dci.c
912
if (xfer->nframes == 1) {
sys/dev/usb/controller/uss820dci.c
914
if (xfer->flags_int.control_act)
sys/dev/usb/controller/uss820dci.c
925
if (x != xfer->nframes) {
sys/dev/usb/controller/uss820dci.c
926
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/uss820dci.c
933
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/uss820dci.c
935
while (x != xfer->nframes) {
sys/dev/usb/controller/uss820dci.c
938
temp.len = xfer->frlengths[x];
sys/dev/usb/controller/uss820dci.c
942
if (x == xfer->nframes) {
sys/dev/usb/controller/uss820dci.c
943
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uss820dci.c
944
if (xfer->flags_int.control_act) {
sys/dev/usb/controller/uss820dci.c
959
temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1;
sys/dev/usb/controller/uss820dci.c
964
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/uss820dci.c
968
temp.pc = xfer->frbuffers + x;
sys/dev/usb/controller/uss820dci.c
973
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/uss820dci.c
977
temp.pc = xfer->frbuffers + 0;
sys/dev/usb/controller/uss820dci.c
983
if (!xfer->flags_int.control_act) {
sys/dev/usb/controller/uss820dci.c
988
if (xfer->endpointno & UE_DIR_IN) {
sys/dev/usb/controller/xhci.c
1011
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/xhci.c
1029
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/xhci.c
1031
xhci_generic_done(xfer);
sys/dev/usb/controller/xhci.c
1041
xhci_generic_done(xfer);
sys/dev/usb/controller/xhci.c
1053
xhci_generic_done(xfer);
sys/dev/usb/controller/xhci.c
1057
if (xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/xhci.c
1058
xfer->flags_int.isochronous_xfr ||
sys/dev/usb/controller/xhci.c
1059
xfer->flags_int.control_xfr) {
sys/dev/usb/controller/xhci.c
1061
xfer->td_transfer_cache = td->alt_next;
sys/dev/usb/controller/xhci.c
1062
xhci_activate_transfer(xfer);
sys/dev/usb/controller/xhci.c
1065
xhci_skip_transfer(xfer);
sys/dev/usb/controller/xhci.c
1066
xhci_generic_done(xfer);
sys/dev/usb/controller/xhci.c
1074
xfer->td_transfer_cache = td->obj_next;
sys/dev/usb/controller/xhci.c
1075
xhci_activate_transfer(xfer);
sys/dev/usb/controller/xhci.c
1720
struct usb_xfer *xfer = arg;
sys/dev/usb/controller/xhci.c
1722
DPRINTF("xfer=%p\n", xfer);
sys/dev/usb/controller/xhci.c
1724
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/controller/xhci.c
1727
xhci_device_done(xfer, USB_ERR_TIMEOUT);
sys/dev/usb/controller/xhci.c
1907
xhci_setup_ctrl(struct usb_xfer *xfer, struct xhci_td *td)
sys/dev/usb/controller/xhci.c
1909
struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/xhci.c
1916
is_in = !!(xfer->endpointno & UE_DIR_IN);
sys/dev/usb/controller/xhci.c
1917
use_data_stage = !xfer->flags_int.control_did_data;
sys/dev/usb/controller/xhci.c
1920
if (xfer->flags_int.control_hdr) {
sys/dev/usb/controller/xhci.c
1922
bool setup_only = (xfer->nframes == 1) &&
sys/dev/usb/controller/xhci.c
1923
xfer->flags_int.control_act;
sys/dev/usb/controller/xhci.c
1926
usbd_copy_out(&xfer->frbuffers[0], 0,
sys/dev/usb/controller/xhci.c
1962
for (x = 1; x < xfer->nframes; x++) {
sys/dev/usb/controller/xhci.c
1963
len = xfer->frlengths[x];
sys/dev/usb/controller/xhci.c
1964
is_last = (x == xfer->nframes - 1) &&
sys/dev/usb/controller/xhci.c
1965
xfer->flags_int.control_act;
sys/dev/usb/controller/xhci.c
1972
usbd_get_page(&xfer->frbuffers[x], cur_len, &search);
sys/dev/usb/controller/xhci.c
1980
npkt = howmany(len - cur_len, xfer->max_packet_size);
sys/dev/usb/controller/xhci.c
2039
step_td = (xhcictlstep || sc->sc_ctlstep) && (xfer->nframes != 0);
sys/dev/usb/controller/xhci.c
2070
xhci_setup_bulk(struct usb_xfer *xfer, struct xhci_td *td)
sys/dev/usb/controller/xhci.c
2072
bool is_in = !!(xfer->endpointno & UE_DIR_IN);
sys/dev/usb/controller/xhci.c
2073
bool multishort = xfer->flags_int.short_frames_ok;
sys/dev/usb/controller/xhci.c
2078
for (i = 0; i < xfer->nframes; i++) {
sys/dev/usb/controller/xhci.c
2079
bool is_last = (i == xfer->nframes - 1);
sys/dev/usb/controller/xhci.c
2088
td = xhci_setup_normal_trbs(&xfer->frbuffers[i], 0,
sys/dev/usb/controller/xhci.c
2089
xfer->frlengths[i], xfer->max_packet_size, td, is_in,
sys/dev/usb/controller/xhci.c
2107
if (xfer->flags.force_short_xfer && xfer->nframes > 0) {
sys/dev/usb/controller/xhci.c
2108
uint32_t last_len = xfer->frlengths[xfer->nframes - 1];
sys/dev/usb/controller/xhci.c
2110
if (last_len > 0 && (last_len % xfer->max_packet_size) == 0) {
sys/dev/usb/controller/xhci.c
2112
xfer->max_packet_size, td, is_in, false, true);
sys/dev/usb/controller/xhci.c
2143
xhci_setup_isoc(struct usb_xfer *xfer, struct xhci_td *td)
sys/dev/usb/controller/xhci.c
2145
struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/xhci.c
2152
bool is_in = !!(xfer->endpointno & UE_DIR_IN);
sys/dev/usb/controller/xhci.c
2157
mult = xfer->endpoint->ecomp ?
sys/dev/usb/controller/xhci.c
2158
UE_GET_SS_ISO_MULT(xfer->endpoint->ecomp->bmAttributes) :
sys/dev/usb/controller/xhci.c
2161
mult = (xfer->endpoint->edesc->wMaxPacketSize[1] >> 3) & 3;
sys/dev/usb/controller/xhci.c
2170
switch (usbd_get_speed(xfer->xroot->udev)) {
sys/dev/usb/controller/xhci.c
2176
shift = usbd_xfer_get_fps_shift(xfer);
sys/dev/usb/controller/xhci.c
2202
if (usbd_xfer_get_isochronous_start_frame(xfer, mfindex, y, 8,
sys/dev/usb/controller/xhci.c
2212
for (x = 0; x < xfer->nframes; x++) {
sys/dev/usb/controller/xhci.c
2213
bool is_last = (x == xfer->nframes - 1);
sys/dev/usb/controller/xhci.c
2216
len = xfer->frlengths[x];
sys/dev/usb/controller/xhci.c
2217
if (len > xfer->max_frame_size)
sys/dev/usb/controller/xhci.c
2218
len = xfer->max_frame_size;
sys/dev/usb/controller/xhci.c
2225
tdpc = howmany(len, xfer->max_packet_size);
sys/dev/usb/controller/xhci.c
2260
usbd_get_page(&xfer->frbuffers[0],
sys/dev/usb/controller/xhci.c
2270
xfer->max_packet_size);
sys/dev/usb/controller/xhci.c
2342
buf_offset += xfer->frlengths[x];
sys/dev/usb/controller/xhci.c
2350
xhci_setup_generic_chain(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
2355
xfer->flags_int.curr_dma_set ^= 1;
sys/dev/usb/controller/xhci.c
2358
td = xfer->td_start[xfer->flags_int.curr_dma_set];
sys/dev/usb/controller/xhci.c
2360
xfer->td_transfer_first = td;
sys/dev/usb/controller/xhci.c
2361
xfer->td_transfer_cache = td;
sys/dev/usb/controller/xhci.c
2363
if (xfer->flags_int.isochronous_xfr)
sys/dev/usb/controller/xhci.c
2364
td = xhci_setup_isoc(xfer, td);
sys/dev/usb/controller/xhci.c
2365
else if (xfer->flags_int.control_xfr)
sys/dev/usb/controller/xhci.c
2366
td = xhci_setup_ctrl(xfer, td);
sys/dev/usb/controller/xhci.c
2368
td = xhci_setup_bulk(xfer, td);
sys/dev/usb/controller/xhci.c
2370
xfer->td_transfer_last = td;
sys/dev/usb/controller/xhci.c
2372
DPRINTF("first=%p last=%p\n", xfer->td_transfer_first, td);
sys/dev/usb/controller/xhci.c
2611
xhci_configure_endpoint_by_xfer(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
2617
pepext = xhci_get_endpoint_ext(xfer->xroot->udev,
sys/dev/usb/controller/xhci.c
2618
xfer->endpoint->edesc);
sys/dev/usb/controller/xhci.c
2620
ecomp = xfer->endpoint->ecomp;
sys/dev/usb/controller/xhci.c
2645
return (xhci_configure_endpoint(xfer->xroot->udev,
sys/dev/usb/controller/xhci.c
2646
xfer->endpoint->edesc, pepext,
sys/dev/usb/controller/xhci.c
2647
xfer->interval, xfer->max_packet_count,
sys/dev/usb/controller/xhci.c
2649
usbd_xfer_get_fps_shift(xfer), xfer->max_packet_size,
sys/dev/usb/controller/xhci.c
2650
xfer->max_frame_size, xfer->endpoint->ep_mode));
sys/dev/usb/controller/xhci.c
2935
xhci_endpoint_doorbell(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
2937
struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/xhci.c
2941
epno = xfer->endpointno;
sys/dev/usb/controller/xhci.c
2942
if (xfer->flags_int.control_xfr)
sys/dev/usb/controller/xhci.c
2946
index = xfer->xroot->udev->controller_slot_id;
sys/dev/usb/controller/xhci.c
2948
if (xfer->xroot->udev->flags.self_suspended == 0) {
sys/dev/usb/controller/xhci.c
2950
epno | XHCI_DB_SID_SET(xfer->stream_id));
sys/dev/usb/controller/xhci.c
2955
xhci_transfer_remove(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/xhci.c
2959
if (xfer->flags_int.bandwidth_reclaimed) {
sys/dev/usb/controller/xhci.c
2960
xfer->flags_int.bandwidth_reclaimed = 0;
sys/dev/usb/controller/xhci.c
2962
pepext = xhci_get_endpoint_ext(xfer->xroot->udev,
sys/dev/usb/controller/xhci.c
2963
xfer->endpoint->edesc);
sys/dev/usb/controller/xhci.c
2965
pepext->trb_used[xfer->stream_id]--;
sys/dev/usb/controller/xhci.c
2967
pepext->xfer[xfer->qh_pos] = NULL;
sys/dev/usb/controller/xhci.c
2977
xhci_transfer_insert(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
2991
id = xfer->stream_id;
sys/dev/usb/controller/xhci.c
2994
if (xfer->flags_int.bandwidth_reclaimed) {
sys/dev/usb/controller/xhci.c
2999
pepext = xhci_get_endpoint_ext(xfer->xroot->udev,
sys/dev/usb/controller/xhci.c
3000
xfer->endpoint->edesc);
sys/dev/usb/controller/xhci.c
3002
td_first = xfer->td_transfer_first;
sys/dev/usb/controller/xhci.c
3003
td_last = xfer->td_transfer_last;
sys/dev/usb/controller/xhci.c
3006
switch (xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE) {
sys/dev/usb/controller/xhci.c
3024
if (xfer->flags_int.control_xfr != 0 &&
sys/dev/usb/controller/xhci.c
3025
pepext->trb_ep_maxp != xfer->endpoint->edesc->wMaxPacketSize[0]) {
sys/dev/usb/controller/xhci.c
3035
struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/xhci.c
3107
pepext->xfer[i] = xfer;
sys/dev/usb/controller/xhci.c
3109
xfer->qh_pos = i;
sys/dev/usb/controller/xhci.c
3111
xfer->flags_int.bandwidth_reclaimed = 1;
sys/dev/usb/controller/xhci.c
3113
xhci_endpoint_doorbell(xfer);
sys/dev/usb/controller/xhci.c
3150
xhci_device_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/controller/xhci.c
3153
xfer, xfer->endpoint, error);
sys/dev/usb/controller/xhci.c
3156
xhci_transfer_remove(xfer, error);
sys/dev/usb/controller/xhci.c
3159
usbd_transfer_done(xfer, error);
sys/dev/usb/controller/xhci.c
3166
xhci_device_generic_open(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
3172
xhci_device_generic_close(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
3176
xhci_device_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/controller/xhci.c
3183
struct usb_xfer *xfer;
sys/dev/usb/controller/xhci.c
3186
xfer = ep->endpoint_q[stream_id].curr;
sys/dev/usb/controller/xhci.c
3187
if (xfer == NULL)
sys/dev/usb/controller/xhci.c
3195
if (!xfer->flags_int.bandwidth_reclaimed)
sys/dev/usb/controller/xhci.c
3198
xfer = TAILQ_FIRST(&ep->endpoint_q[stream_id].head);
sys/dev/usb/controller/xhci.c
3199
if (xfer == NULL) {
sys/dev/usb/controller/xhci.c
3205
xfer = enter_xfer;
sys/dev/usb/controller/xhci.c
3207
if (xfer == NULL)
sys/dev/usb/controller/xhci.c
3212
xhci_transfer_insert(xfer);
sys/dev/usb/controller/xhci.c
3216
xhci_device_generic_enter(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
3221
xhci_setup_generic_chain(xfer);
sys/dev/usb/controller/xhci.c
3223
xhci_device_generic_multi_enter(xfer->endpoint,
sys/dev/usb/controller/xhci.c
3224
xfer->stream_id, xfer);
sys/dev/usb/controller/xhci.c
3228
xhci_device_generic_start(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
3233
xhci_transfer_insert(xfer);
sys/dev/usb/controller/xhci.c
3236
xhci_device_generic_multi_enter(xfer->endpoint,
sys/dev/usb/controller/xhci.c
3237
xfer->stream_id, NULL);
sys/dev/usb/controller/xhci.c
3240
usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer);
sys/dev/usb/controller/xhci.c
3243
if (xfer->timeout != 0)
sys/dev/usb/controller/xhci.c
3244
usbd_transfer_timeout_ms(xfer, &xhci_timeout, xfer->timeout);
sys/dev/usb/controller/xhci.c
3785
struct usb_xfer *xfer;
sys/dev/usb/controller/xhci.c
3790
xfer = parm->curr_xfer;
sys/dev/usb/controller/xhci.c
3824
xfer->flags_int.bdma_enable = 1;
sys/dev/usb/controller/xhci.c
3828
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/controller/xhci.c
3829
ntd = ((1 * xfer->nframes)
sys/dev/usb/controller/xhci.c
3830
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/xhci.c
3831
} else if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/xhci.c
3832
ntd = ((2 * xfer->nframes) + 1 /* STATUS */
sys/dev/usb/controller/xhci.c
3833
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/xhci.c
3835
ntd = ((2 * xfer->nframes)
sys/dev/usb/controller/xhci.c
3836
+ (xfer->max_data_length / xfer->max_hc_frame_size));
sys/dev/usb/controller/xhci.c
3873
xfer->td_start[xfer->flags_int.curr_dma_set] = last_obj;
sys/dev/usb/controller/xhci.c
3875
if (!xfer->flags_int.curr_dma_set) {
sys/dev/usb/controller/xhci.c
3876
xfer->flags_int.curr_dma_set = 1;
sys/dev/usb/controller/xhci.c
3905
xhci_configure_reset_endpoint(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
3907
struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/xhci.c
3920
pepext = xhci_get_endpoint_ext(xfer->xroot->udev,
sys/dev/usb/controller/xhci.c
3921
xfer->endpoint->edesc);
sys/dev/usb/controller/xhci.c
3923
udev = xfer->xroot->udev;
sys/dev/usb/controller/xhci.c
3930
edesc = xfer->endpoint->edesc;
sys/dev/usb/controller/xhci.c
3933
stream_id = xfer->stream_id;
sys/dev/usb/controller/xhci.c
3947
err = xhci_configure_endpoint_by_xfer(xfer);
sys/dev/usb/controller/xhci.c
4041
xhci_xfer_unsetup(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
4047
xhci_start_dma_delay(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
4049
struct xhci_softc *sc = XHCI_BUS2SC(xfer->xroot->bus);
sys/dev/usb/controller/xhci.c
4052
usbd_transfer_enqueue(&sc->sc_bus.intr_q, xfer);
sys/dev/usb/controller/xhci.c
4063
struct usb_xfer *xfer;
sys/dev/usb/controller/xhci.c
4068
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/xhci.c
4069
pepext = xhci_get_endpoint_ext(xfer->xroot->udev,
sys/dev/usb/controller/xhci.c
4070
xfer->endpoint->edesc);
sys/dev/usb/controller/xhci.c
4090
if (pepext->xfer[i] != NULL) {
sys/dev/usb/controller/xhci.c
4091
xhci_device_done(pepext->xfer[i],
sys/dev/usb/controller/xhci.c
4103
xhci_configure_reset_endpoint(xfer);
sys/dev/usb/controller/xhci.c
4116
if (xfer->flags_int.did_dma_delay) {
sys/dev/usb/controller/xhci.c
4118
usbd_transfer_dequeue(xfer);
sys/dev/usb/controller/xhci.c
4121
usb_dma_delay_done_cb(xfer);
sys/dev/usb/controller/xhci.c
4128
TAILQ_FOREACH(xfer, &sc->sc_bus.intr_q.head, wait_entry) {
sys/dev/usb/controller/xhci.c
4130
xhci_transfer_insert(xfer);
sys/dev/usb/controller/xhci.c
4133
xhci_device_generic_multi_enter(xfer->endpoint,
sys/dev/usb/controller/xhci.c
4134
xfer->stream_id, NULL);
sys/dev/usb/controller/xhci.c
745
xhci_generic_done_sub(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
752
td = xfer->td_transfer_cache;
sys/dev/usb/controller/xhci.c
755
if (xfer->aframes != xfer->nframes)
sys/dev/usb/controller/xhci.c
756
usbd_xfer_set_frame_len(xfer, xfer->aframes, 0);
sys/dev/usb/controller/xhci.c
765
xfer, (unsigned)xfer->aframes,
sys/dev/usb/controller/xhci.c
766
(unsigned)xfer->nframes,
sys/dev/usb/controller/xhci.c
779
} else if (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/xhci.c
780
xfer->frlengths[xfer->aframes] += td->len - len;
sys/dev/usb/controller/xhci.c
783
if (((void *)td) == xfer->td_transfer_last) {
sys/dev/usb/controller/xhci.c
796
if (xfer->flags_int.short_frames_ok ||
sys/dev/usb/controller/xhci.c
797
xfer->flags_int.isochronous_xfr ||
sys/dev/usb/controller/xhci.c
798
xfer->flags_int.control_xfr) {
sys/dev/usb/controller/xhci.c
817
xfer->td_transfer_cache = td;
sys/dev/usb/controller/xhci.c
826
xhci_generic_done(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
831
xfer, xfer->endpoint);
sys/dev/usb/controller/xhci.c
835
xfer->td_transfer_cache = xfer->td_transfer_first;
sys/dev/usb/controller/xhci.c
837
if (xfer->flags_int.control_xfr) {
sys/dev/usb/controller/xhci.c
838
if (xfer->flags_int.control_hdr)
sys/dev/usb/controller/xhci.c
839
err = xhci_generic_done_sub(xfer);
sys/dev/usb/controller/xhci.c
841
xfer->aframes = 1;
sys/dev/usb/controller/xhci.c
843
if (xfer->td_transfer_cache == NULL)
sys/dev/usb/controller/xhci.c
847
while (xfer->aframes != xfer->nframes) {
sys/dev/usb/controller/xhci.c
848
err = xhci_generic_done_sub(xfer);
sys/dev/usb/controller/xhci.c
849
xfer->aframes++;
sys/dev/usb/controller/xhci.c
851
if (xfer->td_transfer_cache == NULL)
sys/dev/usb/controller/xhci.c
855
if (xfer->flags_int.control_xfr &&
sys/dev/usb/controller/xhci.c
856
!xfer->flags_int.control_act)
sys/dev/usb/controller/xhci.c
857
err = xhci_generic_done_sub(xfer);
sys/dev/usb/controller/xhci.c
860
xhci_device_done(xfer, err);
sys/dev/usb/controller/xhci.c
864
xhci_activate_transfer(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
868
td = xfer->td_transfer_cache;
sys/dev/usb/controller/xhci.c
878
xhci_endpoint_doorbell(xfer);
sys/dev/usb/controller/xhci.c
883
xhci_skip_transfer(struct usb_xfer *xfer)
sys/dev/usb/controller/xhci.c
888
td = xfer->td_transfer_cache;
sys/dev/usb/controller/xhci.c
889
td_last = xfer->td_transfer_last;
sys/dev/usb/controller/xhci.c
907
xhci_endpoint_doorbell(xfer);
sys/dev/usb/controller/xhci.c
961
struct usb_xfer *xfer;
sys/dev/usb/controller/xhci.c
973
xfer = pepext->xfer[i + (XHCI_MAX_TRANSFERS * stream_id)];
sys/dev/usb/controller/xhci.c
974
if (xfer == NULL)
sys/dev/usb/controller/xhci.c
977
td = xfer->td_transfer_cache;
sys/dev/usb/controller/xhci.h
415
struct usb_xfer *xfer[XHCI_MAX_TRANSFERS * XHCI_MAX_STREAMS];
sys/dev/usb/gadget/g_audio.c
424
g_audio_isoc_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/gadget/g_audio.c
426
struct g_audio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/gadget/g_audio.c
429
int nr = (xfer == sc->sc_xfer[G_AUDIO_ISOC0_WR]) ? 0 : 1;
sys/dev/usb/gadget/g_audio.c
433
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/gadget/g_audio.c
436
USB_GET_STATE(xfer), aframes, actlen);
sys/dev/usb/gadget/g_audio.c
438
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/gadget/g_audio.c
453
usbd_xfer_set_frame_data(xfer, i, ptr, sc->sc_data_len[nr][i]);
sys/dev/usb/gadget/g_audio.c
461
usbd_xfer_set_frame_data(xfer, i, ptr, sc->sc_data_len[nr][i] & ~3);
sys/dev/usb/gadget/g_audio.c
475
usbd_xfer_set_stall(xfer);
sys/dev/usb/gadget/g_audio.c
483
g_audio_isoc_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/gadget/g_audio.c
485
struct g_audio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/gadget/g_audio.c
488
int nr = (xfer == sc->sc_xfer[G_AUDIO_ISOC0_RD]) ? 0 : 1;
sys/dev/usb/gadget/g_audio.c
492
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/gadget/g_audio.c
495
USB_GET_STATE(xfer), aframes, actlen);
sys/dev/usb/gadget/g_audio.c
497
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/gadget/g_audio.c
503
sc->sc_data_len[nr][i] = usbd_xfer_frame_len(xfer, i);
sys/dev/usb/gadget/g_audio.c
516
usbd_xfer_set_frame_data(xfer, i, ptr,
sys/dev/usb/gadget/g_audio.c
522
usbd_transfer_submit(xfer);
sys/dev/usb/gadget/g_audio.c
530
usbd_xfer_set_stall(xfer);
sys/dev/usb/gadget/g_keyboard.c
303
g_keyboard_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/gadget/g_keyboard.c
305
struct g_keyboard_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/gadget/g_keyboard.c
309
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/gadget/g_keyboard.c
312
USB_GET_STATE(xfer), aframes, actlen);
sys/dev/usb/gadget/g_keyboard.c
314
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/gadget/g_keyboard.c
322
usbd_xfer_set_frame_data(xfer, 0, &sc->sc_data[0], sizeof(sc->sc_data[0]));
sys/dev/usb/gadget/g_keyboard.c
323
usbd_xfer_set_frame_data(xfer, 1, &sc->sc_data[1], sizeof(sc->sc_data[1]));
sys/dev/usb/gadget/g_keyboard.c
324
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/gadget/g_keyboard.c
325
usbd_transfer_submit(xfer);
sys/dev/usb/gadget/g_keyboard.c
356
usbd_xfer_set_frame_data(xfer, 0, &sc->sc_data[0], sizeof(sc->sc_data[0]));
sys/dev/usb/gadget/g_keyboard.c
357
usbd_xfer_set_frame_data(xfer, 1, &sc->sc_data[1], sizeof(sc->sc_data[1]));
sys/dev/usb/gadget/g_keyboard.c
358
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/gadget/g_keyboard.c
359
usbd_transfer_submit(xfer);
sys/dev/usb/gadget/g_keyboard.c
368
usbd_xfer_set_stall(xfer);
sys/dev/usb/gadget/g_modem.c
339
g_modem_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/gadget/g_modem.c
344
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/gadget/g_modem.c
347
USB_GET_STATE(xfer), aframes, actlen);
sys/dev/usb/gadget/g_modem.c
349
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/gadget/g_modem.c
362
usbd_xfer_set_stall(xfer);
sys/dev/usb/gadget/g_modem.c
370
g_modem_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/gadget/g_modem.c
372
struct g_modem_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/gadget/g_modem.c
379
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/gadget/g_modem.c
382
USB_GET_STATE(xfer), aframes, actlen);
sys/dev/usb/gadget/g_modem.c
384
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/gadget/g_modem.c
412
usbd_xfer_set_frame_data(xfer, 0, sc->sc_data_buf, max);
sys/dev/usb/gadget/g_modem.c
413
usbd_xfer_set_interval(xfer, 0);
sys/dev/usb/gadget/g_modem.c
414
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/gadget/g_modem.c
415
usbd_transfer_submit(xfer);
sys/dev/usb/gadget/g_modem.c
428
usbd_xfer_set_frame_data(xfer, 0, sc->sc_data_buf, sc->sc_data_len);
sys/dev/usb/gadget/g_modem.c
429
usbd_xfer_set_interval(xfer, x);
sys/dev/usb/gadget/g_modem.c
430
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/gadget/g_modem.c
431
usbd_transfer_submit(xfer);
sys/dev/usb/gadget/g_modem.c
442
usbd_xfer_set_stall(xfer);
sys/dev/usb/gadget/g_modem.c
450
g_modem_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/gadget/g_modem.c
452
struct g_modem_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/gadget/g_modem.c
456
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/gadget/g_modem.c
459
USB_GET_STATE(xfer), aframes, actlen);
sys/dev/usb/gadget/g_modem.c
461
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/gadget/g_modem.c
479
usbd_xfer_set_frame_data(xfer, 0, sc->sc_data_buf, G_MODEM_BUFSIZE);
sys/dev/usb/gadget/g_modem.c
480
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/gadget/g_modem.c
481
usbd_transfer_submit(xfer);
sys/dev/usb/gadget/g_modem.c
489
usbd_xfer_set_stall(xfer);
sys/dev/usb/gadget/g_mouse.c
334
g_mouse_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/gadget/g_mouse.c
336
struct g_mouse_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/gadget/g_mouse.c
343
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/gadget/g_mouse.c
346
USB_GET_STATE(xfer), aframes, actlen);
sys/dev/usb/gadget/g_mouse.c
348
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/gadget/g_mouse.c
419
usbd_xfer_set_frame_data(xfer, 0, &sc->sc_data, sizeof(sc->sc_data));
sys/dev/usb/gadget/g_mouse.c
420
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/gadget/g_mouse.c
421
usbd_transfer_submit(xfer);
sys/dev/usb/gadget/g_mouse.c
429
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/atp.c
2319
atp_intr(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/atp.c
2321
struct atp_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/atp.c
2325
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/input/atp.c
2327
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/atp.c
2329
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/atp.c
2410
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/input/atp.c
2412
usbd_transfer_submit(xfer);
sys/dev/usb/input/atp.c
2419
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/atp.c
917
atp_reset_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/atp.c
921
struct atp_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/atp.c
929
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/atp.c
939
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/atp.c
941
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/input/atp.c
944
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/input/atp.c
945
usbd_xfer_set_frame_len(xfer, 1, MODE_LENGTH);
sys/dev/usb/input/atp.c
946
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/input/atp.c
947
usbd_transfer_submit(xfer);
sys/dev/usb/input/uep.c
228
uep_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/uep.c
230
struct uep_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/uep.c
233
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/input/uep.c
235
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/uep.c
247
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/uep.c
304
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/input/uep.c
305
usbd_transfer_submit(xfer);
sys/dev/usb/input/uep.c
311
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/uep.c
362
sc->xfer, uep_config, UEP_N_TRANSFER, sc, &sc->mtx);
sys/dev/usb/input/uep.c
422
usbd_transfer_unsetup(sc->xfer, UEP_N_TRANSFER);
sys/dev/usb/input/uep.c
437
usbd_transfer_stop(sc->xfer[UEP_INTR_DT]);
sys/dev/usb/input/uep.c
448
usbd_transfer_start(sc->xfer[UEP_INTR_DT]);
sys/dev/usb/input/uep.c
464
if (rate > 0 && sc->xfer[UEP_INTR_DT] != NULL) {
sys/dev/usb/input/uep.c
465
usbd_transfer_stop(sc->xfer[UEP_INTR_DT]);
sys/dev/usb/input/uep.c
466
usbd_xfer_set_interval(sc->xfer[UEP_INTR_DT], 1000 / rate);
sys/dev/usb/input/uep.c
470
usbd_transfer_start(sc->xfer[UEP_INTR_DT]);
sys/dev/usb/input/uep.c
478
usbd_transfer_stop(sc->xfer[UEP_INTR_DT]);
sys/dev/usb/input/uep.c
97
struct usb_xfer *xfer[UEP_N_TRANSFER];
sys/dev/usb/input/uhid.c
162
uhid_intr_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/uhid.c
164
struct uhid_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/uhid.c
168
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/uhid.c
172
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/uhid.c
174
0, usbd_xfer_max_len(xfer), &actlen, 0)) {
sys/dev/usb/input/uhid.c
175
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/input/uhid.c
176
usbd_transfer_submit(xfer);
sys/dev/usb/input/uhid.c
183
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/uhid.c
191
uhid_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/uhid.c
193
struct uhid_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/uhid.c
197
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/input/uhid.c
199
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/uhid.c
203
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/uhid.c
231
usbd_xfer_set_frame_len(xfer, 0, sc->sc_isize);
sys/dev/usb/input/uhid.c
232
usbd_transfer_submit(xfer);
sys/dev/usb/input/uhid.c
239
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/uhid.c
271
uhid_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/uhid.c
273
struct uhid_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/uhid.c
280
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/uhid.c
285
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/uhid.c
303
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/input/uhid.c
313
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/uhid.c
316
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/input/uhid.c
317
usbd_xfer_set_frame_len(xfer, 1, size);
sys/dev/usb/input/uhid.c
318
usbd_xfer_set_frames(xfer, size ? 2 : 1);
sys/dev/usb/input/uhid.c
319
usbd_transfer_submit(xfer);
sys/dev/usb/input/uhid.c
332
uhid_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/uhid.c
334
struct uhid_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/uhid.c
338
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/uhid.c
340
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/uhid.c
355
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/input/uhid.c
356
usbd_xfer_set_frame_len(xfer, 1, sc->sc_isize);
sys/dev/usb/input/uhid.c
357
usbd_xfer_set_frames(xfer, sc->sc_isize ? 2 : 1);
sys/dev/usb/input/uhid.c
358
usbd_transfer_submit(xfer);
sys/dev/usb/input/ukbd.c
1006
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/input/ukbd.c
1013
usbd_xfer_set_frame_len(xfer, 1, len);
sys/dev/usb/input/ukbd.c
1026
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/ukbd.c
1028
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/input/ukbd.c
1031
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/input/ukbd.c
1032
usbd_transfer_submit(xfer);
sys/dev/usb/input/ukbd.c
764
ukbd_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/ukbd.c
766
struct ukbd_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/ukbd.c
776
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/input/ukbd.c
777
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/ukbd.c
779
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/ukbd.c
917
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/input/ukbd.c
918
usbd_transfer_submit(xfer);
sys/dev/usb/input/ukbd.c
929
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/ukbd.c
937
ukbd_set_leds_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/ukbd.c
939
struct ukbd_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/ukbd.c
953
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/ums.c
218
ums_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/ums.c
220
struct ums_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/ums.c
238
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/input/ums.c
240
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/ums.c
252
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/ums.c
389
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/input/ums.c
390
usbd_transfer_submit(xfer);
sys/dev/usb/input/ums.c
396
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/usbhid.c
152
usbhid_intr_out_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/usbhid.c
154
struct usbhid_xfer_ctx *xfer_ctx = usbd_xfer_softc(xfer);
sys/dev/usb/input/usbhid.c
158
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/usbhid.c
168
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/usbhid.c
170
usbd_xfer_set_frame_len(xfer, 0, len);
sys/dev/usb/input/usbhid.c
171
usbd_transfer_submit(xfer);
sys/dev/usb/input/usbhid.c
181
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/usbhid.c
192
usbhid_intr_in_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/usbhid.c
194
struct usbhid_xfer_ctx *xfer_ctx = usbd_xfer_softc(xfer);
sys/dev/usb/input/usbhid.c
198
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/usbhid.c
202
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/input/usbhid.c
203
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/usbhid.c
211
usbd_xfer_set_frame_len(xfer, 0, xfer_ctx->req.intr.maxlen);
sys/dev/usb/input/usbhid.c
212
usbd_transfer_submit(xfer);
sys/dev/usb/input/usbhid.c
218
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/usbhid.c
226
usbhid_ctrl_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/usbhid.c
228
struct usbhid_xfer_ctx *xfer_ctx = usbd_xfer_softc(xfer);
sys/dev/usb/input/usbhid.c
234
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/usbhid.c
237
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/input/usbhid.c
241
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/usbhid.c
243
usbd_xfer_set_frame_len(xfer, 0, sizeof(*req));
sys/dev/usb/input/usbhid.c
245
usbd_xfer_set_frame_len(xfer, 1, len);
sys/dev/usb/input/usbhid.c
246
usbd_xfer_set_frames(xfer, len != 0 ? 2 : 1);
sys/dev/usb/input/usbhid.c
247
usbd_transfer_submit(xfer);
sys/dev/usb/input/usbhid.c
252
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/usbhid.c
316
usbhid_xfer_max_len(struct usb_xfer *xfer)
sys/dev/usb/input/usbhid.c
318
return (xfer == NULL ? 0 : usbd_xfer_max_len(xfer));
sys/dev/usb/input/usbhid.c
89
#define POLL_XFER(xfer) ((xfer) + USBHID_N_TRANSFER)
sys/dev/usb/input/wmt.c
217
struct usb_xfer *xfer[WMT_N_TRANSFER];
sys/dev/usb/input/wmt.c
399
sc->xfer, wmt_config, WMT_N_TRANSFER, sc, &sc->mtx);
sys/dev/usb/input/wmt.c
484
usbd_transfer_unsetup(sc->xfer, WMT_N_TRANSFER);
sys/dev/usb/input/wmt.c
631
wmt_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/wmt.c
633
struct wmt_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/wmt.c
638
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/input/wmt.c
640
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/wmt.c
642
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/input/wmt.c
676
usbd_xfer_set_frame_len(xfer, 0, sc->isize);
sys/dev/usb/input/wmt.c
677
usbd_transfer_submit(xfer);
sys/dev/usb/input/wmt.c
682
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/wmt.c
695
usbd_transfer_stop(sc->xfer[WMT_INTR_DT]);
sys/dev/usb/input/wmt.c
704
usbd_transfer_start(sc->xfer[WMT_INTR_DT]);
sys/dev/usb/input/wsp.c
1371
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/input/wsp.c
1373
usbd_transfer_submit(xfer);
sys/dev/usb/input/wsp.c
1380
usbd_xfer_set_stall(xfer);
sys/dev/usb/input/wsp.c
962
wsp_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/input/wsp.c
964
struct wsp_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/input/wsp.c
988
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/input/wsp.c
990
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/input/wsp.c
994
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/cp2112.c
737
cp2112iic_intr_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/misc/cp2112.c
742
sc = usbd_xfer_softc(xfer);
sys/dev/usb/misc/cp2112.c
746
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/misc/cp2112.c
748
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/cp2112.c
750
usbd_xfer_set_frame_len(xfer, 0, sc->io.out.len);
sys/dev/usb/misc/cp2112.c
751
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/misc/cp2112.c
752
usbd_transfer_submit(xfer);
sys/dev/usb/misc/cp2112.c
761
USB_GET_STATE(xfer), error);
sys/dev/usb/misc/cp2112.c
766
usbd_xfer_set_stall(xfer);
sys/dev/usb/misc/cp2112.c
773
cp2112iic_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/misc/cp2112.c
775
struct cp2112iic_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/misc/cp2112.c
780
usbd_xfer_status(xfer, &act_len, NULL, NULL, NULL);
sys/dev/usb/misc/cp2112.c
782
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/misc/cp2112.c
800
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/cp2112.c
807
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/cp2112.c
818
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/cp2112.c
831
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/misc/cp2112.c
832
usbd_transfer_submit(xfer);
sys/dev/usb/misc/cp2112.c
837
USB_GET_STATE(xfer), error);
sys/dev/usb/misc/cp2112.c
844
usbd_xfer_set_stall(xfer);
sys/dev/usb/misc/udbp.c
399
udbp_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/misc/udbp.c
401
struct udbp_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/misc/udbp.c
406
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/misc/udbp.c
408
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/misc/udbp.c
425
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/udbp.c
442
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/misc/udbp.c
443
usbd_transfer_submit(xfer);
sys/dev/usb/misc/udbp.c
457
udbp_bulk_read_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/misc/udbp.c
459
struct udbp_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/misc/udbp.c
462
if (usbd_clear_stall_callback(xfer, xfer_other)) {
sys/dev/usb/misc/udbp.c
509
udbp_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/misc/udbp.c
511
struct udbp_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/misc/udbp.c
515
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/misc/udbp.c
541
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/udbp.c
544
usbd_xfer_set_frame_len(xfer, 0, m->m_pkthdr.len);
sys/dev/usb/misc/udbp.c
550
usbd_transfer_submit(xfer);
sys/dev/usb/misc/udbp.c
564
udbp_bulk_write_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/misc/udbp.c
566
struct udbp_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/misc/udbp.c
569
if (usbd_clear_stall_callback(xfer, xfer_other)) {
sys/dev/usb/misc/ugold.c
317
ugold_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/misc/ugold.c
319
struct ugold_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/misc/ugold.c
325
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/misc/ugold.c
327
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/misc/ugold.c
331
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/misc/ugold.c
367
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/misc/ugold.c
368
usbd_transfer_submit(xfer);
sys/dev/usb/misc/ugold.c
373
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_aue.c
737
aue_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_aue.c
739
struct aue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_aue.c
745
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_aue.c
747
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_aue.c
752
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_aue.c
764
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_aue.c
765
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_aue.c
771
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_aue.c
779
aue_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_aue.c
781
struct aue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_aue.c
788
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_aue.c
789
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_aue.c
791
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_aue.c
825
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_aue.c
826
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_aue.c
836
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_aue.c
844
aue_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_aue.c
846
struct aue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_aue.c
853
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_aue.c
854
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_aue.c
856
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_aue.c
877
usbd_xfer_set_frame_len(xfer, 0, m->m_pkthdr.len);
sys/dev/usb/net/if_aue.c
882
usbd_xfer_set_frame_len(xfer, 0, (m->m_pkthdr.len + 2));
sys/dev/usb/net/if_aue.c
907
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_aue.c
918
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_axe.c
1005
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_axe.c
1006
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_axe.c
1015
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_axe.c
1152
axe_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_axe.c
1154
struct axe_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_axe.c
1161
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_axe.c
1182
usbd_xfer_set_frame_offset(xfer, nframes * MCLBYTES,
sys/dev/usb/net/if_axe.c
1185
pc = usbd_xfer_get_frame(xfer, nframes);
sys/dev/usb/net/if_axe.c
1240
usbd_xfer_set_frame_len(xfer, nframes, pos);
sys/dev/usb/net/if_axe.c
1243
usbd_xfer_set_frames(xfer, nframes);
sys/dev/usb/net/if_axe.c
1244
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_axe.c
1258
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_axe.c
988
axe_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_axe.c
990
struct axe_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_axe.c
995
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_axe.c
997
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_axe.c
999
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_axge.c
640
axge_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_axge.c
647
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_axge.c
649
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_axge.c
651
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_axge.c
653
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_axge.c
659
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_axge.c
660
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_axge.c
666
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_axge.c
674
axge_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_axge.c
683
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_axge.c
686
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_axge.c
706
usbd_xfer_set_frame_offset(xfer, nframes * MCLBYTES,
sys/dev/usb/net/if_axge.c
708
pc = usbd_xfer_get_frame(xfer, nframes);
sys/dev/usb/net/if_axge.c
730
usbd_xfer_set_frame_len(xfer, nframes, pos);
sys/dev/usb/net/if_axge.c
743
usbd_xfer_set_frames(xfer, nframes);
sys/dev/usb/net/if_axge.c
744
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_axge.c
754
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdce.c
1083
cdce_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cdce.c
1085
struct cdce_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdce.c
1092
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_cdce.c
1094
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdce.c
1102
len = usbd_xfer_frame_len(xfer, x);
sys/dev/usb/net/if_cdce.c
1132
usbd_xfer_set_frame_data(xfer, x, m->m_data, m->m_len);
sys/dev/usb/net/if_cdce.c
1135
usbd_xfer_set_frames(xfer, x);
sys/dev/usb/net/if_cdce.c
1136
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1149
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdce.c
1150
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/net/if_cdce.c
1151
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1163
cdce_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cdce.c
1173
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdce.c
1175
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdce.c
1177
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_cdce.c
1179
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdce.c
1232
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_cdce.c
1233
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1240
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdce.c
1248
cdce_intr_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cdce.c
1250
struct cdce_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdce.c
1256
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_cdce.c
1258
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdce.c
1290
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdce.c
1292
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/net/if_cdce.c
1293
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_cdce.c
1294
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1313
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdce.c
1315
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/net/if_cdce.c
1316
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_cdce.c
1317
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1325
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdce.c
1375
cdce_ncm_fill_tx_frames(struct usb_xfer *xfer, uint8_t index)
sys/dev/usb/net/if_cdce.c
1377
struct cdce_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdce.c
1379
struct usb_page_cache *pc = usbd_xfer_get_frame(xfer, index);
sys/dev/usb/net/if_cdce.c
1387
usbd_xfer_set_frame_offset(xfer, index * CDCE_NCM_TX_MAXLEN, index);
sys/dev/usb/net/if_cdce.c
1497
usbd_xfer_set_frame_len(xfer, index, offset);
sys/dev/usb/net/if_cdce.c
1527
cdce_ncm_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cdce.c
1529
struct cdce_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdce.c
1536
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdce.c
1539
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_cdce.c
1546
temp = cdce_ncm_fill_tx_frames(xfer, x);
sys/dev/usb/net/if_cdce.c
1557
usbd_xfer_set_interval(xfer, cdce_tx_interval);
sys/dev/usb/net/if_cdce.c
1559
usbd_xfer_set_frames(xfer, x);
sys/dev/usb/net/if_cdce.c
1560
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1574
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdce.c
1575
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/net/if_cdce.c
1576
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1584
cdce_ncm_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cdce.c
1586
struct cdce_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdce.c
1587
struct usb_page_cache *pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdce.c
1599
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdce.c
1602
usbd_xfer_status(xfer, &actlen, &sumlen, &aframes, NULL);
sys/dev/usb/net/if_cdce.c
1723
usbd_xfer_set_frame_len(xfer, 0, sc->sc_ncm.rx_max);
sys/dev/usb/net/if_cdce.c
1724
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_cdce.c
1725
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
1737
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdce.c
1738
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/net/if_cdce.c
1739
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
864
cdce_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cdce.c
866
struct cdce_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdce.c
874
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_cdce.c
878
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdce.c
925
usbd_xfer_set_frame_data(xfer, x, m->m_data, m->m_len);
sys/dev/usb/net/if_cdce.c
934
usbd_xfer_set_frames(xfer, x);
sys/dev/usb/net/if_cdce.c
936
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdce.c
953
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdceem.c
317
cdceem_handle_cmd(struct usb_xfer *xfer, uint16_t hdr, int *offp)
sys/dev/usb/net/if_cdceem.c
325
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdceem.c
326
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdceem.c
327
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_cdceem.c
418
cdceem_handle_data(struct usb_xfer *xfer, uint16_t hdr, int *offp)
sys/dev/usb/net/if_cdceem.c
431
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdceem.c
432
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdceem.c
435
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_cdceem.c
502
cdceem_bulk_read_callback(struct usb_xfer *xfer, usb_error_t usb_error)
sys/dev/usb/net/if_cdceem.c
509
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdceem.c
510
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_cdceem.c
512
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdceem.c
517
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdceem.c
533
cdceem_handle_cmd(xfer, hdr, &off);
sys/dev/usb/net/if_cdceem.c
535
cdceem_handle_data(xfer, hdr, &off);
sys/dev/usb/net/if_cdceem.c
547
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_cdceem.c
548
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdceem.c
557
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cdceem.c
565
cdceem_send_echo(struct usb_xfer *xfer, int *offp)
sys/dev/usb/net/if_cdceem.c
573
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdceem.c
574
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdceem.c
575
maxlen = usbd_xfer_max_len(xfer);
sys/dev/usb/net/if_cdceem.c
604
cdceem_send_echo_response(struct usb_xfer *xfer, int *offp)
sys/dev/usb/net/if_cdceem.c
612
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdceem.c
613
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdceem.c
614
maxlen = usbd_xfer_max_len(xfer);
sys/dev/usb/net/if_cdceem.c
642
cdceem_send_data(struct usb_xfer *xfer, int *offp)
sys/dev/usb/net/if_cdceem.c
653
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdceem.c
654
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cdceem.c
656
maxlen = usbd_xfer_max_len(xfer);
sys/dev/usb/net/if_cdceem.c
708
cdceem_bulk_write_callback(struct usb_xfer *xfer, usb_error_t usb_error)
sys/dev/usb/net/if_cdceem.c
714
sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cdceem.c
715
maxlen = usbd_xfer_max_len(xfer);
sys/dev/usb/net/if_cdceem.c
717
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cdceem.c
719
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_cdceem.c
729
usbd_xfer_set_frame_offset(xfer, 0, 0);
sys/dev/usb/net/if_cdceem.c
732
cdceem_send_echo(xfer, &off);
sys/dev/usb/net/if_cdceem.c
734
cdceem_send_echo_response(xfer, &off);
sys/dev/usb/net/if_cdceem.c
736
cdceem_send_data(xfer, &off);
sys/dev/usb/net/if_cdceem.c
745
usbd_xfer_set_frame_len(xfer, 0, off);
sys/dev/usb/net/if_cdceem.c
746
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cdceem.c
761
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cue.c
450
cue_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cue.c
452
struct cue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cue.c
460
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_cue.c
462
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cue.c
469
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cue.c
479
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_cue.c
480
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cue.c
490
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_cue.c
498
cue_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_cue.c
500
struct cue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_cue.c
506
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_cue.c
520
usbd_xfer_set_frame_len(xfer, 0, (m->m_pkthdr.len + 2));
sys/dev/usb/net/if_cue.c
527
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_cue.c
539
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_cue.c
551
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_ipheth.c
437
ipheth_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_ipheth.c
439
struct ipheth_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_ipheth.c
447
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_ipheth.c
449
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_ipheth.c
467
usbd_xfer_set_frame_offset(xfer,
sys/dev/usb/net/if_ipheth.c
470
pc = usbd_xfer_get_frame(xfer, x);
sys/dev/usb/net/if_ipheth.c
479
usbd_xfer_set_frame_len(xfer, x, IPHETH_BUF_SIZE);
sys/dev/usb/net/if_ipheth.c
493
usbd_xfer_set_frames(xfer, x);
sys/dev/usb/net/if_ipheth.c
495
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_ipheth.c
511
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_ipheth.c
519
ipheth_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_ipheth.c
521
struct ipheth_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_ipheth.c
527
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_ipheth.c
529
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_ipheth.c
533
sc->consume(xfer, x);
sys/dev/usb/net/if_ipheth.c
551
usbd_xfer_set_frame_data(xfer, x, m->m_data, m->m_len);
sys/dev/usb/net/if_ipheth.c
553
usbd_xfer_set_frames(xfer, x);
sys/dev/usb/net/if_ipheth.c
555
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/net/if_ipheth.c
557
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_ipheth.c
560
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_ipheth.c
571
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_ipheth.c
572
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/net/if_ipheth.c
573
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_ipheth.c
583
ipheth_consume_read(struct usb_xfer *xfer, int x)
sys/dev/usb/net/if_ipheth.c
585
struct ipheth_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_ipheth.c
590
len = usbd_xfer_frame_len(xfer, x);
sys/dev/usb/net/if_ipheth.c
604
ipheth_consume_read_ncm(struct usb_xfer *xfer, int x)
sys/dev/usb/net/if_ipheth.c
606
struct ipheth_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_ipheth.c
607
struct usb_page_cache *pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_ipheth.c
614
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_iphethvar.h
71
typedef void (ipheth_consumer_t)(struct usb_xfer *xfer, int idx);
sys/dev/usb/net/if_kue.c
530
kue_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_kue.c
532
struct kue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_kue.c
540
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_kue.c
542
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_kue.c
549
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_kue.c
559
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_kue.c
560
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_kue.c
570
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_kue.c
578
kue_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_kue.c
580
struct kue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_kue.c
588
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_kue.c
610
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_kue.c
615
usbd_xfer_set_frame_len(xfer, 0, total_len);
sys/dev/usb/net/if_kue.c
625
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_kue.c
637
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_mos.c
169
static void mos_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error);
sys/dev/usb/net/if_mos.c
170
static void mos_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error);
sys/dev/usb/net/if_mos.c
171
static void mos_intr_callback(struct usb_xfer *xfer, usb_error_t error);
sys/dev/usb/net/if_mos.c
766
mos_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_mos.c
768
struct mos_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_mos.c
777
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_mos.c
778
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_mos.c
780
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_mos.c
819
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_mos.c
820
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_mos.c
826
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_mos.c
829
MOS_DPRINTFN("start rx %i", usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_mos.c
839
mos_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_mos.c
841
struct mos_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_mos.c
846
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_mos.c
860
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_mos.c
863
usbd_xfer_set_frame_len(xfer, 0, m->m_pkthdr.len);
sys/dev/usb/net/if_mos.c
873
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_mos.c
881
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_mos.c
960
mos_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_mos.c
962
struct mos_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_mos.c
970
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_mos.c
973
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_mos.c
976
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_mos.c
984
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_muge.c
1158
muge_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_muge.c
1160
struct muge_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_muge.c
1171
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_muge.c
1174
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_muge.c
1188
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_muge.c
1327
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_muge.c
1328
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_muge.c
1335
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_muge.c
1352
muge_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_muge.c
1354
struct muge_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_muge.c
1361
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_muge.c
1392
usbd_xfer_set_frame_offset(xfer, nframes * MCLBYTES,
sys/dev/usb/net/if_muge.c
1395
pc = usbd_xfer_get_frame(xfer, nframes);
sys/dev/usb/net/if_muge.c
1428
usbd_xfer_set_frame_len(xfer, nframes, frm_len);
sys/dev/usb/net/if_muge.c
1434
usbd_xfer_set_frames(xfer, nframes);
sys/dev/usb/net/if_muge.c
1435
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_muge.c
1447
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_rue.c
635
rue_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_rue.c
637
struct rue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_rue.c
643
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_rue.c
645
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_rue.c
650
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_rue.c
660
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_rue.c
661
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_rue.c
667
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_rue.c
675
rue_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_rue.c
677
struct rue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_rue.c
684
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_rue.c
686
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_rue.c
693
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_rue.c
707
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_rue.c
708
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_rue.c
718
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_rue.c
726
rue_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_rue.c
728
struct rue_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_rue.c
734
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_rue.c
756
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_rue.c
769
usbd_xfer_set_frame_len(xfer, 0, temp_len);
sys/dev/usb/net/if_rue.c
779
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_rue.c
791
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_smsc.c
1091
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_smsc.c
1092
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_smsc.c
1099
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_smsc.c
1118
smsc_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_smsc.c
1120
struct smsc_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_smsc.c
1128
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_smsc.c
1146
usbd_xfer_set_frame_offset(xfer, nframes * MCLBYTES,
sys/dev/usb/net/if_smsc.c
1149
pc = usbd_xfer_get_frame(xfer, nframes);
sys/dev/usb/net/if_smsc.c
1177
usbd_xfer_set_frame_len(xfer, nframes, frm_len);
sys/dev/usb/net/if_smsc.c
1180
usbd_xfer_set_frames(xfer, nframes);
sys/dev/usb/net/if_smsc.c
1181
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_smsc.c
1192
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_smsc.c
947
smsc_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_smsc.c
949
struct smsc_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_smsc.c
959
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_smsc.c
962
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_smsc.c
973
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_udav.c
575
udav_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_udav.c
577
struct udav_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_udav.c
585
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_udav.c
622
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_udav.c
636
usbd_xfer_set_frame_len(xfer, 0, temp_len);
sys/dev/usb/net/if_udav.c
637
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_udav.c
648
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_udav.c
656
udav_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_udav.c
658
struct udav_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_udav.c
666
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_udav.c
668
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_udav.c
675
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_udav.c
693
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_udav.c
694
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_udav.c
704
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_udav.c
712
udav_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_udav.c
714
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_udav.c
718
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_udav.c
719
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_udav.c
725
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_umb.c
1875
umb_rxeof(struct usb_xfer *xfer, usb_error_t status)
sys/dev/usb/net/if_umb.c
1877
struct umb_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_umb.c
1883
DPRINTF("%s(%u): state=%u\n", __func__, status, USB_GET_STATE(xfer));
sys/dev/usb/net/if_umb.c
1887
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_umb.c
1889
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_umb.c
1896
usbd_xfer_set_interval(xfer, 500);
sys/dev/usb/net/if_umb.c
1902
usbd_xfer_set_interval(xfer, 0);
sys/dev/usb/net/if_umb.c
1907
umb_decap(sc, xfer, i);
sys/dev/usb/net/if_umb.c
1912
usbd_xfer_set_frame_data(xfer, 0, sc->sc_rx_buf,
sys/dev/usb/net/if_umb.c
1914
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_umb.c
1915
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_umb.c
1923
usbd_xfer_set_interval(xfer, 0);
sys/dev/usb/net/if_umb.c
1927
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_umb.c
1928
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/net/if_umb.c
1929
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_umb.c
1969
umb_encap(struct umb_softc *sc, struct mbuf *m, struct usb_xfer *xfer)
sys/dev/usb/net/if_umb.c
2004
usbd_xfer_set_frame_data(xfer, 0, sc->sc_tx_buf, len);
sys/dev/usb/net/if_umb.c
2005
usbd_xfer_set_interval(xfer, 0);
sys/dev/usb/net/if_umb.c
2006
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_umb.c
2014
umb_txeof(struct usb_xfer *xfer, usb_error_t status)
sys/dev/usb/net/if_umb.c
2016
struct umb_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_umb.c
2020
DPRINTF("%s(%u) state=%u\n", __func__, status, USB_GET_STATE(xfer));
sys/dev/usb/net/if_umb.c
2024
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_umb.c
2041
if (umb_encap(sc, m, xfer)) {
sys/dev/usb/net/if_umb.c
2050
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_umb.c
2064
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_umb.c
2083
umb_decap(struct umb_softc *sc, struct usb_xfer *xfer, int frame)
sys/dev/usb/net/if_umb.c
2100
usbd_xfer_frame_data(xfer, frame, (void **)&buf, &len);
sys/dev/usb/net/if_umb.c
2785
umb_intr(struct usb_xfer *xfer, usb_error_t status)
sys/dev/usb/net/if_umb.c
2787
struct umb_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_umb.c
2796
usbd_xfer_status(xfer, &total_len, NULL, NULL, NULL);
sys/dev/usb/net/if_umb.c
2798
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_umb.c
2808
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_umb.c
2844
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_umb.c
2845
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_umb.c
2850
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_ure.c
710
ure_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_ure.c
712
struct ure_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_ure.c
722
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_ure.c
724
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_ure.c
727
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_ure.c
803
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_ure.c
804
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_ure.c
814
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_ure.c
822
ure_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_ure.c
824
struct ure_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_ure.c
834
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_ure.c
847
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_ure.c
925
usbd_xfer_set_frame_len(xfer, 0, pos);
sys/dev/usb/net/if_ure.c
927
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_ure.c
945
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_urndis.c
1008
usbd_xfer_set_frames(xfer, x);
sys/dev/usb/net/if_urndis.c
1009
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_urndis.c
1021
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_urndis.c
1029
urndis_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_urndis.c
1033
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_urndis.c
1035
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_urndis.c
1045
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_urndis.c
1046
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_urndis.c
1052
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_urndis.c
814
urndis_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_urndis.c
816
struct urndis_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_urndis.c
817
struct usb_page_cache *pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_urndis.c
825
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_urndis.c
827
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_urndis.c
923
usbd_xfer_set_frame_len(xfer, 0, RNDIS_RX_MAXLEN);
sys/dev/usb/net/if_urndis.c
924
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_urndis.c
925
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_urndis.c
934
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_urndis.c
935
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/net/if_urndis.c
936
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_urndis.c
943
urndis_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_urndis.c
946
struct urndis_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_urndis.c
953
usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
sys/dev/usb/net/if_urndis.c
957
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_urndis.c
969
struct usb_page_cache *pc = usbd_xfer_get_frame(xfer, x);
sys/dev/usb/net/if_urndis.c
971
usbd_xfer_set_frame_offset(xfer, x * RNDIS_TX_MAXLEN, x);
sys/dev/usb/net/if_urndis.c
996
usbd_xfer_set_frame_len(xfer, x, sizeof(msg) + m->m_pkthdr.len);
sys/dev/usb/net/if_usie.c
1004
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_usie.c
1016
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_usie.c
1017
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_usie.c
1025
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_usie.c
1385
struct usb_xfer *xfer;
sys/dev/usb/net/if_usie.c
1451
xfer = sc->sc_uc_xfer[USIE_HIP_IF][USIE_UC_TX];
sys/dev/usb/net/if_usie.c
1453
if (usbd_xfer_get_priv(xfer) == NULL) {
sys/dev/usb/net/if_usie.c
1454
usbd_xfer_set_priv(xfer, m);
sys/dev/usb/net/if_usie.c
1455
usbd_transfer_start(xfer);
sys/dev/usb/net/if_usie.c
613
usie_uc_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_usie.c
615
struct ucom_softc *ucom = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_usie.c
620
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_usie.c
622
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_usie.c
624
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_usie.c
653
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_usie.c
654
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_usie.c
659
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_usie.c
667
usie_uc_tx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_usie.c
669
struct ucom_softc *ucom = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_usie.c
673
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_usie.c
677
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_usie.c
680
struct mbuf *m = usbd_xfer_get_priv(xfer);
sys/dev/usb/net/if_usie.c
684
usbd_xfer_set_frame_len(xfer, 0, m->m_pkthdr.len);
sys/dev/usb/net/if_usie.c
685
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/net/if_usie.c
686
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_usie.c
692
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/net/if_usie.c
693
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_usie.c
699
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_usie.c
707
usie_uc_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_usie.c
717
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_usie.c
719
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_usie.c
727
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_usie.c
731
struct ucom_softc *ucom = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_usie.c
747
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/if_usie.c
748
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_usie.c
756
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_usie.c
764
usie_if_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_usie.c
767
struct usie_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_usie.c
781
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_usie.c
783
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_usie.c
805
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_usie.c
806
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/net/if_usie.c
813
usbd_xfer_set_frame_data(xfer, 0,
sys/dev/usb/net/if_usie.c
815
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/net/if_usie.c
817
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_usie.c
825
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_usie.c
922
usie_if_tx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_usie.c
924
struct usie_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_usie.c
930
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/if_usie.c
953
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/if_usie.c
961
usbd_xfer_set_frame_len(xfer, 0, m->m_pkthdr.len +
sys/dev/usb/net/if_usie.c
968
usbd_transfer_submit(xfer);
sys/dev/usb/net/if_usie.c
977
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/if_usie.c
986
usie_if_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/if_usie.c
988
struct usie_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/if_usie.c
993
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/if_usie.c
995
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1097
uhso_mux_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1101
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1104
UHSO_DPRINTF(3, "status %d\n", USB_GET_STATE(xfer));
sys/dev/usb/net/uhso.c
1106
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1112
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1134
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/uhso.c
1135
usbd_transfer_submit(xfer);
sys/dev/usb/net/uhso.c
1142
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/uhso.c
1148
uhso_mux_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1150
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1156
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/uhso.c
1158
UHSO_DPRINTF(3, "status %d\n", USB_GET_STATE(xfer));
sys/dev/usb/net/uhso.c
1160
ht = usbd_xfer_get_priv(xfer);
sys/dev/usb/net/uhso.c
1163
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1166
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/net/uhso.c
1167
len = usbd_xfer_frame_len(xfer, 1);
sys/dev/usb/net/uhso.c
1189
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1192
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/net/uhso.c
1193
usbd_xfer_set_frame_len(xfer, 1, 1024);
sys/dev/usb/net/uhso.c
1194
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/net/uhso.c
1195
usbd_transfer_submit(xfer);
sys/dev/usb/net/uhso.c
1201
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/uhso.c
1207
uhso_mux_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1209
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1216
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/uhso.c
1218
ht = usbd_xfer_get_priv(xfer);
sys/dev/usb/net/uhso.c
1220
USB_GET_STATE(xfer), ht->ht_muxport);
sys/dev/usb/net/uhso.c
1222
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1230
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/net/uhso.c
1242
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1245
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/net/uhso.c
1246
usbd_xfer_set_frame_len(xfer, 1, actlen);
sys/dev/usb/net/uhso.c
1247
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/net/uhso.c
1252
usbd_transfer_submit(xfer);
sys/dev/usb/net/uhso.c
1259
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/uhso.c
1297
uhso_bs_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1299
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1303
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/uhso.c
1305
UHSO_DPRINTF(3, "status %d, actlen=%d\n", USB_GET_STATE(xfer), actlen);
sys/dev/usb/net/uhso.c
1307
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1309
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1314
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/uhso.c
1315
usbd_transfer_submit(xfer);
sys/dev/usb/net/uhso.c
1321
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/uhso.c
1327
uhso_bs_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1329
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1333
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/uhso.c
1335
UHSO_DPRINTF(3, "status %d, actlen=%d\n", USB_GET_STATE(xfer), actlen);
sys/dev/usb/net/uhso.c
1337
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1341
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1343
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/net/uhso.c
1344
usbd_transfer_submit(xfer);
sys/dev/usb/net/uhso.c
1352
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/uhso.c
1380
uhso_bs_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1382
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1387
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/uhso.c
1388
UHSO_DPRINTF(3, "status %d, actlen=%d\n", USB_GET_STATE(xfer), actlen);
sys/dev/usb/net/uhso.c
1390
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1401
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1430
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/uhso.c
1606
uhso_ifnet_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1608
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1613
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/uhso.c
1615
UHSO_DPRINTF(3, "status=%d, actlen=%d\n", USB_GET_STATE(xfer), actlen);
sys/dev/usb/net/uhso.c
1617
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1620
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1636
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/net/uhso.c
1637
usbd_transfer_submit(xfer);
sys/dev/usb/net/uhso.c
1643
usbd_xfer_set_stall(xfer);
sys/dev/usb/net/uhso.c
1788
uhso_ifnet_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/net/uhso.c
1790
struct uhso_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/net/uhso.c
1796
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/net/uhso.c
1798
UHSO_DPRINTF(3, "status %d, actlen=%d\n", USB_GET_STATE(xfer), actlen);
sys/dev/usb/net/uhso.c
1800
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/net/uhso.c
1815
usbd_xfer_set_frame_len(xfer, 0, m->m_pkthdr.len);
sys/dev/usb/net/uhso.c
1816
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/net/uhso.c
1818
usbd_transfer_submit(xfer);
sys/dev/usb/net/uhso.c
1827
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/u3g.c
1147
u3g_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/u3g.c
1149
struct ucom_softc *ucom = usbd_xfer_softc(xfer);
sys/dev/usb/serial/u3g.c
1154
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/u3g.c
1159
usbd_xfer_set_frame_offset(xfer, frame * U3G_TXSIZE, frame);
sys/dev/usb/serial/u3g.c
1161
pc = usbd_xfer_get_frame(xfer, frame);
sys/dev/usb/serial/u3g.c
1164
usbd_xfer_set_frame_len(xfer, frame, actlen);
sys/dev/usb/serial/u3g.c
1167
usbd_xfer_set_frames(xfer, frame);
sys/dev/usb/serial/u3g.c
1168
usbd_transfer_submit(xfer);
sys/dev/usb/serial/u3g.c
1175
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/u3g.c
1183
u3g_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/u3g.c
1185
struct ucom_softc *ucom = usbd_xfer_softc(xfer);
sys/dev/usb/serial/u3g.c
1189
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/u3g.c
1191
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/u3g.c
1193
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/u3g.c
1198
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/u3g.c
1199
usbd_transfer_submit(xfer);
sys/dev/usb/serial/u3g.c
1205
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/u3g.c
1270
u3g_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/u3g.c
1272
struct ucom_softc *ucom = usbd_xfer_softc(xfer);
sys/dev/usb/serial/u3g.c
1280
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/u3g.c
1282
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/u3g.c
1288
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/u3g.c
1323
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/u3g.c
1324
usbd_transfer_submit(xfer);
sys/dev/usb/serial/u3g.c
1330
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uark.c
270
uark_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uark.c
272
struct uark_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uark.c
276
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uark.c
280
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uark.c
283
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/uark.c
284
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uark.c
291
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uark.c
299
uark_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uark.c
301
struct uark_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uark.c
305
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uark.c
307
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uark.c
309
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uark.c
314
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uark.c
315
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uark.c
321
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ubsa.c
572
ubsa_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ubsa.c
574
struct ubsa_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ubsa.c
578
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ubsa.c
582
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ubsa.c
585
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/ubsa.c
586
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ubsa.c
593
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ubsa.c
601
ubsa_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ubsa.c
603
struct ubsa_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ubsa.c
607
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ubsa.c
609
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ubsa.c
611
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ubsa.c
616
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ubsa.c
617
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ubsa.c
623
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ubsa.c
631
ubsa_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ubsa.c
633
struct ubsa_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ubsa.c
638
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ubsa.c
640
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ubsa.c
644
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ubsa.c
672
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ubsa.c
673
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ubsa.c
679
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ubser.c
396
ubser_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ubser.c
398
struct ubser_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ubser.c
404
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ubser.c
408
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ubser.c
417
usbd_xfer_set_frame_len(xfer, 0, actlen + 1);
sys/dev/usb/serial/ubser.c
418
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ubser.c
433
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ubser.c
441
ubser_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ubser.c
443
struct ubser_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ubser.c
448
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ubser.c
450
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ubser.c
456
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ubser.c
467
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ubser.c
468
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ubser.c
474
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uchcom.c
822
uchcom_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uchcom.c
824
struct uchcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uchcom.c
830
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uchcom.c
832
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uchcom.c
838
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uchcom.c
849
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uchcom.c
850
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uchcom.c
856
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uchcom.c
864
uchcom_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uchcom.c
866
struct uchcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uchcom.c
870
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uchcom.c
874
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uchcom.c
876
usbd_xfer_max_len(xfer), &actlen)) {
sys/dev/usb/serial/uchcom.c
879
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/uchcom.c
880
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uchcom.c
887
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uchcom.c
895
uchcom_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uchcom.c
897
struct uchcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uchcom.c
901
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uchcom.c
903
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uchcom.c
907
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uchcom.c
913
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uchcom.c
914
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uchcom.c
920
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ucycom.c
367
ucycom_ctrl_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ucycom.c
369
struct ucycom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ucycom.c
376
pc0 = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ucycom.c
377
pc1 = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/serial/ucycom.c
379
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ucycom.c
420
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/serial/ucycom.c
421
usbd_xfer_set_frame_len(xfer, 1, sc->sc_olen);
sys/dev/usb/serial/ucycom.c
422
usbd_xfer_set_frames(xfer, sc->sc_olen ? 2 : 1);
sys/dev/usb/serial/ucycom.c
423
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ucycom.c
535
ucycom_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ucycom.c
537
struct ucycom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ucycom.c
544
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ucycom.c
545
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ucycom.c
547
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ucycom.c
590
usbd_xfer_set_frame_len(xfer, 0, sc->sc_ilen);
sys/dev/usb/serial/ucycom.c
591
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ucycom.c
597
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/udbc.c
279
udbc_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/udbc.c
281
struct udbc_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/udbc.c
287
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/udbc.c
291
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/udbc.c
296
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/udbc.c
301
usbd_xfer_set_frame_len(xfer, 0, buflen);
sys/dev/usb/serial/udbc.c
302
usbd_transfer_submit(xfer);
sys/dev/usb/serial/udbc.c
309
udbc_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/udbc.c
311
struct udbc_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/udbc.c
317
usbd_xfer_status(xfer, &buflen, NULL, NULL, NULL);
sys/dev/usb/serial/udbc.c
319
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/udbc.c
321
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/udbc.c
326
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/udbc.c
327
usbd_transfer_submit(xfer);
sys/dev/usb/serial/udbc.c
333
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ufintek.c
673
ufintek_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ufintek.c
675
struct ufintek_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ufintek.c
679
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ufintek.c
684
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ufintek.c
687
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/ufintek.c
688
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ufintek.c
695
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ufintek.c
703
ufintek_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ufintek.c
705
struct ufintek_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ufintek.c
711
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ufintek.c
712
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ufintek.c
717
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ufintek.c
738
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ufintek.c
739
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ufintek.c
745
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ufoma.c
576
ufoma_ctrl_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ufoma.c
578
struct ufoma_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ufoma.c
583
usbd_xfer_status(xfer, NULL, NULL, &aframes, &nframes);
sys/dev/usb/serial/ufoma.c
585
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ufoma.c
590
pc1 = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/serial/ufoma.c
591
len = usbd_xfer_frame_len(xfer, 1);
sys/dev/usb/serial/ufoma.c
606
pc0 = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ufoma.c
609
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/serial/ufoma.c
610
usbd_xfer_set_frame_len(xfer, 1, UFOMA_CMD_BUF_SIZE);
sys/dev/usb/serial/ufoma.c
611
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/serial/ufoma.c
612
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ufoma.c
628
ufoma_ctrl_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ufoma.c
630
struct ufoma_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ufoma.c
635
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ufoma.c
639
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/serial/ufoma.c
647
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ufoma.c
650
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/serial/ufoma.c
651
usbd_xfer_set_frame_len(xfer, 1, 1);
sys/dev/usb/serial/ufoma.c
652
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/serial/ufoma.c
654
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ufoma.c
669
ufoma_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ufoma.c
671
struct ufoma_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ufoma.c
679
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ufoma.c
681
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ufoma.c
691
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ufoma.c
765
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ufoma.c
766
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ufoma.c
772
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ufoma.c
780
ufoma_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ufoma.c
782
struct ufoma_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ufoma.c
786
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ufoma.c
790
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ufoma.c
793
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/ufoma.c
794
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ufoma.c
801
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ufoma.c
809
ufoma_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ufoma.c
811
struct ufoma_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ufoma.c
815
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ufoma.c
817
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ufoma.c
819
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ufoma.c
824
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ufoma.c
825
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ufoma.c
831
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uftdi.c
1219
uftdi_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uftdi.c
1221
struct uftdi_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uftdi.c
1229
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uftdi.c
1245
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uftdi.c
1263
usbd_xfer_set_frame_len(xfer, 0, buflen);
sys/dev/usb/serial/uftdi.c
1264
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uftdi.c
1270
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uftdi.c
1278
uftdi_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uftdi.c
1280
struct uftdi_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uftdi.c
1293
usbd_xfer_status(xfer, &buflen, NULL, NULL, NULL);
sys/dev/usb/serial/uftdi.c
1295
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uftdi.c
1299
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uftdi.c
1300
pktmax = xfer->max_packet_size - UFTDI_IHDRSIZE;
sys/dev/usb/serial/uftdi.c
1355
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uftdi.c
1356
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uftdi.c
1362
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ugensa.c
303
ugensa_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ugensa.c
305
struct ugensa_sub_softc *ssc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ugensa.c
309
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ugensa.c
313
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ugensa.c
316
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/ugensa.c
317
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ugensa.c
324
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ugensa.c
332
ugensa_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ugensa.c
334
struct ugensa_sub_softc *ssc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ugensa.c
338
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ugensa.c
340
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ugensa.c
342
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ugensa.c
347
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ugensa.c
348
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ugensa.c
354
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uipaq.c
1308
uipaq_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uipaq.c
1310
struct uipaq_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uipaq.c
1314
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uipaq.c
1318
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uipaq.c
1321
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/uipaq.c
1322
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uipaq.c
1329
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uipaq.c
1337
uipaq_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uipaq.c
1339
struct uipaq_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uipaq.c
1343
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uipaq.c
1345
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uipaq.c
1347
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uipaq.c
1352
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uipaq.c
1353
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uipaq.c
1359
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ulpt.c
198
ulpt_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ulpt.c
200
struct ulpt_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ulpt.c
205
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ulpt.c
212
DPRINTF("state=0x%x actlen=%d\n", USB_GET_STATE(xfer), actlen);
sys/dev/usb/serial/ulpt.c
214
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ulpt.c
218
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ulpt.c
219
max = usbd_xfer_max_len(xfer);
sys/dev/usb/serial/ulpt.c
221
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/ulpt.c
222
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ulpt.c
229
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ulpt.c
237
ulpt_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ulpt.c
239
struct ulpt_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ulpt.c
244
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/ulpt.c
251
DPRINTF("state=0x%x\n", USB_GET_STATE(xfer));
sys/dev/usb/serial/ulpt.c
253
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ulpt.c
259
usbd_xfer_set_interval(xfer, 500); /* ms */
sys/dev/usb/serial/ulpt.c
266
usbd_xfer_set_interval(xfer, 0);
sys/dev/usb/serial/ulpt.c
270
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ulpt.c
276
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/ulpt.c
277
usbd_transfer_submit(xfer);
sys/dev/usb/serial/ulpt.c
283
usbd_xfer_set_interval(xfer, 0);
sys/dev/usb/serial/ulpt.c
288
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/ulpt.c
296
ulpt_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/ulpt.c
298
struct ulpt_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/ulpt.c
304
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/ulpt.c
307
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/serial/ulpt.c
333
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/ulpt.c
336
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/serial/ulpt.c
337
usbd_xfer_set_frame_len(xfer, 1, 1);
sys/dev/usb/serial/ulpt.c
338
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/serial/ulpt.c
339
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umcs.c
767
umcs7840_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
769
struct umcs7840_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umcs.c
775
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umcs.c
777
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umcs.c
780
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umcs.c
806
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umcs.c
807
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umcs.c
813
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umcs.c
821
umcs7840_read_callback1(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
823
umcs7840_read_callbackN(xfer, error, 0);
sys/dev/usb/serial/umcs.c
827
umcs7840_read_callback2(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
829
umcs7840_read_callbackN(xfer, error, 1);
sys/dev/usb/serial/umcs.c
832
umcs7840_read_callback3(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
834
umcs7840_read_callbackN(xfer, error, 2);
sys/dev/usb/serial/umcs.c
838
umcs7840_read_callback4(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
840
umcs7840_read_callbackN(xfer, error, 3);
sys/dev/usb/serial/umcs.c
844
umcs7840_read_callbackN(struct usb_xfer *xfer, usb_error_t error, uint8_t subunit)
sys/dev/usb/serial/umcs.c
846
struct umcs7840_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umcs.c
851
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umcs.c
853
DPRINTF("Port %d read, state = %d, data length = %d\n", ucom->sc_portno, USB_GET_STATE(xfer), actlen);
sys/dev/usb/serial/umcs.c
855
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umcs.c
857
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umcs.c
862
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umcs.c
863
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umcs.c
869
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umcs.c
877
umcs7840_write_callback1(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
879
umcs7840_write_callbackN(xfer, error, 0);
sys/dev/usb/serial/umcs.c
883
umcs7840_write_callback2(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
885
umcs7840_write_callbackN(xfer, error, 1);
sys/dev/usb/serial/umcs.c
889
umcs7840_write_callback3(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
891
umcs7840_write_callbackN(xfer, error, 2);
sys/dev/usb/serial/umcs.c
895
umcs7840_write_callback4(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umcs.c
897
umcs7840_write_callbackN(xfer, error, 3);
sys/dev/usb/serial/umcs.c
901
umcs7840_write_callbackN(struct usb_xfer *xfer, usb_error_t error, uint8_t subunit)
sys/dev/usb/serial/umcs.c
903
struct umcs7840_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umcs.c
908
DPRINTF("Port %d write, state = %d\n", ucom->sc_portno, USB_GET_STATE(xfer));
sys/dev/usb/serial/umcs.c
910
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umcs.c
914
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umcs.c
915
if (ucom_get_data(ucom, pc, 0, usbd_xfer_max_len(xfer), &actlen)) {
sys/dev/usb/serial/umcs.c
917
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/umcs.c
918
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umcs.c
925
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umct.c
373
umct_intr_callback_sub(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umct.c
375
struct umct_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umct.c
380
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umct.c
382
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umct.c
388
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umct.c
410
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umct.c
411
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umct.c
417
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umct.c
591
umct_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umct.c
593
struct umct_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umct.c
596
umct_intr_callback_sub(xfer, error);
sys/dev/usb/serial/umct.c
598
umct_read_callback_sub(xfer, error);
sys/dev/usb/serial/umct.c
602
umct_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umct.c
604
struct umct_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umct.c
607
umct_read_callback_sub(xfer, error);
sys/dev/usb/serial/umct.c
609
umct_intr_callback_sub(xfer, error);
sys/dev/usb/serial/umct.c
613
umct_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umct.c
615
struct umct_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umct.c
619
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umct.c
623
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umct.c
626
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/umct.c
627
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umct.c
634
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umct.c
642
umct_read_callback_sub(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umct.c
644
struct umct_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umct.c
648
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umct.c
650
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umct.c
652
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umct.c
657
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umct.c
658
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umct.c
664
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umodem.c
743
umodem_intr_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umodem.c
747
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umodem.c
749
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umodem.c
762
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umodem.c
770
umodem_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umodem.c
773
struct umodem_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umodem.c
778
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umodem.c
780
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umodem.c
792
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umodem.c
846
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umodem.c
847
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umodem.c
853
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umodem.c
861
umodem_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umodem.c
863
struct umodem_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umodem.c
867
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umodem.c
871
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umodem.c
874
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/umodem.c
875
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umodem.c
882
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umodem.c
890
umodem_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umodem.c
892
struct umodem_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umodem.c
896
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umodem.c
898
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umodem.c
903
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umodem.c
908
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umodem.c
909
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umodem.c
915
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umoscom.c
627
umoscom_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umoscom.c
629
struct umoscom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umoscom.c
633
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umoscom.c
639
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umoscom.c
642
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/umoscom.c
643
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umoscom.c
651
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umoscom.c
659
umoscom_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umoscom.c
661
struct umoscom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umoscom.c
665
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umoscom.c
667
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umoscom.c
670
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/umoscom.c
677
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umoscom.c
678
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umoscom.c
685
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/umoscom.c
693
umoscom_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/umoscom.c
695
struct umoscom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/umoscom.c
698
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/umoscom.c
700
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/umoscom.c
710
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/umoscom.c
711
usbd_transfer_submit(xfer);
sys/dev/usb/serial/umoscom.c
718
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uplcom.c
1016
uplcom_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uplcom.c
1018
struct uplcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uplcom.c
1023
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uplcom.c
1025
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uplcom.c
1031
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uplcom.c
1067
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uplcom.c
1068
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uplcom.c
1074
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uplcom.c
1082
uplcom_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uplcom.c
1084
struct uplcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uplcom.c
1088
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uplcom.c
1092
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uplcom.c
1097
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/uplcom.c
1098
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uplcom.c
1105
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uplcom.c
1113
uplcom_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uplcom.c
1115
struct uplcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uplcom.c
1119
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uplcom.c
1121
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uplcom.c
1123
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uplcom.c
1128
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uplcom.c
1129
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uplcom.c
1135
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uslcom.c
805
uslcom_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uslcom.c
807
struct uslcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uslcom.c
811
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uslcom.c
815
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uslcom.c
820
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/uslcom.c
821
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uslcom.c
828
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uslcom.c
836
uslcom_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uslcom.c
838
struct uslcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uslcom.c
842
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uslcom.c
844
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uslcom.c
846
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uslcom.c
851
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uslcom.c
852
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uslcom.c
858
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uslcom.c
866
uslcom_control_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uslcom.c
868
struct uslcom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uslcom.c
874
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uslcom.c
876
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/serial/uslcom.c
902
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/serial/uslcom.c
903
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/serial/uslcom.c
904
usbd_xfer_set_frame_len(xfer, 1, sizeof(buf));
sys/dev/usb/serial/uslcom.c
906
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uslcom.c
908
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uvisor.c
607
uvisor_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uvisor.c
609
struct uvisor_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uvisor.c
614
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uvisor.c
619
usbd_xfer_set_frame_offset(xfer,
sys/dev/usb/serial/uvisor.c
622
pc = usbd_xfer_get_frame(xfer, x);
sys/dev/usb/serial/uvisor.c
625
usbd_xfer_set_frame_len(xfer, x, actlen);
sys/dev/usb/serial/uvisor.c
632
usbd_xfer_set_frames(xfer, x);
sys/dev/usb/serial/uvisor.c
633
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uvisor.c
640
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uvisor.c
648
uvisor_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uvisor.c
650
struct uvisor_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uvisor.c
654
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uvisor.c
656
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uvisor.c
658
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uvisor.c
663
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uvisor.c
664
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uvisor.c
670
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uvscom.c
379
uvscom_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uvscom.c
381
struct uvscom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uvscom.c
385
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uvscom.c
389
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uvscom.c
392
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/serial/uvscom.c
393
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uvscom.c
400
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uvscom.c
408
uvscom_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uvscom.c
410
struct uvscom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uvscom.c
414
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uvscom.c
416
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uvscom.c
418
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uvscom.c
423
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uvscom.c
424
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uvscom.c
430
usbd_xfer_set_stall(xfer);
sys/dev/usb/serial/uvscom.c
438
uvscom_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/serial/uvscom.c
440
struct uvscom_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/serial/uvscom.c
445
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/serial/uvscom.c
447
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/serial/uvscom.c
450
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/serial/uvscom.c
480
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/serial/uvscom.c
481
usbd_transfer_submit(xfer);
sys/dev/usb/serial/uvscom.c
487
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/cfumass.c
604
cfumass_t_command_callback(struct usb_xfer *xfer, usb_error_t usb_error)
sys/dev/usb/storage/cfumass.c
611
sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/cfumass.c
616
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/cfumass.c
653
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/cfumass.c
680
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/cfumass.c
691
usbd_xfer_set_frame_len(xfer, 0, sizeof(*sc->sc_cbw));
sys/dev/usb/storage/cfumass.c
692
usbd_transfer_submit(xfer);
sys/dev/usb/storage/cfumass.c
708
cfumass_t_data_callback(struct usb_xfer *xfer, usb_error_t usb_error)
sys/dev/usb/storage/cfumass.c
710
struct cfumass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/cfumass.c
716
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/cfumass.c
720
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/cfumass.c
756
max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/cfumass.c
765
usbd_xfer_set_frame_data(xfer, 0,
sys/dev/usb/storage/cfumass.c
767
usbd_transfer_submit(xfer);
sys/dev/usb/storage/cfumass.c
781
cfumass_t_status_callback(struct usb_xfer *xfer, usb_error_t usb_error)
sys/dev/usb/storage/cfumass.c
785
sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/cfumass.c
790
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/cfumass.c
803
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/cfumass.c
812
usbd_xfer_set_frame_len(xfer, 0, sizeof(*sc->sc_csw));
sys/dev/usb/storage/cfumass.c
813
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1230
umass_tr_error(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1232
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1246
umass_t_bbb_reset1_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1248
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1252
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1281
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/umass.c
1284
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/storage/umass.c
1285
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/storage/umass.c
1286
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1290
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1296
umass_t_bbb_reset2_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1298
umass_t_bbb_data_clear_stall_callback(xfer, UMASS_T_BBB_RESET3,
sys/dev/usb/storage/umass.c
1303
umass_t_bbb_reset3_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1305
umass_t_bbb_data_clear_stall_callback(xfer, UMASS_T_BBB_COMMAND,
sys/dev/usb/storage/umass.c
1310
umass_t_bbb_data_clear_stall_callback(struct usb_xfer *xfer,
sys/dev/usb/storage/umass.c
1313
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1315
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1322
if (usbd_clear_stall_callback(xfer, sc->sc_xfer[stall_xfer])) {
sys/dev/usb/storage/umass.c
1328
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1334
umass_t_bbb_command_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1336
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1341
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1405
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/umass.c
1407
usbd_xfer_set_frame_len(xfer, 0, sizeof(sc->cbw));
sys/dev/usb/storage/umass.c
1409
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1414
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1420
umass_t_bbb_data_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1422
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1423
uint32_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/umass.c
1426
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/umass.c
1428
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1449
usbd_xfer_set_timeout(xfer, sc->sc_transfer.data_timeout);
sys/dev/usb/storage/umass.c
1451
usbd_xfer_set_frame_data(xfer, 0, sc->sc_transfer.data_ptr,
sys/dev/usb/storage/umass.c
1454
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1459
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1468
umass_t_bbb_data_rd_cs_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1470
umass_t_bbb_data_clear_stall_callback(xfer, UMASS_T_BBB_STATUS,
sys/dev/usb/storage/umass.c
1475
umass_t_bbb_data_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1477
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1478
uint32_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/umass.c
1481
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/umass.c
1483
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1504
usbd_xfer_set_timeout(xfer, sc->sc_transfer.data_timeout);
sys/dev/usb/storage/umass.c
1506
usbd_xfer_set_frame_data(xfer, 0, sc->sc_transfer.data_ptr,
sys/dev/usb/storage/umass.c
1509
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1514
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1523
umass_t_bbb_data_wr_cs_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1525
umass_t_bbb_data_clear_stall_callback(xfer, UMASS_T_BBB_STATUS,
sys/dev/usb/storage/umass.c
1530
umass_t_bbb_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1532
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1538
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/storage/umass.c
1540
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1553
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/umass.c
1626
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/storage/umass.c
1627
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1637
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1726
umass_t_cbi_reset1_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1728
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1735
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1776
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/umass.c
1778
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/storage/umass.c
1781
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/storage/umass.c
1782
usbd_xfer_set_frame_len(xfer, 1, sizeof(buf));
sys/dev/usb/storage/umass.c
1783
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/storage/umass.c
1784
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1789
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1797
umass_t_cbi_reset2_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1799
umass_t_cbi_data_clear_stall_callback(xfer, UMASS_T_CBI_RESET3,
sys/dev/usb/storage/umass.c
1804
umass_t_cbi_reset3_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1806
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1809
(xfer, (sc->sc_xfer[UMASS_T_CBI_RESET4] &&
sys/dev/usb/storage/umass.c
1816
umass_t_cbi_reset4_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1818
umass_t_cbi_data_clear_stall_callback(xfer, UMASS_T_CBI_COMMAND,
sys/dev/usb/storage/umass.c
1823
umass_t_cbi_data_clear_stall_callback(struct usb_xfer *xfer,
sys/dev/usb/storage/umass.c
1826
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1828
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1839
if (usbd_clear_stall_callback(xfer, sc->sc_xfer[stall_xfer])) {
sys/dev/usb/storage/umass.c
1845
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1851
umass_t_cbi_command_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1853
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1858
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1888
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/umass.c
1890
pc = usbd_xfer_get_frame(xfer, 1);
sys/dev/usb/storage/umass.c
1894
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/storage/umass.c
1895
usbd_xfer_set_frame_len(xfer, 1, sc->sc_transfer.cmd_len);
sys/dev/usb/storage/umass.c
1896
usbd_xfer_set_frames(xfer,
sys/dev/usb/storage/umass.c
1904
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1922
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1931
umass_t_cbi_data_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1933
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1934
uint32_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/umass.c
1937
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/umass.c
1939
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
1960
usbd_xfer_set_timeout(xfer, sc->sc_transfer.data_timeout);
sys/dev/usb/storage/umass.c
1962
usbd_xfer_set_frame_data(xfer, 0, sc->sc_transfer.data_ptr,
sys/dev/usb/storage/umass.c
1965
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
1971
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
1980
umass_t_cbi_data_rd_cs_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1982
umass_t_cbi_data_clear_stall_callback(xfer, UMASS_T_CBI_STATUS,
sys/dev/usb/storage/umass.c
1987
umass_t_cbi_data_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
1989
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
1990
uint32_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/umass.c
1993
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/umass.c
1995
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
2016
usbd_xfer_set_timeout(xfer, sc->sc_transfer.data_timeout);
sys/dev/usb/storage/umass.c
2018
usbd_xfer_set_frame_data(xfer, 0, sc->sc_transfer.data_ptr,
sys/dev/usb/storage/umass.c
2021
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
2027
umass_tr_error(xfer, error);
sys/dev/usb/storage/umass.c
2036
umass_t_cbi_data_wr_cs_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
2038
umass_t_cbi_data_clear_stall_callback(xfer, UMASS_T_CBI_STATUS,
sys/dev/usb/storage/umass.c
2043
umass_t_cbi_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/umass.c
2045
struct umass_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/umass.c
2052
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/storage/umass.c
2054
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/umass.c
2060
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/umass.c
2125
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/storage/umass.c
2126
usbd_transfer_submit(xfer);
sys/dev/usb/storage/umass.c
2132
umass_tr_error(xfer, error);
sys/dev/usb/storage/urio.c
261
urio_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/urio.c
263
struct urio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/urio.c
268
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/urio.c
275
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/urio.c
277
usbd_xfer_max_len(xfer), &actlen, 0)) {
sys/dev/usb/storage/urio.c
278
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/storage/urio.c
279
usbd_transfer_submit(xfer);
sys/dev/usb/storage/urio.c
294
urio_write_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/urio.c
296
struct urio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/urio.c
299
if (usbd_clear_stall_callback(xfer, xfer_other)) {
sys/dev/usb/storage/urio.c
307
urio_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/urio.c
309
struct urio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/urio.c
314
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/storage/urio.c
316
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/urio.c
318
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/storage/urio.c
327
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/storage/urio.c
328
usbd_transfer_submit(xfer);
sys/dev/usb/storage/urio.c
343
urio_read_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/urio.c
345
struct urio_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/urio.c
348
if (usbd_clear_stall_callback(xfer, xfer_other)) {
sys/dev/usb/storage/ustorage_fs.c
513
ustorage_fs_t_bbb_command_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/ustorage_fs.c
515
struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/ustorage_fs.c
521
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/ustorage_fs.c
600
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/ustorage_fs.c
603
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/storage/ustorage_fs.c
605
usbd_transfer_submit(xfer);
sys/dev/usb/storage/ustorage_fs.c
614
if (!usbd_xfer_is_stalled(xfer))
sys/dev/usb/storage/ustorage_fs.c
640
ustorage_fs_t_bbb_data_dump_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/ustorage_fs.c
642
struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/ustorage_fs.c
643
uint32_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/ustorage_fs.c
646
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/ustorage_fs.c
650
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/ustorage_fs.c
670
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/ustorage_fs.c
672
usbd_xfer_set_frame_len(xfer, 0, max_bulk);
sys/dev/usb/storage/ustorage_fs.c
673
usbd_transfer_submit(xfer);
sys/dev/usb/storage/ustorage_fs.c
683
if (!usbd_xfer_is_stalled(xfer))
sys/dev/usb/storage/ustorage_fs.c
692
ustorage_fs_t_bbb_data_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/ustorage_fs.c
694
struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/ustorage_fs.c
695
uint32_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/ustorage_fs.c
698
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/ustorage_fs.c
702
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/ustorage_fs.c
726
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/ustorage_fs.c
729
usbd_xfer_set_frame_data(xfer, 0, sc->sc_dma_ptr, max_bulk);
sys/dev/usb/storage/ustorage_fs.c
730
usbd_transfer_submit(xfer);
sys/dev/usb/storage/ustorage_fs.c
738
if (!usbd_xfer_is_stalled(xfer))
sys/dev/usb/storage/ustorage_fs.c
747
ustorage_fs_t_bbb_data_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/ustorage_fs.c
749
struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/ustorage_fs.c
750
uint32_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/storage/ustorage_fs.c
753
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/storage/ustorage_fs.c
757
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/ustorage_fs.c
774
usbd_xfer_set_flag(xfer, USB_FORCE_SHORT_XFER);
sys/dev/usb/storage/ustorage_fs.c
776
usbd_xfer_clr_flag(xfer, USB_FORCE_SHORT_XFER);
sys/dev/usb/storage/ustorage_fs.c
778
usbd_xfer_clr_flag(xfer, USB_FORCE_SHORT_XFER);
sys/dev/usb/storage/ustorage_fs.c
782
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/ustorage_fs.c
788
usbd_xfer_set_frame_data(xfer, 0, sc->sc_dma_ptr, max_bulk);
sys/dev/usb/storage/ustorage_fs.c
789
usbd_transfer_submit(xfer);
sys/dev/usb/storage/ustorage_fs.c
800
if (!usbd_xfer_is_stalled(xfer))
sys/dev/usb/storage/ustorage_fs.c
809
ustorage_fs_t_bbb_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/storage/ustorage_fs.c
811
struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/storage/ustorage_fs.c
815
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/storage/ustorage_fs.c
827
usbd_xfer_set_stall(xfer);
sys/dev/usb/storage/ustorage_fs.c
829
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/storage/ustorage_fs.c
831
usbd_transfer_submit(xfer);
sys/dev/usb/storage/ustorage_fs.c
839
if (!usbd_xfer_is_stalled(xfer))
sys/dev/usb/usb_busdma.c
1001
usb_pc_load_mem(xfer->frbuffers,
sys/dev/usb/usb_busdma.c
1006
usb_pc_load_mem(xfer->frbuffers + nframes,
sys/dev/usb/usb_busdma.c
1007
xfer->frlengths[nframes], 0);
sys/dev/usb/usb_busdma.c
1016
usb_bdma_pre_sync(xfer);
sys/dev/usb/usb_busdma.c
1022
usbd_pipe_enter(xfer);
sys/dev/usb/usb_busdma.c
1055
usb_bdma_pre_sync(struct usb_xfer *xfer)
sys/dev/usb/usb_busdma.c
1060
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/usb_busdma.c
1065
nframes = xfer->nframes;
sys/dev/usb/usb_busdma.c
1068
pc = xfer->frbuffers;
sys/dev/usb/usb_busdma.c
1087
usb_bdma_post_sync(struct usb_xfer *xfer)
sys/dev/usb/usb_busdma.c
1092
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/usb_busdma.c
1097
nframes = xfer->nframes;
sys/dev/usb/usb_busdma.c
1100
pc = xfer->frbuffers;
sys/dev/usb/usb_busdma.c
910
struct usb_xfer *xfer;
sys/dev/usb/usb_busdma.c
913
xfer = pq->curr;
sys/dev/usb/usb_busdma.c
914
info = xfer->xroot;
sys/dev/usb/usb_busdma.c
918
if (xfer->error) {
sys/dev/usb/usb_busdma.c
921
usbd_transfer_done(xfer, 0);
sys/dev/usb/usb_busdma.c
925
if (!xfer->flags_int.bdma_setup) {
sys/dev/usb/usb_busdma.c
930
xfer->flags_int.bdma_setup = 1;
sys/dev/usb/usb_busdma.c
936
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/usb_busdma.c
939
frlength_0 = xfer->sumlen;
sys/dev/usb/usb_busdma.c
942
nframes = xfer->nframes;
sys/dev/usb/usb_busdma.c
943
frlength_0 = xfer->frlengths[0];
sys/dev/usb/usb_busdma.c
951
isread = USB_GET_DATA_ISREAD(xfer);
sys/dev/usb/usb_busdma.c
952
pg = xfer->dma_page_ptr;
sys/dev/usb/usb_busdma.c
954
if (xfer->flags_int.control_xfr &&
sys/dev/usb/usb_busdma.c
955
xfer->flags_int.control_hdr) {
sys/dev/usb/usb_busdma.c
957
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/usb_busdma.c
959
xfer->frbuffers[0].isread = 1;
sys/dev/usb/usb_busdma.c
962
xfer->frbuffers[0].isread = 0;
sys/dev/usb/usb_busdma.c
966
xfer->frbuffers[0].isread = isread;
sys/dev/usb/usb_busdma.c
975
xfer->frbuffers[0].page_start = pg;
sys/dev/usb/usb_busdma.c
985
xfer->frbuffers[nframes].isread = isread;
sys/dev/usb/usb_busdma.c
986
xfer->frbuffers[nframes].page_start = pg;
sys/dev/usb/usb_busdma.c
988
pg += (xfer->frlengths[nframes] / USB_PAGE_SIZE);
sys/dev/usb/usb_busdma.c
994
usbd_transfer_done(xfer, USB_ERR_DMA_LOAD_FAILED);
sys/dev/usb/usb_busdma.h
148
void usb_bdma_post_sync(struct usb_xfer *xfer);
sys/dev/usb/usb_busdma.h
149
void usb_bdma_pre_sync(struct usb_xfer *xfer);
sys/dev/usb/usb_controller.h
110
void (*xfer_stall) (struct usb_xfer *xfer);
sys/dev/usb/usb_core.h
39
#define USB_GET_DATA_ISREAD(xfer) ((xfer)->flags_int.usb_mode == \
sys/dev/usb/usb_core.h
40
USB_MODE_DEVICE ? (((xfer)->endpointno & UE_DIR_IN) ? 0 : 1) : \
sys/dev/usb/usb_core.h
41
(((xfer)->endpointno & UE_DIR_IN) ? 1 : 0))
sys/dev/usb/usb_debug.c
175
struct usb_xfer *xfer;
sys/dev/usb/usb_debug.c
180
TAILQ_FOREACH(xfer, &ep->endpoint_q[x].head, wait_entry)
sys/dev/usb/usb_debug.c
181
printf(" %p", xfer);
sys/dev/usb/usb_debug.c
217
usb_dump_xfer(struct usb_xfer *xfer)
sys/dev/usb/usb_debug.c
220
printf("usb_dump_xfer: xfer=%p\n", xfer);
sys/dev/usb/usb_debug.c
221
if (xfer == NULL) {
sys/dev/usb/usb_debug.c
224
if (xfer->endpoint == NULL) {
sys/dev/usb/usb_debug.c
226
xfer);
sys/dev/usb/usb_debug.c
229
udev = xfer->xroot->udev;
sys/dev/usb/usb_debug.c
232
xfer, udev,
sys/dev/usb/usb_debug.c
235
udev->address, xfer->endpoint,
sys/dev/usb/usb_debug.c
236
xfer->endpoint->edesc->bEndpointAddress,
sys/dev/usb/usb_debug.c
237
xfer->endpoint->edesc->bmAttributes);
sys/dev/usb/usb_debug.h
63
void usb_dump_xfer(struct usb_xfer *xfer);
sys/dev/usb/usb_dev.h
119
struct usb_xfer *xfer[2];
sys/dev/usb/usb_device.c
1112
struct usb_xfer *xfer;
sys/dev/usb/usb_device.c
1158
xfer = ep->endpoint_q[x].curr;
sys/dev/usb/usb_device.c
1159
if (xfer != NULL) {
sys/dev/usb/usb_device.c
1167
(udev->bus->methods->xfer_stall) (xfer);
sys/dev/usb/usb_generic.c
1125
struct usb_xfer *xfer;
sys/dev/usb/usb_generic.c
1136
xfer = f->fs_xfer[pclose->ep_index];
sys/dev/usb/usb_generic.c
1141
if (xfer == NULL)
sys/dev/usb/usb_generic.c
1144
usbd_transfer_unsetup(&xfer, 1);
sys/dev/usb/usb_generic.c
1270
struct usb_xfer *xfer;
sys/dev/usb/usb_generic.c
1286
xfer = f->fs_xfer[ep_index];
sys/dev/usb/usb_generic.c
1287
if (xfer == NULL) {
sys/dev/usb/usb_generic.c
1291
if (usbd_transfer_pending(xfer)) {
sys/dev/usb/usb_generic.c
1303
if (fs_ep.nFrames > xfer->max_frame_count) {
sys/dev/usb/usb_generic.c
1304
xfer->error = USB_ERR_INVAL;
sys/dev/usb/usb_generic.c
1308
xfer->error = USB_ERR_INVAL;
sys/dev/usb/usb_generic.c
1316
usbd_xfer_set_frame_offset(xfer, 0, 0);
sys/dev/usb/usb_generic.c
1318
if (xfer->flags_int.control_xfr) {
sys/dev/usb/usb_generic.c
1319
req = xfer->frbuffers[0].buffer;
sys/dev/usb/usb_generic.c
1325
xfer->error = USB_ERR_INVAL;
sys/dev/usb/usb_generic.c
1335
xfer->error = USB_ERR_INVAL;
sys/dev/usb/usb_generic.c
1338
usbd_xfer_set_frame_len(xfer, 0, length);
sys/dev/usb/usb_generic.c
1352
if (USB_GET_DATA_ISREAD(xfer)) {
sys/dev/usb/usb_generic.c
1361
rem = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_generic.c
1362
xfer->nframes = fs_ep.nFrames;
sys/dev/usb/usb_generic.c
1363
xfer->timeout = fs_ep.timeout;
sys/dev/usb/usb_generic.c
1364
if (xfer->timeout > 65535) {
sys/dev/usb/usb_generic.c
1365
xfer->timeout = 65535;
sys/dev/usb/usb_generic.c
1368
xfer->flags.short_xfer_ok = 1;
sys/dev/usb/usb_generic.c
1370
xfer->flags.short_xfer_ok = 0;
sys/dev/usb/usb_generic.c
1373
xfer->flags.short_frames_ok = 1;
sys/dev/usb/usb_generic.c
1375
xfer->flags.short_frames_ok = 0;
sys/dev/usb/usb_generic.c
1378
xfer->flags.force_short_xfer = 1;
sys/dev/usb/usb_generic.c
1380
xfer->flags.force_short_xfer = 0;
sys/dev/usb/usb_generic.c
1383
usbd_xfer_set_stall(xfer);
sys/dev/usb/usb_generic.c
1385
xfer->flags.stall_pipe = 0;
sys/dev/usb/usb_generic.c
1387
for (; n != xfer->nframes; n++) {
sys/dev/usb/usb_generic.c
1391
usbd_xfer_set_frame_len(xfer, n, length);
sys/dev/usb/usb_generic.c
1394
xfer->error = USB_ERR_INVAL;
sys/dev/usb/usb_generic.c
1405
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/usb_generic.c
1407
kaddr = xfer->frbuffers[0].buffer;
sys/dev/usb/usb_generic.c
1411
usbd_xfer_set_frame_offset(xfer, offset, n);
sys/dev/usb/usb_generic.c
1414
kaddr = xfer->frbuffers[n].buffer;
sys/dev/usb/usb_generic.c
1551
struct usb_xfer *xfer;
sys/dev/usb/usb_generic.c
1568
xfer = f->fs_xfer[ep_index];
sys/dev/usb/usb_generic.c
1569
if (xfer == NULL) {
sys/dev/usb/usb_generic.c
1573
if (!xfer->flags_int.transferring &&
sys/dev/usb/usb_generic.c
1574
!xfer->flags_int.started) {
sys/dev/usb/usb_generic.c
1578
} else if (usbd_transfer_pending(xfer)) {
sys/dev/usb/usb_generic.c
1589
fs_ep.status = xfer->error;
sys/dev/usb/usb_generic.c
1590
fs_ep.aFrames = xfer->aframes;
sys/dev/usb/usb_generic.c
1591
fs_ep.isoc_time_complete = xfer->isoc_time_complete;
sys/dev/usb/usb_generic.c
1592
if (xfer->error) {
sys/dev/usb/usb_generic.c
1595
if (xfer->flags_int.control_xfr) {
sys/dev/usb/usb_generic.c
1596
req = xfer->frbuffers[0].buffer;
sys/dev/usb/usb_generic.c
1604
if (xfer->nframes == 0)
sys/dev/usb/usb_generic.c
1610
if (USB_GET_DATA_ISREAD(xfer)) {
sys/dev/usb/usb_generic.c
1620
rem = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_generic.c
1623
for (; n != xfer->nframes; n++) {
sys/dev/usb/usb_generic.c
1638
length = xfer->frlengths[n];
sys/dev/usb/usb_generic.c
1652
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/usb_generic.c
1655
xfer->frbuffers[0].buffer, offset);
sys/dev/usb/usb_generic.c
1658
kaddr = xfer->frbuffers[n].buffer;
sys/dev/usb/usb_generic.c
1694
(f_rx->xfer[0] || f_rx->xfer[1])) {
sys/dev/usb/usb_generic.c
1698
(f_tx->xfer[0] || f_tx->xfer[1])) {
sys/dev/usb/usb_generic.c
1713
struct usb_xfer *xfer;
sys/dev/usb/usb_generic.c
1742
xfer = f->fs_xfer[u.pstart->ep_index];
sys/dev/usb/usb_generic.c
1743
usbd_transfer_start(xfer);
sys/dev/usb/usb_generic.c
1755
xfer = f->fs_xfer[u.pstart->ep_index];
sys/dev/usb/usb_generic.c
1756
if (usbd_transfer_pending(xfer)) {
sys/dev/usb/usb_generic.c
1757
usbd_transfer_stop(xfer);
sys/dev/usb/usb_generic.c
1764
if (!xfer->flags_int.transferring &&
sys/dev/usb/usb_generic.c
1765
!xfer->flags_int.started) {
sys/dev/usb/usb_generic.c
1767
ugen_fs_set_complete(xfer->priv_sc,
sys/dev/usb/usb_generic.c
1768
USB_P2U(xfer->priv_fifo));
sys/dev/usb/usb_generic.c
1799
if (f->xfer[0] || f->xfer[1]) {
sys/dev/usb/usb_generic.c
1821
if (f->xfer[0]) {
sys/dev/usb/usb_generic.c
1822
*(int *)addr = f->xfer[0]->max_frame_size;
sys/dev/usb/usb_generic.c
1845
if (f->xfer[0] || f->xfer[1]) {
sys/dev/usb/usb_generic.c
195
error = usbd_transfer_setup(udev, &iface_index, f->xfer,
sys/dev/usb/usb_generic.c
198
if (f->xfer[0]->nframes == 1) {
sys/dev/usb/usb_generic.c
200
f->xfer[0]->max_data_length, 2);
sys/dev/usb/usb_generic.c
203
f->xfer[0]->max_frame_size,
sys/dev/usb/usb_generic.c
204
2 * f->xfer[0]->nframes);
sys/dev/usb/usb_generic.c
207
usbd_transfer_unsetup(f->xfer, n_setup);
sys/dev/usb/usb_generic.c
2511
ugen_ctrl_fs_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_generic.c
2516
USB_GET_STATE(xfer), xfer->actlen, xfer->aframes);
sys/dev/usb/usb_generic.c
2518
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_generic.c
2520
usbd_transfer_submit(xfer);
sys/dev/usb/usb_generic.c
2523
ugen_fs_set_complete(xfer->priv_sc, USB_P2U(xfer->priv_fifo));
sys/dev/usb/usb_generic.c
260
usbd_transfer_stop(f->xfer[0]);
sys/dev/usb/usb_generic.c
261
usbd_transfer_stop(f->xfer[1]);
sys/dev/usb/usb_generic.c
264
usbd_transfer_unsetup(f->xfer, 2);
sys/dev/usb/usb_generic.c
282
if (f->xfer[0] || f->xfer[1]) {
sys/dev/usb/usb_generic.c
351
if (f->xfer[0] || f->xfer[1]) {
sys/dev/usb/usb_generic.c
422
usbd_transfer_start(f->xfer[0]);
sys/dev/usb/usb_generic.c
423
usbd_transfer_start(f->xfer[1]);
sys/dev/usb/usb_generic.c
435
usbd_transfer_start(f->xfer[0]);
sys/dev/usb/usb_generic.c
436
usbd_transfer_start(f->xfer[1]);
sys/dev/usb/usb_generic.c
443
usbd_transfer_stop(f->xfer[0]);
sys/dev/usb/usb_generic.c
444
usbd_transfer_stop(f->xfer[1]);
sys/dev/usb/usb_generic.c
448
ugen_ctrl_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_generic.c
450
struct usb_fifo *f = usbd_xfer_softc(xfer);
sys/dev/usb/usb_generic.c
453
DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes);
sys/dev/usb/usb_generic.c
455
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_generic.c
457
if (xfer->actlen == 0) {
sys/dev/usb/usb_generic.c
465
xfer->interval = 64; /* ms */
sys/dev/usb/usb_generic.c
469
xfer->interval = 0;
sys/dev/usb/usb_generic.c
472
usb_fifo_put_data(f, xfer->frbuffers, 0,
sys/dev/usb/usb_generic.c
473
xfer->actlen, 1);
sys/dev/usb/usb_generic.c
477
usbd_transfer_start(f->xfer[1]);
sys/dev/usb/usb_generic.c
482
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/usb_generic.c
483
usbd_transfer_submit(xfer);
sys/dev/usb/usb_generic.c
488
if (xfer->error != USB_ERR_CANCELLED) {
sys/dev/usb/usb_generic.c
490
usb_fifo_put_data(f, xfer->frbuffers, 0, 0, 1);
sys/dev/usb/usb_generic.c
493
usbd_transfer_start(f->xfer[1]);
sys/dev/usb/usb_generic.c
500
ugen_ctrl_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_generic.c
502
struct usb_fifo *f = usbd_xfer_softc(xfer);
sys/dev/usb/usb_generic.c
505
DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes);
sys/dev/usb/usb_generic.c
507
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_generic.c
515
usbd_transfer_start(f->xfer[1]);
sys/dev/usb/usb_generic.c
521
if (usb_fifo_get_data(f, xfer->frbuffers, 0,
sys/dev/usb/usb_generic.c
522
xfer->max_data_length, &actlen, 0)) {
sys/dev/usb/usb_generic.c
523
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/dev/usb/usb_generic.c
524
usbd_transfer_submit(xfer);
sys/dev/usb/usb_generic.c
529
if (xfer->error != USB_ERR_CANCELLED) {
sys/dev/usb/usb_generic.c
531
usbd_transfer_start(f->xfer[1]);
sys/dev/usb/usb_generic.c
538
ugen_read_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_generic.c
540
struct usb_fifo *f = usbd_xfer_softc(xfer);
sys/dev/usb/usb_generic.c
541
struct usb_xfer *xfer_other = f->xfer[0];
sys/dev/usb/usb_generic.c
547
if (usbd_clear_stall_callback(xfer, xfer_other)) {
sys/dev/usb/usb_generic.c
555
ugen_write_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_generic.c
557
struct usb_fifo *f = usbd_xfer_softc(xfer);
sys/dev/usb/usb_generic.c
558
struct usb_xfer *xfer_other = f->xfer[0];
sys/dev/usb/usb_generic.c
564
if (usbd_clear_stall_callback(xfer, xfer_other)) {
sys/dev/usb/usb_generic.c
572
ugen_isoc_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_generic.c
574
struct usb_fifo *f = usbd_xfer_softc(xfer);
sys/dev/usb/usb_generic.c
578
DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes);
sys/dev/usb/usb_generic.c
580
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_generic.c
583
DPRINTFN(6, "actlen=%d\n", xfer->actlen);
sys/dev/usb/usb_generic.c
587
for (n = 0; n != xfer->aframes; n++) {
sys/dev/usb/usb_generic.c
588
usb_fifo_put_data(f, xfer->frbuffers, offset,
sys/dev/usb/usb_generic.c
589
xfer->frlengths[n], 1);
sys/dev/usb/usb_generic.c
590
offset += xfer->max_frame_size;
sys/dev/usb/usb_generic.c
595
for (n = 0; n != xfer->nframes; n++) {
sys/dev/usb/usb_generic.c
597
usbd_xfer_set_frame_len(xfer, n, xfer->max_frame_size);
sys/dev/usb/usb_generic.c
599
usbd_transfer_submit(xfer);
sys/dev/usb/usb_generic.c
603
if (xfer->error == USB_ERR_CANCELLED) {
sys/dev/usb/usb_generic.c
611
ugen_isoc_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_generic.c
613
struct usb_fifo *f = usbd_xfer_softc(xfer);
sys/dev/usb/usb_generic.c
618
DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes);
sys/dev/usb/usb_generic.c
620
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_generic.c
625
for (n = 0; n != xfer->nframes; n++) {
sys/dev/usb/usb_generic.c
626
if (usb_fifo_get_data(f, xfer->frbuffers, offset,
sys/dev/usb/usb_generic.c
627
xfer->max_frame_size, &actlen, 1)) {
sys/dev/usb/usb_generic.c
628
usbd_xfer_set_frame_len(xfer, n, actlen);
sys/dev/usb/usb_generic.c
635
for (; n != xfer->nframes; n++) {
sys/dev/usb/usb_generic.c
637
usbd_xfer_set_frame_len(xfer, n, 0);
sys/dev/usb/usb_generic.c
639
usbd_transfer_submit(xfer);
sys/dev/usb/usb_generic.c
643
if (xfer->error == USB_ERR_CANCELLED) {
sys/dev/usb/usb_handle_request.c
100
err = usb_handle_request(xfer);
sys/dev/usb/usb_handle_request.c
105
usb_needs_explore(xfer->xroot->bus, 0);
sys/dev/usb/usb_handle_request.c
110
usbd_transfer_submit(xfer);
sys/dev/usb/usb_handle_request.c
115
if (xfer->flags_int.control_rem != 0xFFFF) {
sys/dev/usb/usb_handle_request.c
117
err = usb_handle_request(xfer);
sys/dev/usb/usb_handle_request.c
119
if (xfer->error != USB_ERR_CANCELLED) {
sys/dev/usb/usb_handle_request.c
132
usbd_xfer_set_frame_len(xfer, 0, sizeof(struct usb_device_request));
sys/dev/usb/usb_handle_request.c
133
xfer->nframes = 1;
sys/dev/usb/usb_handle_request.c
134
xfer->flags.manual_status = 1;
sys/dev/usb/usb_handle_request.c
135
xfer->flags.force_short_xfer = 0;
sys/dev/usb/usb_handle_request.c
136
usbd_xfer_set_stall(xfer); /* cancel previous transfer, if any */
sys/dev/usb/usb_handle_request.c
137
usbd_transfer_submit(xfer);
sys/dev/usb/usb_handle_request.c
148
usb_handle_set_config(struct usb_xfer *xfer, uint8_t conf_no)
sys/dev/usb/usb_handle_request.c
150
struct usb_device *udev = xfer->xroot->udev;
sys/dev/usb/usb_handle_request.c
158
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_handle_request.c
186
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_handle_request.c
217
usb_handle_iface_request(struct usb_xfer *xfer,
sys/dev/usb/usb_handle_request.c
223
struct usb_device *udev = xfer->xroot->udev;
sys/dev/usb/usb_handle_request.c
239
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_handle_request.c
360
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_handle_request.c
366
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_handle_request.c
372
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_handle_request.c
384
usb_handle_set_stall(struct usb_xfer *xfer, uint8_t ep, uint8_t do_stall)
sys/dev/usb/usb_handle_request.c
386
struct usb_device *udev = xfer->xroot->udev;
sys/dev/usb/usb_handle_request.c
389
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_handle_request.c
392
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_handle_request.c
429
usb_handle_remote_wakeup(struct usb_xfer *xfer, uint8_t is_on)
sys/dev/usb/usb_handle_request.c
434
udev = xfer->xroot->udev;
sys/dev/usb/usb_handle_request.c
466
usb_handle_request(struct usb_xfer *xfer)
sys/dev/usb/usb_handle_request.c
489
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_handle_request.c
493
if (!xfer->flags_int.control_act) {
sys/dev/usb/usb_handle_request.c
499
if (!xfer->flags_int.control_act) {
sys/dev/usb/usb_handle_request.c
512
usbd_xfer_set_frame_len(xfer, 0, 0);
sys/dev/usb/usb_handle_request.c
514
usbd_xfer_set_frame_offset(xfer, 0, 0);
sys/dev/usb/usb_handle_request.c
515
usbd_xfer_set_frame_offset(xfer, sizeof(req), 1);
sys/dev/usb/usb_handle_request.c
519
usbd_copy_out(xfer->frbuffers, 0, &req, sizeof(req));
sys/dev/usb/usb_handle_request.c
521
if (xfer->flags_int.control_rem == 0xFFFF) {
sys/dev/usb/usb_handle_request.c
527
rem = xfer->flags_int.control_rem;
sys/dev/usb/usb_handle_request.c
536
udev = xfer->xroot->udev;
sys/dev/usb/usb_handle_request.c
625
err = usb_handle_iface_request(xfer,
sys/dev/usb/usb_handle_request.c
699
if (usb_handle_set_config(xfer, req.wValue[0])) {
sys/dev/usb/usb_handle_request.c
707
if (usb_handle_set_stall(xfer, req.wIndex[0], 0)) {
sys/dev/usb/usb_handle_request.c
715
if (usb_handle_remote_wakeup(xfer, 0)) {
sys/dev/usb/usb_handle_request.c
723
if (usb_handle_set_stall(xfer, req.wIndex[0], 1)) {
sys/dev/usb/usb_handle_request.c
731
if (usb_handle_remote_wakeup(xfer, 1)) {
sys/dev/usb/usb_handle_request.c
757
if (max_len > xfer->max_data_length) {
sys/dev/usb/usb_handle_request.c
758
max_len = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_handle_request.c
768
if (rem > xfer->max_data_length) {
sys/dev/usb/usb_handle_request.c
769
rem = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_handle_request.c
776
xfer->flags.force_short_xfer = 1;
sys/dev/usb/usb_handle_request.c
777
xfer->nframes = 2;
sys/dev/usb/usb_handle_request.c
782
xfer->flags.force_short_xfer = 0;
sys/dev/usb/usb_handle_request.c
783
xfer->nframes = max_len ? 2 : 1;
sys/dev/usb/usb_handle_request.c
788
usbd_copy_in(xfer->frbuffers + 1, 0,
sys/dev/usb/usb_handle_request.c
790
usbd_xfer_set_frame_len(xfer, 1, max_len);
sys/dev/usb/usb_handle_request.c
792
usbd_xfer_set_frame_data(xfer, 1,
sys/dev/usb/usb_handle_request.c
797
xfer->flags.manual_status = 0;
sys/dev/usb/usb_handle_request.c
798
usbd_xfer_set_frame_len(xfer, 1, 0);
sys/dev/usb/usb_handle_request.c
89
usb_handle_request_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_handle_request.c
95
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_hub.c
185
uhub_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_hub.c
187
struct uhub_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_hub.c
189
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_hub.c
1921
usb_hs_bandwidth_alloc(struct usb_xfer *xfer)
sys/dev/usb/usb_hub.c
1928
udev = xfer->xroot->udev;
sys/dev/usb/usb_hub.c
1933
xfer->endpoint->refcount_bw++;
sys/dev/usb/usb_hub.c
1934
if (xfer->endpoint->refcount_bw != 1)
sys/dev/usb/usb_hub.c
1939
switch (xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE) {
sys/dev/usb/usb_hub.c
1945
xfer->max_frame_size, USB_HS_MICRO_FRAMES_MAX, mask);
sys/dev/usb/usb_hub.c
1947
xfer->endpoint->usb_uframe = slot;
sys/dev/usb/usb_hub.c
1948
xfer->endpoint->usb_smask = mask << slot;
sys/dev/usb/usb_hub.c
1952
xfer->endpoint->usb_cmask = 0x00 ;
sys/dev/usb/usb_hub.c
1954
xfer->endpoint->usb_cmask = (-(0x04 << slot)) & 0xFE;
sys/dev/usb/usb_hub.c
1959
switch (usbd_xfer_get_fps_shift(xfer)) {
sys/dev/usb/usb_hub.c
1977
xfer->max_frame_size, USB_HS_MICRO_FRAMES_MAX, mask);
sys/dev/usb/usb_hub.c
1979
xfer->endpoint->usb_uframe = slot;
sys/dev/usb/usb_hub.c
1980
xfer->endpoint->usb_cmask = 0;
sys/dev/usb/usb_hub.c
1981
xfer->endpoint->usb_smask = mask << slot;
sys/dev/usb/usb_hub.c
1985
xfer->endpoint->usb_uframe = 0;
sys/dev/usb/usb_hub.c
1986
xfer->endpoint->usb_cmask = 0;
sys/dev/usb/usb_hub.c
1987
xfer->endpoint->usb_smask = 0;
sys/dev/usb/usb_hub.c
1992
xfer->endpoint->usb_uframe,
sys/dev/usb/usb_hub.c
1993
xfer->endpoint->usb_smask >> xfer->endpoint->usb_uframe);
sys/dev/usb/usb_hub.c
2002
usb_hs_bandwidth_free(struct usb_xfer *xfer)
sys/dev/usb/usb_hub.c
2008
udev = xfer->xroot->udev;
sys/dev/usb/usb_hub.c
201
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/usb_hub.c
2013
xfer->endpoint->refcount_bw--;
sys/dev/usb/usb_hub.c
2014
if (xfer->endpoint->refcount_bw != 0)
sys/dev/usb/usb_hub.c
2017
switch (xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE) {
sys/dev/usb/usb_hub.c
202
usbd_transfer_submit(xfer);
sys/dev/usb/usb_hub.c
2021
slot = xfer->endpoint->usb_uframe;
sys/dev/usb/usb_hub.c
2022
mask = xfer->endpoint->usb_smask;
sys/dev/usb/usb_hub.c
2026
-xfer->max_frame_size, slot, mask >> slot);
sys/dev/usb/usb_hub.c
2031
xfer->endpoint->usb_uframe = 0;
sys/dev/usb/usb_hub.c
2032
xfer->endpoint->usb_cmask = 0;
sys/dev/usb/usb_hub.c
2033
xfer->endpoint->usb_smask = 0;
sys/dev/usb/usb_hub.c
206
if (xfer->error != USB_ERR_CANCELLED) {
sys/dev/usb/usb_hub.c
2086
struct usb_xfer *xfer;
sys/dev/usb/usb_hub.c
2100
TAILQ_FOREACH(xfer, &bus->intr_q.head, wait_entry) {
sys/dev/usb/usb_hub.c
2103
if (xfer == isoc_xfer)
sys/dev/usb/usb_hub.c
2108
if (xfer->xroot->udev->parent_hs_hub !=
sys/dev/usb/usb_hub.c
2114
(xfer->xroot->udev->hs_port_no !=
sys/dev/usb/usb_hub.c
2118
if (xfer->endpoint->methods != isoc_xfer->endpoint->methods)
sys/dev/usb/usb_hub.c
212
usbd_xfer_set_stall(xfer);
sys/dev/usb/usb_hub.c
2123
delta = xfer->isoc_time_complete - isoc_time;
sys/dev/usb/usb_hub.c
2124
if (delta > 0 && delta <= xfer->nframes) {
sys/dev/usb/usb_hub.c
2125
delta = xfer->nframes - delta;
sys/dev/usb/usb_hub.c
2127
len = xfer->frlengths[delta];
sys/dev/usb/usb_hub.c
213
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/usb_hub.c
2139
TAILQ_FOREACH(pipe_xfer, &xfer->endpoint->endpoint_q[0].head,
sys/dev/usb/usb_hub.c
214
usbd_transfer_submit(xfer);
sys/dev/usb/usb_hub.c
2387
usbd_transfer_power_ref(struct usb_xfer *xfer, int val)
sys/dev/usb/usb_hub.c
2400
udev = xfer->xroot->udev;
sys/dev/usb/usb_hub.c
2408
xfer_type = xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE;
sys/dev/usb/usb_hub.c
2413
if (xfer->flags_int.control_xfr) {
sys/dev/usb/usb_hub.c
2415
if (xfer->flags_int.usb_mode == USB_MODE_HOST) {
sys/dev/usb/usb_hub.c
2422
} else if (USB_GET_DATA_ISREAD(xfer)) {
sys/dev/usb/usb_hub.c
326
uhub_reset_tt_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_hub.c
335
sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_hub.c
338
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_hub.c
351
usbd_copy_in(xfer->frbuffers, 0, &up->req_reset_tt,
sys/dev/usb/usb_hub.c
357
usbd_xfer_set_frame_len(xfer, 0, sizeof(up->req_reset_tt));
sys/dev/usb/usb_hub.c
358
xfer->nframes = 1;
sys/dev/usb/usb_hub.c
361
usbd_transfer_submit(xfer);
sys/dev/usb/usb_hub.h
67
void usb_hs_bandwidth_alloc(struct usb_xfer *xfer);
sys/dev/usb/usb_hub.h
68
void usb_hs_bandwidth_free(struct usb_xfer *xfer);
sys/dev/usb/usb_msctest.c
164
struct usb_xfer *xfer[ST_MAX];
sys/dev/usb/usb_msctest.c
285
usbd_transfer_start(sc->xfer[xfer_index]);
sys/dev/usb/usb_msctest.c
289
bbb_data_clear_stall_callback(struct usb_xfer *xfer,
sys/dev/usb/usb_msctest.c
292
struct bbb_transfer *sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_msctest.c
294
if (usbd_clear_stall_callback(xfer, sc->xfer[stall_xfer])) {
sys/dev/usb/usb_msctest.c
295
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_msctest.c
308
bbb_command_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_msctest.c
310
struct bbb_transfer *sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_msctest.c
313
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_msctest.c
334
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/usb_msctest.c
336
usbd_transfer_submit(xfer);
sys/dev/usb/usb_msctest.c
346
bbb_data_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_msctest.c
348
struct bbb_transfer *sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_msctest.c
349
usb_frlength_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_msctest.c
352
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/usb_msctest.c
354
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_msctest.c
375
usbd_xfer_set_timeout(xfer, sc->data_timeout);
sys/dev/usb/usb_msctest.c
376
usbd_xfer_set_frame_data(xfer, 0, sc->data_ptr, max_bulk);
sys/dev/usb/usb_msctest.c
377
usbd_transfer_submit(xfer);
sys/dev/usb/usb_msctest.c
391
bbb_data_rd_cs_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_msctest.c
393
bbb_data_clear_stall_callback(xfer, ST_STATUS,
sys/dev/usb/usb_msctest.c
398
bbb_data_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_msctest.c
400
struct bbb_transfer *sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_msctest.c
401
usb_frlength_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_msctest.c
404
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/usb_msctest.c
406
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_msctest.c
427
usbd_xfer_set_timeout(xfer, sc->data_timeout);
sys/dev/usb/usb_msctest.c
428
usbd_xfer_set_frame_data(xfer, 0, sc->data_ptr, max_bulk);
sys/dev/usb/usb_msctest.c
429
usbd_transfer_submit(xfer);
sys/dev/usb/usb_msctest.c
443
bbb_data_wr_cs_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_msctest.c
445
bbb_data_clear_stall_callback(xfer, ST_STATUS,
sys/dev/usb/usb_msctest.c
450
bbb_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_msctest.c
452
struct bbb_transfer *sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_msctest.c
456
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/usb_msctest.c
458
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_msctest.c
473
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/usb_msctest.c
475
usbd_transfer_submit(xfer);
sys/dev/usb/usb_msctest.c
493
bbb_raw_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_msctest.c
495
struct bbb_transfer *sc = usbd_xfer_softc(xfer);
sys/dev/usb/usb_msctest.c
496
usb_frlength_t max_bulk = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_msctest.c
499
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/usb_msctest.c
501
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_msctest.c
522
usbd_xfer_set_timeout(xfer, sc->data_timeout);
sys/dev/usb/usb_msctest.c
523
usbd_xfer_set_frame_data(xfer, 0, sc->data_ptr, max_bulk);
sys/dev/usb/usb_msctest.c
524
usbd_transfer_submit(xfer);
sys/dev/usb/usb_msctest.c
559
usbd_transfer_start(sc->xfer[sc->state]);
sys/dev/usb/usb_msctest.c
561
while (usbd_transfer_pending(sc->xfer[sc->state])) {
sys/dev/usb/usb_msctest.c
590
usbd_transfer_start(sc->xfer[0]);
sys/dev/usb/usb_msctest.c
591
while (usbd_transfer_pending(sc->xfer[0]))
sys/dev/usb/usb_msctest.c
671
err = usbd_transfer_setup(udev, &iface_index, sc->xfer, pconfig,
sys/dev/usb/usb_msctest.c
681
sc->xfer[ST_DATA_RD], 0);
sys/dev/usb/usb_msctest.c
683
usbd_xfer_max_len(sc->xfer[ST_DATA_RD]);
sys/dev/usb/usb_msctest.c
685
sc->xfer[ST_COMMAND], 0);
sys/dev/usb/usb_msctest.c
687
sc->xfer[ST_STATUS], 0);
sys/dev/usb/usb_msctest.c
698
usbd_transfer_unsetup(sc->xfer, ST_MAX);
sys/dev/usb/usb_pf.c
174
usbpf_xfer_frame_is_read(struct usb_xfer *xfer, uint32_t frame)
sys/dev/usb/usb_pf.c
178
if ((frame == 0) && (xfer->flags_int.control_xfr != 0) &&
sys/dev/usb/usb_pf.c
179
(xfer->flags_int.control_hdr != 0)) {
sys/dev/usb/usb_pf.c
181
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/usb_pf.c
189
isread = USB_GET_DATA_ISREAD(xfer);
sys/dev/usb/usb_pf.c
195
usbpf_xfer_precompute_size(struct usb_xfer *xfer, int type)
sys/dev/usb/usb_pf.c
202
nframes = xfer->nframes;
sys/dev/usb/usb_pf.c
204
nframes = xfer->aframes;
sys/dev/usb/usb_pf.c
210
if (usbpf_xfer_frame_is_read(xfer, x)) {
sys/dev/usb/usb_pf.c
213
xfer->frlengths[x]);
sys/dev/usb/usb_pf.c
218
xfer->frlengths[x]);
sys/dev/usb/usb_pf.c
226
usbpf_xfertap(struct usb_xfer *xfer, int type)
sys/dev/usb/usb_pf.c
241
bus = xfer->xroot->bus;
sys/dev/usb/usb_pf.c
243
totlen = usbpf_xfer_precompute_size(xfer, type);
sys/dev/usb/usb_pf.c
246
nframes = xfer->nframes;
sys/dev/usb/usb_pf.c
248
nframes = xfer->aframes;
sys/dev/usb/usb_pf.c
269
up->up_address = xfer->xroot->udev->device_index;
sys/dev/usb/usb_pf.c
270
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE)
sys/dev/usb/usb_pf.c
275
up->up_xfertype = xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE;
sys/dev/usb/usb_pf.c
276
temp = usbpf_aggregate_xferflags(&xfer->flags);
sys/dev/usb/usb_pf.c
278
temp = usbpf_aggregate_status(&xfer->flags_int);
sys/dev/usb/usb_pf.c
280
temp = xfer->error;
sys/dev/usb/usb_pf.c
282
temp = xfer->interval;
sys/dev/usb/usb_pf.c
285
temp = xfer->max_packet_size;
sys/dev/usb/usb_pf.c
287
temp = xfer->max_packet_count;
sys/dev/usb/usb_pf.c
289
temp = xfer->endpointno;
sys/dev/usb/usb_pf.c
291
up->up_speed = xfer->xroot->udev->speed;
sys/dev/usb/usb_pf.c
306
length = xfer->frlengths[x];
sys/dev/usb/usb_pf.c
317
isread = usbpf_xfer_frame_is_read(xfer, x);
sys/dev/usb/usb_pf.c
343
usbd_copy_out(&xfer->frbuffers[frame],
sys/dev/usb/usb_pf.c
356
if (xfer->flags_int.isochronous_xfr) {
sys/dev/usb/usb_pf.c
357
offset += usbd_xfer_old_frame_length(xfer, x);
sys/dev/usb/usb_request.c
203
usbd_do_request_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_request.c
207
DPRINTF("st=%u\n", USB_GET_STATE(xfer));
sys/dev/usb/usb_request.c
209
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_request.c
211
usbd_transfer_submit(xfer);
sys/dev/usb/usb_request.c
214
cv_signal(&xfer->xroot->udev->ctrlreq_cv);
sys/dev/usb/usb_request.c
225
usb_do_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_request.c
235
udev = xfer->xroot->udev;
sys/dev/usb/usb_request.c
246
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/usb_request.c
287
usbd_copy_in(xfer->frbuffers, 0, &req, sizeof(req));
sys/dev/usb/usb_request.c
290
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/dev/usb/usb_request.c
291
xfer->nframes = 1;
sys/dev/usb/usb_request.c
294
usbd_transfer_submit(xfer);
sys/dev/usb/usb_request.c
422
struct usb_xfer *xfer;
sys/dev/usb/usb_request.c
532
xfer = udev->ctrl_xfer[0];
sys/dev/usb/usb_request.c
533
if (xfer == NULL) {
sys/dev/usb/usb_request.c
547
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_request.c
550
xfer->flags.manual_status = 1;
sys/dev/usb/usb_request.c
552
xfer->flags.manual_status = 0;
sys/dev/usb/usb_request.c
555
xfer->flags.short_xfer_ok = 1;
sys/dev/usb/usb_request.c
557
xfer->flags.short_xfer_ok = 0;
sys/dev/usb/usb_request.c
559
xfer->timeout = timeout;
sys/dev/usb/usb_request.c
565
usbd_copy_in(xfer->frbuffers, 0, req, sizeof(*req));
sys/dev/usb/usb_request.c
567
usbd_xfer_set_frame_len(xfer, 0, sizeof(*req));
sys/dev/usb/usb_request.c
571
if (temp > usbd_xfer_max_len(xfer)) {
sys/dev/usb/usb_request.c
572
temp = usbd_xfer_max_len(xfer);
sys/dev/usb/usb_request.c
575
if (xfer->flags.manual_status) {
sys/dev/usb/usb_request.c
576
if (usbd_xfer_frame_len(xfer, 0) != 0) {
sys/dev/usb/usb_request.c
586
xfer->xroot->xfer_mtx,
sys/dev/usb/usb_request.c
594
usbd_xfer_set_frame_len(xfer, 1, temp);
sys/dev/usb/usb_request.c
600
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_request.c
601
err = usbd_copy_in_user(xfer->frbuffers + 1,
sys/dev/usb/usb_request.c
603
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_request.c
610
usbd_copy_in(xfer->frbuffers + 1,
sys/dev/usb/usb_request.c
613
usbd_xfer_set_frames(xfer, 2);
sys/dev/usb/usb_request.c
615
if (usbd_xfer_frame_len(xfer, 0) == 0) {
sys/dev/usb/usb_request.c
616
if (xfer->flags.manual_status) {
sys/dev/usb/usb_request.c
624
xfer->xroot->xfer_mtx,
sys/dev/usb/usb_request.c
630
xfer->flags.manual_status = 0;
sys/dev/usb/usb_request.c
635
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/usb_request.c
638
usbd_transfer_start(xfer);
sys/dev/usb/usb_request.c
640
while (usbd_transfer_pending(xfer)) {
sys/dev/usb/usb_request.c
642
xfer->xroot->xfer_mtx);
sys/dev/usb/usb_request.c
645
err = xfer->error;
sys/dev/usb/usb_request.c
653
if (xfer->aframes < 2) {
sys/dev/usb/usb_request.c
656
acttemp = usbd_xfer_frame_len(xfer, 1);
sys/dev/usb/usb_request.c
669
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_request.c
670
err = usbd_copy_out_user(xfer->frbuffers + 1,
sys/dev/usb/usb_request.c
672
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_request.c
679
usbd_copy_out(xfer->frbuffers + 1,
sys/dev/usb/usb_request.c
687
usbd_xfer_set_frame_len(xfer, 0, 0);
sys/dev/usb/usb_request.c
714
usbd_transfer_stop(xfer);
sys/dev/usb/usb_request.c
716
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_transfer.c
1170
xfer = USB_ADD_BYTES(buf, parm->size[0]);
sys/dev/usb/usb_transfer.c
1171
xfer->address = udev->address;
sys/dev/usb/usb_transfer.c
1172
xfer->priv_sc = priv_sc;
sys/dev/usb/usb_transfer.c
1173
xfer->xroot = info;
sys/dev/usb/usb_transfer.c
1175
usb_callout_init_mtx(&xfer->timeout_handle,
sys/dev/usb/usb_transfer.c
1185
xfer = &udev->scratch.xfer_setup[0].dummy;
sys/dev/usb/usb_transfer.c
1186
memset(xfer, 0, sizeof(*xfer));
sys/dev/usb/usb_transfer.c
1191
xfer->endpoint = ep;
sys/dev/usb/usb_transfer.c
1194
xfer->stream_id = setup->stream_id;
sys/dev/usb/usb_transfer.c
1196
parm->size[0] += sizeof(xfer[0]);
sys/dev/usb/usb_transfer.c
1197
parm->methods = xfer->endpoint->methods;
sys/dev/usb/usb_transfer.c
1198
parm->curr_xfer = xfer;
sys/dev/usb/usb_transfer.c
1221
if (xfer->endpoint->refcount_alloc >= USB_EP_REF_MAX)
sys/dev/usb/usb_transfer.c
1224
xfer->endpoint->refcount_alloc++;
sys/dev/usb/usb_transfer.c
1226
if (xfer->endpoint->refcount_alloc == 0)
sys/dev/usb/usb_transfer.c
1241
ppxfer[n] = xfer;
sys/dev/usb/usb_transfer.c
1432
struct usb_xfer *xfer;
sys/dev/usb/usb_transfer.c
1440
xfer = pxfer[n_setup];
sys/dev/usb/usb_transfer.c
1442
if (xfer == NULL)
sys/dev/usb/usb_transfer.c
1445
info = xfer->xroot;
sys/dev/usb/usb_transfer.c
1447
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_transfer.c
1469
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_transfer.c
1471
usbd_transfer_drain(xfer);
sys/dev/usb/usb_transfer.c
1474
if (xfer->flags_int.bdma_enable)
sys/dev/usb/usb_transfer.c
1482
xfer->endpoint->refcount_alloc--;
sys/dev/usb/usb_transfer.c
1485
usb_callout_drain(&xfer->timeout_handle);
sys/dev/usb/usb_transfer.c
151
usb_request_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_transfer.c
1515
usbd_control_transfer_init(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
1521
usbd_copy_out(xfer->frbuffers, 0, &req, sizeof(req));
sys/dev/usb/usb_transfer.c
1525
xfer->flags_int.control_rem = UGETW(req.wLength);
sys/dev/usb/usb_transfer.c
1529
xfer->endpointno &= ~(UE_DIR_IN | UE_DIR_OUT);
sys/dev/usb/usb_transfer.c
153
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE)
sys/dev/usb/usb_transfer.c
1530
xfer->endpointno |=
sys/dev/usb/usb_transfer.c
154
usb_handle_request_callback(xfer, error);
sys/dev/usb/usb_transfer.c
1542
usbd_control_transfer_did_data(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
1547
if (xfer->flags_int.control_hdr != 0)
sys/dev/usb/usb_transfer.c
1551
usbd_copy_out(xfer->frbuffers, 0, &req, sizeof(req));
sys/dev/usb/usb_transfer.c
1554
return (xfer->flags_int.control_rem != UGETW(req.wLength));
sys/dev/usb/usb_transfer.c
156
usbd_do_request_callback(xfer, error);
sys/dev/usb/usb_transfer.c
1569
usbd_setup_ctrl_transfer(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
1574
if (xfer->flags.stall_pipe && xfer->flags_int.control_act) {
sys/dev/usb/usb_transfer.c
1576
xfer->flags_int.control_stall = 1;
sys/dev/usb/usb_transfer.c
1577
xfer->flags_int.control_act = 0;
sys/dev/usb/usb_transfer.c
1580
xfer->flags_int.control_stall = 0;
sys/dev/usb/usb_transfer.c
1584
if (xfer->nframes > 2) {
sys/dev/usb/usb_transfer.c
1592
(unsigned)xfer->nframes);
sys/dev/usb/usb_transfer.c
1600
if (xfer->flags_int.control_act) {
sys/dev/usb/usb_transfer.c
1601
if (xfer->flags_int.control_hdr) {
sys/dev/usb/usb_transfer.c
1604
xfer->flags_int.control_hdr = 0;
sys/dev/usb/usb_transfer.c
1607
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/usb_transfer.c
1608
usbd_control_transfer_init(xfer);
sys/dev/usb/usb_transfer.c
1613
len = xfer->sumlen;
sys/dev/usb/usb_transfer.c
1618
if (xfer->frlengths[0] != sizeof(struct usb_device_request)) {
sys/dev/usb/usb_transfer.c
1620
xfer->frlengths[0], sizeof(struct
sys/dev/usb/usb_transfer.c
1625
if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) {
sys/dev/usb/usb_transfer.c
1627
if (xfer->nframes != 1) {
sys/dev/usb/usb_transfer.c
1641
xfer->flags_int.control_rem = 0xFFFF;
sys/dev/usb/usb_transfer.c
1645
usbd_control_transfer_init(xfer);
sys/dev/usb/usb_transfer.c
1650
xfer->flags_int.control_hdr = 1;
sys/dev/usb/usb_transfer.c
1654
len = (xfer->sumlen - sizeof(struct usb_device_request));
sys/dev/usb/usb_transfer.c
1659
xfer->flags_int.control_did_data =
sys/dev/usb/usb_transfer.c
166
usbd_update_max_frame_size(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
1660
usbd_control_transfer_did_data(xfer);
sys/dev/usb/usb_transfer.c
1664
if (len > xfer->flags_int.control_rem) {
sys/dev/usb/usb_transfer.c
1667
xfer->flags_int.control_rem);
sys/dev/usb/usb_transfer.c
1672
if (xfer->flags.force_short_xfer) {
sys/dev/usb/usb_transfer.c
1673
xfer->flags_int.control_rem = 0;
sys/dev/usb/usb_transfer.c
1675
if ((len != xfer->max_data_length) &&
sys/dev/usb/usb_transfer.c
1676
(len != xfer->flags_int.control_rem) &&
sys/dev/usb/usb_transfer.c
1677
(xfer->nframes != 1)) {
sys/dev/usb/usb_transfer.c
1682
xfer->flags_int.control_rem -= len;
sys/dev/usb/usb_transfer.c
1687
if ((xfer->flags_int.control_rem > 0) ||
sys/dev/usb/usb_transfer.c
1688
(xfer->flags.manual_status)) {
sys/dev/usb/usb_transfer.c
1690
xfer->flags_int.control_act = 1;
sys/dev/usb/usb_transfer.c
1693
if ((!xfer->flags_int.control_hdr) &&
sys/dev/usb/usb_transfer.c
1694
(xfer->nframes == 1)) {
sys/dev/usb/usb_transfer.c
1704
xfer->flags_int.control_act = 0;
sys/dev/usb/usb_transfer.c
1718
usbd_transfer_submit(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
172
xfer->max_frame_size = xfer->max_packet_size * xfer->max_packet_count;
sys/dev/usb/usb_transfer.c
1724
info = xfer->xroot;
sys/dev/usb/usb_transfer.c
1728
xfer, xfer->endpoint, xfer->nframes, USB_GET_DATA_ISREAD(xfer) ?
sys/dev/usb/usb_transfer.c
1735
usb_dump_endpoint(xfer->endpoint);
sys/dev/usb/usb_transfer.c
1741
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
1745
if (!xfer->flags_int.open) {
sys/dev/usb/usb_transfer.c
1746
xfer->flags_int.open = 1;
sys/dev/usb/usb_transfer.c
1751
(xfer->endpoint->methods->open) (xfer);
sys/dev/usb/usb_transfer.c
1755
xfer->flags_int.transferring = 1;
sys/dev/usb/usb_transfer.c
1759
usbd_transfer_power_ref(xfer, 1);
sys/dev/usb/usb_transfer.c
1765
if (xfer->wait_queue) {
sys/dev/usb/usb_transfer.c
1767
usbd_transfer_dequeue(xfer);
sys/dev/usb/usb_transfer.c
1771
xfer->flags_int.did_dma_delay = 0;
sys/dev/usb/usb_transfer.c
1774
xfer->flags_int.did_close = 0;
sys/dev/usb/usb_transfer.c
1778
xfer->flags_int.bdma_setup = 0;
sys/dev/usb/usb_transfer.c
1781
xfer->flags_int.can_cancel_immed = 0;
sys/dev/usb/usb_transfer.c
1784
xfer->sumlen = 0;
sys/dev/usb/usb_transfer.c
1785
xfer->actlen = 0;
sys/dev/usb/usb_transfer.c
1786
xfer->aframes = 0;
sys/dev/usb/usb_transfer.c
1789
xfer->error = 0;
sys/dev/usb/usb_transfer.c
1798
usbd_transfer_done(xfer, USB_ERR_CANCELLED);
sys/dev/usb/usb_transfer.c
1804
if (xfer->nframes == 0) {
sys/dev/usb/usb_transfer.c
1805
if (xfer->flags.stall_pipe) {
sys/dev/usb/usb_transfer.c
1811
"or clear stall!\n", xfer);
sys/dev/usb/usb_transfer.c
1813
xfer->flags_int.can_cancel_immed = 1;
sys/dev/usb/usb_transfer.c
1815
usb_command_wrapper(&xfer->endpoint->
sys/dev/usb/usb_transfer.c
1816
endpoint_q[xfer->stream_id], xfer);
sys/dev/usb/usb_transfer.c
1821
usbd_transfer_done(xfer, USB_ERR_INVAL);
sys/dev/usb/usb_transfer.c
1827
for (x = 0; x != xfer->nframes; x++) {
sys/dev/usb/usb_transfer.c
1829
xfer->frlengths[x + xfer->max_frame_count] = xfer->frlengths[x];
sys/dev/usb/usb_transfer.c
1831
xfer->sumlen += xfer->frlengths[x];
sys/dev/usb/usb_transfer.c
1832
if (xfer->sumlen < xfer->frlengths[x]) {
sys/dev/usb/usb_transfer.c
1835
usbd_transfer_done(xfer, USB_ERR_INVAL);
sys/dev/usb/usb_transfer.c
1843
xfer->flags_int.short_xfer_ok = 0;
sys/dev/usb/usb_transfer.c
1844
xfer->flags_int.short_frames_ok = 0;
sys/dev/usb/usb_transfer.c
1848
if (xfer->flags_int.control_xfr) {
sys/dev/usb/usb_transfer.c
1849
if (usbd_setup_ctrl_transfer(xfer)) {
sys/dev/usb/usb_transfer.c
1851
usbd_transfer_done(xfer, USB_ERR_STALLED);
sys/dev/usb/usb_transfer.c
1860
if (USB_GET_DATA_ISREAD(xfer)) {
sys/dev/usb/usb_transfer.c
1861
if (xfer->flags.short_frames_ok) {
sys/dev/usb/usb_transfer.c
1862
xfer->flags_int.short_xfer_ok = 1;
sys/dev/usb/usb_transfer.c
1863
xfer->flags_int.short_frames_ok = 1;
sys/dev/usb/usb_transfer.c
1864
} else if (xfer->flags.short_xfer_ok) {
sys/dev/usb/usb_transfer.c
1865
xfer->flags_int.short_xfer_ok = 1;
sys/dev/usb/usb_transfer.c
1868
if (xfer->flags_int.control_xfr) {
sys/dev/usb/usb_transfer.c
1882
xfer->flags_int.short_frames_ok = 1;
sys/dev/usb/usb_transfer.c
1891
if (xfer->flags_int.bdma_enable) {
sys/dev/usb/usb_transfer.c
1894
usb_command_wrapper(&xfer->xroot->dma_q, xfer);
sys/dev/usb/usb_transfer.c
1903
usbd_pipe_enter(xfer);
sys/dev/usb/usb_transfer.c
1910
usbd_pipe_enter(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
1914
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
1916
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
1918
ep = xfer->endpoint;
sys/dev/usb/usb_transfer.c
1923
xfer->flags_int.can_cancel_immed = 1;
sys/dev/usb/usb_transfer.c
1926
(ep->methods->enter) (xfer);
sys/dev/usb/usb_transfer.c
1929
if (xfer->error) {
sys/dev/usb/usb_transfer.c
1931
usbd_transfer_done(xfer, 0);
sys/dev/usb/usb_transfer.c
1932
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
1937
usb_command_wrapper(&ep->endpoint_q[xfer->stream_id], xfer);
sys/dev/usb/usb_transfer.c
1938
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
1949
usbd_transfer_start(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
1951
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
1955
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
1959
if (!xfer->flags_int.started) {
sys/dev/usb/usb_transfer.c
1961
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
1962
xfer->flags_int.started = 1;
sys/dev/usb/usb_transfer.c
1963
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
1967
if (xfer->flags_int.transferring) {
sys/dev/usb/usb_transfer.c
1970
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
1972
usbd_callback_ss_done_defer(xfer);
sys/dev/usb/usb_transfer.c
1973
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
1985
usbd_transfer_stop(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
1989
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
1993
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
1997
if (!xfer->flags_int.open) {
sys/dev/usb/usb_transfer.c
1998
if (xfer->flags_int.started) {
sys/dev/usb/usb_transfer.c
2001
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2002
xfer->flags_int.started = 0;
sys/dev/usb/usb_transfer.c
2003
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2009
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2011
xfer->error = USB_ERR_CANCELLED;
sys/dev/usb/usb_transfer.c
2017
xfer->flags_int.open = 0;
sys/dev/usb/usb_transfer.c
2018
xfer->flags_int.started = 0;
sys/dev/usb/usb_transfer.c
2023
if (xfer->flags_int.transferring) {
sys/dev/usb/usb_transfer.c
2024
if (xfer->flags_int.can_cancel_immed &&
sys/dev/usb/usb_transfer.c
2025
(!xfer->flags_int.did_close)) {
sys/dev/usb/usb_transfer.c
2031
(xfer->endpoint->methods->close) (xfer);
sys/dev/usb/usb_transfer.c
2033
xfer->flags_int.did_close = 1;
sys/dev/usb/usb_transfer.c
2041
(xfer->endpoint->methods->close) (xfer);
sys/dev/usb/usb_transfer.c
2052
ep = xfer->endpoint;
sys/dev/usb/usb_transfer.c
2058
if (ep->endpoint_q[xfer->stream_id].curr == xfer) {
sys/dev/usb/usb_transfer.c
2060
&ep->endpoint_q[xfer->stream_id], NULL);
sys/dev/usb/usb_transfer.c
2064
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2077
usbd_transfer_pending(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2082
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
2086
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
2088
if (xfer->flags_int.transferring) {
sys/dev/usb/usb_transfer.c
2092
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2093
if (xfer->wait_queue) {
sys/dev/usb/usb_transfer.c
2095
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2098
info = xfer->xroot;
sys/dev/usb/usb_transfer.c
2101
if (pq->curr == xfer) {
sys/dev/usb/usb_transfer.c
2103
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2107
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2120
usbd_transfer_drain(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2125
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
2129
if (xfer->xroot->xfer_mtx != &Giant) {
sys/dev/usb/usb_transfer.c
2130
USB_XFER_LOCK_ASSERT(xfer, MA_NOTOWNED);
sys/dev/usb/usb_transfer.c
2132
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_transfer.c
2134
usbd_transfer_stop(xfer);
sys/dev/usb/usb_transfer.c
2136
while (usbd_transfer_pending(xfer) ||
sys/dev/usb/usb_transfer.c
2137
xfer->flags_int.doing_callback) {
sys/dev/usb/usb_transfer.c
2145
xfer->flags_int.draining = 1;
sys/dev/usb/usb_transfer.c
2151
cv_wait(&xfer->xroot->cv_drain, xfer->xroot->xfer_mtx);
sys/dev/usb/usb_transfer.c
2153
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_transfer.c
2157
usbd_xfer_get_frame(struct usb_xfer *xfer, usb_frcount_t frindex)
sys/dev/usb/usb_transfer.c
2159
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2161
return (&xfer->frbuffers[frindex]);
sys/dev/usb/usb_transfer.c
2165
usbd_xfer_get_frame_buffer(struct usb_xfer *xfer, usb_frcount_t frindex)
sys/dev/usb/usb_transfer.c
2169
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2171
usbd_get_page(&xfer->frbuffers[frindex], 0, &page_info);
sys/dev/usb/usb_transfer.c
2187
usbd_xfer_get_fps_shift(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2189
return (xfer->fps_shift);
sys/dev/usb/usb_transfer.c
2193
usbd_xfer_frame_len(struct usb_xfer *xfer, usb_frcount_t frindex)
sys/dev/usb/usb_transfer.c
2195
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2197
return (xfer->frlengths[frindex]);
sys/dev/usb/usb_transfer.c
2209
usbd_xfer_set_frame_data(struct usb_xfer *xfer, usb_frcount_t frindex,
sys/dev/usb/usb_transfer.c
2212
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2215
xfer->frbuffers[frindex].buffer = ptr;
sys/dev/usb/usb_transfer.c
2216
usbd_xfer_set_frame_len(xfer, frindex, len);
sys/dev/usb/usb_transfer.c
2220
usbd_xfer_frame_data(struct usb_xfer *xfer, usb_frcount_t frindex,
sys/dev/usb/usb_transfer.c
2223
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2226
*ptr = xfer->frbuffers[frindex].buffer;
sys/dev/usb/usb_transfer.c
2228
*len = xfer->frlengths[frindex];
sys/dev/usb/usb_transfer.c
2240
usbd_xfer_old_frame_length(struct usb_xfer *xfer, usb_frcount_t frindex)
sys/dev/usb/usb_transfer.c
2242
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2244
return (xfer->frlengths[frindex + xfer->max_frame_count]);
sys/dev/usb/usb_transfer.c
2248
usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen, int *aframes,
sys/dev/usb/usb_transfer.c
2252
*actlen = xfer->actlen;
sys/dev/usb/usb_transfer.c
2254
*sumlen = xfer->sumlen;
sys/dev/usb/usb_transfer.c
2256
*aframes = xfer->aframes;
sys/dev/usb/usb_transfer.c
2258
*nframes = xfer->nframes;
sys/dev/usb/usb_transfer.c
2268
usbd_xfer_set_frame_offset(struct usb_xfer *xfer, usb_frlength_t offset,
sys/dev/usb/usb_transfer.c
2271
KASSERT(!xfer->flags.ext_buffer, ("Cannot offset data frame "
sys/dev/usb/usb_transfer.c
2273
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2276
xfer->frbuffers[frindex].buffer =
sys/dev/usb/usb_transfer.c
2277
USB_ADD_BYTES(xfer->local_buffer, offset);
sys/dev/usb/usb_transfer.c
2281
usbd_xfer_set_interval(struct usb_xfer *xfer, int i)
sys/dev/usb/usb_transfer.c
2283
xfer->interval = i;
sys/dev/usb/usb_transfer.c
2287
usbd_xfer_set_timeout(struct usb_xfer *xfer, int t)
sys/dev/usb/usb_transfer.c
2289
xfer->timeout = t;
sys/dev/usb/usb_transfer.c
2293
usbd_xfer_set_frames(struct usb_xfer *xfer, usb_frcount_t n)
sys/dev/usb/usb_transfer.c
2295
xfer->nframes = n;
sys/dev/usb/usb_transfer.c
2299
usbd_xfer_max_frames(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2301
return (xfer->max_frame_count);
sys/dev/usb/usb_transfer.c
2305
usbd_xfer_max_len(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2307
return (xfer->max_data_length);
sys/dev/usb/usb_transfer.c
2311
usbd_xfer_max_framelen(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2313
return (xfer->max_frame_size);
sys/dev/usb/usb_transfer.c
2317
usbd_xfer_set_frame_len(struct usb_xfer *xfer, usb_frcount_t frindex,
sys/dev/usb/usb_transfer.c
2320
KASSERT(frindex < xfer->max_frame_count, ("frame index overflow"));
sys/dev/usb/usb_transfer.c
2322
xfer->frlengths[frindex] = len;
sys/dev/usb/usb_transfer.c
2360
usbd_callback_ss_done_defer(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2362
struct usb_xfer_root *info = xfer->xroot;
sys/dev/usb/usb_transfer.c
2365
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/usb_transfer.c
2367
if (pq->curr != xfer) {
sys/dev/usb/usb_transfer.c
2368
usbd_transfer_enqueue(pq, xfer);
sys/dev/usb/usb_transfer.c
2397
struct usb_xfer *xfer = pq->curr;
sys/dev/usb/usb_transfer.c
2398
struct usb_xfer_root *info = xfer->xroot;
sys/dev/usb/usb_transfer.c
2436
xfer->flags_int.doing_callback = 1;
sys/dev/usb/usb_transfer.c
2442
if (!xfer->flags_int.transferring) {
sys/dev/usb/usb_transfer.c
2443
xfer->usb_state = USB_ST_SETUP;
sys/dev/usb/usb_transfer.c
2444
if (!xfer->flags_int.started) {
sys/dev/usb/usb_transfer.c
2450
if (usbd_callback_wrapper_sub(xfer)) {
sys/dev/usb/usb_transfer.c
2457
usbd_transfer_power_ref(xfer, -1);
sys/dev/usb/usb_transfer.c
2459
xfer->flags_int.transferring = 0;
sys/dev/usb/usb_transfer.c
2461
if (xfer->error) {
sys/dev/usb/usb_transfer.c
2462
xfer->usb_state = USB_ST_ERROR;
sys/dev/usb/usb_transfer.c
2465
xfer->usb_state = USB_ST_TRANSFERRED;
sys/dev/usb/usb_transfer.c
2468
if (xfer->flags_int.bdma_enable &&
sys/dev/usb/usb_transfer.c
2469
(!xfer->flags_int.bdma_no_post_sync)) {
sys/dev/usb/usb_transfer.c
2470
usb_bdma_post_sync(xfer);
sys/dev/usb/usb_transfer.c
2477
if (xfer->usb_state != USB_ST_SETUP) {
sys/dev/usb/usb_transfer.c
2479
usbpf_xfertap(xfer, USBPF_XFERTAP_DONE);
sys/dev/usb/usb_transfer.c
2484
(xfer->callback) (xfer, xfer->error);
sys/dev/usb/usb_transfer.c
2493
if ((!xfer->flags_int.open) &&
sys/dev/usb/usb_transfer.c
2494
(xfer->flags_int.started) &&
sys/dev/usb/usb_transfer.c
2495
(xfer->usb_state == USB_ST_ERROR)) {
sys/dev/usb/usb_transfer.c
2497
xfer->flags_int.doing_callback = 0;
sys/dev/usb/usb_transfer.c
2499
usb_command_wrapper(&info->done_q, xfer);
sys/dev/usb/usb_transfer.c
2505
xfer->flags_int.doing_callback = 0;
sys/dev/usb/usb_transfer.c
2510
if (xfer->flags_int.draining &&
sys/dev/usb/usb_transfer.c
2511
(!xfer->flags_int.transferring)) {
sys/dev/usb/usb_transfer.c
2513
xfer->flags_int.draining = 0;
sys/dev/usb/usb_transfer.c
2531
usb_dma_delay_done_cb(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2533
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/usb_transfer.c
2535
DPRINTFN(3, "Completed %p\n", xfer);
sys/dev/usb/usb_transfer.c
2538
usbd_transfer_done(xfer, 0);
sys/dev/usb/usb_transfer.c
2550
usbd_transfer_dequeue(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2554
pq = xfer->wait_queue;
sys/dev/usb/usb_transfer.c
2556
TAILQ_REMOVE(&pq->head, xfer, wait_entry);
sys/dev/usb/usb_transfer.c
2557
xfer->wait_queue = NULL;
sys/dev/usb/usb_transfer.c
2570
usbd_transfer_enqueue(struct usb_xfer_queue *pq, struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2576
if (xfer->wait_queue == NULL) {
sys/dev/usb/usb_transfer.c
2577
xfer->wait_queue = pq;
sys/dev/usb/usb_transfer.c
2578
TAILQ_INSERT_TAIL(&pq->head, xfer, wait_entry);
sys/dev/usb/usb_transfer.c
2594
usbd_transfer_done(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/usb_transfer.c
2596
struct usb_xfer_root *info = xfer->xroot;
sys/dev/usb/usb_transfer.c
2606
if (!xfer->flags_int.transferring) {
sys/dev/usb/usb_transfer.c
2609
xfer->flags_int.control_act = 0;
sys/dev/usb/usb_transfer.c
2613
if (xfer->error == USB_ERR_NORMAL_COMPLETION)
sys/dev/usb/usb_transfer.c
2614
xfer->error = error;
sys/dev/usb/usb_transfer.c
2617
usb_callout_stop(&xfer->timeout_handle);
sys/dev/usb/usb_transfer.c
2624
usbd_transfer_dequeue(xfer);
sys/dev/usb/usb_transfer.c
2636
if (pq->curr == xfer) {
sys/dev/usb/usb_transfer.c
2643
if (xfer->error == USB_ERR_CANCELLED) {
sys/dev/usb/usb_transfer.c
2645
[xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE]++;
sys/dev/usb/usb_transfer.c
2646
} else if (xfer->error != USB_ERR_NORMAL_COMPLETION) {
sys/dev/usb/usb_transfer.c
2648
[xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE]++;
sys/dev/usb/usb_transfer.c
2651
[xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE]++;
sys/dev/usb/usb_transfer.c
2655
usbd_callback_ss_done_defer(xfer);
sys/dev/usb/usb_transfer.c
2668
struct usb_xfer *xfer = arg;
sys/dev/usb/usb_transfer.c
2669
struct usb_endpoint *ep = xfer->endpoint;
sys/dev/usb/usb_transfer.c
2671
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/usb_transfer.c
2676
usbpf_xfertap(xfer, USBPF_XFERTAP_SUBMIT);
sys/dev/usb/usb_transfer.c
2680
xfer->flags_int.can_cancel_immed = 1;
sys/dev/usb/usb_transfer.c
2683
if (xfer->error == 0)
sys/dev/usb/usb_transfer.c
2684
(ep->methods->start) (xfer);
sys/dev/usb/usb_transfer.c
2687
if (xfer->error) {
sys/dev/usb/usb_transfer.c
2689
usbd_transfer_done(xfer, 0);
sys/dev/usb/usb_transfer.c
2699
usbd_xfer_set_zlp(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2701
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
2705
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
2708
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2709
xfer->flags.send_zlp = 1;
sys/dev/usb/usb_transfer.c
2710
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2720
usbd_xfer_get_and_clr_zlp(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2724
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
2728
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
2730
retval = xfer->flags.send_zlp;
sys/dev/usb/usb_transfer.c
2736
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2737
xfer->flags.send_zlp = 0;
sys/dev/usb/usb_transfer.c
2738
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2741
usbd_xfer_set_frame_len(xfer, 0, 0);
sys/dev/usb/usb_transfer.c
2742
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/usb_transfer.c
2743
usbd_transfer_submit(xfer);
sys/dev/usb/usb_transfer.c
2755
usbd_xfer_set_stall(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2757
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
2761
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
2764
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2765
xfer->flags.stall_pipe = 1;
sys/dev/usb/usb_transfer.c
2766
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2770
usbd_xfer_is_stalled(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2772
return (xfer->endpoint->is_stalled);
sys/dev/usb/usb_transfer.c
2782
usbd_transfer_clear_stall(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2784
if (xfer == NULL) {
sys/dev/usb/usb_transfer.c
2788
USB_XFER_LOCK_ASSERT(xfer, MA_OWNED);
sys/dev/usb/usb_transfer.c
2791
USB_BUS_LOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2792
xfer->flags.stall_pipe = 0;
sys/dev/usb/usb_transfer.c
2793
USB_BUS_UNLOCK(xfer->xroot->bus);
sys/dev/usb/usb_transfer.c
2805
struct usb_xfer *xfer;
sys/dev/usb/usb_transfer.c
2808
xfer = pq->curr;
sys/dev/usb/usb_transfer.c
2809
ep = xfer->endpoint;
sys/dev/usb/usb_transfer.c
2811
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/usb_transfer.c
2822
if (xfer->flags.stall_pipe) {
sys/dev/usb/usb_transfer.c
2827
xfer->flags.stall_pipe = 0;
sys/dev/usb/usb_transfer.c
2830
info = xfer->xroot;
sys/dev/usb/usb_transfer.c
2881
if (xfer->nframes == 0) {
sys/dev/usb/usb_transfer.c
2883
xfer->aframes = 0;
sys/dev/usb/usb_transfer.c
2884
usbd_transfer_done(xfer, 0);
sys/dev/usb/usb_transfer.c
2898
if (xfer->interval > 0) {
sys/dev/usb/usb_transfer.c
2902
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/usb_transfer.c
2904
xfer->interval);
sys/dev/usb/usb_transfer.c
2911
usbpf_xfertap(xfer, USBPF_XFERTAP_SUBMIT);
sys/dev/usb/usb_transfer.c
2914
xfer->flags_int.can_cancel_immed = 1;
sys/dev/usb/usb_transfer.c
2917
if (xfer->error == 0)
sys/dev/usb/usb_transfer.c
2918
(ep->methods->start) (xfer);
sys/dev/usb/usb_transfer.c
2921
if (xfer->error) {
sys/dev/usb/usb_transfer.c
2923
usbd_transfer_done(xfer, 0);
sys/dev/usb/usb_transfer.c
2935
usbd_transfer_timeout_ms(struct usb_xfer *xfer,
sys/dev/usb/usb_transfer.c
2938
USB_BUS_LOCK_ASSERT(xfer->xroot->bus, MA_OWNED);
sys/dev/usb/usb_transfer.c
2941
usb_callout_reset(&xfer->timeout_handle,
sys/dev/usb/usb_transfer.c
2942
USB_MS_TO_TICKS(ms) + USB_CALLOUT_ZERO_TICKS, cb, xfer);
sys/dev/usb/usb_transfer.c
2963
usbd_callback_wrapper_sub(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
2969
bus = xfer->xroot->bus;
sys/dev/usb/usb_transfer.c
2971
if ((!xfer->flags_int.open) &&
sys/dev/usb/usb_transfer.c
2972
(!xfer->flags_int.did_close)) {
sys/dev/usb/usb_transfer.c
2975
(xfer->endpoint->methods->close) (xfer);
sys/dev/usb/usb_transfer.c
2978
xfer->flags_int.did_close = 1;
sys/dev/usb/usb_transfer.c
2985
if (xfer->error != 0 && !xfer->flags_int.did_dma_delay &&
sys/dev/usb/usb_transfer.c
2986
(xfer->error == USB_ERR_CANCELLED ||
sys/dev/usb/usb_transfer.c
2987
xfer->error == USB_ERR_TIMEOUT ||
sys/dev/usb/usb_transfer.c
2992
xfer->flags_int.did_dma_delay = 1;
sys/dev/usb/usb_transfer.c
2995
xfer->flags_int.can_cancel_immed = 0;
sys/dev/usb/usb_transfer.c
2997
temp = usbd_get_dma_delay(xfer->xroot->udev);
sys/dev/usb/usb_transfer.c
3000
"on %p\n", temp, xfer);
sys/dev/usb/usb_transfer.c
3011
(bus->methods->start_dma_delay) (xfer);
sys/dev/usb/usb_transfer.c
3013
usbd_transfer_timeout_ms(xfer,
sys/dev/usb/usb_transfer.c
3022
if (xfer->aframes > xfer->nframes) {
sys/dev/usb/usb_transfer.c
3023
if (xfer->error == 0) {
sys/dev/usb/usb_transfer.c
3026
__FUNCTION__, xfer->aframes, xfer->nframes);
sys/dev/usb/usb_transfer.c
3029
xfer->aframes = xfer->nframes;
sys/dev/usb/usb_transfer.c
3033
xfer->actlen = 0;
sys/dev/usb/usb_transfer.c
3035
for (x = 0; x != xfer->aframes; x++) {
sys/dev/usb/usb_transfer.c
3036
xfer->actlen += xfer->frlengths[x];
sys/dev/usb/usb_transfer.c
3044
for (; x < xfer->nframes; x++) {
sys/dev/usb/usb_transfer.c
3045
usbd_xfer_set_frame_len(xfer, x, 0);
sys/dev/usb/usb_transfer.c
3049
if (xfer->actlen > xfer->sumlen) {
sys/dev/usb/usb_transfer.c
3050
if (xfer->error == 0) {
sys/dev/usb/usb_transfer.c
3053
__FUNCTION__, xfer->actlen, xfer->sumlen);
sys/dev/usb/usb_transfer.c
3056
xfer->actlen = xfer->sumlen;
sys/dev/usb/usb_transfer.c
3060
xfer, xfer->endpoint, xfer->error, xfer->actlen, xfer->sumlen,
sys/dev/usb/usb_transfer.c
3061
xfer->aframes, xfer->nframes);
sys/dev/usb/usb_transfer.c
3063
if (xfer->error) {
sys/dev/usb/usb_transfer.c
3065
xfer->flags_int.control_act = 0;
sys/dev/usb/usb_transfer.c
3068
switch (xfer->error) {
sys/dev/usb/usb_transfer.c
3078
uhub_tt_buffer_reset_async_locked(xfer->xroot->udev, xfer->endpoint);
sys/dev/usb/usb_transfer.c
3084
if ((xfer->error != USB_ERR_CANCELLED) &&
sys/dev/usb/usb_transfer.c
3085
(xfer->flags.pipe_bof)) {
sys/dev/usb/usb_transfer.c
3087
"on endpoint=%p\n", xfer, xfer->endpoint);
sys/dev/usb/usb_transfer.c
3092
if (xfer->actlen < xfer->sumlen) {
sys/dev/usb/usb_transfer.c
3094
xfer->flags_int.control_act = 0;
sys/dev/usb/usb_transfer.c
3096
if (!xfer->flags_int.short_xfer_ok) {
sys/dev/usb/usb_transfer.c
3097
xfer->error = USB_ERR_SHORT_XFER;
sys/dev/usb/usb_transfer.c
3098
if (xfer->flags.pipe_bof) {
sys/dev/usb/usb_transfer.c
3101
xfer, xfer->endpoint);
sys/dev/usb/usb_transfer.c
3110
if (xfer->flags_int.control_act) {
sys/dev/usb/usb_transfer.c
3112
"active on endpoint=%p\n", xfer, xfer->endpoint);
sys/dev/usb/usb_transfer.c
3118
ep = xfer->endpoint;
sys/dev/usb/usb_transfer.c
3125
if (ep->endpoint_q[xfer->stream_id].curr == xfer) {
sys/dev/usb/usb_transfer.c
3126
usb_command_wrapper(&ep->endpoint_q[xfer->stream_id], NULL);
sys/dev/usb/usb_transfer.c
3128
if (ep->endpoint_q[xfer->stream_id].curr != NULL ||
sys/dev/usb/usb_transfer.c
3129
TAILQ_FIRST(&ep->endpoint_q[xfer->stream_id].head) != NULL) {
sys/dev/usb/usb_transfer.c
3134
xfer->endpoint->is_synced = 0;
sys/dev/usb/usb_transfer.c
3149
usb_command_wrapper(struct usb_xfer_queue *pq, struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
3151
if (xfer) {
sys/dev/usb/usb_transfer.c
3156
if (pq->curr != xfer) {
sys/dev/usb/usb_transfer.c
3157
usbd_transfer_enqueue(pq, xfer);
sys/dev/usb/usb_transfer.c
3179
xfer = TAILQ_FIRST(&pq->head);
sys/dev/usb/usb_transfer.c
3180
if (xfer) {
sys/dev/usb/usb_transfer.c
3181
TAILQ_REMOVE(&pq->head, xfer,
sys/dev/usb/usb_transfer.c
3183
xfer->wait_queue = NULL;
sys/dev/usb/usb_transfer.c
3184
pq->curr = xfer;
sys/dev/usb/usb_transfer.c
3219
struct usb_xfer *xfer;
sys/dev/usb/usb_transfer.c
3228
xfer = udev->ctrl_xfer[0];
sys/dev/usb/usb_transfer.c
3229
if (xfer) {
sys/dev/usb/usb_transfer.c
3230
USB_XFER_LOCK(xfer);
sys/dev/usb/usb_transfer.c
3232
((xfer->address == udev->address) &&
sys/dev/usb/usb_transfer.c
3242
usbd_transfer_start(xfer);
sys/dev/usb/usb_transfer.c
3245
USB_XFER_UNLOCK(xfer);
sys/dev/usb/usb_transfer.c
3431
struct usb_xfer *xfer;
sys/dev/usb/usb_transfer.c
3443
xfer = ppxfer[n];
sys/dev/usb/usb_transfer.c
3444
if (xfer == NULL)
sys/dev/usb/usb_transfer.c
3446
xroot = xfer->xroot;
sys/dev/usb/usb_transfer.c
3603
usbd_xfer_softc(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
3605
return (xfer->priv_sc);
sys/dev/usb/usb_transfer.c
3609
usbd_xfer_get_priv(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
3611
return (xfer->priv_fifo);
sys/dev/usb/usb_transfer.c
3615
usbd_xfer_set_priv(struct usb_xfer *xfer, void *ptr)
sys/dev/usb/usb_transfer.c
3617
xfer->priv_fifo = ptr;
sys/dev/usb/usb_transfer.c
3621
usbd_xfer_state(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
3623
return (xfer->usb_state);
sys/dev/usb/usb_transfer.c
3627
usbd_xfer_set_flag(struct usb_xfer *xfer, int flag)
sys/dev/usb/usb_transfer.c
3631
xfer->flags.force_short_xfer = 1;
sys/dev/usb/usb_transfer.c
3634
xfer->flags.short_xfer_ok = 1;
sys/dev/usb/usb_transfer.c
3637
xfer->flags.short_frames_ok = 1;
sys/dev/usb/usb_transfer.c
3640
xfer->flags.manual_status = 1;
sys/dev/usb/usb_transfer.c
3646
usbd_xfer_clr_flag(struct usb_xfer *xfer, int flag)
sys/dev/usb/usb_transfer.c
3650
xfer->flags.force_short_xfer = 0;
sys/dev/usb/usb_transfer.c
3653
xfer->flags.short_xfer_ok = 0;
sys/dev/usb/usb_transfer.c
3656
xfer->flags.short_frames_ok = 0;
sys/dev/usb/usb_transfer.c
3659
xfer->flags.manual_status = 0;
sys/dev/usb/usb_transfer.c
3670
usbd_xfer_get_timestamp(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
3672
return (xfer->isoc_time_complete);
sys/dev/usb/usb_transfer.c
3680
usbd_xfer_maxp_was_clamped(struct usb_xfer *xfer)
sys/dev/usb/usb_transfer.c
3682
return (xfer->flags_int.maxp_was_clamped);
sys/dev/usb/usb_transfer.c
3693
usbd_xfer_get_isochronous_start_frame(struct usb_xfer *xfer, uint32_t frame_curr,
sys/dev/usb/usb_transfer.c
3702
delta = (xfer->endpoint->isoc_next - frame_curr) & frame_mask;
sys/dev/usb/usb_transfer.c
3709
if (xfer->endpoint->is_synced == 0 ||
sys/dev/usb/usb_transfer.c
3713
xfer->endpoint->isoc_next = (frame_curr + 2 * frame_ms + frame_min) & frame_mask;
sys/dev/usb/usb_transfer.c
3714
xfer->endpoint->is_synced = 1;
sys/dev/usb/usb_transfer.c
3723
*p_frame_start = xfer->endpoint->isoc_next & frame_mask;
sys/dev/usb/usb_transfer.c
3726
delta = xfer->endpoint->isoc_next - frame_curr + (frame_curr % frame_ms);
sys/dev/usb/usb_transfer.c
3730
switch (usbd_get_speed(xfer->xroot->udev)) {
sys/dev/usb/usb_transfer.c
3735
shift = usbd_xfer_get_fps_shift(xfer);
sys/dev/usb/usb_transfer.c
3740
duration = ((xfer->nframes << shift) + 7) / 8;
sys/dev/usb/usb_transfer.c
3743
xfer->isoc_time_complete =
sys/dev/usb/usb_transfer.c
3744
usb_isoc_time_expand(xfer->xroot->bus, frame_curr / frame_ms) +
sys/dev/usb/usb_transfer.c
3748
xfer->endpoint->isoc_next += duration * frame_ms;
sys/dev/usb/usb_transfer.c
3749
xfer->endpoint->isoc_next &= frame_mask;
sys/dev/usb/usb_transfer.c
462
struct usb_xfer *xfer = parm->curr_xfer;
sys/dev/usb/usb_transfer.c
484
edesc = xfer->endpoint->edesc;
sys/dev/usb/usb_transfer.c
485
ecomp = xfer->endpoint->ecomp;
sys/dev/usb/usb_transfer.c
489
xfer->flags = setup->flags;
sys/dev/usb/usb_transfer.c
490
xfer->nframes = setup->frames;
sys/dev/usb/usb_transfer.c
491
xfer->timeout = setup->timeout;
sys/dev/usb/usb_transfer.c
492
xfer->callback = setup->callback;
sys/dev/usb/usb_transfer.c
493
xfer->interval = setup->interval;
sys/dev/usb/usb_transfer.c
494
xfer->endpointno = edesc->bEndpointAddress;
sys/dev/usb/usb_transfer.c
495
xfer->max_packet_size = UGETW(edesc->wMaxPacketSize);
sys/dev/usb/usb_transfer.c
496
xfer->max_packet_count = 1;
sys/dev/usb/usb_transfer.c
498
xfer->flags_int.usb_mode = parm->udev->flags.usb_mode;
sys/dev/usb/usb_transfer.c
507
xfer->max_packet_count +=
sys/dev/usb/usb_transfer.c
508
(xfer->max_packet_size >> 11) & 3;
sys/dev/usb/usb_transfer.c
511
if (xfer->max_packet_count > 3)
sys/dev/usb/usb_transfer.c
512
xfer->max_packet_count = 3;
sys/dev/usb/usb_transfer.c
517
xfer->max_packet_size &= 0x7FF;
sys/dev/usb/usb_transfer.c
520
xfer->max_packet_count += (xfer->max_packet_size >> 11) & 3;
sys/dev/usb/usb_transfer.c
523
xfer->max_packet_count += ecomp->bMaxBurst;
sys/dev/usb/usb_transfer.c
525
if ((xfer->max_packet_count == 0) ||
sys/dev/usb/usb_transfer.c
526
(xfer->max_packet_count > 16))
sys/dev/usb/usb_transfer.c
527
xfer->max_packet_count = 16;
sys/dev/usb/usb_transfer.c
531
xfer->max_packet_count = 1;
sys/dev/usb/usb_transfer.c
542
xfer->max_packet_count *= mult;
sys/dev/usb/usb_transfer.c
548
xfer->max_packet_size &= 0x7FF;
sys/dev/usb/usb_transfer.c
555
if (xfer->max_packet_count > parm->hc_max_packet_count) {
sys/dev/usb/usb_transfer.c
556
xfer->max_packet_count = parm->hc_max_packet_count;
sys/dev/usb/usb_transfer.c
561
maxp_old = xfer->max_packet_size;
sys/dev/usb/usb_transfer.c
565
if ((xfer->max_packet_size > parm->hc_max_packet_size) ||
sys/dev/usb/usb_transfer.c
566
(xfer->max_packet_size == 0)) {
sys/dev/usb/usb_transfer.c
567
xfer->max_packet_size = parm->hc_max_packet_size;
sys/dev/usb/usb_transfer.c
574
if (xfer->max_packet_size < std_size.range.min) {
sys/dev/usb/usb_transfer.c
575
xfer->max_packet_size = std_size.range.min;
sys/dev/usb/usb_transfer.c
577
if (xfer->max_packet_size > std_size.range.max) {
sys/dev/usb/usb_transfer.c
578
xfer->max_packet_size = std_size.range.max;
sys/dev/usb/usb_transfer.c
581
if (xfer->max_packet_size >= std_size.fixed[3]) {
sys/dev/usb/usb_transfer.c
582
xfer->max_packet_size = std_size.fixed[3];
sys/dev/usb/usb_transfer.c
583
} else if (xfer->max_packet_size >= std_size.fixed[2]) {
sys/dev/usb/usb_transfer.c
584
xfer->max_packet_size = std_size.fixed[2];
sys/dev/usb/usb_transfer.c
585
} else if (xfer->max_packet_size >= std_size.fixed[1]) {
sys/dev/usb/usb_transfer.c
586
xfer->max_packet_size = std_size.fixed[1];
sys/dev/usb/usb_transfer.c
589
xfer->max_packet_size = std_size.fixed[0];
sys/dev/usb/usb_transfer.c
597
if (maxp_old != xfer->max_packet_size)
sys/dev/usb/usb_transfer.c
598
xfer->flags_int.maxp_was_clamped = 1;
sys/dev/usb/usb_transfer.c
602
usbd_update_max_frame_size(xfer);
sys/dev/usb/usb_transfer.c
609
xfer->interval = 0; /* not used, must be zero */
sys/dev/usb/usb_transfer.c
610
xfer->flags_int.isochronous_xfr = 1; /* set flag */
sys/dev/usb/usb_transfer.c
612
if (xfer->timeout == 0) {
sys/dev/usb/usb_transfer.c
617
xfer->timeout = 1000 / 4;
sys/dev/usb/usb_transfer.c
623
xfer->fps_shift = 0;
sys/dev/usb/usb_transfer.c
627
xfer->fps_shift = edesc->bInterval;
sys/dev/usb/usb_transfer.c
628
if (xfer->fps_shift > 0)
sys/dev/usb/usb_transfer.c
629
xfer->fps_shift--;
sys/dev/usb/usb_transfer.c
630
if (xfer->fps_shift > 3)
sys/dev/usb/usb_transfer.c
631
xfer->fps_shift = 3;
sys/dev/usb/usb_transfer.c
632
if (xfer->flags.pre_scale_frames != 0)
sys/dev/usb/usb_transfer.c
633
xfer->nframes <<= (3 - xfer->fps_shift);
sys/dev/usb/usb_transfer.c
637
if (xfer->nframes > frame_limit) {
sys/dev/usb/usb_transfer.c
645
if (xfer->nframes == 0) {
sys/dev/usb/usb_transfer.c
660
if (xfer->interval == 0) {
sys/dev/usb/usb_transfer.c
661
xfer->interval = edesc->bInterval;
sys/dev/usb/usb_transfer.c
669
if (xfer->interval < 4)
sys/dev/usb/usb_transfer.c
670
xfer->interval = 1;
sys/dev/usb/usb_transfer.c
671
else if (xfer->interval > 16)
sys/dev/usb/usb_transfer.c
672
xfer->interval = (1 << (16 - 4));
sys/dev/usb/usb_transfer.c
674
xfer->interval =
sys/dev/usb/usb_transfer.c
675
(1 << (xfer->interval - 4));
sys/dev/usb/usb_transfer.c
680
if (xfer->interval == 0) {
sys/dev/usb/usb_transfer.c
685
xfer->interval = 1;
sys/dev/usb/usb_transfer.c
688
xfer->fps_shift = 0;
sys/dev/usb/usb_transfer.c
691
while ((temp != 0) && (temp < xfer->interval)) {
sys/dev/usb/usb_transfer.c
692
xfer->fps_shift++;
sys/dev/usb/usb_transfer.c
701
xfer->fps_shift += 3;
sys/dev/usb/usb_transfer.c
713
if ((xfer->max_frame_size == 0) ||
sys/dev/usb/usb_transfer.c
714
(xfer->max_packet_size == 0)) {
sys/dev/usb/usb_transfer.c
721
xfer->max_packet_size = MIN_PKT;
sys/dev/usb/usb_transfer.c
722
xfer->max_packet_count = 1;
sys/dev/usb/usb_transfer.c
724
usbd_update_max_frame_size(xfer);
sys/dev/usb/usb_transfer.c
741
parm->bufsize = xfer->max_frame_size;
sys/dev/usb/usb_transfer.c
744
parm->bufsize *= xfer->nframes;
sys/dev/usb/usb_transfer.c
752
if (xfer->flags.proxy_buffer) {
sys/dev/usb/usb_transfer.c
755
parm->bufsize += (xfer->max_frame_size - 1);
sys/dev/usb/usb_transfer.c
757
if (parm->bufsize < xfer->max_frame_size) {
sys/dev/usb/usb_transfer.c
764
parm->bufsize -= (parm->bufsize % xfer->max_frame_size);
sys/dev/usb/usb_transfer.c
772
xfer->max_data_length = parm->bufsize;
sys/dev/usb/usb_transfer.c
777
n_frlengths = xfer->nframes;
sys/dev/usb/usb_transfer.c
781
xfer->flags_int.control_xfr = 1;
sys/dev/usb/usb_transfer.c
782
if (xfer->nframes == 0) {
sys/dev/usb/usb_transfer.c
788
xfer->nframes = 1;
sys/dev/usb/usb_transfer.c
790
xfer->nframes = 2;
sys/dev/usb/usb_transfer.c
794
if (xfer->nframes == 0) {
sys/dev/usb/usb_transfer.c
795
xfer->nframes = 1;
sys/dev/usb/usb_transfer.c
799
n_frlengths = xfer->nframes;
sys/dev/usb/usb_transfer.c
800
n_frbuffers = xfer->nframes;
sys/dev/usb/usb_transfer.c
809
if (xfer->max_data_length < REQ_SIZE) {
sys/dev/usb/usb_transfer.c
814
xfer->max_data_length -= REQ_SIZE;
sys/dev/usb/usb_transfer.c
821
xfer->frlengths = parm->xfer_length_ptr;
sys/dev/usb/usb_transfer.c
825
xfer->frbuffers = parm->xfer_page_cache_ptr;
sys/dev/usb/usb_transfer.c
829
xfer->max_frame_count = xfer->nframes;
sys/dev/usb/usb_transfer.c
836
if (!xfer->flags.ext_buffer) {
sys/dev/usb/usb_transfer.c
847
xfer->local_buffer = page_info.buffer;
sys/dev/usb/usb_transfer.c
849
usbd_xfer_set_frame_offset(xfer, 0, 0);
sys/dev/usb/usb_transfer.c
852
usbd_xfer_set_frame_offset(xfer, REQ_SIZE, 1);
sys/dev/usb/usb_transfer.c
860
xfer->local_buffer =
sys/dev/usb/usb_transfer.c
863
usbd_xfer_set_frame_offset(xfer, 0, 0);
sys/dev/usb/usb_transfer.c
866
usbd_xfer_set_frame_offset(xfer, REQ_SIZE, 1);
sys/dev/usb/usb_transfer.c
883
if (xfer->flags_int.bdma_enable) {
sys/dev/usb/usb_transfer.c
906
xfer->dma_page_ptr = parm->dma_page_ptr;
sys/dev/usb/usb_transfer.c
913
xfer->max_data_length = 0;
sys/dev/usb/usb_transfer.c
917
xfer->max_hc_frame_size =
sys/dev/usb/usb_transfer.c
919
(parm->hc_max_frame_size % xfer->max_frame_size));
sys/dev/usb/usb_transfer.c
921
if (xfer->max_hc_frame_size == 0) {
sys/dev/usb/usb_transfer.c
930
xfer->frbuffers[x].tag_parent =
sys/dev/usb/usb_transfer.c
931
&xfer->xroot->dma_parent_tag;
sys/dev/usb/usb_transfer.c
933
if (xfer->flags_int.bdma_enable &&
sys/dev/usb/usb_transfer.c
936
xfer->frbuffers + x,
sys/dev/usb/usb_transfer.c
950
xfer->max_hc_frame_size = 1;
sys/dev/usb/usb_transfer.c
951
xfer->max_frame_size = 1;
sys/dev/usb/usb_transfer.c
952
xfer->max_packet_size = 1;
sys/dev/usb/usb_transfer.c
953
xfer->max_data_length = 0;
sys/dev/usb/usb_transfer.c
954
xfer->nframes = 0;
sys/dev/usb/usb_transfer.c
955
xfer->max_frame_count = 0;
sys/dev/usb/usb_transfer.c
996
struct usb_xfer *xfer;
sys/dev/usb/usb_transfer.h
129
struct usb_xfer *xfer);
sys/dev/usb/usb_transfer.h
130
void usbd_pipe_enter(struct usb_xfer *xfer);
sys/dev/usb/usb_transfer.h
132
void usbd_transfer_dequeue(struct usb_xfer *xfer);
sys/dev/usb/usb_transfer.h
133
void usbd_transfer_done(struct usb_xfer *xfer, usb_error_t error);
sys/dev/usb/usb_transfer.h
135
struct usb_xfer *xfer);
sys/dev/usb/usb_transfer.h
145
void usbd_transfer_timeout_ms(struct usb_xfer *xfer,
sys/dev/usb/usb_transfer.h
148
void usbd_transfer_power_ref(struct usb_xfer *xfer, int val);
sys/dev/usb/usbdi.h
518
#define USB_GET_STATE(xfer) (usbd_xfer_state(xfer))
sys/dev/usb/usbdi.h
619
void usbd_transfer_submit(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
620
void usbd_transfer_clear_stall(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
621
void usbd_transfer_drain(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
622
uint8_t usbd_transfer_pending(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
623
void usbd_transfer_start(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
624
void usbd_transfer_stop(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
636
usbd_xfer_old_frame_length(struct usb_xfer *xfer, usb_frcount_t frindex);
sys/dev/usb/usbdi.h
637
void usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen,
sys/dev/usb/usbdi.h
641
void *usbd_xfer_softc(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
642
void *usbd_xfer_get_priv(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
643
void usbd_xfer_set_priv(struct usb_xfer *xfer, void *);
sys/dev/usb/usbdi.h
644
void usbd_xfer_set_interval(struct usb_xfer *xfer, int);
sys/dev/usb/usbdi.h
645
uint8_t usbd_xfer_state(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
646
void usbd_xfer_set_frame_data(struct usb_xfer *xfer, usb_frcount_t frindex,
sys/dev/usb/usbdi.h
648
void usbd_xfer_frame_data(struct usb_xfer *xfer, usb_frcount_t frindex,
sys/dev/usb/usbdi.h
650
void usbd_xfer_set_frame_offset(struct usb_xfer *xfer, usb_frlength_t offset,
sys/dev/usb/usbdi.h
652
usb_frlength_t usbd_xfer_max_len(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
653
usb_frlength_t usbd_xfer_max_framelen(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
654
usb_frcount_t usbd_xfer_max_frames(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
655
uint8_t usbd_xfer_get_fps_shift(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
656
usb_frlength_t usbd_xfer_frame_len(struct usb_xfer *xfer,
sys/dev/usb/usbdi.h
658
void usbd_xfer_set_frame_len(struct usb_xfer *xfer, usb_frcount_t frindex,
sys/dev/usb/usbdi.h
660
void usbd_xfer_set_timeout(struct usb_xfer *xfer, int timeout);
sys/dev/usb/usbdi.h
661
void usbd_xfer_set_frames(struct usb_xfer *xfer, usb_frcount_t n);
sys/dev/usb/usbdi.h
662
void usbd_xfer_set_zlp(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
663
uint8_t usbd_xfer_get_and_clr_zlp(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
664
void usbd_xfer_set_stall(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
665
int usbd_xfer_is_stalled(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
666
void usbd_xfer_set_flag(struct usb_xfer *xfer, int flag);
sys/dev/usb/usbdi.h
667
void usbd_xfer_clr_flag(struct usb_xfer *xfer, int flag);
sys/dev/usb/usbdi.h
668
uint16_t usbd_xfer_get_timestamp(struct usb_xfer *xfer);
sys/dev/usb/usbdi.h
669
uint8_t usbd_xfer_maxp_was_clamped(struct usb_xfer *xfer);
sys/dev/usb/video/udl.c
590
udl_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/video/udl.c
592
struct udl_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/video/udl.c
593
struct udl_cmd_head *phead = usbd_xfer_get_priv(xfer);
sys/dev/usb/video/udl.c
597
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/video/udl.c
612
usbd_xfer_set_frame_data(xfer, i, cb->buf, cb->off);
sys/dev/usb/video/udl.c
615
usbd_xfer_set_frames(xfer, i);
sys/dev/usb/video/udl.c
616
usbd_transfer_submit(xfer);
sys/dev/usb/video/udl.c
623
usbd_xfer_set_stall(xfer);
sys/dev/usb/video/uvideo.c
2523
uvideo_isoc_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/video/uvideo.c
2525
struct uvideo_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/video/uvideo.c
2529
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/video/uvideo.c
2531
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/video/uvideo.c
2532
nframes = usbd_xfer_max_frames(xfer);
sys/dev/usb/video/uvideo.c
2535
len = usbd_xfer_frame_len(xfer, i);
sys/dev/usb/video/uvideo.c
2538
offset += usbd_xfer_old_frame_length(xfer, i);
sys/dev/usb/video/uvideo.c
2543
nframes = usbd_xfer_max_frames(xfer);
sys/dev/usb/video/uvideo.c
2544
usbd_xfer_set_frames(xfer, nframes);
sys/dev/usb/video/uvideo.c
2546
usbd_xfer_set_frame_len(xfer, i,
sys/dev/usb/video/uvideo.c
2548
usbd_transfer_submit(xfer);
sys/dev/usb/video/uvideo.c
2552
usbd_xfer_set_stall(xfer);
sys/dev/usb/video/uvideo.c
2560
uvideo_bulk_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/video/uvideo.c
2562
struct uvideo_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/video/uvideo.c
2566
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/video/uvideo.c
2568
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/video/uvideo.c
2571
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/video/uvideo.c
2579
usbd_xfer_set_frame_len(xfer, 0,
sys/dev/usb/video/uvideo.c
2580
usbd_xfer_max_len(xfer));
sys/dev/usb/video/uvideo.c
2581
usbd_transfer_submit(xfer);
sys/dev/usb/video/uvideo.c
2585
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_mtw.c
1058
xfer = usbd_alloc_xfer(sc->sc_udev);
sys/dev/usb/wlan/if_mtw.c
1059
if (xfer == NULL) {
sys/dev/usb/wlan/if_mtw.c
1063
buf = usbd_alloc_buffer(xfer, blksz + 12);
sys/dev/usb/wlan/if_mtw.c
165
static void mtw_bulk_tx_callbackN(struct usb_xfer *xfer, usb_error_t error,
sys/dev/usb/wlan/if_mtw.c
2567
mtw_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2569
struct mtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_mtw.c
2579
usbd_xfer_status(xfer, &xferlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_mtw.c
2581
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_mtw.c
2611
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_mtw.c
2612
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/wlan/if_mtw.c
2619
usbd_xfer_set_frame_data(xfer, 0,
sys/dev/usb/wlan/if_mtw.c
2621
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/wlan/if_mtw.c
2623
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_mtw.c
2632
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_mtw.c
2728
mtw_bulk_tx_callbackN(struct usb_xfer *xfer, usb_error_t error, u_int index)
sys/dev/usb/wlan/if_mtw.c
2730
struct mtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_mtw.c
2740
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/wlan/if_mtw.c
2742
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_mtw.c
2747
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_mtw.c
2749
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_mtw.c
2770
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_mtw.c
2810
usbd_xfer_set_frame_len(xfer, 0, size);
sys/dev/usb/wlan/if_mtw.c
2811
usbd_xfer_set_priv(xfer, data);
sys/dev/usb/wlan/if_mtw.c
2812
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_mtw.c
2821
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_mtw.c
2827
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_mtw.c
2850
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_mtw.c
2867
mtw_fw_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2869
struct mtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_mtw.c
2875
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_mtw.c
2877
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_mtw.c
2878
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_mtw.c
2931
usbd_xfer_set_frame_len(xfer, 0, dlen);
sys/dev/usb/wlan/if_mtw.c
2932
usbd_xfer_set_frame_data(xfer, 0, sc->txd_fw[sc->sc_idx], dlen);
sys/dev/usb/wlan/if_mtw.c
2935
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_mtw.c
2957
mtw_bulk_tx_callback0(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2959
mtw_bulk_tx_callbackN(xfer, error, 0);
sys/dev/usb/wlan/if_mtw.c
2963
mtw_bulk_tx_callback1(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2967
mtw_bulk_tx_callbackN(xfer, error, 1);
sys/dev/usb/wlan/if_mtw.c
2971
mtw_bulk_tx_callback2(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2973
mtw_bulk_tx_callbackN(xfer, error, 2);
sys/dev/usb/wlan/if_mtw.c
2977
mtw_bulk_tx_callback3(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2979
mtw_bulk_tx_callbackN(xfer, error, 3);
sys/dev/usb/wlan/if_mtw.c
2983
mtw_bulk_tx_callback4(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2985
mtw_bulk_tx_callbackN(xfer, error, 4);
sys/dev/usb/wlan/if_mtw.c
2989
mtw_bulk_tx_callback5(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_mtw.c
2991
mtw_bulk_tx_callbackN(xfer, error, 5);
sys/dev/usb/wlan/if_mtwvar.h
129
struct usbd_xfer *xfer;
sys/dev/usb/wlan/if_mtwvar.h
143
struct usbd_xfer *xfer;
sys/dev/usb/wlan/if_mtwvar.h
212
struct usbd_xfer *xfer;
sys/dev/usb/wlan/if_rsu.c
2548
rsu_rxeof(struct usb_xfer *xfer, struct rsu_data *data)
sys/dev/usb/wlan/if_rsu.c
2555
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/wlan/if_rsu.c
2573
rsu_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_rsu.c
2575
struct rsu_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rsu.c
2583
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_rsu.c
2589
m = rsu_rxeof(xfer, data);
sys/dev/usb/wlan/if_rsu.c
2601
usbd_xfer_set_frame_data(xfer, 0, data->buf,
sys/dev/usb/wlan/if_rsu.c
2602
usbd_xfer_max_len(xfer));
sys/dev/usb/wlan/if_rsu.c
2603
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_rsu.c
2636
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_rsu.c
2646
rsu_txeof(struct usb_xfer *xfer, struct rsu_data *data)
sys/dev/usb/wlan/if_rsu.c
2649
struct rsu_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rsu.c
2665
rsu_bulk_tx_callback_sub(struct usb_xfer *xfer, usb_error_t error,
sys/dev/usb/wlan/if_rsu.c
2668
struct rsu_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rsu.c
2674
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_rsu.c
2682
rsu_txeof(xfer, data);
sys/dev/usb/wlan/if_rsu.c
2695
usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen);
sys/dev/usb/wlan/if_rsu.c
2700
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_rsu.c
2706
rsu_txeof(xfer, data);
sys/dev/usb/wlan/if_rsu.c
2712
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_rsu.c
2726
rsu_bulk_tx_callback_be_bk(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_rsu.c
2728
struct rsu_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rsu.c
2730
rsu_bulk_tx_callback_sub(xfer, error, RSU_BULK_TX_BE_BK);
sys/dev/usb/wlan/if_rsu.c
2737
rsu_bulk_tx_callback_vi_vo(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_rsu.c
2739
struct rsu_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rsu.c
2741
rsu_bulk_tx_callback_sub(xfer, error, RSU_BULK_TX_VI_VO);
sys/dev/usb/wlan/if_rsu.c
2748
rsu_bulk_tx_callback_h2c(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_rsu.c
2750
struct rsu_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rsu.c
2752
rsu_bulk_tx_callback_sub(xfer, error, RSU_BULK_TX_H2C);
sys/dev/usb/wlan/if_rum.c
1070
rum_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_rum.c
1072
struct rum_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rum.c
1080
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/wlan/if_rum.c
1082
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_rum.c
1087
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_rum.c
1089
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_rum.c
1104
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_rum.c
1128
usbd_xfer_set_frame_len(xfer, 0, len);
sys/dev/usb/wlan/if_rum.c
1129
usbd_xfer_set_priv(xfer, data);
sys/dev/usb/wlan/if_rum.c
1131
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_rum.c
1141
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_rum.c
1144
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_rum.c
1156
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_rum.c
1164
rum_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_rum.c
1166
struct rum_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_rum.c
1176
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/wlan/if_rum.c
1178
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_rum.c
1191
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_rum.c
1273
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/wlan/if_rum.c
1274
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_rum.c
1303
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_run.c
3019
run_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_run.c
3021
struct run_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_run.c
3035
usbd_xfer_status(xfer, &xferlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_run.c
3037
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_run.c
3065
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_run.c
3066
usbd_xfer_set_frames(xfer, 0);
sys/dev/usb/wlan/if_run.c
3073
usbd_xfer_set_frame_data(xfer, 0,
sys/dev/usb/wlan/if_run.c
3075
usbd_xfer_set_frames(xfer, 1);
sys/dev/usb/wlan/if_run.c
3077
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_run.c
3083
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_run.c
3182
run_bulk_tx_callbackN(struct usb_xfer *xfer, usb_error_t error, u_int index)
sys/dev/usb/wlan/if_run.c
3184
struct run_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_run.c
3195
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/wlan/if_run.c
3197
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_run.c
3202
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_run.c
3204
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_run.c
3226
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_run.c
3265
usbd_xfer_set_frame_len(xfer, 0, size);
sys/dev/usb/wlan/if_run.c
3266
usbd_xfer_set_priv(xfer, data);
sys/dev/usb/wlan/if_run.c
3267
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_run.c
3276
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_run.c
3282
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_run.c
3304
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_run.c
3321
run_bulk_tx_callback0(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_run.c
3323
run_bulk_tx_callbackN(xfer, error, 0);
sys/dev/usb/wlan/if_run.c
3327
run_bulk_tx_callback1(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_run.c
3329
run_bulk_tx_callbackN(xfer, error, 1);
sys/dev/usb/wlan/if_run.c
3333
run_bulk_tx_callback2(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_run.c
3335
run_bulk_tx_callbackN(xfer, error, 2);
sys/dev/usb/wlan/if_run.c
3339
run_bulk_tx_callback3(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_run.c
3341
run_bulk_tx_callbackN(xfer, error, 3);
sys/dev/usb/wlan/if_run.c
3345
run_bulk_tx_callback4(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_run.c
3347
run_bulk_tx_callbackN(xfer, error, 4);
sys/dev/usb/wlan/if_run.c
3351
run_bulk_tx_callback5(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_run.c
3353
run_bulk_tx_callbackN(xfer, error, 5);
sys/dev/usb/wlan/if_run.c
377
static void run_bulk_tx_callbackN(struct usb_xfer *xfer,
sys/dev/usb/wlan/if_uath.c
2345
uath_intr_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_uath.c
2347
struct uath_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_uath.c
2353
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_uath.c
2357
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_uath.c
2374
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_uath.c
2388
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/wlan/if_uath.c
2389
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_uath.c
2393
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_uath.c
2401
uath_intr_tx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_uath.c
2403
struct uath_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_uath.c
2409
if (cmd != NULL && USB_GET_STATE(xfer) != USB_ST_SETUP) {
sys/dev/usb/wlan/if_uath.c
2420
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_uath.c
2439
usbd_xfer_set_frame_data(xfer, 0, cmd->buf, cmd->buflen);
sys/dev/usb/wlan/if_uath.c
2440
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_uath.c
2444
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_uath.c
2488
uath_data_rxeof(struct usb_xfer *xfer, struct uath_data *data,
sys/dev/usb/wlan/if_uath.c
2491
struct uath_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_uath.c
2499
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_uath.c
2717
uath_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_uath.c
2719
struct uath_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_uath.c
2730
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_uath.c
2737
m = uath_data_rxeof(xfer, data, &desc);
sys/dev/usb/wlan/if_uath.c
2750
usbd_xfer_set_frame_data(xfer, 0, data->buf, MCLBYTES);
sys/dev/usb/wlan/if_uath.c
2751
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_uath.c
2793
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_uath.c
2802
uath_data_txeof(struct usb_xfer *xfer, struct uath_data *data)
sys/dev/usb/wlan/if_uath.c
2804
struct uath_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_uath.c
2818
uath_bulk_tx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_uath.c
2820
struct uath_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_uath.c
2825
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_uath.c
2832
uath_data_txeof(xfer, data);
sys/dev/usb/wlan/if_uath.c
2849
usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen);
sys/dev/usb/wlan/if_uath.c
2850
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_uath.c
2866
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_upgt.c
1338
upgt_rxeof(struct usb_xfer *xfer, struct upgt_data *data, int *rssi)
sys/dev/usb/wlan/if_upgt.c
1341
struct upgt_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_upgt.c
1348
usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
sys/dev/usb/wlan/if_upgt.c
2206
upgt_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_upgt.c
2208
struct upgt_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_upgt.c
2219
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_upgt.c
2225
m = upgt_rxeof(xfer, data, &rssi);
sys/dev/usb/wlan/if_upgt.c
2235
usbd_xfer_set_frame_data(xfer, 0, data->buf, MCLBYTES);
sys/dev/usb/wlan/if_upgt.c
2236
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_upgt.c
2268
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_upgt.c
2277
upgt_bulk_tx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_upgt.c
2279
struct upgt_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_upgt.c
2283
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_upgt.c
2290
upgt_txeof(xfer, data);
sys/dev/usb/wlan/if_upgt.c
2307
usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen);
sys/dev/usb/wlan/if_upgt.c
2308
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_upgt.c
2322
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_upgt.c
381
upgt_txeof(struct usb_xfer *xfer, struct upgt_data *data)
sys/dev/usb/wlan/if_ural.c
758
ural_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_ural.c
760
struct ural_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_ural.c
767
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/wlan/if_ural.c
769
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_ural.c
774
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_ural.c
776
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_ural.c
791
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_ural.c
815
usbd_xfer_set_frame_len(xfer, 0, len);
sys/dev/usb/wlan/if_ural.c
816
usbd_xfer_set_priv(xfer, data);
sys/dev/usb/wlan/if_ural.c
818
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_ural.c
827
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_ural.c
830
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_ural.c
835
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_ural.c
845
ural_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_ural.c
847
struct ural_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_ural.c
856
usbd_xfer_status(xfer, &len, NULL, NULL, NULL);
sys/dev/usb/wlan/if_ural.c
858
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_ural.c
872
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_ural.c
918
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/wlan/if_ural.c
919
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_ural.c
943
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_urtw.c
1692
struct usb_xfer *xfer;
sys/dev/usb/wlan/if_urtw.c
1839
xfer = sc->sc_xfer[URTW_8187B_BULK_TX_EP12];
sys/dev/usb/wlan/if_urtw.c
1844
xfer = rtl8187b_pipes[M_WME_GETAC(m0)];
sys/dev/usb/wlan/if_urtw.c
1848
xfer = (prior == URTW_PRIORITY_LOW) ?
sys/dev/usb/wlan/if_urtw.c
1853
usbd_transfer_start(xfer);
sys/dev/usb/wlan/if_urtw.c
3950
urtw_rxeof(struct usb_xfer *xfer, struct urtw_data *data, int *rssi_p,
sys/dev/usb/wlan/if_urtw.c
3961
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_urtw.c
4040
urtw_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_urtw.c
4042
struct urtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_urtw.c
4052
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_urtw.c
4058
m = urtw_rxeof(xfer, data, &rssi, &nf);
sys/dev/usb/wlan/if_urtw.c
4070
usbd_xfer_set_frame_data(xfer, 0, data->buf,
sys/dev/usb/wlan/if_urtw.c
4071
usbd_xfer_max_len(xfer));
sys/dev/usb/wlan/if_urtw.c
4072
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_urtw.c
4106
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_urtw.c
4118
urtw_txstatus_eof(struct usb_xfer *xfer)
sys/dev/usb/wlan/if_urtw.c
4120
struct urtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_urtw.c
4125
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_urtw.c
4142
urtw_bulk_tx_status_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_urtw.c
4144
struct urtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_urtw.c
4146
void *dma_buf = usbd_xfer_get_frame_buffer(xfer, 0);
sys/dev/usb/wlan/if_urtw.c
4150
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_urtw.c
4152
urtw_txstatus_eof(xfer);
sys/dev/usb/wlan/if_urtw.c
4157
usbd_xfer_set_frame_len(xfer, 0, sizeof(uint64_t));
sys/dev/usb/wlan/if_urtw.c
4158
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_urtw.c
4162
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_urtw.c
4171
urtw_txeof(struct usb_xfer *xfer, struct urtw_data *data)
sys/dev/usb/wlan/if_urtw.c
4173
struct urtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_urtw.c
4187
urtw_bulk_tx_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_urtw.c
4189
struct urtw_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_urtw.c
4194
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_urtw.c
4200
urtw_txeof(xfer, data);
sys/dev/usb/wlan/if_urtw.c
4214
usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen);
sys/dev/usb/wlan/if_urtw.c
4215
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_urtw.c
4230
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_zyd.c
2144
zyd_rx_data(struct usb_xfer *xfer, int offset, uint16_t len)
sys/dev/usb/wlan/if_zyd.c
2146
struct zyd_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_zyd.c
2160
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_zyd.c
2218
zyd_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_zyd.c
2220
struct zyd_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_zyd.c
2232
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_zyd.c
2235
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_zyd.c
2237
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_zyd.c
2251
zyd_rx_data(xfer, offset, len16);
sys/dev/usb/wlan/if_zyd.c
2264
zyd_rx_data(xfer, 0, actlen);
sys/dev/usb/wlan/if_zyd.c
2269
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/wlan/if_zyd.c
2270
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_zyd.c
2302
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_zyd.c
2346
zyd_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_zyd.c
2348
struct zyd_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_zyd.c
2355
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_zyd.c
2357
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_zyd.c
2363
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_zyd.c
2365
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_zyd.c
2380
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_zyd.c
2395
usbd_xfer_set_frame_len(xfer, 0, ZYD_TX_DESC_SIZE + m->m_pkthdr.len);
sys/dev/usb/wlan/if_zyd.c
2396
usbd_xfer_set_priv(xfer, data);
sys/dev/usb/wlan/if_zyd.c
2397
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_zyd.c
2407
data = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_zyd.c
2408
usbd_xfer_set_priv(xfer, NULL);
sys/dev/usb/wlan/if_zyd.c
2421
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_zyd.c
624
zyd_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_zyd.c
626
struct zyd_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_zyd.c
635
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/dev/usb/wlan/if_zyd.c
637
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_zyd.c
639
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_zyd.c
733
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/dev/usb/wlan/if_zyd.c
734
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_zyd.c
743
usbd_xfer_set_stall(xfer);
sys/dev/usb/wlan/if_zyd.c
751
zyd_intr_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/dev/usb/wlan/if_zyd.c
753
struct zyd_softc *sc = usbd_xfer_softc(xfer);
sys/dev/usb/wlan/if_zyd.c
757
switch (USB_GET_STATE(xfer)) {
sys/dev/usb/wlan/if_zyd.c
759
cmd = usbd_xfer_get_priv(xfer);
sys/dev/usb/wlan/if_zyd.c
775
pc = usbd_xfer_get_frame(xfer, 0);
sys/dev/usb/wlan/if_zyd.c
778
usbd_xfer_set_frame_len(xfer, 0, rqp->ilen);
sys/dev/usb/wlan/if_zyd.c
779
usbd_xfer_set_priv(xfer, rqp);
sys/dev/usb/wlan/if_zyd.c
781
usbd_transfer_submit(xfer);
sys/dev/usb/wlan/if_zyd.c
792
usbd_xfer_set_stall(xfer);
sys/fs/nfs/nfs_commonsubs.c
2784
int xfer, len;
sys/fs/nfs/nfs_commonsubs.c
2794
xfer = siz;
sys/fs/nfs/nfs_commonsubs.c
2796
xfer = len;
sys/fs/nfs/nfs_commonsubs.c
2797
NFSBCOPY(cp, str, xfer);
sys/fs/nfs/nfs_commonsubs.c
2798
str += xfer;
sys/fs/nfs/nfs_commonsubs.c
2799
siz -= xfer;
sys/fs/nfs/nfs_commonsubs.c
2809
cp += xfer;
sys/fs/nfs/nfs_commonsubs.c
2810
len -= xfer;
sys/fs/nfs/nfs_commonsubs.c
693
int xfer, left, len;
sys/fs/nfs/nfs_commonsubs.c
724
xfer = (left > len) ? len : left;
sys/fs/nfs/nfs_commonsubs.c
726
NFSBCOPY(mbufcp, uiocp, xfer);
sys/fs/nfs/nfs_commonsubs.c
728
error = copyout(mbufcp, uiocp, xfer);
sys/fs/nfs/nfs_commonsubs.c
732
left -= xfer;
sys/fs/nfs/nfs_commonsubs.c
733
len -= xfer;
sys/fs/nfs/nfs_commonsubs.c
734
mbufcp += xfer;
sys/fs/nfs/nfs_commonsubs.c
735
uiocp += xfer;
sys/fs/nfs/nfs_commonsubs.c
736
uiop->uio_offset += xfer;
sys/fs/nfs/nfs_commonsubs.c
737
uiop->uio_resid -= xfer;
sys/fs/nfs/nfs_commonsubs.c
773
int siz2, xfer;
sys/fs/nfs/nfs_commonsubs.c
811
xfer = (siz2 > mp2->m_len) ? mp2->m_len : siz2;
sys/fs/nfs/nfs_commonsubs.c
812
if (xfer > 0) {
sys/fs/nfs/nfs_commonsubs.c
813
NFSBCOPY(mtod(mp2, caddr_t), p, xfer);
sys/fs/nfs/nfs_commonsubs.c
814
mp2->m_data += xfer;
sys/fs/nfs/nfs_commonsubs.c
815
mp2->m_len -= xfer;
sys/fs/nfs/nfs_commonsubs.c
816
p += xfer;
sys/fs/nfs/nfs_commonsubs.c
817
siz2 -= xfer;
sys/fs/nfs/nfs_commonsubs.c
887
int xfer, left;
sys/fs/nfs/nfs_commonsubs.c
932
xfer = siz;
sys/fs/nfs/nfs_commonsubs.c
934
xfer = left;
sys/fs/nfs/nfs_commonsubs.c
935
NFSBCOPY(cp, cp2, xfer);
sys/fs/nfs/nfs_commonsubs.c
936
cp += xfer;
sys/fs/nfs/nfs_commonsubs.c
937
cp2 += xfer;
sys/fs/nfs/nfs_commonsubs.c
938
m2->m_len += xfer;
sys/fs/nfs/nfs_commonsubs.c
939
siz -= xfer;
sys/fs/nfs/nfs_commonsubs.c
940
left -= xfer;
sys/fs/nfs/nfs_commonsubs.c
942
nd->nd_bextpgsiz -= xfer;
sys/fs/nfs/nfs_commonsubs.c
943
m2->m_epg_last_len += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
104
xfer = (left > mlen) ? mlen : left;
sys/fs/nfsclient/nfs_clcomsubs.c
106
NFSBCOPY(uiocp, mcp, xfer);
sys/fs/nfsclient/nfs_clcomsubs.c
108
error = copyin(uiocp, mcp, xfer);
sys/fs/nfsclient/nfs_clcomsubs.c
112
mp->m_len += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
113
left -= xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
114
uiocp += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
115
mcp += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
117
nd->nd_bextpgsiz -= xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
118
mp->m_epg_last_len += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
120
uiop->uio_offset += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
121
uiop->uio_resid -= xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
166
int error, extpg, extpgsiz = 0, i, left, mlen, rem, xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
220
xfer = (left > mlen) ? mlen : left;
sys/fs/nfsclient/nfs_clcomsubs.c
222
NFSBCOPY(uiocp, mcp, xfer);
sys/fs/nfsclient/nfs_clcomsubs.c
224
error = copyin(uiocp, mcp, xfer);
sys/fs/nfsclient/nfs_clcomsubs.c
230
mp->m_len += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
231
mcp += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
233
extpgsiz -= xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
234
mp->m_epg_last_len += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
236
left -= xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
237
uiocp += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
238
uiop->uio_offset += xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
239
uiop->uio_resid -= xfer;
sys/fs/nfsclient/nfs_clcomsubs.c
59
int error, xfer, left, mlen;
sys/fs/nfsclient/nfs_clrpcops.c
6565
uint64_t lastbyte, len, off, oresid, xfer;
sys/fs/nfsclient/nfs_clrpcops.c
6640
oresid = xfer = (uint64_t)uiop->uio_resid;
sys/fs/nfsclient/nfs_clrpcops.c
6641
if (xfer > (rflp->nfsfl_end - rflp->nfsfl_off))
sys/fs/nfsclient/nfs_clrpcops.c
6642
xfer = rflp->nfsfl_end - rflp->nfsfl_off;
sys/fs/nfsclient/nfs_clrpcops.c
6696
dpp, layp, rflp, off, xfer,
sys/fs/nfsclient/nfs_clrpcops.c
6713
dip, layp, rflp, off, xfer,
sys/fs/nfsclient/nfs_clrpcops.c
6754
lastbyte = off + xfer - 1;
sys/fs/nfsclient/nfs_clrpcops.c
6774
np->n_fhp->nfh_len, off, xfer,
sys/fs/nfsclient/nfs_clrpcops.c
6900
uint64_t io_off, rel_off, stripe_unit_size, transfer, xfer;
sys/fs/nfsclient/nfs_clrpcops.c
6923
xfer = transfer;
sys/fs/nfsclient/nfs_clrpcops.c
6925
xfer = len;
sys/fs/nfsclient/nfs_clrpcops.c
6958
error = nfsrpc_commitds(vp, io_off, xfer,
sys/fs/nfsclient/nfs_clrpcops.c
6974
io_off, xfer, fhp, 0, NFS_VER4, minorvers, cred, p);
sys/fs/nfsclient/nfs_clrpcops.c
6977
stateidp, *dspp, io_off, xfer, fhp, commit_thru_mds,
sys/fs/nfsclient/nfs_clrpcops.c
6988
len -= xfer;
sys/fs/nfsclient/nfs_clrpcops.c
6989
off += xfer;
sys/fs/nfsclient/nfs_clrpcops.c
7005
uint64_t xfer, transfer;
sys/fs/nfsclient/nfs_clrpcops.c
7081
xfer = copylen;
sys/fs/nfsclient/nfs_clrpcops.c
7083
xfer = transfer;
sys/fs/nfsclient/nfs_clrpcops.c
7090
error = nfsio_commitds(vp, off, xfer,
sys/fs/nfsclient/nfs_clrpcops.c
7095
error = nfsrpc_commitds(vp, off, xfer,
sys/fs/nfsclient/nfs_clrpcops.c
7122
off, xfer, fhp, 1, dp->nfsdi_vers,
sys/fs/nfsclient/nfs_clrpcops.c
7133
must_commit, stateidp, *dspp, off, xfer,
sys/fs/nfsclient/nfs_clrpcops.c
7143
if (xfer < len) {
sys/fs/nfsclient/nfs_clrpcops.c
7145
m2 = nfsm_split(mp, xfer);
sys/fs/nfsclient/nfs_clrpcops.c
7154
(uintmax_t)len, (uintmax_t)xfer);
sys/fs/nfsclient/nfs_clrpcops.c
7164
xfer, fhp, m,
sys/fs/nfsclient/nfs_clrpcops.c
7172
xfer, fhp, m,
sys/fs/nfsclient/nfs_clrpcops.c
7189
len -= xfer;
sys/fs/nfsclient/nfs_clrpcops.c
7190
off += xfer;
sys/fs/nfsclient/nfs_clrpcops.c
9837
nfsm_split(struct mbuf *mp, uint64_t xfer)
sys/fs/nfsclient/nfs_clrpcops.c
9845
m = m_split(mp, xfer, M_WAITOK);
sys/fs/nfsclient/nfs_clrpcops.c
9850
for (m = mp; m != NULL && xfer > m->m_len; m = m->m_next)
sys/fs/nfsclient/nfs_clrpcops.c
9851
xfer -= m->m_len;
sys/fs/nfsclient/nfs_clrpcops.c
9856
if (xfer == m->m_len) {
sys/fs/nfsclient/nfs_clrpcops.c
9864
left = xfer;
sys/fs/nfsclient/nfs_clrpcops.c
9922
m->m_len = xfer;
sys/fs/nfsserver/nfs_nfsdserv.c
5921
size_t xfer;
sys/fs/nfsserver/nfs_nfsdserv.c
6103
xfer = nfsrv_maxcopyrange;
sys/fs/nfsserver/nfs_nfsdserv.c
6105
xfer = len;
sys/fs/nfsserver/nfs_nfsdserv.c
6108
&xfer, COPY_FILE_RANGE_TIMEO1SEC, nd->nd_cred, nd->nd_cred,
sys/fs/nfsserver/nfs_nfsdserv.c
6111
len = xfer;
sys/fs/nfsserver/nfs_nfsdserv.c
6155
size_t xfer;
sys/fs/nfsserver/nfs_nfsdserv.c
6322
xfer = len;
sys/fs/nfsserver/nfs_nfsdserv.c
6325
&xfer, COPY_FILE_RANGE_CLONE, nd->nd_cred, nd->nd_cred,
sys/fs/nfsserver/nfs_nfsdstate.c
8169
int didprintf, ret, retacl, xfer;
sys/fs/nfsserver/nfs_nfsdstate.c
8350
xfer = PNFSDS_COPYSIZ - aresid;
sys/fs/nfsserver/nfs_nfsdstate.c
8351
if (ret == 0 && xfer > 0) {
sys/fs/nfsserver/nfs_nfsdstate.c
8352
rdpos += xfer;
sys/fs/nfsserver/nfs_nfsdstate.c
8357
if (xfer < PNFSDS_COPYSIZ || rdpos ==
sys/fs/nfsserver/nfs_nfsdstate.c
8360
ret = vn_rdwr(UIO_WRITE, tvp, dat, xfer,
sys/fs/nfsserver/nfs_nfsdstate.c
8364
wrpos += xfer;
sys/kern/kern_mbuf.c
1765
int i, mblen, mbufsiz, pglen, xfer;
sys/kern/kern_mbuf.c
1805
xfer = min(mblen, pglen);
sys/kern/kern_mbuf.c
1806
memcpy(pgpos, mbpos, xfer);
sys/kern/kern_mbuf.c
1807
pgpos += xfer;
sys/kern/kern_mbuf.c
1808
mbpos += xfer;
sys/kern/kern_mbuf.c
1809
pglen -= xfer;
sys/kern/kern_mbuf.c
1810
mblen -= xfer;
sys/kern/kern_mbuf.c
1811
len -= xfer;
sys/kern/kern_mbuf.c
1812
m->m_len += xfer;
sys/kern/vfs_vnops.c
3496
vn_write_outvp(struct vnode *outvp, char *dat, off_t outoff, off_t xfer,
sys/kern/vfs_vnops.c
3512
xfer2 = MIN(xfer, blksize);
sys/kern/vfs_vnops.c
3518
xfer2 = vn_skip_hole(outvp, xfer2, &outoff, &xfer,
sys/kern/vfs_vnops.c
3520
if (xfer == 0)
sys/kern/vfs_vnops.c
3535
error = vn_truncate_locked(outvp, outoff + xfer,
sys/kern/vfs_vnops.c
3546
xfer -= xfer2;
sys/kern/vfs_vnops.c
3552
} while (!growfile && xfer > 0 && error == 0);
sys/kern/vfs_vnops.c
3569
off_t startoff, endoff, xfer, xfer2;
sys/kern/vfs_vnops.c
3765
xfer = MIN(startoff - *inoffp, len);
sys/kern/vfs_vnops.c
3769
xfer);
sys/kern/vfs_vnops.c
3776
if (error == 0 && *outoffp + xfer >
sys/kern/vfs_vnops.c
3777
outsize && (xfer == len || holetoeof)) {
sys/kern/vfs_vnops.c
3780
*outoffp, xfer, blksize, true,
sys/kern/vfs_vnops.c
3784
*inoffp += xfer;
sys/kern/vfs_vnops.c
3785
*outoffp += xfer;
sys/kern/vfs_vnops.c
3786
len -= xfer;
sys/kern/vfs_vnops.c
3811
xfer = blksize;
sys/kern/vfs_vnops.c
3818
xfer -= (*inoffp % blksize);
sys/kern/vfs_vnops.c
3828
if (copylen < xfer)
sys/kern/vfs_vnops.c
3829
xfer = copylen;
sys/kern/vfs_vnops.c
3834
error = vn_rdwr(UIO_READ, invp, dat, xfer,
sys/kern/vfs_vnops.c
3840
if (error == 0 && (xfer == 0 || aresid > 0)) {
sys/kern/vfs_vnops.c
3842
xfer -= aresid;
sys/kern/vfs_vnops.c
3852
readzeros = cantseek ? mem_iszero(dat, xfer) :
sys/kern/vfs_vnops.c
3854
if (xfer == len)
sys/kern/vfs_vnops.c
3859
*outoffp, xfer, blksize,
sys/kern/vfs_vnops.c
3864
*inoffp += xfer;
sys/kern/vfs_vnops.c
3865
startoff += xfer;
sys/kern/vfs_vnops.c
3866
*outoffp += xfer;
sys/kern/vfs_vnops.c
3867
copylen -= xfer;
sys/kern/vfs_vnops.c
3868
len -= xfer;
sys/kern/vfs_vnops.c
3882
xfer = blksize;
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1016
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1056
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1057
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1066
usbd_xfer_set_stall(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1081
ubt_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1083
struct ubt_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1090
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1094
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1115
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1155
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1156
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1165
usbd_xfer_set_stall(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1180
ubt_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1182
struct ubt_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1187
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1189
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1213
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1215
usbd_xfer_set_frame_len(xfer, 0, m->m_pkthdr.len);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1222
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1233
usbd_xfer_set_stall(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1248
ubt_isoc_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1250
struct ubt_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1254
usbd_xfer_status(xfer, &actlen, NULL, NULL, &nframes);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1256
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1259
if (ubt_isoc_read_one_frame(xfer, n) < 0)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1266
usbd_xfer_set_frame_len(xfer, n,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1267
usbd_xfer_max_framelen(xfer));
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1269
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1290
ubt_isoc_read_one_frame(struct usb_xfer *xfer, int frame_no)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1292
struct ubt_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1298
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1300
total = usbd_xfer_frame_len(xfer, frame_no);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1339
usbd_copy_out(pc, frame_no * usbd_xfer_max_framelen(xfer),
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1375
ubt_isoc_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1377
struct ubt_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1383
usbd_xfer_status(xfer, &actlen, NULL, NULL, &nframes);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1384
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1386
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1396
space = usbd_xfer_max_framelen(xfer) * nframes;
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1438
usbd_xfer_set_frame_len(xfer, n,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1439
min(offset, usbd_xfer_max_framelen(xfer)));
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1440
offset -= usbd_xfer_frame_len(xfer, n);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1443
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
552
struct usb_xfer *xfer[1];
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
582
error = usbd_transfer_setup(udev, &iface_index, xfer,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
586
usbd_transfer_start(*xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
595
usbd_transfer_stop(*xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
598
usbd_transfer_unsetup(xfer, 1);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
847
ubt_probe_intr_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
849
struct ubt_hci_event *evt = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
855
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
857
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
863
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
887
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
888
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
896
usbd_xfer_set_stall(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
910
ubt_ctrl_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
912
struct ubt_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
918
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
920
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
948
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
950
pc = usbd_xfer_get_frame(xfer, 1);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
953
usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
954
usbd_xfer_set_frame_len(xfer, 1, m->m_pkthdr.len);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
955
usbd_xfer_set_frames(xfer, 2);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
959
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
983
ubt_intr_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
985
struct ubt_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
991
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
995
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
268
ubtbcmfw_write_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
270
struct ubtbcmfw_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
275
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
279
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
280
if (usb_fifo_get_data(f, pc, 0, usbd_xfer_max_len(xfer),
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
282
usbd_xfer_set_frame_len(xfer, 0, actlen);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
283
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
290
usbd_xfer_set_stall(xfer);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
302
ubtbcmfw_read_callback(struct usb_xfer *xfer, usb_error_t error)
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
304
struct ubtbcmfw_softc *sc = usbd_xfer_softc(xfer);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
309
usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
311
switch (USB_GET_STATE(xfer)) {
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
313
pc = usbd_xfer_get_frame(xfer, 0);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
320
usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
321
usbd_transfer_submit(xfer);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
328
usbd_xfer_set_stall(xfer);
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
392
struct usb_xfer *xfer;
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
400
xfer = sc->sc_xfer[UBTBCMFW_INTR_DT_RD];
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
402
xfer = sc->sc_xfer[UBTBCMFW_BULK_DT_WR];
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
406
if (usb_fifo_alloc_buffer(fifo, usbd_xfer_max_len(xfer),
sys/powerpc/pseries/phyp_vscsi.c
122
struct vscsi_xfer *xfer;
sys/powerpc/pseries/phyp_vscsi.c
336
sc->xfer = malloc(sizeof(sc->xfer[0])*sc->max_transactions, M_VSCSI,
sys/powerpc/pseries/phyp_vscsi.c
339
xp = &sc->xfer[i];
tests/sys/kern/socket_splice.c
829
struct xfer_args *xfer;
tests/sys/kern/socket_splice.c
836
xfer = arg;
tests/sys/kern/socket_splice.c
838
error = fcntl(xfer->fd, F_SETFL, O_NONBLOCK);
tests/sys/kern/socket_splice.c
841
sz = MIN(xfer->bytes, 1024 * 1024);
tests/sys/kern/socket_splice.c
846
pthread_barrier_wait(xfer->barrier);
tests/sys/kern/socket_splice.c
848
for (resid = xfer->bytes; xfer->bytes > 0 || resid > 0;) {
tests/sys/kern/socket_splice.c
849
n = write(xfer->fd, buf, MIN(sz, xfer->bytes));
tests/sys/kern/socket_splice.c
854
ATF_REQUIRE(xfer->bytes >= (size_t)n);
tests/sys/kern/socket_splice.c
855
xfer->bytes -= n;
tests/sys/kern/socket_splice.c
858
n = read(xfer->fd, buf, sz);
tests/sys/kern/socket_splice.c
902
error = pthread_create(&thread[0], NULL, xfer, &xfers[0]);
tests/sys/kern/socket_splice.c
905
error = pthread_create(&thread[1], NULL, xfer, &xfers[1]);
usr.sbin/bhyve/pci_xhci.c
1572
pci_xhci_xfer_complete(struct pci_xhci_softc *sc, struct usb_data_xfer *xfer,
usr.sbin/bhyve/pci_xhci.c
1599
for (i = xfer->head; xfer->ndata > 0; ) {
usr.sbin/bhyve/pci_xhci.c
1600
evtrb.qwTrb0 = (uint64_t)xfer->data[i].hci_data;
usr.sbin/bhyve/pci_xhci.c
1606
i, xfer->data[i].processed, xfer->data[i].blen,
usr.sbin/bhyve/pci_xhci.c
1611
if (!xfer->data[i].processed) {
usr.sbin/bhyve/pci_xhci.c
1612
xfer->head = i;
usr.sbin/bhyve/pci_xhci.c
1616
xfer->ndata--;
usr.sbin/bhyve/pci_xhci.c
1617
edtla += xfer->data[i].bdone;
usr.sbin/bhyve/pci_xhci.c
1619
trb->dwTrb3 = (trb->dwTrb3 & ~0x1) | (xfer->data[i].ccs);
usr.sbin/bhyve/pci_xhci.c
1622
xfer->data[i].streamid, xfer->data[i].trbnext,
usr.sbin/bhyve/pci_xhci.c
1623
xfer->data[i].ccs);
usr.sbin/bhyve/pci_xhci.c
1635
XHCI_TRB_2_REM_SET(xfer->data[i].blen);
usr.sbin/bhyve/pci_xhci.c
1709
struct usb_data_xfer *xfer;
usr.sbin/bhyve/pci_xhci.c
1719
xfer = devep->ep_xfer;
usr.sbin/bhyve/pci_xhci.c
1720
USB_DATA_XFER_LOCK(xfer);
usr.sbin/bhyve/pci_xhci.c
1724
err = dev->dev_ue->ue_data(dev->dev_sc, xfer,
usr.sbin/bhyve/pci_xhci.c
1727
if (USB_DATA_GET_ERRCODE(&xfer->data[xfer->head]) ==
usr.sbin/bhyve/pci_xhci.c
1731
err = pci_xhci_xfer_complete(sc, xfer, slot, epid,
usr.sbin/bhyve/pci_xhci.c
1739
USB_DATA_XFER_RESET(xfer);
usr.sbin/bhyve/pci_xhci.c
1743
USB_DATA_XFER_UNLOCK(xfer);
usr.sbin/bhyve/pci_xhci.c
1757
struct usb_data_xfer *xfer;
usr.sbin/bhyve/pci_xhci.c
1767
xfer = devep->ep_xfer;
usr.sbin/bhyve/pci_xhci.c
1768
USB_DATA_XFER_LOCK(xfer);
usr.sbin/bhyve/pci_xhci.c
1798
xfer_block = usb_data_xfer_append(xfer, NULL, 0,
usr.sbin/bhyve/pci_xhci.c
1813
if (!xfer->ureq)
usr.sbin/bhyve/pci_xhci.c
1814
xfer->ureq = malloc(
usr.sbin/bhyve/pci_xhci.c
1816
memcpy(xfer->ureq, &val,
usr.sbin/bhyve/pci_xhci.c
1819
xfer_block = usb_data_xfer_append(xfer, NULL, 0,
usr.sbin/bhyve/pci_xhci.c
1835
xfer_block = usb_data_xfer_append(xfer,
usr.sbin/bhyve/pci_xhci.c
1842
xfer_block = usb_data_xfer_append(xfer, NULL, 0,
usr.sbin/bhyve/pci_xhci.c
1847
xfer_block = usb_data_xfer_append(xfer, NULL, 0,
usr.sbin/bhyve/pci_xhci.c
1853
xfer_block = usb_data_xfer_append(xfer, NULL, 0,
usr.sbin/bhyve/pci_xhci.c
1891
DPRINTF(("pci_xhci[%d]: xfer->ndata %u", __LINE__, xfer->ndata));
usr.sbin/bhyve/pci_xhci.c
1893
if (xfer->ndata <= 0)
usr.sbin/bhyve/pci_xhci.c
1900
usberr = dev->dev_ue->ue_request(dev->dev_sc, xfer);
usr.sbin/bhyve/pci_xhci.c
1907
err = pci_xhci_xfer_complete(sc, xfer, slot, epid,
usr.sbin/bhyve/pci_xhci.c
1924
USB_DATA_XFER_UNLOCK(xfer);
usr.sbin/bhyve/pci_xhci.c
1930
USB_DATA_XFER_RESET(xfer);
usr.sbin/bhyve/pci_xhci.c
1937
USB_DATA_XFER_RESET(xfer);
usr.sbin/bhyve/pci_xhci.c
3031
struct usb_data_xfer *xfer;
usr.sbin/bhyve/pci_xhci.c
3036
xfer = dev->eps[idx].ep_xfer;
usr.sbin/bhyve/pci_xhci.c
3038
SNAPSHOT_VAR_OR_LEAVE(xfer, meta, ret, done);
usr.sbin/bhyve/pci_xhci.c
3039
if (xfer == NULL) {
usr.sbin/bhyve/pci_xhci.c
3046
xfer = dev->eps[idx].ep_xfer;
usr.sbin/bhyve/pci_xhci.c
3051
xfer_block = &xfer->data[k];
usr.sbin/bhyve/pci_xhci.c
3065
SNAPSHOT_VAR_OR_LEAVE(xfer->ureq, meta, ret, done);
usr.sbin/bhyve/pci_xhci.c
3066
if (xfer->ureq) {
usr.sbin/bhyve/pci_xhci.c
3069
xfer->ureq = malloc(sizeof(struct usb_device_request));
usr.sbin/bhyve/pci_xhci.c
3071
SNAPSHOT_BUF_OR_LEAVE(xfer->ureq,
usr.sbin/bhyve/pci_xhci.c
3076
SNAPSHOT_VAR_OR_LEAVE(xfer->ndata, meta, ret, done);
usr.sbin/bhyve/pci_xhci.c
3077
SNAPSHOT_VAR_OR_LEAVE(xfer->head, meta, ret, done);
usr.sbin/bhyve/pci_xhci.c
3078
SNAPSHOT_VAR_OR_LEAVE(xfer->tail, meta, ret, done);
usr.sbin/bhyve/usb_emul.c
57
usb_data_xfer_append(struct usb_data_xfer *xfer, void *buf, int blen,
usr.sbin/bhyve/usb_emul.c
62
if (xfer->ndata >= USB_MAX_XFER_BLOCKS)
usr.sbin/bhyve/usb_emul.c
65
xb = &xfer->data[xfer->tail];
usr.sbin/bhyve/usb_emul.c
72
xfer->ndata++;
usr.sbin/bhyve/usb_emul.c
73
xfer->tail = (xfer->tail + 1) % USB_MAX_XFER_BLOCKS;
usr.sbin/bhyve/usb_emul.h
156
struct usb_data_xfer_block *usb_data_xfer_append(struct usb_data_xfer *xfer,
usr.sbin/bhyve/usb_emul.h
59
int (*ue_request)(void *sc, struct usb_data_xfer *xfer);
usr.sbin/bhyve/usb_emul.h
60
int (*ue_data)(void *sc, struct usb_data_xfer *xfer, int dir,
usr.sbin/bhyve/usb_mouse.c
325
umouse_request(void *scarg, struct usb_data_xfer *xfer)
usr.sbin/bhyve/usb_mouse.c
343
idx = xfer->head;
usr.sbin/bhyve/usb_mouse.c
344
for (i = 0; i < xfer->ndata; i++) {
usr.sbin/bhyve/usb_mouse.c
345
xfer->data[idx].bdone = 0;
usr.sbin/bhyve/usb_mouse.c
346
if (data == NULL && USB_DATA_OK(xfer, idx)) {
usr.sbin/bhyve/usb_mouse.c
347
data = &xfer->data[idx];
usr.sbin/bhyve/usb_mouse.c
351
xfer->data[idx].processed = 1;
usr.sbin/bhyve/usb_mouse.c
358
if (!xfer->ureq) {
usr.sbin/bhyve/usb_mouse.c
363
value = UGETW(xfer->ureq->wValue);
usr.sbin/bhyve/usb_mouse.c
364
index = UGETW(xfer->ureq->wIndex);
usr.sbin/bhyve/usb_mouse.c
365
len = UGETW(xfer->ureq->wLength);
usr.sbin/bhyve/usb_mouse.c
369
sc->hci->hci_port, xfer->ureq->bmRequestType,
usr.sbin/bhyve/usb_mouse.c
370
xfer->ureq->bRequest, value, index, len));
usr.sbin/bhyve/usb_mouse.c
372
switch (UREQ(xfer->ureq->bRequest, xfer->ureq->bmRequestType)) {
usr.sbin/bhyve/usb_mouse.c
662
sc->hid.idle = UGETW(xfer->ureq->wValue) >> 8;
usr.sbin/bhyve/usb_mouse.c
668
sc->hid.protocol = UGETW(xfer->ureq->wValue) >> 8;
usr.sbin/bhyve/usb_mouse.c
680
if (xfer->ureq && (xfer->ureq->bmRequestType & UT_WRITE) &&
usr.sbin/bhyve/usb_mouse.c
693
umouse_data_handler(void *scarg, struct usb_data_xfer *xfer, int dir,
usr.sbin/bhyve/usb_mouse.c
703
dir ? "IN" : "OUT", epctx, xfer->data[0].blen));
usr.sbin/bhyve/usb_mouse.c
712
idx = xfer->head;
usr.sbin/bhyve/usb_mouse.c
713
for (i = 0; i < xfer->ndata; i++) {
usr.sbin/bhyve/usb_mouse.c
714
data = &xfer->data[idx];
usr.sbin/bhyve/usb_mouse.c
743
USB_DATA_SET_ERRCODE(&xfer->data[xfer->head], USB_NAK);
usr.sbin/i2c/i2c.c
452
struct iic_rdwr_data xfer;
usr.sbin/i2c/i2c.c
480
xfer.msgs = msgs;
usr.sbin/i2c/i2c.c
481
xfer.nmsgs = msgp - msgs;
usr.sbin/i2c/i2c.c
483
if (ioctl(fd, I2CRDWR, &xfer) == -1 )