Home
last modified time | relevance | path

Searched refs:xfer (Results 1 – 25 of 67) sorted by relevance

123

/third_party/FreeBSD/sys/dev/usb/
Dusb_transfer.c120 usb_request_callback(struct usb_xfer *xfer, usb_error_t error) in usb_request_callback() argument
122 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) in usb_request_callback()
123 usb_handle_request_callback(xfer, error); in usb_request_callback()
125 usbd_do_request_callback(xfer, error); in usb_request_callback()
135 usbd_update_max_frame_size(struct usb_xfer *xfer) in usbd_update_max_frame_size() argument
141 xfer->max_frame_size = xfer->max_packet_size * xfer->max_packet_count; in usbd_update_max_frame_size()
332 struct usb_xfer *xfer = parm->curr_xfer; in usbd_transfer_setup_sub() local
354 edesc = xfer->endpoint->edesc; in usbd_transfer_setup_sub()
355 ecomp = xfer->endpoint->ecomp; in usbd_transfer_setup_sub()
359 xfer->flags = setup->flags; in usbd_transfer_setup_sub()
[all …]
Dusb_handle_request.c50 usb_handle_request_callback(struct usb_xfer *xfer, usb_error_t error) in usb_handle_request_callback() argument
56 switch (USB_GET_STATE(xfer)) { in usb_handle_request_callback()
61 err = usb_handle_request(xfer); in usb_handle_request_callback()
67 usb_needs_explore(xfer->xroot->bus, 0); in usb_handle_request_callback()
72 usbd_transfer_submit(xfer); in usb_handle_request_callback()
77 if (xfer->flags_int.control_rem != 0xFFFF) { in usb_handle_request_callback()
79 (void)usb_handle_request(xfer); in usb_handle_request_callback()
81 if (xfer->error != USB_ERR_CANCELLED) { in usb_handle_request_callback()
94 usbd_xfer_set_frame_len(xfer, 0, sizeof(struct usb_device_request)); in usb_handle_request_callback()
95 xfer->nframes = 1; in usb_handle_request_callback()
[all …]
Dusb_generic.c103 error = usbd_transfer_setup(udev, &iface_index, f->xfer, in ugen_transfer_setup()
107 if (f->xfer[0]->nframes == 1) { in ugen_transfer_setup()
109 f->xfer[0]->max_data_length, 2); in ugen_transfer_setup()
112 f->xfer[0]->max_frame_size, in ugen_transfer_setup()
113 2 * f->xfer[0]->nframes); in ugen_transfer_setup()
116 usbd_transfer_unsetup(f->xfer, n_setup); in ugen_transfer_setup()
167 usbd_transfer_stop(f->xfer[0]); in ugen_close()
168 usbd_transfer_stop(f->xfer[1]); in ugen_close()
171 usbd_transfer_unsetup(f->xfer, 2); in ugen_close()
189 if (f->xfer[0] || f->xfer[1]) { in ugen_open_pipe_write()
[all …]
Dusb_debug.c92 struct usb_xfer *xfer; in usb_dump_queue() local
97 TAILQ_FOREACH(xfer, &ep->endpoint_q[x].head, wait_entry) in usb_dump_queue()
98 PRINTK(" %p", xfer); in usb_dump_queue()
134 usb_dump_xfer(struct usb_xfer *xfer) in usb_dump_xfer() argument
137 PRINTK("usb_dump_xfer: xfer=%p\n", xfer); in usb_dump_xfer()
138 if (xfer == NULL) { in usb_dump_xfer()
141 if (xfer->endpoint == NULL) { in usb_dump_xfer()
143 xfer); in usb_dump_xfer()
146 udev = xfer->xroot->udev; in usb_dump_xfer()
149 xfer, udev, in usb_dump_xfer()
[all …]
Dusbdi.h454 #define USB_GET_STATE(xfer) (usbd_xfer_state(xfer)) argument
548 void usbd_transfer_submit(struct usb_xfer *xfer);
549 void usbd_transfer_clear_stall(struct usb_xfer *xfer);
550 void usbd_transfer_drain(struct usb_xfer *xfer);
551 uint8_t usbd_transfer_pending(struct usb_xfer *xfer);
552 void usbd_transfer_start(struct usb_xfer *xfer);
553 void usbd_transfer_stop(struct usb_xfer *xfer);
565 usbd_xfer_old_frame_length(struct usb_xfer *xfer, usb_frcount_t frindex);
566 void usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen,
570 void *usbd_xfer_softc(struct usb_xfer *xfer);
[all …]
Dusb_request.c172 usbd_do_request_callback(struct usb_xfer *xfer, usb_error_t error) in usbd_do_request_callback() argument
176 DPRINTF("st=%u\n", USB_GET_STATE(xfer)); in usbd_do_request_callback()
178 switch (USB_GET_STATE(xfer)) { in usbd_do_request_callback()
180 usbd_transfer_submit(xfer); in usbd_do_request_callback()
183 (void)cv_signal(&xfer->xroot->udev->ctrlreq_cv); in usbd_do_request_callback()
194 usb_do_clear_stall_callback(struct usb_xfer *xfer, usb_error_t error) in usb_do_clear_stall_callback() argument
204 udev = xfer->xroot->udev; in usb_do_clear_stall_callback()
215 switch (USB_GET_STATE(xfer)) { in usb_do_clear_stall_callback()
257 usbd_copy_in(xfer->frbuffers, 0, &req, sizeof(req)); in usb_do_clear_stall_callback()
260 usbd_xfer_set_frame_len(xfer, 0, sizeof(req)); in usb_do_clear_stall_callback()
[all …]
Dusb_hub.c180 uhub_intr_callback(struct usb_xfer *xfer, usb_error_t error) in uhub_intr_callback() argument
182 struct uhub_softc *sc = usbd_xfer_softc(xfer); in uhub_intr_callback()
184 switch (USB_GET_STATE(xfer)) { in uhub_intr_callback()
196 usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer)); in uhub_intr_callback()
197 usbd_transfer_submit(xfer); in uhub_intr_callback()
201 if (xfer->error != USB_ERR_CANCELLED) { in uhub_intr_callback()
207 usbd_xfer_set_stall(xfer); in uhub_intr_callback()
208 usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer)); in uhub_intr_callback()
209 usbd_transfer_submit(xfer); in uhub_intr_callback()
321 uhub_reset_tt_callback(struct usb_xfer *xfer, usb_error_t error) in uhub_reset_tt_callback() argument
[all …]
/third_party/alsa-utils/axfer/
Dxfer-options.c52 static int allocate_paths(struct xfer_context *xfer, char *const *paths, in allocate_paths() argument
63 xfer->paths = calloc(count, sizeof(xfer->paths[0])); in allocate_paths()
64 if (xfer->paths == NULL) in allocate_paths()
66 xfer->path_count = count; in allocate_paths()
69 xfer->paths[0] = strndup("-", PATH_MAX); in allocate_paths()
70 if (xfer->paths[0] == NULL) in allocate_paths()
74 xfer->paths[i] = strndup(paths[i], PATH_MAX); in allocate_paths()
75 if (xfer->paths[i] == NULL) in allocate_paths()
83 static int verify_cntr_format(struct xfer_context *xfer) in verify_cntr_format() argument
99 if (strcasecmp(xfer->cntr_format_literal, entry->literal)) in verify_cntr_format()
[all …]
Dxfer.c38 int xfer_context_init(struct xfer_context *xfer, enum xfer_type type, in xfer_context_init() argument
53 assert(xfer); in xfer_context_init()
65 xfer->direction = direction; in xfer_context_init()
66 xfer->type = type; in xfer_context_init()
67 xfer->ops = &entry->data->ops; in xfer_context_init()
69 xfer->private_data = malloc(entry->data->private_size); in xfer_context_init()
70 if (xfer->private_data == NULL) in xfer_context_init()
72 memset(xfer->private_data, 0, entry->data->private_size); in xfer_context_init()
74 err = xfer->ops->init(xfer, direction); in xfer_context_init()
78 err = xfer_options_parse_args(xfer, entry->data, argc, argv); in xfer_context_init()
[all …]
Dxfer.h58 int xfer_context_init(struct xfer_context *xfer, enum xfer_type type,
60 void xfer_context_destroy(struct xfer_context *xfer);
61 int xfer_context_pre_process(struct xfer_context *xfer,
67 int xfer_context_process_frames(struct xfer_context *xfer,
71 void xfer_context_pause(struct xfer_context *xfer, bool enable);
72 void xfer_context_post_process(struct xfer_context *xfer);
75 int xfer_options_parse_args(struct xfer_context *xfer,
78 int xfer_options_fixup_paths(struct xfer_context *xfer);
79 void xfer_options_calculate_duration(struct xfer_context *xfer,
85 int (*init)(struct xfer_context *xfer, snd_pcm_stream_t direction);
[all …]
Dsubcmd-transfer.c17 struct xfer_context xfer; member
49 xfer_context_pause(&ctx_ptr->xfer, true); in handle_unix_signal_for_suspend()
95 xfer_context_pause(&ctx_ptr->xfer, false); in handle_unix_signal_for_suspend()
148 return xfer_context_init(&ctx->xfer, xfer_type, direction, argc, argv); in context_init()
176 err = xfer_context_pre_process(&ctx->xfer, &sample_format, in capture_pre_process()
183 err = allocate_containers(ctx, ctx->xfer.path_count); in capture_pre_process()
194 const char *path = ctx->xfer.paths[i]; in capture_pre_process()
208 ctx->xfer.cntr_format, in capture_pre_process()
209 ctx->xfer.verbose > 1); in capture_pre_process()
240 err = allocate_containers(ctx, ctx->xfer.path_count); in playback_pre_process()
[all …]
DMakefile.am27 xfer.h \
28 xfer-libasound.h \
47 xfer.h \
48 xfer.c \
49 xfer-options.c \
50 xfer-libasound.h \
51 xfer-libasound.c \
54 xfer-libasound-irq-rw.c \
56 xfer-libasound-irq-mmap.c \
62 xfer-libasound-timer-mmap.c
[all …]
Dxfer-libffado.c35 int (*process_frames)(struct xfer_context *xfer,
63 static int xfer_libffado_init(struct xfer_context *xfer, in xfer_libffado_init() argument
66 struct libffado_state *state = xfer->private_data; in xfer_libffado_init()
78 static int xfer_libffado_parse_opt(struct xfer_context *xfer, int key, in xfer_libffado_parse_opt() argument
81 struct libffado_state *state = xfer->private_data; in xfer_libffado_parse_opt()
125 static int xfer_libffado_validate_opts(struct xfer_context *xfer) in xfer_libffado_validate_opts() argument
127 struct libffado_state *state = xfer->private_data; in xfer_libffado_validate_opts()
174 static int r_process_frames(struct xfer_context *xfer, in r_process_frames() argument
179 struct libffado_state *state = xfer->private_data; in r_process_frames()
213 assert(pos == xfer->samples_per_frame); in r_process_frames()
[all …]
Dxfer-libasound.c62 static int xfer_libasound_init(struct xfer_context *xfer, in xfer_libasound_init() argument
65 struct libasound_state *state = xfer->private_data; in xfer_libasound_init()
79 static int xfer_libasound_parse_opt(struct xfer_context *xfer, int key, in xfer_libasound_parse_opt() argument
82 struct libasound_state *state = xfer->private_data; in xfer_libasound_parse_opt()
131 int xfer_libasound_validate_opts(struct xfer_context *xfer) in xfer_libasound_validate_opts() argument
133 struct libasound_state *state = xfer->private_data; in xfer_libasound_validate_opts()
136 state->verbose = xfer->verbose > 1; in xfer_libasound_validate_opts()
260 static int open_handle(struct xfer_context *xfer) in open_handle() argument
262 struct libasound_state *state = xfer->private_data; in open_handle()
277 err = snd_pcm_open(&state->handle, state->node_literal, xfer->direction, in open_handle()
[all …]
/third_party/openssl/crypto/bn/asm/
Dparisc-mont.pl136 $xfer=$n0; # accommodates [-16..15] offset in fld[dw]s
208 ldo `$LOCALS+16`($fp),$xfer
222 fstds ${fab0},-16($xfer)
223 fstds ${fnm0},-8($xfer)
224 fstds ${fab1},0($xfer)
225 fstds ${fnm1},8($xfer)
238 ldd -16($xfer),$ab0
239 fstds ${fab0},-16($xfer)
243 ldd -8($xfer),$nm0
244 fstds ${fnm0},-8($xfer)
[all …]
/third_party/FreeBSD/sys/dev/usb/controller/
Dehci.c849 ehci_transfer_intr_enqueue(struct usb_xfer *xfer) in ehci_transfer_intr_enqueue() argument
852 if (ehci_check_transfer(xfer)) { in ehci_transfer_intr_enqueue()
858 usbd_transfer_enqueue(&xfer->xroot->bus->intr_q, xfer); in ehci_transfer_intr_enqueue()
861 if (xfer->timeout != 0) { in ehci_transfer_intr_enqueue()
862 usbd_transfer_timeout_ms(xfer, &ehci_timeout, xfer->timeout); in ehci_transfer_intr_enqueue()
1020 ehci_data_toggle_update(struct usb_xfer *xfer, uint16_t actlen, uint16_t xlen) in ehci_data_toggle_update() argument
1026 dt = (actlen / xfer->max_packet_size) & 1; in ehci_data_toggle_update()
1029 rem = actlen % xfer->max_packet_size; in ehci_data_toggle_update()
1038 xfer->endpoint->toggle_next ^= dt; in ehci_data_toggle_update()
1042 ehci_non_isoc_done_sub(struct usb_xfer *xfer) in ehci_non_isoc_done_sub() argument
[all …]
Dxhci.c688 xhci_generic_done_sub(struct usb_xfer *xfer) in xhci_generic_done_sub() argument
695 td = xfer->td_transfer_cache; in xhci_generic_done_sub()
698 if (xfer->aframes != xfer->nframes) in xhci_generic_done_sub()
699 usbd_xfer_set_frame_len(xfer, xfer->aframes, 0); in xhci_generic_done_sub()
709 xfer, (unsigned int)xfer->aframes, in xhci_generic_done_sub()
710 (unsigned int)xfer->nframes, in xhci_generic_done_sub()
723 } else if (xfer->aframes != xfer->nframes) { in xhci_generic_done_sub()
724 xfer->frlengths[xfer->aframes] += td->len - len; in xhci_generic_done_sub()
727 if (((void *)td) == xfer->td_transfer_last) { in xhci_generic_done_sub()
740 if (xfer->flags_int.short_frames_ok || in xhci_generic_done_sub()
[all …]
/third_party/FreeBSD/stand/usb/
Dusb_busdma_loader.c479 struct usb_xfer *xfer; in usb_bdma_work_loop() local
482 xfer = pq->curr; in usb_bdma_work_loop()
483 info = xfer->xroot; in usb_bdma_work_loop()
487 if (xfer->error) { in usb_bdma_work_loop()
490 usbd_transfer_done(xfer, USB_ERR_NORMAL_COMPLETION); in usb_bdma_work_loop()
494 if (!xfer->flags_int.bdma_setup) { in usb_bdma_work_loop()
499 xfer->flags_int.bdma_setup = 1; in usb_bdma_work_loop()
505 if (xfer->flags_int.isochronous_xfr) { in usb_bdma_work_loop()
508 frlength_0 = xfer->sumlen; in usb_bdma_work_loop()
511 nframes = xfer->nframes; in usb_bdma_work_loop()
[all …]
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_usb.c466 usb_unlink_bsd(struct usb_xfer *xfer, in usb_unlink_bsd() argument
469 if (xfer == NULL) in usb_unlink_bsd()
471 if (!usbd_transfer_pending(xfer)) in usb_unlink_bsd()
473 if (xfer->priv_fifo == (void *)urb) { in usb_unlink_bsd()
476 usbd_transfer_drain(xfer); in usb_unlink_bsd()
479 usbd_transfer_stop(xfer); in usb_unlink_bsd()
481 usbd_transfer_start(xfer); in usb_unlink_bsd()
1477 usb_linux_complete(struct usb_xfer *xfer) in usb_linux_complete() argument
1481 urb = usbd_xfer_get_priv(xfer); in usb_linux_complete()
1482 usbd_xfer_set_priv(xfer, NULL); in usb_linux_complete()
[all …]
/third_party/FreeBSD/sys/dev/usb/net/
Dif_cdce.c695 cdce_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error) in cdce_bulk_write_callback() argument
697 struct cdce_softc *sc = (struct cdce_softc *)usbd_xfer_softc(xfer); in cdce_bulk_write_callback()
706 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL); in cdce_bulk_write_callback()
708 switch (USB_GET_STATE(xfer)) { in cdce_bulk_write_callback()
741 usbd_xfer_set_frame_data(xfer, x, m->payload, m->len); in cdce_bulk_write_callback()
749 usbd_xfer_set_frames(xfer, x); in cdce_bulk_write_callback()
750 usbd_transfer_submit(xfer); in cdce_bulk_write_callback()
763 usbd_xfer_set_stall(xfer); in cdce_bulk_write_callback()
860 cdce_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error) in cdce_bulk_read_callback() argument
862 struct cdce_softc *sc = (struct cdce_softc *)usbd_xfer_softc(xfer); in cdce_bulk_read_callback()
[all …]
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_resource.c1182 crocus_flush_staging_region(struct pipe_transfer *xfer, in crocus_flush_staging_region() argument
1185 if (!(xfer->usage & PIPE_MAP_WRITE)) in crocus_flush_staging_region()
1188 struct crocus_transfer *map = (void *) xfer; in crocus_flush_staging_region()
1193 if (xfer->resource->target == PIPE_BUFFER) in crocus_flush_staging_region()
1194 src_box.x += xfer->box.x % CROCUS_MAP_BUFFER_ALIGNMENT; in crocus_flush_staging_region()
1197 .x = xfer->box.x + flush_box->x, in crocus_flush_staging_region()
1198 .y = xfer->box.y + flush_box->y, in crocus_flush_staging_region()
1199 .z = xfer->box.z + flush_box->z, in crocus_flush_staging_region()
1205 crocus_copy_region(map->blorp, map->batch, xfer->resource, xfer->level, in crocus_flush_staging_region()
1222 struct pipe_transfer *xfer = &map->base.b; in crocus_map_copy_region() local
[all …]
/third_party/FreeBSD/sys/dev/usb/input/
Duhid.c136 uhid_intr_write_callback(struct usb_xfer *xfer, usb_error_t error) in uhid_intr_write_callback() argument
138 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_intr_write_callback()
142 switch (USB_GET_STATE(xfer)) { in uhid_intr_write_callback()
146 pc = usbd_xfer_get_frame(xfer, 0); in uhid_intr_write_callback()
148 0, usbd_xfer_max_len(xfer), &actlen, 0)) { in uhid_intr_write_callback()
149 usbd_xfer_set_frame_len(xfer, 0, actlen); in uhid_intr_write_callback()
150 usbd_transfer_submit(xfer); in uhid_intr_write_callback()
157 usbd_xfer_set_stall(xfer); in uhid_intr_write_callback()
192 uhid_intr_read_callback(struct usb_xfer *xfer, usb_error_t error) in uhid_intr_read_callback() argument
194 struct uhid_softc *sc = usbd_xfer_softc(xfer); in uhid_intr_read_callback()
[all …]
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c1219 umass_tr_error(struct usb_xfer *xfer, usb_error_t error) in umass_tr_error() argument
1221 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); in umass_tr_error()
1284 umass_t_bbb_reset1_callback(struct usb_xfer *xfer, usb_error_t error) in umass_t_bbb_reset1_callback() argument
1286 struct umass_softc *sc = (struct umass_softc *)usbd_xfer_softc(xfer); in umass_t_bbb_reset1_callback()
1290 switch (USB_GET_STATE(xfer)) { in umass_t_bbb_reset1_callback()
1319 pc = usbd_xfer_get_frame(xfer, 0); in umass_t_bbb_reset1_callback()
1322 usbd_xfer_set_frame_len(xfer, 0, sizeof(req)); in umass_t_bbb_reset1_callback()
1323 usbd_xfer_set_frames(xfer, 1); in umass_t_bbb_reset1_callback()
1324 usbd_transfer_submit(xfer); in umass_t_bbb_reset1_callback()
1328 umass_tr_error(xfer, error); in umass_t_bbb_reset1_callback()
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_resource.c1803 iris_flush_staging_region(struct pipe_transfer *xfer, in iris_flush_staging_region() argument
1806 if (!(xfer->usage & PIPE_MAP_WRITE)) in iris_flush_staging_region()
1809 struct iris_transfer *map = (void *) xfer; in iris_flush_staging_region()
1814 if (xfer->resource->target == PIPE_BUFFER) in iris_flush_staging_region()
1815 src_box.x += xfer->box.x % IRIS_MAP_BUFFER_ALIGNMENT; in iris_flush_staging_region()
1818 .x = xfer->box.x + flush_box->x, in iris_flush_staging_region()
1819 .y = xfer->box.y + flush_box->y, in iris_flush_staging_region()
1820 .z = xfer->box.z + flush_box->z, in iris_flush_staging_region()
1826 iris_copy_region(map->blorp, map->batch, xfer->resource, xfer->level, in iris_flush_staging_region()
1843 struct pipe_transfer *xfer = &map->base.b; in iris_map_copy_region() local
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_plugin.c240 snd_pcm_uframes_t xfer = 0; in snd_pcm_plugin_write_areas() local
281 xfer += frames; in snd_pcm_plugin_write_areas()
284 return (snd_pcm_sframes_t)xfer; in snd_pcm_plugin_write_areas()
287 return xfer > 0 ? (snd_pcm_sframes_t)xfer : err; in snd_pcm_plugin_write_areas()
297 snd_pcm_uframes_t xfer = 0; in snd_pcm_plugin_read_areas() local
339 xfer += frames; in snd_pcm_plugin_read_areas()
342 return (snd_pcm_sframes_t)xfer; in snd_pcm_plugin_read_areas()
345 return xfer > 0 ? (snd_pcm_sframes_t)xfer : err; in snd_pcm_plugin_read_areas()
395 snd_pcm_sframes_t xfer; in snd_pcm_plugin_mmap_commit() local
407 xfer = 0; in snd_pcm_plugin_mmap_commit()
[all …]

123