Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 63) sorted by relevance

123

/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c41 static inline void pdacf_transfer_mono16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono16() argument
44 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_mono16()
49 static inline void pdacf_transfer_mono32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono32() argument
57 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_mono32()
61 static inline void pdacf_transfer_stereo16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo16() argument
64 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
65 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
69 static inline void pdacf_transfer_stereo32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo32() argument
77 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32()
78 *dst++ = (((u32)val3 << 16) | (val2 & 0xff00)) ^ xor; in pdacf_transfer_stereo32()
[all …]
/sound/core/oss/
Droute.c30 int dst = 0; in zero_areas() local
31 for (; dst < ndsts; ++dst) { in zero_areas()
52 int nsrcs, ndsts, dst; in route_transfer() local
70 for (dst = 0; dst < ndsts; ++dst) { in route_transfer()
77 for (dst = 0; dst < ndsts && dst < nsrcs; ++dst) { in route_transfer()
82 if (dst < ndsts) in route_transfer()
83 zero_areas(dvp, ndsts - dst, frames, format); in route_transfer()
Dmulaw.c157 unsigned char *dst, u16 sample) in cvt_s16_to_native() argument
163 memset(dst, 0, data->native_bytes); in cvt_s16_to_native()
164 memcpy(dst + data->native_ofs, (char *)&sample + data->copy_ofs, in cvt_s16_to_native()
178 char *dst; in mulaw_decode() local
189 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_decode()
195 cvt_s16_to_native(data, dst, sample); in mulaw_decode()
197 dst += dst_step; in mulaw_decode()
224 char *dst; in mulaw_encode() local
235 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_encode()
241 *dst = linear2ulaw(sample); in mulaw_encode()
[all …]
Dpcm_plugin.c676 unsigned char *dst; in snd_pcm_area_silence() local
682 dst = dst_area->addr + (dst_area->first + dst_area->step * dst_offset) / 8; in snd_pcm_area_silence()
687 return snd_pcm_format_set_silence(format, dst, samples); in snd_pcm_area_silence()
698 *dst &= 0xf0; in snd_pcm_area_silence()
700 *dst &= 0x0f; in snd_pcm_area_silence()
701 dst += dst_step; in snd_pcm_area_silence()
704 dst++; in snd_pcm_area_silence()
711 memcpy(dst, silence, width); in snd_pcm_area_silence()
712 dst += dst_step; in snd_pcm_area_silence()
723 char *src, *dst; in snd_pcm_area_copy() local
[all …]
Dlinear.c43 unsigned char *dst, unsigned char *src) in do_convert() argument
52 memcpy(dst, p + data->dst_ofs, data->dst_bytes); in do_convert()
65 char *dst; in convert() local
76 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in convert()
81 do_convert(data, dst, src); in convert()
83 dst += dst_step; in convert()
Drate.c72 signed short *src, *dst; in resample_expand() local
92 dst = (signed short *)dst_channels[channel].area.addr + in resample_expand()
112 *dst = val; in resample_expand()
113 dst += dst_step; in resample_expand()
131 signed short *src, *dst; in resample_shrink() local
151 dst = (signed short *)dst_channels[channel].area.addr + in resample_shrink()
170 *dst = val; in resample_shrink()
171 dst += dst_step; in resample_shrink()
/sound/core/
Dmemory.c23 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()
34 if (copy_to_user(dst, buf, c)) in copy_to_user_fromio()
37 dst += 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()
67 memcpy_toio(dst, buf, c); in copy_from_user_toio()
69 dst += c; in copy_from_user_toio()
Dpcm_misc.c427 unsigned char *dst; in snd_pcm_format_set_silence() local
446 dst = data; in snd_pcm_format_set_silence()
449 memcpy(dst, pat, width); in snd_pcm_format_set_silence()
450 dst += width; in snd_pcm_format_set_silence()
457 memcpy(dst, pat, 2); in snd_pcm_format_set_silence()
458 dst += 2; in snd_pcm_format_set_silence()
463 memcpy(dst, pat, 3); in snd_pcm_format_set_silence()
464 dst += 3; in snd_pcm_format_set_silence()
469 memcpy(dst, pat, 4); in snd_pcm_format_set_silence()
470 dst += 4; in snd_pcm_format_set_silence()
[all …]
/sound/firewire/motu/
Damdtp-motu-trace.h26 __field(int, dst)
33 __entry->dst = fw_parent_device(s->unit)->card->node_id;
36 __entry->dst = fw_parent_device(s->unit)->node_id;
44 __entry->dst,
55 __field(int, dst)
62 __entry->dst = fw_parent_device(s->unit)->card->node_id;
65 __entry->dst = fw_parent_device(s->unit)->node_id;
73 __entry->dst,
Damdtp-motu.c103 u32 *dst; in read_pcm_s32() local
109 dst = (void *)runtime->dma_area + in read_pcm_s32()
117 *dst = (byte[0] << 24) | in read_pcm_s32()
121 dst++; in read_pcm_s32()
125 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/soc/intel/atom/
Dsst-atom-controls.h313 #define SST_FILL_LOCATION_IDS(dst, cell_idx, pipe_id) do { \ argument
314 dst.location_id.p.cell_nbr_idx = (cell_idx); \
315 dst.location_id.p.path_id = (pipe_id); \
317 #define SST_FILL_LOCATION_ID(dst, loc_id) (\ argument
318 dst.location_id.f = (loc_id))
319 #define SST_FILL_MODULE_ID(dst, mod_id) (\ argument
320 dst.module_id = (mod_id))
322 #define SST_FILL_DESTINATION1(dst, id) do { \ argument
323 SST_FILL_LOCATION_ID(dst, (id) & 0xFFFF); \
324 SST_FILL_MODULE_ID(dst, ((id) & 0xFFFF0000) >> 16); \
[all …]
/sound/firewire/fireface/
Damdtp-ff.c69 u32 *dst; in read_pcm_s32() local
75 dst = (void *)runtime->dma_area + in read_pcm_s32()
81 *dst = le32_to_cpu(buffer[c]) & 0xffffff00; in read_pcm_s32()
82 dst++; in read_pcm_s32()
86 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/firewire/tascam/
Damdtp-tascam.c74 u32 *dst; in read_pcm_s32() local
80 dst = (void *)runtime->dma_area + in read_pcm_s32()
89 *dst = be32_to_cpu(buffer[c]); in read_pcm_s32()
90 dst++; in read_pcm_s32()
94 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/pci/emu10k1/
Demufx.c680 struct snd_emu10k1_fx8010_control_gpr *dst, in copy_gctl() argument
691 *dst = src[idx]; in copy_gctl()
692 else if (copy_from_user(dst, &_src[idx], sizeof(*src))) in copy_gctl()
700 memcpy(dst, &octl[idx], sizeof(*octl)); in copy_gctl()
701 else if (copy_from_user(dst, &_octl[idx], sizeof(*octl))) in copy_gctl()
703 dst->tlv = NULL; in copy_gctl()
708 struct snd_emu10k1_fx8010_control_gpr *dst, in copy_gctl_to_user() argument
715 _dst = (struct snd_emu10k1_fx8010_control_gpr __user *)dst; in copy_gctl_to_user()
719 octl = (struct snd_emu10k1_fx8010_control_old_gpr __user *)dst; in copy_gctl_to_user()
1470 #define _A_SWITCH(icode, ptr, dst, src, sw) \ in _snd_emu10k1_audigy_init_efx() argument
[all …]
/sound/firewire/digi00x/
Damdtp-dot.c186 u32 *dst; in read_pcm_s32() local
192 dst = (void *)runtime->dma_area + in read_pcm_s32()
199 *dst = be32_to_cpu(buffer[c]) << 8; in read_pcm_s32()
200 dst++; in read_pcm_s32()
204 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/pci/korg1212/
Dkorg1212.c1263 struct KorgAudioFrame * dst = korg1212->playDataBufsPtr[0].bufferData + pos; in snd_korg1212_silence() local
1273 if ( (void *) dst < (void *) korg1212->playDataBufsPtr || in snd_korg1212_silence()
1274 (void *) dst > (void *) korg1212->playDataBufsPtr[8].bufferData ) { in snd_korg1212_silence()
1276 dst, i); in snd_korg1212_silence()
1280 memset((void*) dst + offset, 0, size); in snd_korg1212_silence()
1281 dst++; in snd_korg1212_silence()
1288 void __user *dst, int pos, int count, in snd_korg1212_copy_to() argument
1309 …ERN_DEBUG "K1212_DEBUG: snd_korg1212_copy_to KERNEL EFAULT, src=%p dst=%p iter=%d\n", src, dst, i); in snd_korg1212_copy_to()
1314 memcpy((__force void *)dst, src, size); in snd_korg1212_copy_to()
1315 else if (copy_to_user(dst, src, size)) in snd_korg1212_copy_to()
[all …]
/sound/firewire/
Damdtp-am824.c190 u32 *dst; in read_pcm_s32() local
196 dst = (void *)runtime->dma_area + in read_pcm_s32()
202 *dst = be32_to_cpu(buffer[p->pcm_positions[c]]) << 8; in read_pcm_s32()
203 dst++; in read_pcm_s32()
207 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/pci/lola/
Dlola_mixer.c491 int dst = chip->mixer.dest_phys_out_ofs + in init_mixer_values() local
493 lola_mixer_set_mapping_gain(chip, src, dst, 336, true); in init_mixer_values()
761 unsigned int dst, mask, i;
763 dst = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + dst_ofs;
764 mask = readl(&chip->mixer.array->dest_mix_gain_enable[dst]);
770 if (mask & (1 << dst))
771 val = readw(&chip->mixer.array->dest_mix_gain[dst][src]) + 1;
786 unsigned int dst, mask;
800 dst = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + dst_ofs;
801 return lola_mixer_set_dest_gains(chip, dst, mask, gains);
/sound/soc/sprd/
Dsprd-pcm-compress.c536 void *dst; in sprd_platform_compr_copy() local
546 dst = stream->iram_buffer.area + stream->received_stage0; in sprd_platform_compr_copy()
553 if (copy_from_user(dst, buf, data_count)) in sprd_platform_compr_copy()
566 if (copy_from_user(dst, buf, avail_bytes)) in sprd_platform_compr_copy()
580 dst = stream->compr_buffer.area + stream->stage1_pointer; in sprd_platform_compr_copy()
582 if (copy_from_user(dst, buf, data_count)) in sprd_platform_compr_copy()
589 if (copy_from_user(dst, buf, avail_bytes)) in sprd_platform_compr_copy()
/sound/soc/mediatek/common/
Dmtk-btcvsd.c289 u8 *src, u8 *dst, in mtk_btcvsd_snd_data_transfer() argument
297 u32 *dst_32 = (u32 *)dst; in mtk_btcvsd_snd_data_transfer()
303 u16 *dst_16 = (u16 *)dst; in mtk_btcvsd_snd_data_transfer()
340 void *dst; in btcvsd_tx_clean_buffer() local
345 dst = (void *)bt->tx->buffer_info.bt_sram_addr[i]; in btcvsd_tx_clean_buffer()
348 bt->tx->temp_packet_buf, dst, in btcvsd_tx_clean_buffer()
418 u8 *dst; in mtk_btcvsd_write_to_bt() local
445 dst = (u8 *)ap_addr_tx; in mtk_btcvsd_write_to_bt()
449 bt->tx->temp_packet_buf, dst, in mtk_btcvsd_write_to_bt()
518 u8 *src, *dst; in mtk_btcvsd_snd_irq_handler() local
[all …]
/sound/isa/wavefront/
Dwavefront_synth.c532 unsigned char *dst, in munge_int32() argument
538 *dst = src & 0x7F; /* Mask high bit of LSB */ in munge_int32()
542 dst++; in munge_int32()
544 return dst; in munge_int32()
563 munge_buf (unsigned char *src, unsigned char *dst, unsigned int dst_size) in munge_buf() argument
570 *dst++ = src[i] & 0x7f; in munge_buf()
571 *dst++ = src[i] >> 7; in munge_buf()
573 return dst; in munge_buf()
578 demunge_buf (unsigned char *src, unsigned char *dst, unsigned int src_bytes) in demunge_buf() argument
587 dst[i] = *src++; in demunge_buf()
[all …]
/sound/soc/intel/atom/sst/
Dsst_loader.c33 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()
/sound/usb/
Dmixer_scarlett.c360 static void scarlett_generate_name(int i, char *dst, int offsets[]) in scarlett_generate_name() argument
363 sprintf(dst, "Mix %c", in scarlett_generate_name()
366 sprintf(dst, "ADAT %d", i - offsets[SCARLETT_OFFSET_ADAT]); in scarlett_generate_name()
368 sprintf(dst, "SPDIF %d", i - offsets[SCARLETT_OFFSET_SPDIF]); in scarlett_generate_name()
370 sprintf(dst, "Analog %d", i - offsets[SCARLETT_OFFSET_ANALOG]); in scarlett_generate_name()
372 sprintf(dst, "PCM %d", i - offsets[SCARLETT_OFFSET_PCM]); in scarlett_generate_name()
374 sprintf(dst, "Off"); in scarlett_generate_name()
/sound/pci/ac97/
Dac97_patch.h66 const char *dst, const char *suffix);
70 const char *dst);
/sound/pci/cs46xx/
Ddsp_spos.c550 void __iomem *dst = chip->region.idx[1].remap_addr + DSP_PARAMETER_BYTE_OFFSET; in cs46xx_dsp_proc_task_tree_read() local
563 val = readl(dst + (ins->tasks[i].address + j) * sizeof(u32)); in cs46xx_dsp_proc_task_tree_read()
611 void __iomem *dst = chip->region.idx[1].remap_addr + DSP_PARAMETER_BYTE_OFFSET; in cs46xx_dsp_proc_parameter_dump_read() local
630 snd_iprintf(buffer,"%08X ",readl(dst + i)); in cs46xx_dsp_proc_parameter_dump_read()
639 void __iomem *dst = chip->region.idx[2].remap_addr; in cs46xx_dsp_proc_sample_dump_read() local
652 snd_iprintf(buffer,"%08X ",readl(dst + i)); in cs46xx_dsp_proc_sample_dump_read()
668 snd_iprintf(buffer,"%08X ",readl(dst + i)); in cs46xx_dsp_proc_sample_dump_read()
683 snd_iprintf(buffer,"%08X ",readl(dst + i)); in cs46xx_dsp_proc_sample_dump_read()
699 snd_iprintf(buffer,"%08X ",readl(dst + i)); in cs46xx_dsp_proc_sample_dump_read()
715 snd_iprintf(buffer,"%08X ",readl(dst + i)); in cs46xx_dsp_proc_sample_dump_read()
[all …]

123