/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 | 248 struct src *src; in atc_pcm_playback_prepare() local 262 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in atc_pcm_playback_prepare() 268 src = apcm->src; in atc_pcm_playback_prepare() 269 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare() 270 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare() 271 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare() 273 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare() 298 src = apcm->src; in atc_pcm_playback_prepare() 302 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare() 305 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() 87 struct snd_pcm_sw_params32 __user *src) in snd_pcm_ioctl_sw_params_compat() argument 94 if (get_user(params.tstamp_mode, &src->tstamp_mode) || in snd_pcm_ioctl_sw_params_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 | rawmidi_compat.c | 21 struct snd_rawmidi_params32 __user *src) in snd_rawmidi_ioctl_params_compat() argument 26 if (get_user(params.stream, &src->stream) || in snd_rawmidi_ioctl_params_compat() 27 get_user(params.buffer_size, &src->buffer_size) || in snd_rawmidi_ioctl_params_compat() 28 get_user(params.avail_min, &src->avail_min) || in snd_rawmidi_ioctl_params_compat() 29 get_user(params.mode, &src->mode) || in snd_rawmidi_ioctl_params_compat() 30 get_user(val, &src->no_active_sensing)) in snd_rawmidi_ioctl_params_compat() 57 struct compat_snd_rawmidi_status64 __user *src) in snd_rawmidi_ioctl_status_compat64() argument 63 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_compat64() 91 if (copy_to_user(src, &compat_status, sizeof(*src))) in snd_rawmidi_ioctl_status_compat64()
|
D | hwdep_compat.c | 20 struct snd_hwdep_dsp_image32 __user *src) in snd_hwdep_dsp_load_compat() argument 25 if (copy_from_user(&info, src, 4 + 64) || in snd_hwdep_dsp_load_compat() 26 get_user(ptr, &src->image) || in snd_hwdep_dsp_load_compat() 27 get_user(info.length, &src->length) || in snd_hwdep_dsp_load_compat() 28 get_user(info.driver_data, &src->driver_data)) in snd_hwdep_dsp_load_compat()
|
D | info.c | 647 const char *snd_info_get_str(char *dest, const char *src, int len) in snd_info_get_str() argument 651 while (*src == ' ' || *src == '\t') in snd_info_get_str() 652 src++; in snd_info_get_str() 653 if (*src == '"' || *src == '\'') { in snd_info_get_str() 654 c = *src++; in snd_info_get_str() 655 while (--len > 0 && *src && *src != c) { in snd_info_get_str() 656 *dest++ = *src++; in snd_info_get_str() 658 if (*src == c) in snd_info_get_str() 659 src++; in snd_info_get_str() 661 while (--len > 0 && *src && *src != ' ' && *src != '\t') { in snd_info_get_str() [all …]
|
/sound/soc/sh/rcar/ |
D | src.c | 42 #define rsnd_src_get(priv, id) ((struct rsnd_src *)(priv->src) + id) 52 ((pos) = (struct rsnd_src *)(priv)->src + i); \ 93 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_convert_rate() local 102 convert_rate = src->sync.val; in rsnd_src_convert_rate() 361 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_irq() local 363 int irq = src->irq; in rsnd_src_irq() 465 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_init() local 469 src->sync.val = 0; in rsnd_src_init() 488 struct rsnd_src *src = rsnd_mod_to_src(mod); in rsnd_src_quit() local 495 src->sync.val = 0; in rsnd_src_quit() [all …]
|
D | cmd.c | 56 struct rsnd_mod *src = rsnd_io_to_mod_src(tio); in rsnd_cmd_init() local 59 data |= path[rsnd_mod_id(src)]; in rsnd_cmd_init() 62 src = rsnd_io_to_mod_src(tio); in rsnd_cmd_init() 64 data |= path[rsnd_mod_id(src)]; in rsnd_cmd_init() 68 struct rsnd_mod *src = rsnd_io_to_mod_src(io); in rsnd_cmd_init() local 81 if (unlikely(!src)) in rsnd_cmd_init() 84 data = path[rsnd_mod_id(src)] | in rsnd_cmd_init() 85 cmd_case[rsnd_mod_id(src)] << 16; in rsnd_cmd_init()
|
/sound/firewire/motu/ |
D | motu-protocol-v2.c | 89 enum snd_motu_clock_source *src) in get_clock_source() argument 93 *src = SND_MOTU_CLOCK_SOURCE_INTERNAL; in get_clock_source() 96 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT; in get_clock_source() 104 *src = SND_MOTU_CLOCK_SOURCE_AESEBU_ON_XLR; in get_clock_source() 106 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_COAX; in get_clock_source() 118 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_OPT; in get_clock_source() 120 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_COAX; in get_clock_source() 125 *src = SND_MOTU_CLOCK_SOURCE_SPH; in get_clock_source() 128 *src = SND_MOTU_CLOCK_SOURCE_WORD_ON_BNC; in get_clock_source() 131 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_DSUB; in get_clock_source() [all …]
|
D | motu-protocol-v1.c | 254 static int get_clock_source_828(struct snd_motu *motu, enum snd_motu_clock_source *src) in get_clock_source_828() argument 267 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT; in get_clock_source_828() 270 *src = SND_MOTU_CLOCK_SOURCE_SPH; in get_clock_source_828() 275 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_COAX; in get_clock_source_828() 277 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_OPT; in get_clock_source_828() 281 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_DSUB; in get_clock_source_828() 284 *src = SND_MOTU_CLOCK_SOURCE_INTERNAL; in get_clock_source_828() 293 static int get_clock_source_896(struct snd_motu *motu, enum snd_motu_clock_source *src) in get_clock_source_896() argument 306 *src = SND_MOTU_CLOCK_SOURCE_INTERNAL; in get_clock_source_896() 309 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT; in get_clock_source_896() [all …]
|
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 | 108 enum snd_motu_clock_source *src) in snd_motu_protocol_v3_get_clock_source() argument 122 *src = SND_MOTU_CLOCK_SOURCE_INTERNAL; in snd_motu_protocol_v3_get_clock_source() 125 *src = SND_MOTU_CLOCK_SOURCE_WORD_ON_BNC; in snd_motu_protocol_v3_get_clock_source() 128 *src = SND_MOTU_CLOCK_SOURCE_SPH; in snd_motu_protocol_v3_get_clock_source() 131 *src = SND_MOTU_CLOCK_SOURCE_AESEBU_ON_XLR; in snd_motu_protocol_v3_get_clock_source() 134 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_COAX; in snd_motu_protocol_v3_get_clock_source() 150 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_OPT_A; in snd_motu_protocol_v3_get_clock_source() 152 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT_A; in snd_motu_protocol_v3_get_clock_source() 155 *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_OPT_B; in snd_motu_protocol_v3_get_clock_source() 157 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT_B; in snd_motu_protocol_v3_get_clock_source() [all …]
|
/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 | 72 enum snd_ff_clock_src *src, in parse_clock_bits() argument 90 enum snd_ff_clock_src src; in parse_clock_bits() member 131 *src = clk_entry->src; in parse_clock_bits() 142 enum snd_ff_clock_src *src) in latter_get_clock() argument 154 return parse_clock_bits(data, rate, src, ff->unit_version); in latter_get_clock() 206 enum snd_ff_clock_src src; in latter_allocate_resources() local 208 err = latter_get_clock(ff, &curr_rate, &src); in latter_allocate_resources() 331 enum snd_ff_clock_src src; in latter_dump_status() local 366 err = parse_clock_bits(data, &rate, &src, ff->unit_version); in latter_dump_status() 369 label = snd_ff_proc_get_clk_label(src); in latter_dump_status()
|
D | ff-protocol-former.c | 16 enum snd_ff_clock_src *src) in parse_clock_bits() argument 33 enum snd_ff_clock_src src; in parse_clock_bits() member 55 *src = SND_FF_CLOCK_SRC_INTERNAL; in parse_clock_bits() 60 *src = clk_entry->src; in parse_clock_bits() 72 enum snd_ff_clock_src *src) in former_get_clock() argument 84 return parse_clock_bits(data, rate, src); in former_get_clock() 126 enum snd_ff_clock_src src; in dump_clock_config() local 149 err = parse_clock_bits(data, &rate, &src); in dump_clock_config() 152 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()
|
/sound/soc/sof/ |
D | iomem-utils.c | 66 void __iomem *src = sdev->bar[sdev->mailbox_bar] + offset; in sof_mailbox_read() local 68 memcpy_fromio(message, src, bytes); in sof_mailbox_read() 77 u32 offset, void *src, size_t size) in sof_block_write() argument 80 const u8 *src_byte = src; in sof_block_write() 95 __iowrite32_copy(dest, src, m); in sof_block_write()
|
/sound/soc/intel/atom/sst/ |
D | sst_loader.c | 33 void memcpy32_toio(void __iomem *dst, const void *src, int count) in memcpy32_toio() argument 38 __iowrite32_copy(dst, src, count / 4); in memcpy32_toio() 41 void memcpy32_fromio(void *dst, const void __iomem *src, int count) in memcpy32_fromio() argument 46 __ioread32_copy(dst, src, count / 4); in memcpy32_fromio() 148 void *destn, const void *src, u32 size, bool is_io) in sst_fill_memcpy_list() argument 156 listnode->src = src; in sst_fill_memcpy_list() 267 listnode->src, listnode->size); in sst_do_memcpy() 269 memcpy(listnode->dstn, listnode->src, listnode->size); in sst_do_memcpy()
|
/sound/core/seq/ |
D | seq_memory.c | 116 static int seq_copy_in_kernel(void *ptr, void *src, int size) in seq_copy_in_kernel() argument 120 memcpy(*bufptr, src, size); in seq_copy_in_kernel() 125 static int seq_copy_in_user(void *ptr, void *src, int size) in seq_copy_in_user() argument 129 if (copy_to_user(*bufptr, src, size)) in seq_copy_in_user() 315 struct snd_seq_event_cell *src, *tmp, *tail; in snd_seq_event_dup() local 321 src = (struct snd_seq_event_cell *)event->data.ext.ptr; in snd_seq_event_dup() 339 if (is_chained && src) { in snd_seq_event_dup() 340 tmp->event = src->event; in snd_seq_event_dup() 341 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,
|