Home
last modified time | relevance | path

Searched refs:subs (Results 1 - 25 of 615) sorted by relevance

12345678910>>...25

/kernel/linux/linux-5.10/sound/usb/
H A Dpcm.c32 snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs, in snd_usb_pcm_delay() argument
39 if (!subs->last_delay) in snd_usb_pcm_delay()
42 current_frame_number = usb_get_current_frame_number(subs->dev); in snd_usb_pcm_delay()
48 frame_diff = (current_frame_number - subs->last_frame_number) & 0xff; in snd_usb_pcm_delay()
53 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) in snd_usb_pcm_delay()
54 est_delay = subs->last_delay - est_delay; in snd_usb_pcm_delay()
56 est_delay = subs->last_delay + est_delay; in snd_usb_pcm_delay()
68 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_pcm_pointer() local
71 if (atomic_read(&subs->stream->chip->shutdown)) in snd_usb_pcm_pointer()
73 spin_lock(&subs in snd_usb_pcm_pointer()
84 find_format(struct snd_usb_substream *subs) find_format() argument
211 start_endpoints(struct snd_usb_substream *subs) start_endpoints() argument
263 sync_pending_stops(struct snd_usb_substream *subs) sync_pending_stops() argument
269 stop_endpoints(struct snd_usb_substream *subs) stop_endpoints() argument
281 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_pcm_sync_stop() local
319 set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs, struct usb_device *dev, struct usb_interface_descriptor *altsd, unsigned int attr) set_sync_ep_implicit_fb_quirk() argument
426 set_sync_endpoint(struct snd_usb_substream *subs, struct audioformat *fmt, struct usb_device *dev, struct usb_host_interface *alts, struct usb_interface_descriptor *altsd) set_sync_endpoint() argument
536 set_format(struct snd_usb_substream *subs, struct audioformat *fmt) set_format() argument
622 match_endpoint_audioformats(struct snd_usb_substream *subs, struct audioformat *fp, struct audioformat *match, int rate, snd_pcm_format_t pcm_format) match_endpoint_audioformats() argument
668 configure_sync_endpoint(struct snd_usb_substream *subs) configure_sync_endpoint() argument
737 configure_endpoint(struct snd_usb_substream *subs) configure_endpoint() argument
762 snd_usb_pcm_change_state(struct snd_usb_substream *subs, int state) snd_usb_pcm_change_state() argument
823 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_hw_params() local
881 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_hw_free() local
906 struct snd_usb_substream *subs = runtime->private_data; snd_usb_pcm_prepare() local
988 hw_check_valid_format(struct snd_usb_substream *subs, struct snd_pcm_hw_params *params, struct audioformat *fp) hw_check_valid_format() argument
1036 struct snd_usb_substream *subs = rule->private; hw_rule_rate() local
1088 struct snd_usb_substream *subs = rule->private; hw_rule_channels() local
1139 struct snd_usb_substream *subs = rule->private; hw_rule_format() local
1170 struct snd_usb_substream *subs = rule->private; hw_rule_period_time() local
1208 snd_usb_pcm_check_knot(struct snd_pcm_runtime *runtime, struct snd_usb_substream *subs) snd_usb_pcm_check_knot() argument
1254 setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substream *subs) setup_hw_info() argument
1350 struct snd_usb_substream *subs = &as->substream[direction]; snd_usb_pcm_open() local
1378 struct snd_usb_substream *subs = &as->substream[direction]; snd_usb_pcm_close() local
1405 retire_capture_urb(struct snd_usb_substream *subs, struct urb *urb) retire_capture_urb() argument
1481 fill_playback_urb_dsd_dop(struct snd_usb_substream *subs, struct urb *urb, unsigned int bytes) fill_playback_urb_dsd_dop() argument
1538 copy_to_urb(struct snd_usb_substream *subs, struct urb *urb, int offset, int stride, unsigned int bytes) copy_to_urb() argument
1560 copy_to_urb_quirk(struct snd_usb_substream *subs, struct urb *urb, int stride, unsigned int bytes) copy_to_urb_quirk() argument
1586 prepare_playback_urb(struct snd_usb_substream *subs, struct urb *urb) prepare_playback_urb() argument
1701 retire_playback_urb(struct snd_usb_substream *subs, struct urb *urb) retire_playback_urb() argument
1753 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_substream_playback_trigger() local
1790 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_substream_capture_trigger() local
1857 snd_usb_preallocate_buffer(struct snd_usb_substream *subs) snd_usb_preallocate_buffer() argument
[all...]
H A Dmedia.h56 int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm,
58 void snd_media_stream_delete(struct snd_usb_substream *subs);
59 int snd_media_start_pipeline(struct snd_usb_substream *subs);
60 void snd_media_stop_pipeline(struct snd_usb_substream *subs);
66 static inline int snd_media_stream_init(struct snd_usb_substream *subs, in snd_media_stream_init() argument
69 static inline void snd_media_stream_delete(struct snd_usb_substream *subs) { } in snd_media_stream_delete() argument
70 static inline int snd_media_start_pipeline(struct snd_usb_substream *subs) in snd_media_start_pipeline() argument
72 static inline void snd_media_stop_pipeline(struct snd_usb_substream *subs) { } in snd_media_stop_pipeline() argument
/kernel/linux/linux-6.6/sound/usb/
H A Dpcm.c32 static snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs, in snd_usb_pcm_delay() argument
40 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_pcm_delay()
41 queued = bytes_to_frames(runtime, subs->inflight_bytes); in snd_usb_pcm_delay()
44 } else if (!subs->running) { in snd_usb_pcm_delay()
48 current_frame_number = usb_get_current_frame_number(subs->dev); in snd_usb_pcm_delay()
54 frame_diff = (current_frame_number - subs->last_frame_number) & 0xff; in snd_usb_pcm_delay()
60 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_pcm_delay()
75 struct snd_usb_substream *subs = runtime->private_data; in snd_usb_pcm_pointer() local
78 if (atomic_read(&subs->stream->chip->shutdown)) in snd_usb_pcm_pointer()
80 spin_lock(&subs in snd_usb_pcm_pointer()
91 find_format(struct list_head *fmt_list_head, snd_pcm_format_t format, unsigned int rate, unsigned int channels, bool strict_match, struct snd_usb_substream *subs) find_format() argument
152 find_substream_format(struct snd_usb_substream *subs, const struct snd_pcm_hw_params *params) find_substream_format() argument
160 snd_usb_pcm_has_fixed_rate(struct snd_usb_substream *subs) snd_usb_pcm_has_fixed_rate() argument
250 stop_endpoints(struct snd_usb_substream *subs, bool keep_pending) stop_endpoints() argument
265 start_endpoints(struct snd_usb_substream *subs) start_endpoints() argument
296 sync_pending_stops(struct snd_usb_substream *subs) sync_pending_stops() argument
305 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_pcm_sync_stop() local
401 snd_usb_pcm_change_state(struct snd_usb_substream *subs, int state) snd_usb_pcm_change_state() argument
449 close_endpoints(struct snd_usb_audio *chip, struct snd_usb_substream *subs) close_endpoints() argument
477 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_hw_params() local
590 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_hw_free() local
614 lowlatency_playback_available(struct snd_pcm_runtime *runtime, struct snd_usb_substream *subs) lowlatency_playback_available() argument
640 struct snd_usb_substream *subs = runtime->private_data; snd_usb_pcm_prepare() local
724 hw_check_valid_format(struct snd_usb_substream *subs, struct snd_pcm_hw_params *params, const struct audioformat *fp) hw_check_valid_format() argument
817 struct snd_usb_substream *subs = rule->private; hw_rule_rate() local
883 struct snd_usb_substream *subs = rule->private; hw_rule_channels() local
922 struct snd_usb_substream *subs = rule->private; hw_rule_format() local
963 struct snd_usb_substream *subs = rule->private; hw_rule_period_time() local
991 struct snd_usb_substream *subs = rule->private; hw_rule_period_size_implicit_fb() local
1036 struct snd_usb_substream *subs = rule->private; hw_rule_periods_implicit_fb() local
1082 setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substream *subs) setup_hw_info() argument
1210 struct snd_usb_substream *subs = &as->substream[direction]; snd_usb_pcm_open() local
1243 struct snd_usb_substream *subs = &as->substream[direction]; snd_usb_pcm_close() local
1266 retire_capture_urb(struct snd_usb_substream *subs, struct urb *urb) retire_capture_urb() argument
1337 urb_ctx_queue_advance(struct snd_usb_substream *subs, struct urb *urb, unsigned int bytes) urb_ctx_queue_advance() argument
1349 fill_playback_urb_dsd_dop(struct snd_usb_substream *subs, struct urb *urb, unsigned int bytes) fill_playback_urb_dsd_dop() argument
1406 fill_playback_urb_dsd_bitrev(struct snd_usb_substream *subs, struct urb *urb, unsigned int bytes) fill_playback_urb_dsd_bitrev() argument
1423 copy_to_urb(struct snd_usb_substream *subs, struct urb *urb, int offset, int stride, unsigned int bytes) copy_to_urb() argument
1444 copy_to_urb_quirk(struct snd_usb_substream *subs, struct urb *urb, int stride, unsigned int bytes) copy_to_urb_quirk() argument
1470 prepare_playback_urb(struct snd_usb_substream *subs, struct urb *urb, bool in_stream_lock) prepare_playback_urb() argument
1604 retire_playback_urb(struct snd_usb_substream *subs, struct urb *urb) retire_playback_urb() argument
1634 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_pcm_playback_ack() local
1653 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_substream_playback_trigger() local
1711 struct snd_usb_substream *subs = substream->runtime->private_data; snd_usb_substream_capture_trigger() local
1778 snd_usb_preallocate_buffer(struct snd_usb_substream *subs) snd_usb_preallocate_buffer() argument
[all...]
H A Dmedia.h56 int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm,
58 void snd_media_stream_delete(struct snd_usb_substream *subs);
59 int snd_media_start_pipeline(struct snd_usb_substream *subs);
60 void snd_media_stop_pipeline(struct snd_usb_substream *subs);
66 static inline int snd_media_stream_init(struct snd_usb_substream *subs, in snd_media_stream_init() argument
69 static inline void snd_media_stream_delete(struct snd_usb_substream *subs) { } in snd_media_stream_delete() argument
70 static inline int snd_media_start_pipeline(struct snd_usb_substream *subs) in snd_media_start_pipeline() argument
72 static inline void snd_media_stop_pipeline(struct snd_usb_substream *subs) { } in snd_media_stop_pipeline() argument
/kernel/linux/linux-6.6/sound/usb/usx2y/
H A Dusbusx2yaudio.c58 static int usx2y_urb_capt_retire(struct snd_usx2y_substream *subs) in usx2y_urb_capt_retire() argument
60 struct urb *urb = subs->completed_urb; in usx2y_urb_capt_retire()
61 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usx2y_urb_capt_retire()
63 int i, len, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_urb_capt_retire()
65 struct usx2ydev *usx2y = subs->usx2y; in usx2y_urb_capt_retire()
97 subs->hwptr_done = hwptr_done; in usx2y_urb_capt_retire()
98 subs->transfer_done += lens; in usx2y_urb_capt_retire()
100 if (subs->transfer_done >= runtime->period_size) { in usx2y_urb_capt_retire()
101 subs->transfer_done -= runtime->period_size; in usx2y_urb_capt_retire()
102 snd_pcm_period_elapsed(subs in usx2y_urb_capt_retire()
117 usx2y_urb_play_prepare(struct snd_usx2y_substream *subs, struct urb *cap_urb, struct urb *urb) usx2y_urb_play_prepare() argument
173 usx2y_urb_play_retire(struct snd_usx2y_substream *subs, struct urb *urb) usx2y_urb_play_retire() argument
188 usx2y_urb_submit(struct snd_usx2y_substream *subs, struct urb *urb, int frame) usx2y_urb_submit() argument
260 struct snd_usx2y_substream *subs; usx2y_clients_stop() local
288 usx2y_error_urb_status(struct usx2ydev *usx2y, struct snd_usx2y_substream *subs, struct urb *urb) usx2y_error_urb_status() argument
298 struct snd_usx2y_substream *subs = urb->context; i_usx2y_urb_complete() local
335 struct snd_usx2y_substream *subs; usx2y_urbs_set_complete() local
359 struct snd_usx2y_substream *subs = urb->context; i_usx2y_subs_startup() local
374 usx2y_subs_prepare(struct snd_usx2y_substream *subs) usx2y_subs_prepare() argument
398 usx2y_urbs_release(struct snd_usx2y_substream *subs) usx2y_urbs_release() argument
414 usx2y_urbs_allocate(struct snd_usx2y_substream *subs) usx2y_urbs_allocate() argument
465 usx2y_subs_startup(struct snd_usx2y_substream *subs) usx2y_subs_startup() argument
475 usx2y_urbs_start(struct snd_usx2y_substream *subs) usx2y_urbs_start() argument
487 struct snd_usx2y_substream *subs = usx2y->subs[i]; usx2y_urbs_start() local
539 struct snd_usx2y_substream *subs = substream->runtime->private_data; snd_usx2y_pcm_pointer() local
549 struct snd_usx2y_substream *subs = substream->runtime->private_data; snd_usx2y_pcm_trigger() local
776 struct snd_usx2y_substream *subs; snd_usx2y_pcm_hw_params() local
813 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_pcm_hw_free() local
848 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_pcm_prepare() local
905 struct snd_usx2y_substream *subs = snd_usx2y_pcm_open() local
923 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_pcm_close() local
[all...]
H A Dusx2yhwdeppcm.c49 static int usx2y_usbpcm_urb_capt_retire(struct snd_usx2y_substream *subs) in usx2y_usbpcm_urb_capt_retire() argument
51 struct urb *urb = subs->completed_urb; in usx2y_usbpcm_urb_capt_retire()
52 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usx2y_usbpcm_urb_capt_retire()
53 int i, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_usbpcm_urb_capt_retire()
54 struct usx2ydev *usx2y = subs->usx2y; in usx2y_usbpcm_urb_capt_retire()
76 subs->hwptr_done = hwptr_done; in usx2y_usbpcm_urb_capt_retire()
77 subs->transfer_done += lens; in usx2y_usbpcm_urb_capt_retire()
79 if (subs->transfer_done >= runtime->period_size) { in usx2y_usbpcm_urb_capt_retire()
80 subs->transfer_done -= runtime->period_size; in usx2y_usbpcm_urb_capt_retire()
81 snd_pcm_period_elapsed(subs in usx2y_usbpcm_urb_capt_retire()
102 usx2y_hwdep_urb_play_prepare(struct snd_usx2y_substream *subs, struct urb *urb) usx2y_hwdep_urb_play_prepare() argument
140 usx2y_usbpcm_urb_capt_iso_advance(struct snd_usx2y_substream *subs, struct urb *urb) usx2y_usbpcm_urb_capt_iso_advance() argument
232 struct snd_usx2y_substream *subs = urb->context; i_usx2y_usbpcm_urb_complete() local
274 usx2y_usbpcm_urbs_release(struct snd_usx2y_substream *subs) usx2y_usbpcm_urbs_release() argument
291 struct snd_usx2y_substream *subs = urb->context; i_usx2y_usbpcm_subs_startup() local
314 usx2y_usbpcm_urbs_allocate(struct snd_usx2y_substream *subs) usx2y_usbpcm_urbs_allocate() argument
362 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_usbpcm_hw_free() local
400 usx2y_usbpcm_subs_startup(struct snd_usx2y_substream *subs) usx2y_usbpcm_subs_startup() argument
410 usx2y_usbpcm_urbs_start(struct snd_usx2y_substream *subs) usx2y_usbpcm_urbs_start() argument
423 struct snd_usx2y_substream *subs = usx2y->subs[stream + p]; usx2y_usbpcm_urbs_start() local
433 struct snd_usx2y_substream *subs = usx2y->subs[p]; usx2y_usbpcm_urbs_start() local
443 struct snd_usx2y_substream *subs = usx2y->subs[stream + p]; usx2y_usbpcm_urbs_start() local
498 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_usbpcm_prepare() local
587 struct snd_usx2y_substream *subs = snd_usx2y_usbpcm_open() local
608 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_usbpcm_close() local
627 struct snd_usx2y_substream *subs; usx2y_pcms_busy_check() local
[all...]
/kernel/linux/linux-5.10/sound/usb/usx2y/
H A Dusbusx2yaudio.c57 static int usx2y_urb_capt_retire(struct snd_usx2y_substream *subs) in usx2y_urb_capt_retire() argument
59 struct urb *urb = subs->completed_urb; in usx2y_urb_capt_retire()
60 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usx2y_urb_capt_retire()
62 int i, len, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_urb_capt_retire()
63 struct usx2ydev *usx2y = subs->usx2y; in usx2y_urb_capt_retire()
94 subs->hwptr_done = hwptr_done; in usx2y_urb_capt_retire()
95 subs->transfer_done += lens; in usx2y_urb_capt_retire()
97 if (subs->transfer_done >= runtime->period_size) { in usx2y_urb_capt_retire()
98 subs->transfer_done -= runtime->period_size; in usx2y_urb_capt_retire()
99 snd_pcm_period_elapsed(subs in usx2y_urb_capt_retire()
113 usx2y_urb_play_prepare(struct snd_usx2y_substream *subs, struct urb *cap_urb, struct urb *urb) usx2y_urb_play_prepare() argument
168 usx2y_urb_play_retire(struct snd_usx2y_substream *subs, struct urb *urb) usx2y_urb_play_retire() argument
183 usx2y_urb_submit(struct snd_usx2y_substream *subs, struct urb *urb, int frame) usx2y_urb_submit() argument
252 struct snd_usx2y_substream *subs = usx2y->subs[s]; usx2y_clients_stop() local
259 struct snd_usx2y_substream *subs = usx2y->subs[s]; usx2y_clients_stop() local
275 usx2y_error_urb_status(struct usx2ydev *usx2y, struct snd_usx2y_substream *subs, struct urb *urb) usx2y_error_urb_status() argument
285 struct snd_usx2y_substream *subs = urb->context; i_usx2y_urb_complete() local
324 struct snd_usx2y_substream *subs = usx2y->subs[s]; usx2y_urbs_set_complete() local
342 struct snd_usx2y_substream *subs = urb->context; i_usx2y_subs_startup() local
355 usx2y_subs_prepare(struct snd_usx2y_substream *subs) usx2y_subs_prepare() argument
379 usx2y_urbs_release(struct snd_usx2y_substream *subs) usx2y_urbs_release() argument
393 usx2y_urbs_allocate(struct snd_usx2y_substream *subs) usx2y_urbs_allocate() argument
443 usx2y_subs_startup(struct snd_usx2y_substream *subs) usx2y_subs_startup() argument
452 usx2y_urbs_start(struct snd_usx2y_substream *subs) usx2y_urbs_start() argument
461 struct snd_usx2y_substream *subs = usx2y->subs[i]; usx2y_urbs_start() local
511 struct snd_usx2y_substream *subs = substream->runtime->private_data; snd_usx2y_pcm_pointer() local
519 struct snd_usx2y_substream *subs = substream->runtime->private_data; snd_usx2y_pcm_trigger() local
751 struct snd_usx2y_substream *subs = dev->subs[i]; snd_usx2y_pcm_hw_params() local
780 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_pcm_hw_free() local
813 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_pcm_prepare() local
867 struct snd_usx2y_substream *subs = ((struct snd_usx2y_substream **) snd_usx2y_pcm_open() local
886 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_pcm_close() local
[all...]
H A Dusx2yhwdeppcm.c50 static int usx2y_usbpcm_urb_capt_retire(struct snd_usx2y_substream *subs) in usx2y_usbpcm_urb_capt_retire() argument
52 struct urb *urb = subs->completed_urb; in usx2y_usbpcm_urb_capt_retire()
53 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usx2y_usbpcm_urb_capt_retire()
54 int i, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_usbpcm_urb_capt_retire()
55 struct usx2ydev *usx2y = subs->usx2y; in usx2y_usbpcm_urb_capt_retire()
72 subs->hwptr_done = hwptr_done; in usx2y_usbpcm_urb_capt_retire()
73 subs->transfer_done += lens; in usx2y_usbpcm_urb_capt_retire()
75 if (subs->transfer_done >= runtime->period_size) { in usx2y_usbpcm_urb_capt_retire()
76 subs->transfer_done -= runtime->period_size; in usx2y_usbpcm_urb_capt_retire()
77 snd_pcm_period_elapsed(subs in usx2y_usbpcm_urb_capt_retire()
98 usx2y_hwdep_urb_play_prepare(struct snd_usx2y_substream *subs, struct urb *urb) usx2y_hwdep_urb_play_prepare() argument
137 usx2y_usbpcm_urb_capt_iso_advance(struct snd_usx2y_substream *subs, struct urb *urb) usx2y_usbpcm_urb_capt_iso_advance() argument
220 struct snd_usx2y_substream *subs = urb->context; i_usx2y_usbpcm_urb_complete() local
263 usx2y_usbpcm_urbs_release(struct snd_usx2y_substream *subs) usx2y_usbpcm_urbs_release() argument
279 struct snd_usx2y_substream *subs = urb->context; i_usx2y_usbpcm_subs_startup() local
300 usx2y_usbpcm_urbs_allocate(struct snd_usx2y_substream *subs) usx2y_usbpcm_urbs_allocate() argument
347 struct snd_usx2y_substream *subs = runtime->private_data, snd_usx2y_usbpcm_hw_free() local
382 usx2y_usbpcm_subs_startup(struct snd_usx2y_substream *subs) usx2y_usbpcm_subs_startup() argument
391 usx2y_usbpcm_urbs_start(struct snd_usx2y_substream *subs) usx2y_usbpcm_urbs_start() argument
403 struct snd_usx2y_substream *subs = usx2y->subs[stream + p]; usx2y_usbpcm_urbs_start() local
412 struct snd_usx2y_substream *subs = usx2y->subs[p]; usx2y_usbpcm_urbs_start() local
421 struct snd_usx2y_substream *subs = usx2y->subs[stream + p]; usx2y_usbpcm_urbs_start() local
472 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_usbpcm_prepare() local
554 struct snd_usx2y_substream *subs = ((struct snd_usx2y_substream **) snd_usx2y_usbpcm_open() local
573 struct snd_usx2y_substream *subs = runtime->private_data; snd_usx2y_usbpcm_close() local
598 struct snd_usx2y_substream *subs = dev->subs[i]; usx2y_pcms_busy_check() local
[all...]
/third_party/alsa-lib/src/seq/
H A Dseqmid.c121 snd_seq_port_subscribe_t subs; in snd_seq_connect_from() local
123 memset(&subs, 0, sizeof(subs)); in snd_seq_connect_from()
124 subs.sender.client = src_client; in snd_seq_connect_from()
125 subs.sender.port = src_port; in snd_seq_connect_from()
126 /*subs.dest.client = seq->client;*/ in snd_seq_connect_from()
127 subs.dest.client = snd_seq_client_id(seq); in snd_seq_connect_from()
128 subs.dest.port = myport; in snd_seq_connect_from()
130 return snd_seq_subscribe_port(seq, &subs); in snd_seq_connect_from()
148 snd_seq_port_subscribe_t subs; in snd_seq_connect_to() local
175 snd_seq_port_subscribe_t subs; snd_seq_disconnect_from() local
202 snd_seq_port_subscribe_t subs; snd_seq_disconnect_to() local
[all...]
/third_party/ffmpeg/libavformat/
H A Dsubtitles.c112 AVPacket **subs, *sub; in ff_subtitles_queue_insert() local
118 sub = q->subs[q->nb_subs - 1]; in ff_subtitles_queue_insert()
126 if (q->nb_subs >= INT_MAX/sizeof(*q->subs) - 1) in ff_subtitles_queue_insert()
128 subs = av_fast_realloc(q->subs, &q->allocated_size, in ff_subtitles_queue_insert()
129 (q->nb_subs + 1) * sizeof(*q->subs)); in ff_subtitles_queue_insert()
130 if (!subs) in ff_subtitles_queue_insert()
132 q->subs = subs; in ff_subtitles_queue_insert()
140 subs[ in ff_subtitles_queue_insert()
[all...]
/third_party/alsa-utils/seq/aconnect/
H A Daconnect.c122 static void list_each_subs(snd_seq_t *seq, snd_seq_query_subscribe_t *subs, int type, const char *msg) in list_each_subs() argument
125 snd_seq_query_subscribe_set_type(subs, type); in list_each_subs()
126 snd_seq_query_subscribe_set_index(subs, 0); in list_each_subs()
127 while (snd_seq_query_port_subscribers(seq, subs) >= 0) { in list_each_subs()
133 addr = snd_seq_query_subscribe_get_addr(subs); in list_each_subs()
135 if (snd_seq_query_subscribe_get_exclusive(subs)) in list_each_subs()
137 if (snd_seq_query_subscribe_get_time_update(subs)) in list_each_subs()
139 (snd_seq_query_subscribe_get_time_real(subs) ? "real" : "tick"), in list_each_subs()
140 snd_seq_query_subscribe_get_queue(subs)); in list_each_subs()
141 snd_seq_query_subscribe_set_index(subs, snd_seq_query_subscribe_get_inde in list_each_subs()
152 snd_seq_query_subscribe_t *subs; list_subscribers() local
258 snd_seq_port_subscribe_t *subs; remove_connection() local
331 snd_seq_port_subscribe_t *subs; main() local
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dmnkytst.cpp86 UnicodeString subs, subt; in TestCollationKey() local
88 source.extract(MIN(s, slen), MAX(s, slen), subs); in TestCollationKey() local
95 myCollator->getCollationKey(subs, collationKey1, status1); in TestCollationKey()
99 report( subs, subt, result, revResult); in TestCollationKey()
102 myCollator->getCollationKey(subs, collationKey1, status1); in TestCollationKey()
106 report( subs, subt, result, revResult); in TestCollationKey()
109 myCollator->getCollationKey(subs, collationKey1, status1); in TestCollationKey()
113 report(subs, subt, result, revResult); in TestCollationKey()
116 UnicodeString addOne(subs); in TestCollationKey()
119 myCollator->getCollationKey(subs, collationKey in TestCollationKey()
161 UnicodeString subs, subt; TestCompare() local
163 source.extract(MIN(s, slen), MAX(s, slen), subs); TestCompare() local
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dstr_replace.h154 // replacements. subs can be implemented as a priority_queue. However, it turns
160 std::vector<ViableSubstitution> subs; in FindSubstitutions() local
161 subs.reserve(replacements.size()); in FindSubstitutions()
175 subs.emplace_back(old, get<1>(rep), pos); in FindSubstitutions()
179 size_t index = subs.size(); in FindSubstitutions()
180 while (--index && subs[index - 1].OccursBefore(subs[index])) { in FindSubstitutions()
181 std::swap(subs[index], subs[index - 1]); in FindSubstitutions()
184 return subs; in FindSubstitutions()
196 auto subs = strings_internal::FindSubstitutions(s, replacements); StrReplaceAll() local
205 auto subs = strings_internal::FindSubstitutions(*target, replacements); StrReplaceAll() local
[all...]
H A Dstr_replace.cc33 auto& subs = *subs_ptr; in ApplySubstitutions() local
36 while (!subs.empty()) { in ApplySubstitutions()
37 auto& sub = subs.back(); in ApplySubstitutions()
47 subs.pop_back(); in ApplySubstitutions()
51 size_t index = subs.size(); in ApplySubstitutions()
52 while (--index && subs[index - 1].OccursBefore(subs[index])) { in ApplySubstitutions()
53 std::swap(subs[index], subs[index - 1]); in ApplySubstitutions()
/kernel/linux/linux-5.10/sound/core/seq/
H A Dseq_ports.c191 struct snd_seq_subscribers *subs,
215 struct snd_seq_subscribers *subs; in clear_subscriber_list() local
219 subs = get_subscriber(p, is_src); in clear_subscriber_list()
221 aport = get_client_port(&subs->info.dest, &c); in clear_subscriber_list()
223 aport = get_client_port(&subs->info.sender, &c); in clear_subscriber_list()
224 delete_and_unsubscribe_port(client, port, subs, is_src, false); in clear_subscriber_list()
231 if (atomic_dec_and_test(&subs->ref_count)) in clear_subscriber_list()
232 kfree(subs); in clear_subscriber_list()
237 delete_and_unsubscribe_port(c, aport, subs, !is_src, true); in clear_subscriber_list()
238 kfree(subs); in clear_subscriber_list()
468 check_and_subscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool exclusive, bool ack) check_and_subscribe_port() argument
518 __delete_and_unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool ack) __delete_and_unsubscribe_port() argument
540 delete_and_unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool ack) delete_and_unsubscribe_port() argument
561 struct snd_seq_subscribers *subs; snd_seq_port_connect() local
606 struct snd_seq_subscribers *subs; snd_seq_port_disconnect() local
635 snd_seq_port_get_subscription(struct snd_seq_port_subs_info *src_grp, struct snd_seq_addr *dest_addr, struct snd_seq_port_subscribe *subs) snd_seq_port_get_subscription() argument
[all...]
/kernel/linux/linux-6.6/sound/core/seq/
H A Dseq_ports.c203 struct snd_seq_subscribers *subs,
227 struct snd_seq_subscribers *subs; in clear_subscriber_list() local
231 subs = get_subscriber(p, is_src); in clear_subscriber_list()
233 aport = get_client_port(&subs->info.dest, &c); in clear_subscriber_list()
235 aport = get_client_port(&subs->info.sender, &c); in clear_subscriber_list()
236 delete_and_unsubscribe_port(client, port, subs, is_src, false); in clear_subscriber_list()
243 if (atomic_dec_and_test(&subs->ref_count)) in clear_subscriber_list()
244 kfree(subs); in clear_subscriber_list()
249 delete_and_unsubscribe_port(c, aport, subs, !is_src, true); in clear_subscriber_list()
250 kfree(subs); in clear_subscriber_list()
498 check_and_subscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool exclusive, bool ack) check_and_subscribe_port() argument
548 __delete_and_unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool ack) __delete_and_unsubscribe_port() argument
570 delete_and_unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool ack) delete_and_unsubscribe_port() argument
591 struct snd_seq_subscribers *subs; snd_seq_port_connect() local
636 struct snd_seq_subscribers *subs; snd_seq_port_disconnect() local
665 snd_seq_port_get_subscription(struct snd_seq_port_subs_info *src_grp, struct snd_seq_addr *dest_addr, struct snd_seq_port_subscribe *subs) snd_seq_port_get_subscription() argument
[all...]
/third_party/node/deps/npm/node_modules/@sigstore/core/dist/asn1/
H A Dobj.js25 constructor(tag, value, subs) {
28 this.subs = subs;
36 if (this.subs.length > 0) {
37 for (const sub of this.subs) {
109 let subs = [];
114 subs = collectSubs(stream, len);
120 subs = collectSubs(stream, len);
127 if (subs.length === 0) {
130 return new ASN1Obj(tag, value, subs);
[all...]
/kernel/linux/linux-5.10/sound/isa/sb/
H A Demu8000_pcm.c216 static int emu8k_pcm_open(struct snd_pcm_substream *subs) in emu8k_pcm_open() argument
218 struct snd_emu8000 *emu = snd_pcm_substream_chip(subs); in emu8k_pcm_open()
220 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open()
227 rec->substream = subs; in emu8k_pcm_open()
244 static int emu8k_pcm_close(struct snd_pcm_substream *subs) in emu8k_pcm_close() argument
246 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_close()
248 subs->runtime->private_data = NULL; in emu8k_pcm_close()
373 static int emu8k_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in emu8k_pcm_trigger() argument
375 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_trigger()
451 static int emu8k_pcm_copy(struct snd_pcm_substream *subs, in emu8k_pcm_copy() argument
464 emu8k_pcm_copy_kernel(struct snd_pcm_substream *subs, int voice, unsigned long pos, void *src, unsigned long count) emu8k_pcm_copy_kernel() argument
478 emu8k_pcm_silence(struct snd_pcm_substream *subs, int voice, unsigned long pos, unsigned long count) emu8k_pcm_silence() argument
519 emu8k_pcm_copy(struct snd_pcm_substream *subs, int voice, unsigned long pos, void __user *src, unsigned long count) emu8k_pcm_copy() argument
532 emu8k_pcm_copy_kernel(struct snd_pcm_substream *subs, int voice, unsigned long pos, void *src, unsigned long count) emu8k_pcm_copy_kernel() argument
545 emu8k_pcm_silence(struct snd_pcm_substream *subs, int voice, unsigned long pos, unsigned long count) emu8k_pcm_silence() argument
562 emu8k_pcm_hw_params(struct snd_pcm_substream *subs, struct snd_pcm_hw_params *hw_params) emu8k_pcm_hw_params() argument
587 emu8k_pcm_hw_free(struct snd_pcm_substream *subs) emu8k_pcm_hw_free() argument
605 emu8k_pcm_prepare(struct snd_pcm_substream *subs) emu8k_pcm_prepare() argument
651 emu8k_pcm_pointer(struct snd_pcm_substream *subs) emu8k_pcm_pointer() argument
[all...]
/third_party/node/deps/openssl/openssl/crypto/
H A Dpacket.c46 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes()
107 if ((pkt->subs = OPENSSL_zalloc(sizeof(*pkt->subs))) == NULL) { in wpacket_intern_init_len()
115 pkt->subs->pwritten = lenbytes; in wpacket_intern_init_len()
116 pkt->subs->lenbytes = lenbytes; in wpacket_intern_init_len()
119 OPENSSL_free(pkt->subs); in wpacket_intern_init_len()
120 pkt->subs = NULL; in wpacket_intern_init_len()
123 pkt->subs->packet_len = 0; in wpacket_intern_init_len()
201 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_flags()
204 pkt->subs in WPACKET_set_flags()
[all...]
/third_party/openssl/crypto/
H A Dpacket.c46 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes()
107 if ((pkt->subs = OPENSSL_zalloc(sizeof(*pkt->subs))) == NULL) { in wpacket_intern_init_len()
115 pkt->subs->pwritten = lenbytes; in wpacket_intern_init_len()
116 pkt->subs->lenbytes = lenbytes; in wpacket_intern_init_len()
119 OPENSSL_free(pkt->subs); in wpacket_intern_init_len()
120 pkt->subs = NULL; in wpacket_intern_init_len()
123 pkt->subs->packet_len = 0; in wpacket_intern_init_len()
201 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_flags()
204 pkt->subs in WPACKET_set_flags()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
H A DvktRayTracingDataSpillTests.cpp621 std::map<std::string, std::string> subs; in initPrograms() local
628 subs["EXTRA_CAPABILITIES"] = ""; in initPrograms()
629 subs["EXTRA_EXTENSIONS"] = ""; in initPrograms()
630 subs["EXTRA_TYPES_AND_CONSTANTS"] = ""; in initPrograms()
631 subs["EXTRA_FUNCTION_VARIABLES"] = ""; in initPrograms()
632 subs["EXTRA_BINDINGS"] = ""; in initPrograms()
633 subs["EXTRA_BINDING_VARIABLES"] = ""; in initPrograms()
634 subs["EXTRA_FUNCTIONS"] = ""; in initPrograms()
642 subs["INPUT_BUFFER_VALUE_TYPE"] = "%int"; in initPrograms()
643 subs["EXTRA_TYPES_AND_CONSTANT in initPrograms()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/
H A DvktRayTracingDataSpillTests.cpp621 std::map<std::string, std::string> subs; in initPrograms() local
628 subs["EXTRA_CAPABILITIES"] = ""; in initPrograms()
629 subs["EXTRA_EXTENSIONS"] = ""; in initPrograms()
630 subs["EXTRA_TYPES_AND_CONSTANTS"] = ""; in initPrograms()
631 subs["EXTRA_FUNCTION_VARIABLES"] = ""; in initPrograms()
632 subs["EXTRA_BINDINGS"] = ""; in initPrograms()
633 subs["EXTRA_BINDING_VARIABLES"] = ""; in initPrograms()
634 subs["EXTRA_FUNCTIONS"] = ""; in initPrograms()
642 subs["INPUT_BUFFER_VALUE_TYPE"] = "%int"; in initPrograms()
643 subs["EXTRA_TYPES_AND_CONSTANT in initPrograms()
[all...]
/kernel/linux/linux-5.10/sound/firewire/tascam/
H A Dtascam-midi.c87 struct snd_rawmidi_substream *subs; in snd_tscm_create_midi_devices() local
107 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices()
109 if (subs->number < tscm->spec->midi_capture_ports) { in snd_tscm_create_midi_devices()
111 snprintf(subs->name, sizeof(subs->name), in snd_tscm_create_midi_devices()
113 tscm->card->shortname, subs->number + 1); in snd_tscm_create_midi_devices()
123 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices()
124 if (subs->number < tscm->spec->midi_playback_ports) { in snd_tscm_create_midi_devices()
126 snprintf(subs->name, sizeof(subs in snd_tscm_create_midi_devices()
[all...]
/kernel/linux/linux-6.6/sound/firewire/tascam/
H A Dtascam-midi.c87 struct snd_rawmidi_substream *subs; in snd_tscm_create_midi_devices() local
107 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices()
109 if (subs->number < tscm->spec->midi_capture_ports) { in snd_tscm_create_midi_devices()
111 scnprintf(subs->name, sizeof(subs->name), in snd_tscm_create_midi_devices()
113 tscm->card->shortname, subs->number + 1); in snd_tscm_create_midi_devices()
123 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices()
124 if (subs->number < tscm->spec->midi_playback_ports) { in snd_tscm_create_midi_devices()
126 scnprintf(subs->name, sizeof(subs in snd_tscm_create_midi_devices()
[all...]
/kernel/linux/linux-6.6/sound/isa/sb/
H A Demu8000_pcm.c216 static int emu8k_pcm_open(struct snd_pcm_substream *subs) in emu8k_pcm_open() argument
218 struct snd_emu8000 *emu = snd_pcm_substream_chip(subs); in emu8k_pcm_open()
220 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open()
227 rec->substream = subs; in emu8k_pcm_open()
244 static int emu8k_pcm_close(struct snd_pcm_substream *subs) in emu8k_pcm_close() argument
246 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_close()
248 subs->runtime->private_data = NULL; in emu8k_pcm_close()
373 static int emu8k_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in emu8k_pcm_trigger() argument
375 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_trigger()
437 static int emu8k_pcm_copy(struct snd_pcm_substream *subs, in emu8k_pcm_copy() argument
451 emu8k_pcm_silence(struct snd_pcm_substream *subs, int voice, unsigned long pos, unsigned long count) emu8k_pcm_silence() argument
491 emu8k_pcm_copy(struct snd_pcm_substream *subs, int voice, unsigned long pos, struct iov_iter *src, unsigned long count) emu8k_pcm_copy() argument
504 emu8k_pcm_silence(struct snd_pcm_substream *subs, int voice, unsigned long pos, unsigned long count) emu8k_pcm_silence() argument
521 emu8k_pcm_hw_params(struct snd_pcm_substream *subs, struct snd_pcm_hw_params *hw_params) emu8k_pcm_hw_params() argument
546 emu8k_pcm_hw_free(struct snd_pcm_substream *subs) emu8k_pcm_hw_free() argument
564 emu8k_pcm_prepare(struct snd_pcm_substream *subs) emu8k_pcm_prepare() argument
611 emu8k_pcm_pointer(struct snd_pcm_substream *subs) emu8k_pcm_pointer() argument
[all...]

Completed in 18 milliseconds

12345678910>>...25