/sound/pci/ctxfi/ |
D | ctsrc.c | 24 static int src_default_config_memrd(struct src *src); 25 static int src_default_config_memwr(struct src *src); 26 static int src_default_config_arcrw(struct src *src); 28 static int (*src_default_config[3])(struct src *) = { 34 static int src_set_state(struct src *src, unsigned int state) in src_set_state() argument 38 hw = src->rsc.hw; in src_set_state() 39 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state() 44 static int src_set_bm(struct src *src, unsigned int bm) in src_set_bm() argument 48 hw = src->rsc.hw; in src_set_bm() 49 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm() [all …]
|
D | ctsrc.h | 44 struct src { struct 46 struct src *intlv; /* Pointer to next interleaved SRC in a series */ argument 54 int (*set_state)(struct src *src, unsigned int state); argument 55 int (*set_bm)(struct src *src, unsigned int bm); 56 int (*set_sf)(struct src *src, unsigned int sf); 57 int (*set_pm)(struct src *src, unsigned int pm); 58 int (*set_rom)(struct src *src, unsigned int rom); 59 int (*set_vo)(struct src *src, unsigned int vo); 60 int (*set_st)(struct src *src, unsigned int st); 61 int (*set_bp)(struct src *src, unsigned int bp); [all …]
|
D | ctatc.c | 246 struct src *src; in atc_pcm_playback_prepare() local 260 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in atc_pcm_playback_prepare() 266 src = apcm->src; in atc_pcm_playback_prepare() 267 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare() 268 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare() 269 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare() 271 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare() 296 src = apcm->src; in atc_pcm_playback_prepare() 300 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare() 303 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare() [all …]
|
/sound/core/ |
D | pcm_compat.c | 13 s32 __user *src) in snd_pcm_ioctl_delay_compat() argument 21 if (put_user(delay, src)) in snd_pcm_ioctl_delay_compat() 27 u32 __user *src) in snd_pcm_ioctl_rewind_compat() argument 32 if (get_user(frames, src)) in snd_pcm_ioctl_rewind_compat() 35 if (put_user(err, src)) in snd_pcm_ioctl_rewind_compat() 41 u32 __user *src) in snd_pcm_ioctl_forward_compat() argument 46 if (get_user(frames, src)) in snd_pcm_ioctl_forward_compat() 49 if (put_user(err, src)) in snd_pcm_ioctl_forward_compat() 100 struct snd_pcm_sw_params32 __user *src) in snd_pcm_ioctl_sw_params_compat() argument 107 if (get_user(params.tstamp_mode, &src->tstamp_mode) || in snd_pcm_ioctl_sw_params_compat() [all …]
|
D | rawmidi_compat.c | 20 struct snd_rawmidi_params32 __user *src) in snd_rawmidi_ioctl_params_compat() argument 25 if (get_user(params.stream, &src->stream) || in snd_rawmidi_ioctl_params_compat() 26 get_user(params.buffer_size, &src->buffer_size) || in snd_rawmidi_ioctl_params_compat() 27 get_user(params.avail_min, &src->avail_min) || in snd_rawmidi_ioctl_params_compat() 28 get_user(val, &src->no_active_sensing)) in snd_rawmidi_ioctl_params_compat() 53 struct snd_rawmidi_status32 __user *src) in snd_rawmidi_ioctl_status_compat() argument 58 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_compat() 78 if (compat_put_timespec(&status.tstamp, &src->tstamp) || in snd_rawmidi_ioctl_status_compat() 79 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_compat() 80 put_user(status.xruns, &src->xruns)) in snd_rawmidi_ioctl_status_compat() [all …]
|
D | memory.c | 23 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count) in copy_to_user_fromio() argument 26 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; in copy_to_user_fromio() 33 memcpy_fromio(buf, (void __iomem *)src, c); in copy_to_user_fromio() 38 src += c; in copy_to_user_fromio() 55 int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count) in copy_from_user_toio() argument 58 return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0; in copy_from_user_toio() 65 if (copy_from_user(buf, src, c)) in copy_from_user_toio() 70 src += c; in copy_from_user_toio()
|
D | hwdep_compat.c | 20 struct snd_hwdep_dsp_image32 __user *src) in snd_hwdep_dsp_load_compat() argument 29 if (copy_in_user(dst, src, 4 + 64)) in snd_hwdep_dsp_load_compat() 31 if (get_user(ptr, &src->image) || in snd_hwdep_dsp_load_compat() 34 if (get_user(val, &src->length) || in snd_hwdep_dsp_load_compat() 37 if (get_user(val, &src->driver_data) || in snd_hwdep_dsp_load_compat()
|
D | info.c | 643 const char *snd_info_get_str(char *dest, const char *src, int len) in snd_info_get_str() argument 647 while (*src == ' ' || *src == '\t') in snd_info_get_str() 648 src++; in snd_info_get_str() 649 if (*src == '"' || *src == '\'') { in snd_info_get_str() 650 c = *src++; in snd_info_get_str() 651 while (--len > 0 && *src && *src != c) { in snd_info_get_str() 652 *dest++ = *src++; in snd_info_get_str() 654 if (*src == c) in snd_info_get_str() 655 src++; in snd_info_get_str() 657 while (--len > 0 && *src && *src != ' ' && *src != '\t') { in snd_info_get_str() [all …]
|
/sound/soc/sh/rcar/ |
D | src.c | 33 #define rsnd_src_get(priv, id) ((struct rsnd_src *)(priv->src) + id) 43 ((pos) = (struct rsnd_src *)(priv)->src + i); \ 84 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_convert_rate() local 93 convert_rate = src->sync.val; in rsnd_src_convert_rate() 352 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_irq() local 354 int irq = src->irq; in rsnd_src_irq() 456 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_init() local 459 src->sync.val = 0; in rsnd_src_init() 476 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_quit() local 483 src->sync.val = 0; in rsnd_src_quit() [all …]
|
D | cmd.c | 46 struct rsnd_mod *src; in rsnd_cmd_init() local 58 src = rsnd_io_to_mod_src(tio); in rsnd_cmd_init() 60 data |= path[rsnd_mod_id(src)]; in rsnd_cmd_init() 63 src = rsnd_io_to_mod_src(tio); in rsnd_cmd_init() 65 data |= path[rsnd_mod_id(src)]; in rsnd_cmd_init() 69 struct rsnd_mod *src = rsnd_io_to_mod_src(io); in rsnd_cmd_init() local 82 if (unlikely(!src)) in rsnd_cmd_init() 85 data = path[rsnd_mod_id(src)] | in rsnd_cmd_init() 86 cmd_case[rsnd_mod_id(src)] << 16; in rsnd_cmd_init()
|
/sound/firewire/motu/ |
D | amdtp-motu-trace.h | 25 __field(int, src) 32 __entry->src = fw_parent_device(s->unit)->node_id; 35 __entry->src = fw_parent_device(s->unit)->card->node_id; 43 __entry->src, 54 __field(int, src) 61 __entry->src = fw_parent_device(s->unit)->node_id; 64 __entry->src = fw_parent_device(s->unit)->card->node_id; 72 __entry->src,
|
D | motu-protocol-v3.c | 89 enum snd_motu_clock_source *src) in v3_get_clock_source() argument 104 *src = SND_MOTU_CLOCK_SOURCE_INTERNAL; in v3_get_clock_source() 106 *src = SND_MOTU_CLOCK_SOURCE_WORD_ON_BNC; in v3_get_clock_source() 108 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_COAX; in v3_get_clock_source() 118 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_OPT_A; in v3_get_clock_source() 120 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT_A; in v3_get_clock_source() 123 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_OPT_B; in v3_get_clock_source() 125 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT_B; in v3_get_clock_source() 128 *src = SND_MOTU_CLOCK_SOURCE_UNKNOWN; in v3_get_clock_source()
|
D | motu-protocol-v2.c | 83 enum snd_motu_clock_source *src) in v2_get_clock_source() argument 106 *src = SND_MOTU_CLOCK_SOURCE_INTERNAL; in v2_get_clock_source() 110 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_OPT; in v2_get_clock_source() 112 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT; in v2_get_clock_source() 115 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_COAX; in v2_get_clock_source() 118 *src = SND_MOTU_CLOCK_SOURCE_WORD_ON_BNC; in v2_get_clock_source() 121 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_DSUB; in v2_get_clock_source()
|
/sound/soc/sof/ |
D | utils.c | 64 void __iomem *src = sdev->bar[sdev->mailbox_bar] + offset; in sof_mailbox_read() local 66 memcpy_fromio(message, src, bytes); in sof_mailbox_read() 74 void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src, in sof_block_write() argument 78 const u8 *src_byte = src; in sof_block_write() 87 __iowrite32_copy(dest, src, m); in sof_block_write() 108 void __iomem *src = sdev->bar[bar] + offset; in sof_block_read() local 110 memcpy_fromio(dest, src, size); in sof_block_read()
|
/sound/pci/au88x0/ |
D | au88x0_core.c | 443 static void vortex_src_flushbuffers(vortex_t * vortex, unsigned char src) in vortex_src_flushbuffers() argument 449 VORTEX_SRC_DATA0 + (src << 7) + (i << 2), 0); in vortex_src_flushbuffers() 450 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3), 0); in vortex_src_flushbuffers() 451 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3) + 4, 0); in vortex_src_flushbuffers() 454 static void vortex_src_cleardrift(vortex_t * vortex, unsigned char src) in vortex_src_cleardrift() argument 456 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT0 + (src << 2), 0); in vortex_src_cleardrift() 457 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT1 + (src << 2), 0); in vortex_src_cleardrift() 458 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT2 + (src << 2), 1); in vortex_src_cleardrift() 462 vortex_src_set_throttlesource(vortex_t * vortex, unsigned char src, int en) in vortex_src_set_throttlesource() argument 468 temp |= 1 << src; in vortex_src_set_throttlesource() [all …]
|
/sound/firewire/fireface/ |
D | ff-protocol-latter.c | 19 enum snd_ff_clock_src *src) in parse_clock_bits() argument 36 enum snd_ff_clock_src src; in parse_clock_bits() member 59 *src = clk_entry->src; in parse_clock_bits() 70 enum snd_ff_clock_src *src) in latter_get_clock() argument 82 return parse_clock_bits(data, rate, src); in latter_get_clock() 134 enum snd_ff_clock_src src; in latter_allocate_resources() local 136 err = latter_get_clock(ff, &curr_rate, &src); in latter_allocate_resources() 240 enum snd_ff_clock_src src; in latter_dump_status() local 266 err = parse_clock_bits(data, &rate, &src); in latter_dump_status() 269 label = snd_ff_proc_get_clk_label(src); in latter_dump_status()
|
D | ff-protocol-former.c | 18 enum snd_ff_clock_src *src) in parse_clock_bits() argument 35 enum snd_ff_clock_src src; in parse_clock_bits() member 57 *src = SND_FF_CLOCK_SRC_INTERNAL; in parse_clock_bits() 62 *src = clk_entry->src; in parse_clock_bits() 74 enum snd_ff_clock_src *src) in former_get_clock() argument 86 return parse_clock_bits(data, rate, src); in former_get_clock() 128 enum snd_ff_clock_src src; in dump_clock_config() local 151 err = parse_clock_bits(data, &rate, &src); in dump_clock_config() 154 label = snd_ff_proc_get_clk_label(src); in dump_clock_config()
|
D | ff-proc.c | 10 const char *snd_ff_proc_get_clk_label(enum snd_ff_clock_src src) in snd_ff_proc_get_clk_label() argument 21 if (src >= ARRAY_SIZE(labels)) in snd_ff_proc_get_clk_label() 24 return labels[src]; in snd_ff_proc_get_clk_label()
|
D | amdtp-ff.c | 39 const u32 *src; in write_pcm_s32() local 45 src = (void *)runtime->dma_area + in write_pcm_s32() 51 buffer[c] = cpu_to_le32(*src); in write_pcm_s32() 52 src++; in write_pcm_s32() 56 src = (void *)runtime->dma_area; in write_pcm_s32()
|
/sound/core/oss/ |
D | mulaw.c | 177 char *src; in mulaw_decode() local 188 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_decode() 194 signed short sample = ulaw2linear(*src); in mulaw_decode() 196 src += src_step; in mulaw_decode() 203 unsigned char *src) in cvt_native_to_s16() argument 206 memcpy((char *)&sample + data->copy_ofs, src + data->native_ofs, in cvt_native_to_s16() 223 char *src; in mulaw_encode() local 234 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_encode() 240 signed short sample = cvt_native_to_s16(data, src); in mulaw_encode() 242 src += src_step; in mulaw_encode()
|
D | linear.c | 43 unsigned char *dst, unsigned char *src) in do_convert() argument 48 memcpy(p + data->copy_ofs, src + data->src_ofs, data->copy_bytes); in do_convert() 64 char *src; in convert() local 75 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in convert() 81 do_convert(data, dst, src); in convert() 82 src += src_step; in convert()
|
D | rate.c | 72 signed short *src, *dst; in resample_expand() local 90 src = (signed short *)src_channels[channel].area.addr + in resample_expand() 103 S2 = *src; in resample_expand() 104 src += src_step; in resample_expand() 131 signed short *src, *dst; in resample_shrink() local 149 src = (signed short *)src_channels[channel].area.addr + in resample_shrink() 160 S2 = *src; in resample_shrink() 161 src += src_step; in resample_shrink()
|
/sound/soc/intel/atom/sst/ |
D | sst_loader.c | 34 void memcpy32_toio(void __iomem *dst, const void *src, int count) in memcpy32_toio() argument 39 __iowrite32_copy(dst, src, count / 4); in memcpy32_toio() 42 void memcpy32_fromio(void *dst, const void __iomem *src, int count) in memcpy32_fromio() argument 47 __ioread32_copy(dst, src, count / 4); in memcpy32_fromio() 147 void *destn, const void *src, u32 size, bool is_io) in sst_fill_memcpy_list() argument 155 listnode->src = src; in sst_fill_memcpy_list() 266 listnode->src, listnode->size); in sst_do_memcpy() 268 memcpy(listnode->dstn, listnode->src, listnode->size); in sst_do_memcpy()
|
/sound/core/seq/ |
D | seq_memory.c | 115 static int seq_copy_in_kernel(char **bufptr, const void *src, int size) in seq_copy_in_kernel() argument 117 memcpy(*bufptr, src, size); in seq_copy_in_kernel() 122 static int seq_copy_in_user(char __user **bufptr, const void *src, int size) in seq_copy_in_user() argument 124 if (copy_to_user(*bufptr, src, size)) in seq_copy_in_user() 310 struct snd_seq_event_cell *src, *tmp, *tail; in snd_seq_event_dup() local 316 src = (struct snd_seq_event_cell *)event->data.ext.ptr; in snd_seq_event_dup() 334 if (is_chained && src) { in snd_seq_event_dup() 335 tmp->event = src->event; in snd_seq_event_dup() 336 src = src->next; in snd_seq_event_dup()
|
/sound/firewire/ |
D | amdtp-stream-trace.h | 23 __field(int, src) 38 __entry->src = fw_parent_device(s->unit)->node_id; 41 __entry->src = fw_parent_device(s->unit)->card->node_id; 59 __entry->src,
|