Home
last modified time | relevance | path

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

12345678910>>...13

/linux/sound/core/oss/
H A Dpcm_plugin.c34 static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in snd_pcm_plugin_alloc() argument
50 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
57 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc()
60 plugin->buf_frames = frames; in snd_pcm_plugin_alloc()
69 c->frames = frames; in snd_pcm_plugin_alloc()
81 c->frames = frames; in snd_pcm_plugin_alloc()
93 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument
102 frames = plugin->dst_frames(plugin, frames); in snd_pcm_plug_alloc()
103 if ((snd_pcm_sframes_t)frames <= 0) in snd_pcm_plug_alloc()
106 err = snd_pcm_plugin_alloc(plugin, frames); in snd_pcm_plug_alloc()
[all …]
H A Droute.c13 snd_pcm_uframes_t frames, snd_pcm_format_t format) in zero_areas() argument
18 snd_pcm_area_silence(&dvp->area, 0, frames, format); in zero_areas()
26 snd_pcm_uframes_t frames, snd_pcm_format_t format) in copy_area() argument
29 snd_pcm_area_copy(&src_channel->area, 0, &dst_channel->area, 0, frames, format); in copy_area()
35 snd_pcm_uframes_t frames) in route_transfer() argument
43 if (frames == 0) in route_transfer()
45 if (frames > dst_channels[0].frames) in route_transfer()
46 frames = dst_channels[0].frames; in route_transfer()
56 copy_area(src_channels, dvp, frames, format); in route_transfer()
59 return frames; in route_transfer()
[all …]
H A Drate.c168 static snd_pcm_sframes_t rate_src_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_src_frames() argument
175 if (frames == 0) in rate_src_frames()
179 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
181 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_src_frames()
184 snd_pcm_sframes_t frames1 = frames, res1 = data->old_dst_frames; in rate_src_frames()
196 data->old_src_frames = frames; in rate_src_frames()
201 static snd_pcm_sframes_t rate_dst_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_dst_frames() argument
208 if (frames == 0) in rate_dst_frames()
212 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_dst_frames()
214 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
[all …]
H A Dmulaw.c130 snd_pcm_uframes_t frames);
157 snd_pcm_uframes_t frames) in mulaw_decode() argument
169 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
178 frames1 = frames; in mulaw_decode()
203 snd_pcm_uframes_t frames) in mulaw_encode() argument
215 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode()
224 frames1 = frames; in mulaw_encode()
237 snd_pcm_uframes_t frames) in mulaw_transfer() argument
243 if (frames == 0) in mulaw_transfer()
258 if (frames > dst_channels[0].frames) in mulaw_transfer()
[all …]
H A Dlinear.c43 snd_pcm_uframes_t frames) in convert() argument
55 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
64 frames1 = frames; in convert()
76 snd_pcm_uframes_t frames) in linear_transfer() argument
80 if (frames == 0) in linear_transfer()
95 if (frames > dst_channels[0].frames) in linear_transfer()
96 frames = dst_channels[0].frames; in linear_transfer()
97 convert(plugin, src_channels, dst_channels, frames); in linear_transfer()
98 return frames; in linear_transfer()
H A Dio.c25 snd_pcm_uframes_t frames) in io_playback_transfer() argument
32 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer()
44 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer()
51 snd_pcm_uframes_t frames) in io_capture_transfer() argument
58 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer()
70 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer()
76 snd_pcm_uframes_t frames, in io_src_channels() argument
82 err = snd_pcm_plugin_client_channels(plugin, frames, &v); in io_src_channels()
90 return frames; in io_src_channels()
H A Dcopy.c15 snd_pcm_uframes_t frames) in copy_transfer() argument
22 if (frames == 0) in copy_transfer()
34 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer()
39 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
43 return frames; in copy_transfer()
H A Dpcm_plugin.h28 snd_pcm_uframes_t frames; /* allocated frames */ member
50 snd_pcm_uframes_t frames,
55 snd_pcm_uframes_t frames);
77 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames);
129 snd_pcm_uframes_t frames,
155 void **bufs, snd_pcm_uframes_t frames);
157 void **bufs, snd_pcm_uframes_t frames);
/linux/drivers/media/usb/pwc/
H A Dpwc-ctrl.c142 int frames, int *compression, int send_to_cam) in set_video_mode_Nala() argument
168 if (frames < 4) in set_video_mode_Nala()
169 frames = 4; in set_video_mode_Nala()
170 else if (size > PSZ_QCIF && frames > 15) in set_video_mode_Nala()
171 frames = 15; in set_video_mode_Nala()
172 else if (frames > 25) in set_video_mode_Nala()
173 frames = 25; in set_video_mode_Nala()
174 frames = frames2frames[frames]; in set_video_mode_Nala()
175 fps = frames2table[frames]; in set_video_mode_Nala()
191 pdev->vframes = frames; in set_video_mode_Nala()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
H A Dagg-rx.c16 mt76_aggr_release(struct mt76_rx_tid *tid, struct sk_buff_head *frames, int idx) in mt76_aggr_release() argument
28 __skb_queue_tail(frames, skb); in mt76_aggr_release()
33 struct sk_buff_head *frames, in mt76_rx_aggr_release_frames() argument
40 mt76_aggr_release(tid, frames, idx); in mt76_rx_aggr_release_frames()
45 mt76_rx_aggr_release_head(struct mt76_rx_tid *tid, struct sk_buff_head *frames) in mt76_rx_aggr_release_head() argument
50 mt76_aggr_release(tid, frames, idx); in mt76_rx_aggr_release_head()
56 mt76_rx_aggr_check_release(struct mt76_rx_tid *tid, struct sk_buff_head *frames) in mt76_rx_aggr_check_release() argument
65 mt76_rx_aggr_release_head(tid, frames); in mt76_rx_aggr_check_release()
84 mt76_rx_aggr_release_frames(tid, frames, status->seqno); in mt76_rx_aggr_check_release()
87 mt76_rx_aggr_release_head(tid, frames); in mt76_rx_aggr_check_release()
[all …]
/linux/Documentation/networking/device_drivers/can/freescale/
H A Dflexcan.rst10 On/off RTR frames reception
19 and i.MX53 SOCs) only receive RTR frames if the controller is
22 The RX FIFO mode uses a hardware FIFO with a depth of 6 CAN frames,
24 CAN frames. With the help of the bigger buffer, the mailbox mode
27 As reception of RTR frames is part of the CAN standard, all flexcan
30 With the "rx-rtr" private flag the ability to receive RTR frames can
35 Receive RTR frames. (default)
37 The CAN controller can and will receive RTR frames.
39 On some IP cores the controller cannot receive RTR frames in the
45 Waive ability to receive RTR frames. (not supported on all IP cores)
[all …]
/linux/net/dsa/
H A DKconfig25 frames over the CPU port.
30 Say Y or M if you want to enable support for tagging frames for
41 Say Y if you want to enable support for tagging frames for the
48 Say Y if you want to enable support for tagging frames for the
58 Say Y if you want to enable support for tagging frames for the
68 Say Y if you want to enable support for tagging frames for the
75 Say Y or M if you want to enable support for tagging frames
81 Say Y or M if you want to enable support for tagging frames for the
91 Say Y or M if you want to enable support for tagging frames for the
98 Say Y or M if you want to enable support for tagging frames fo
[all...]
/linux/drivers/xen/
H A Dmem-reservation.c31 xen_pfn_t *frames) in __xenmem_reservation_va_mapping_update() argument
48 set_phys_to_machine(pfn, frames[i]); in __xenmem_reservation_va_mapping_update()
52 mfn_pte(frames[i], PAGE_KERNEL), 0); in __xenmem_reservation_va_mapping_update()
86 int xenmem_reservation_increase(int count, xen_pfn_t *frames) in xenmem_reservation_increase() argument
95 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_increase()
102 int xenmem_reservation_decrease(int count, xen_pfn_t *frames) in xenmem_reservation_decrease() argument
111 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_decrease()
/linux/include/xen/
H A 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/sound/core/
H A Dpcm_compat.c29 snd_pcm_uframes_t frames; in snd_pcm_ioctl_rewind_compat() local
32 if (get_user(frames, src)) in snd_pcm_ioctl_rewind_compat()
34 err = snd_pcm_rewind(substream, frames); in snd_pcm_ioctl_rewind_compat()
43 snd_pcm_uframes_t frames; in snd_pcm_ioctl_forward_compat() local
46 if (get_user(frames, src)) in snd_pcm_ioctl_forward_compat()
48 err = snd_pcm_forward(substream, frames); in snd_pcm_ioctl_forward_compat()
282 u32 frames; member
289 u32 frames; in snd_pcm_ioctl_xferi_compat() local
300 get_user(frames, &data32->frames)) in snd_pcm_ioctl_xferi_compat()
304 err = snd_pcm_lib_write(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat()
[all …]
/linux/drivers/spi/
H A Dspi-microchip-core-qspi.c399 int total_bytes, cmd_bytes, frames, ctrl; in mchp_coreqspi_config_op() local
433 frames = total_bytes & BYTESUPPER_MASK; in mchp_coreqspi_config_op()
434 writel_relaxed(frames, qspi->regs + REG_FRAMESUP); in mchp_coreqspi_config_op()
435 frames = total_bytes & BYTESLOWER_MASK; in mchp_coreqspi_config_op()
436 frames |= cmd_bytes << FRAMES_CMDBYTES_SHIFT; in mchp_coreqspi_config_op()
441 frames |= idle_cycles << FRAMES_IDLE_SHIFT; in mchp_coreqspi_config_op()
445 frames |= (1 << FRAMES_SHIFT); in mchp_coreqspi_config_op()
447 frames |= FRAMES_FLAGWORD; in mchp_coreqspi_config_op()
448 writel_relaxed(frames, qspi->regs + REG_FRAMES); in mchp_coreqspi_config_op()
598 u32 control, frames; in mchp_coreqspi_prepare_message() local
[all …]
/linux/sound/firewire/
H A Damdtp-am824.c149 __be32 *buffer, unsigned int frames, in write_pcm_s32() argument
167 for (i = 0; i < frames; ++i) { in write_pcm_s32()
180 __be32 *buffer, unsigned int frames, in read_pcm_s32() argument
198 for (i = 0; i < frames; ++i) { in read_pcm_s32()
210 __be32 *buffer, unsigned int frames) in write_pcm_silence() argument
215 for (i = 0; i < frames; ++i) { in write_pcm_silence()
296 unsigned int frames, unsigned int data_block_counter) in write_midi_messages() argument
302 for (f = 0; f < frames; f++) { in write_midi_messages()
324 unsigned int frames, unsigned int data_block_counter) in read_midi_messages() argument
331 for (f = 0; f < frames; f++) { in read_midi_messages()
/linux/sound/firewire/fireface/
H A Damdtp-ff.c31 __le32 *buffer, unsigned int frames, in write_pcm_s32() argument
49 for (i = 0; i < frames; ++i) { in write_pcm_s32()
61 __le32 *buffer, unsigned int frames, in read_pcm_s32() argument
79 for (i = 0; i < frames; ++i) { in read_pcm_s32()
91 __le32 *buffer, unsigned int frames) in write_pcm_silence() argument
96 for (i = 0; i < frames; ++i) { in write_pcm_silence()
/linux/drivers/dma/
H A Dbcm2835-dma.c90 unsigned int frames; member
208 for (i = 0; i < desc->frames; i++) in bcm2835_dma_free_cb_chain()
285 bool cyclic, u32 info, u32 finalextrainfo, size_t frames, in bcm2835_dma_create_cb_chain() argument
296 if (!frames) in bcm2835_dma_create_cb_chain()
300 d = kzalloc_flex(*d, cb_list, frames, gfp); in bcm2835_dma_create_cb_chain()
312 for (frame = 0, total_len = 0; frame < frames; d->frames++, frame++) { in bcm2835_dma_create_cb_chain()
353 d->cb_list[d->frames - 1].cb->info |= finalextrainfo; in bcm2835_dma_create_cb_chain()
526 for (size = i = 0; i < d->frames; i++) { in bcm2835_dma_desc_size_pos()
604 size_t frames; in bcm2835_dma_prep_dma_memcpy() local
611 frames = bcm2835_dma_frames_for_length(len, max_len); in bcm2835_dma_prep_dma_memcpy()
[all …]
/linux/sound/usb/misc/
H A Dua101.c209 unsigned int frames) in copy_playback_data() argument
218 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_playback_data()
219 memcpy(urb->transfer_buffer, source, frames * frame_bytes); in copy_playback_data()
225 runtime->dma_area, (frames - frames1) * frame_bytes); in copy_playback_data()
228 stream->buffer_pos += frames; in copy_playback_data()
231 stream->period_pos += frames; in copy_playback_data()
250 unsigned int frames; in playback_work() local
273 frames = ua->rate_feedback[ua->rate_feedback_start]; in playback_work()
284 frames * ua->playback.frame_bytes; in playback_work()
288 frames); in playback_work()
[all …]
/linux/net/can/
H A Dbcm.c121 void *frames;
306 cf = op->frames + op->cfsiz * op->currframe; in bcm_can_tx()
356 * (consisting of bcm_msg_head + x CAN frames) in bcm_send_to_user()
359 struct canfd_frame *frames, int has_timestamp) in bcm_send_to_user()
385 /* CAN frames starting here */ in bcm_send_to_user()
388 skb_put_data(skb, frames, datalen); in bcm_send_to_user()
571 struct canfd_frame *cf = op->frames + op->cfsiz * index; in bcm_rx_cmp_to_index()
624 /* clear received CAN frames to indicate 'nothing received' */ in bcm_rx_timeout_handler()
730 /* send reply for RTR-request (placed in op->frames[0]) */ in bcm_rx_handler()
766 if ((get_u64(op->frames, in bcm_rx_handler()
120 void *frames; global() member
353 bcm_send_to_user(struct bcm_op * op,struct bcm_msg_head * head,struct canfd_frame * frames,int has_timestamp) bcm_send_to_user() argument
[all...]
H A DKconfig31 socket has several filter options e.g. ID masking / error frames.
39 sending of RTR frames, and cyclic CAN messages without permanent user
50 The CAN Gateway/Router is used to route (and modify) CAN frames.
52 msg sending and can optionally modify routed CAN frames on the fly.
53 CAN frames can be routed between CAN network interfaces (one hop).
67 As CAN frames can only transport a small amount of data bytes
/linux/Documentation/networking/
H A 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 …]
H A Diso15765-2.rst62 sender starts to send frames containing fragments of the data payload (called
159 * ``CAN_ISOTP_LISTEN_MODE``: listen only (do not send FC frames); normally
167 * ``CAN_ISOTP_TX_PADDING``: enable padding for transmitted frames, using
170 * ``CAN_ISOTP_RX_PADDING``: enable padding for the received frames, using
174 frames.
176 * ``CAN_ISOTP_CHK_PAD_DATA``: check padding bytes on the received frames
216 * ``txpad_content``: byte used as padding value for transmitted frames.
218 * ``rxpad_content``: byte used as padding value for received frames.
244 * ``bs``: blocksize provided in flow control frames.
246 * ``stmin``: minimum separation time provided in flow control frames; can
[all …]
/linux/arch/x86/xen/
H A Dgrant-table.c31 int arch_gnttab_map_shared(unsigned long *frames, unsigned long nr_gframes, in arch_gnttab_map_shared() argument
46 mfn_pte(frames[i], PAGE_KERNEL)); in arch_gnttab_map_shared()
53 int arch_gnttab_map_status(uint64_t *frames, unsigned long nr_gframes, in arch_gnttab_map_status() argument
68 mfn_pte(frames[i], PAGE_KERNEL)); in arch_gnttab_map_status()

12345678910>>...13