Home
last modified time | relevance | path

Searched refs:frames (Results 1 – 25 of 264) sorted by relevance

1234567891011

/Linux-v4.19/sound/core/oss/
Dpcm_plugin.c49 static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in snd_pcm_plugin_alloc() argument
64 size = frames * format->channels * width; in snd_pcm_plugin_alloc()
68 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc()
71 plugin->buf_frames = frames; in snd_pcm_plugin_alloc()
80 c->frames = frames; in snd_pcm_plugin_alloc()
92 c->frames = frames; in snd_pcm_plugin_alloc()
104 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument
113 frames = plugin->dst_frames(plugin, frames); in snd_pcm_plug_alloc()
114 if (snd_BUG_ON(frames <= 0)) in snd_pcm_plug_alloc()
117 err = snd_pcm_plugin_alloc(plugin, frames); in snd_pcm_plug_alloc()
[all …]
Droute.c28 snd_pcm_uframes_t frames, snd_pcm_format_t format) in zero_areas() argument
33 snd_pcm_area_silence(&dvp->area, 0, frames, format); in zero_areas()
41 snd_pcm_uframes_t frames, snd_pcm_format_t format) in copy_area() argument
44 snd_pcm_area_copy(&src_channel->area, 0, &dst_channel->area, 0, frames, format); in copy_area()
50 snd_pcm_uframes_t frames) in route_transfer() argument
58 if (frames == 0) in route_transfer()
69 copy_area(src_channels, dvp, frames, format); in route_transfer()
72 return frames; in route_transfer()
76 copy_area(src_channels, dvp, frames, format); in route_transfer()
81 zero_areas(dvp, ndsts - dst, frames, format); in route_transfer()
[all …]
Drate.c183 static snd_pcm_sframes_t rate_src_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_src_frames() argument
190 if (frames == 0) in rate_src_frames()
194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
196 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames()
199 snd_pcm_sframes_t frames1 = frames, res1 = data->old_dst_frames; in rate_src_frames()
211 data->old_src_frames = frames; in rate_src_frames()
216 static snd_pcm_sframes_t rate_dst_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_dst_frames() argument
223 if (frames == 0) in rate_dst_frames()
227 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_dst_frames()
229 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
[all …]
Dio.c40 snd_pcm_uframes_t frames) in io_playback_transfer() argument
47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer()
59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer()
66 snd_pcm_uframes_t frames) in io_capture_transfer() argument
73 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer()
85 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer()
91 snd_pcm_uframes_t frames, in io_src_channels() argument
97 err = snd_pcm_plugin_client_channels(plugin, frames, &v); in io_src_channels()
105 return frames; in io_src_channels()
Dmulaw.c144 snd_pcm_uframes_t frames);
171 snd_pcm_uframes_t frames) in mulaw_decode() argument
183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
192 frames1 = frames; in mulaw_decode()
217 snd_pcm_uframes_t frames) in mulaw_encode() argument
229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode()
238 frames1 = frames; in mulaw_encode()
251 snd_pcm_uframes_t frames) in mulaw_transfer() argument
257 if (frames == 0) in mulaw_transfer()
273 data->func(plugin, src_channels, dst_channels, frames); in mulaw_transfer()
[all …]
Dcopy.c30 snd_pcm_uframes_t frames) in copy_transfer() argument
37 if (frames == 0) in copy_transfer()
49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer()
54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
58 return frames; in copy_transfer()
Dlinear.c58 snd_pcm_uframes_t frames) in convert() argument
70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
79 frames1 = frames; in convert()
91 snd_pcm_uframes_t frames) in linear_transfer() argument
95 if (frames == 0) in linear_transfer()
110 convert(plugin, src_channels, dst_channels, frames); in linear_transfer()
111 return frames; in linear_transfer()
Dpcm_plugin.h43 snd_pcm_uframes_t frames; /* allocated frames */ member
65 snd_pcm_uframes_t frames,
70 snd_pcm_uframes_t frames);
93 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames);
145 snd_pcm_uframes_t frames,
165 void **bufs, snd_pcm_uframes_t frames);
167 void **bufs, snd_pcm_uframes_t frames);
/Linux-v4.19/drivers/media/usb/pwc/
Dpwc-ctrl.c154 int frames, int *compression, int send_to_cam) in set_video_mode_Nala() argument
180 if (frames < 4) in set_video_mode_Nala()
181 frames = 4; in set_video_mode_Nala()
182 else if (size > PSZ_QCIF && frames > 15) in set_video_mode_Nala()
183 frames = 15; in set_video_mode_Nala()
184 else if (frames > 25) in set_video_mode_Nala()
185 frames = 25; in set_video_mode_Nala()
186 frames = frames2frames[frames]; in set_video_mode_Nala()
187 fps = frames2table[frames]; in set_video_mode_Nala()
203 pdev->vframes = frames; in set_video_mode_Nala()
[all …]
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dagg-rx.c21 mt76_aggr_release(struct mt76_rx_tid *tid, struct sk_buff_head *frames, int idx) in mt76_aggr_release() argument
33 __skb_queue_tail(frames, skb); in mt76_aggr_release()
37 mt76_rx_aggr_release_frames(struct mt76_rx_tid *tid, struct sk_buff_head *frames, in mt76_rx_aggr_release_frames() argument
44 mt76_aggr_release(tid, frames, idx); in mt76_rx_aggr_release_frames()
49 mt76_rx_aggr_release_head(struct mt76_rx_tid *tid, struct sk_buff_head *frames) in mt76_rx_aggr_release_head() argument
54 mt76_aggr_release(tid, frames, idx); in mt76_rx_aggr_release_head()
60 mt76_rx_aggr_check_release(struct mt76_rx_tid *tid, struct sk_buff_head *frames) in mt76_rx_aggr_check_release() argument
69 mt76_rx_aggr_release_head(tid, frames); in mt76_rx_aggr_check_release()
88 mt76_rx_aggr_release_frames(tid, frames, status->seqno); in mt76_rx_aggr_check_release()
91 mt76_rx_aggr_release_head(tid, frames); in mt76_rx_aggr_check_release()
[all …]
/Linux-v4.19/drivers/xen/
Dmem-reservation.c31 xen_pfn_t *frames) in __xenmem_reservation_va_mapping_update() argument
47 set_phys_to_machine(pfn, frames[i]); in __xenmem_reservation_va_mapping_update()
55 mfn_pte(frames[i], PAGE_KERNEL), in __xenmem_reservation_va_mapping_update()
93 int xenmem_reservation_increase(int count, xen_pfn_t *frames) in xenmem_reservation_increase() argument
102 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_increase()
109 int xenmem_reservation_decrease(int count, xen_pfn_t *frames) in xenmem_reservation_decrease() argument
118 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_decrease()
/Linux-v4.19/include/xen/
Dmem-reservation.h31 xen_pfn_t *frames);
39 xen_pfn_t *frames) in xenmem_reservation_va_mapping_update() argument
43 __xenmem_reservation_va_mapping_update(count, pages, frames); in xenmem_reservation_va_mapping_update()
56 int xenmem_reservation_increase(int count, xen_pfn_t *frames);
58 int xenmem_reservation_decrease(int count, xen_pfn_t *frames);
/Linux-v4.19/net/mac80211/
Dmesh_ps.c412 struct sk_buff_head *frames) in mpsp_qos_null_append() argument
415 struct sk_buff *new_skb, *skb = skb_peek_tail(frames); in mpsp_qos_null_append()
440 __skb_queue_tail(frames, new_skb); in mpsp_qos_null_append()
453 struct sk_buff_head frames; in mps_frame_deliver() local
457 skb_queue_head_init(&frames); in mps_frame_deliver()
472 __skb_queue_tail(&frames, skb); in mps_frame_deliver()
481 if (skb_queue_empty(&frames)) { in mps_frame_deliver()
488 mpsp_qos_null_append(sta, &frames); in mps_frame_deliver()
491 skb_queue_len(&frames), sta->sta.addr); in mps_frame_deliver()
494 skb_queue_walk(&frames, skb) { in mps_frame_deliver()
[all …]
/Linux-v4.19/sound/firewire/
Damdtp-am824.c152 __be32 *buffer, unsigned int frames) in write_pcm_s32() argument
164 for (i = 0; i < frames; ++i) { in write_pcm_s32()
178 __be32 *buffer, unsigned int frames) in read_pcm_s32() argument
190 for (i = 0; i < frames; ++i) { in read_pcm_s32()
202 __be32 *buffer, unsigned int frames) in write_pcm_silence() argument
207 for (i = 0; i < frames; ++i) { in write_pcm_silence()
288 unsigned int frames) in write_midi_messages() argument
294 for (f = 0; f < frames; f++) { in write_midi_messages()
316 __be32 *buffer, unsigned int frames) in read_midi_messages() argument
323 for (f = 0; f < frames; f++) { in read_midi_messages()
/Linux-v4.19/sound/firewire/fireface/
Damdtp-ff.c33 __le32 *buffer, unsigned int frames) in write_pcm_s32() argument
45 for (i = 0; i < frames; ++i) { in write_pcm_s32()
58 __le32 *buffer, unsigned int frames) in read_pcm_s32() argument
70 for (i = 0; i < frames; ++i) { in read_pcm_s32()
82 __le32 *buffer, unsigned int frames) in write_pcm_silence() argument
87 for (i = 0; i < frames; ++i) { in write_pcm_silence()
/Linux-v4.19/drivers/dma/
Dbcm2835-dma.c97 unsigned int frames; member
215 for (i = 0; i < desc->frames; i++) in bcm2835_dma_free_cb_chain()
275 size_t frames = 0; in bcm2835_dma_count_frames_for_sg() local
281 frames += bcm2835_dma_frames_for_length( in bcm2835_dma_count_frames_for_sg()
284 return frames; in bcm2835_dma_count_frames_for_sg()
309 bool cyclic, u32 info, u32 finalextrainfo, size_t frames, in bcm2835_dma_create_cb_chain() argument
320 if (!frames) in bcm2835_dma_create_cb_chain()
324 d = kzalloc(sizeof(*d) + frames * sizeof(struct bcm2835_cb_entry), in bcm2835_dma_create_cb_chain()
337 for (frame = 0, total_len = 0; frame < frames; d->frames++, frame++) { in bcm2835_dma_create_cb_chain()
378 d->cb_list[d->frames - 1].cb->info |= finalextrainfo; in bcm2835_dma_create_cb_chain()
[all …]
/Linux-v4.19/sound/core/
Dpcm_compat.c43 snd_pcm_uframes_t frames; in snd_pcm_ioctl_rewind_compat() local
46 if (get_user(frames, src)) in snd_pcm_ioctl_rewind_compat()
48 err = snd_pcm_rewind(substream, frames); in snd_pcm_ioctl_rewind_compat()
57 snd_pcm_uframes_t frames; in snd_pcm_ioctl_forward_compat() local
60 if (get_user(frames, src)) in snd_pcm_ioctl_forward_compat()
62 err = snd_pcm_forward(substream, frames); in snd_pcm_ioctl_forward_compat()
360 u32 frames; member
367 u32 frames; in snd_pcm_ioctl_xferi_compat() local
378 get_user(frames, &data32->frames)) in snd_pcm_ioctl_xferi_compat()
382 err = snd_pcm_lib_write(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat()
[all …]
Dpcm_lib.c49 snd_pcm_uframes_t off, snd_pcm_uframes_t frames);
63 snd_pcm_uframes_t frames, ofs, transfer; in snd_pcm_playback_silence() local
84 frames = runtime->silence_threshold - noise_dist; in snd_pcm_playback_silence()
85 if (frames > runtime->silence_size) in snd_pcm_playback_silence()
86 frames = runtime->silence_size; in snd_pcm_playback_silence()
98 frames = new_hw_ptr - ofs; in snd_pcm_playback_silence()
99 if ((snd_pcm_sframes_t)frames < 0) in snd_pcm_playback_silence()
100 frames += runtime->boundary; in snd_pcm_playback_silence()
101 runtime->silence_filled -= frames; in snd_pcm_playback_silence()
109 frames = runtime->buffer_size - runtime->silence_filled; in snd_pcm_playback_silence()
[all …]
/Linux-v4.19/net/can/
Dbcm.c113 void *frames; member
252 struct canfd_frame *cf = op->frames + op->cfsiz * op->currframe; in bcm_can_tx()
295 struct canfd_frame *frames, int has_timestamp) in bcm_send_to_user() argument
314 skb_put_data(skb, frames, datalen); in bcm_send_to_user()
487 struct canfd_frame *cf = op->frames + op->cfsiz * index; in bcm_rx_cmp_to_index()
693 if ((get_u64(op->frames, 0) & get_u64(rxframe, 0)) == in bcm_rx_handler()
694 (get_u64(op->frames, 0) & in bcm_rx_handler()
695 get_u64(op->frames + op->cfsiz * i, 0))) { in bcm_rx_handler()
743 if ((op->frames) && (op->frames != &op->sframe)) in bcm_remove_op()
744 kfree(op->frames); in bcm_remove_op()
[all …]
DKconfig28 socket has several filter options e.g. ID masking / error frames.
36 sending of RTR frames, and cyclic CAN messages without permanent user
47 The CAN Gateway/Router is used to route (and modify) CAN frames.
49 msg sending and can optionally modify routed CAN frames on the fly.
50 CAN frames can be routed between CAN network interfaces (one hop).
/Linux-v4.19/sound/usb/misc/
Dua101.c222 unsigned int frames) in copy_playback_data() argument
231 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_playback_data()
232 memcpy(urb->transfer_buffer, source, frames * frame_bytes); in copy_playback_data()
238 runtime->dma_area, (frames - frames1) * frame_bytes); in copy_playback_data()
241 stream->buffer_pos += frames; in copy_playback_data()
244 stream->period_pos += frames; in copy_playback_data()
264 unsigned int frames; in playback_tasklet() local
287 frames = ua->rate_feedback[ua->rate_feedback_start]; in playback_tasklet()
298 frames * ua->playback.frame_bytes; in playback_tasklet()
302 frames); in playback_tasklet()
[all …]
/Linux-v4.19/arch/x86/xen/
Dgrant-table.c54 int arch_gnttab_map_shared(unsigned long *frames, unsigned long nr_gframes, in arch_gnttab_map_shared() argument
69 mfn_pte(frames[i], PAGE_KERNEL)); in arch_gnttab_map_shared()
76 int arch_gnttab_map_status(uint64_t *frames, unsigned long nr_gframes, in arch_gnttab_map_status() argument
91 mfn_pte(frames[i], PAGE_KERNEL)); in arch_gnttab_map_status()
/Linux-v4.19/drivers/net/
Dthunderbolt.c141 struct tbnet_frame frames[TBNET_RING_SIZE]; member
330 struct tbnet_frame *tf = &ring->frames[i]; in tbnet_free_buffers()
477 struct tbnet_frame *tf = &ring->frames[index]; in tbnet_alloc_rx_buffers()
527 tf = &ring->frames[index]; in tbnet_get_tx_buffer()
556 struct tbnet_frame *tf = &ring->frames[i]; in tbnet_alloc_tx_buffers()
906 struct tbnet_frame **frames, u32 frame_count) in tbnet_xmit_csum_and_map() argument
908 struct thunderbolt_ip_frame_header *hdr = page_address(frames[0]->page); in tbnet_xmit_csum_and_map()
922 hdr = page_address(frames[i]->page); in tbnet_xmit_csum_and_map()
925 frames[i]->frame.buffer_phy, in tbnet_xmit_csum_and_map()
926 tbnet_frame_size(frames[i]), DMA_TO_DEVICE); in tbnet_xmit_csum_and_map()
[all …]
/Linux-v4.19/Documentation/networking/
Dcan.rst31 receive raw CAN frames, directly to/from the controller hardware.
32 Queueing of frames and higher-level transport protocols like ISO-TP
45 network layer as a network device, so that CAN frames from the
54 frames on different or the same CAN IDs. Several sockets listening on
55 the same interface for frames with the same CAN ID are all passed the
56 same received matching CAN frames. An application wishing to
60 CAN-IDs, frames, etc.
93 CAN frames between them, (sophisticated) queueing of CAN frames, and
160 some kind of local loopback of the sent CAN frames on the appropriate
164 transmission and reception of media dependent frames. Due to the
[all …]
/Linux-v4.19/include/sound/
Dpcm.h1077 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames);
1087 snd_pcm_uframes_t frames, bool in_kernel);
1091 const void __user *buf, snd_pcm_uframes_t frames) in snd_pcm_lib_write() argument
1093 return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); in snd_pcm_lib_write()
1098 void __user *buf, snd_pcm_uframes_t frames) in snd_pcm_lib_read() argument
1100 return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); in snd_pcm_lib_read()
1105 void __user **bufs, snd_pcm_uframes_t frames) in snd_pcm_lib_writev() argument
1107 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_writev()
1112 void __user **bufs, snd_pcm_uframes_t frames) in snd_pcm_lib_readv() argument
1114 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_readv()
[all …]

1234567891011