Home
last modified time | relevance | path

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

123

/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c54 static inline void pdacf_transfer_mono16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono16() argument
57 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_mono16()
62 static inline void pdacf_transfer_mono32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono32() argument
70 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_mono32()
74 static inline void pdacf_transfer_stereo16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo16() argument
77 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
78 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
82 static inline void pdacf_transfer_stereo32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo32() argument
90 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32()
91 *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
68 for (dst = 0; dst < ndsts; ++dst) { in route_transfer()
75 for (dst = 0; dst < ndsts && dst < nsrcs; ++dst) { in route_transfer()
80 if (dst < ndsts) in route_transfer()
81 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.c661 unsigned char *dst; in snd_pcm_area_silence() local
667 dst = dst_area->addr + (dst_area->first + dst_area->step * dst_offset) / 8; in snd_pcm_area_silence()
672 return snd_pcm_format_set_silence(format, dst, samples); in snd_pcm_area_silence()
683 *dst &= 0xf0; in snd_pcm_area_silence()
685 *dst &= 0x0f; in snd_pcm_area_silence()
686 dst += dst_step; in snd_pcm_area_silence()
689 dst++; in snd_pcm_area_silence()
696 memcpy(dst, silence, width); in snd_pcm_area_silence()
697 dst += dst_step; in snd_pcm_area_silence()
708 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/soc/blackfin/
Dbf5xx-ac97.c46 void bf5xx_pcm_to_ac97(struct ac97_frame *dst, const __u16 *src, in bf5xx_pcm_to_ac97() argument
50 dst->ac97_tag = TAG_VALID; in bf5xx_pcm_to_ac97()
52 dst->ac97_pcm_r = *src++; in bf5xx_pcm_to_ac97()
53 dst->ac97_tag |= TAG_PCM_RIGHT; in bf5xx_pcm_to_ac97()
56 dst->ac97_pcm_l = *src++; in bf5xx_pcm_to_ac97()
57 dst->ac97_tag |= TAG_PCM_LEFT; in bf5xx_pcm_to_ac97()
62 dst->ac97_sl = *src++; in bf5xx_pcm_to_ac97()
63 dst->ac97_tag |= TAG_PCM_SL; in bf5xx_pcm_to_ac97()
66 dst->ac97_sr = *src++; in bf5xx_pcm_to_ac97()
67 dst->ac97_tag |= TAG_PCM_SR; in bf5xx_pcm_to_ac97()
[all …]
Dbf5xx-i2s-pcm.c236 void *src, *dst; in bf5xx_pcm_copy() local
243 dst = runtime->dma_area; in bf5xx_pcm_copy()
244 dst += pos * sample_size * 8; in bf5xx_pcm_copy()
248 memcpy(dst + dma_data->map[i] * in bf5xx_pcm_copy()
252 dst += 8 * sample_size; in bf5xx_pcm_copy()
257 dst = buf; in bf5xx_pcm_copy()
261 memcpy(dst, src + dma_data->map[i] * in bf5xx_pcm_copy()
263 dst += sample_size; in bf5xx_pcm_copy()
271 dst = runtime->dma_area; in bf5xx_pcm_copy()
272 dst += frames_to_bytes(runtime, pos); in bf5xx_pcm_copy()
[all …]
Dbf5xx-ac97.h51 void bf5xx_pcm_to_ac97(struct ac97_frame *dst, const __u16 *src, \
54 void bf5xx_ac97_to_pcm(const struct ac97_frame *src, __u16 *dst, \
/sound/core/
Dmemory.c38 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count) in copy_to_user_fromio() argument
41 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; in copy_to_user_fromio()
49 if (copy_to_user(dst, buf, c)) in copy_to_user_fromio()
52 dst += c; in copy_to_user_fromio()
71 int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count) in copy_from_user_toio() argument
74 return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0; in copy_from_user_toio()
83 memcpy_toio(dst, buf, c); in copy_from_user_toio()
85 dst += c; in copy_from_user_toio()
Dhwdep_compat.c36 struct snd_hwdep_dsp_image __user *dst; in snd_hwdep_dsp_load_compat() local
40 dst = compat_alloc_user_space(sizeof(*dst)); in snd_hwdep_dsp_load_compat()
43 if (copy_in_user(dst, src, 4 + 64)) in snd_hwdep_dsp_load_compat()
46 put_user(compat_ptr(ptr), &dst->image)) in snd_hwdep_dsp_load_compat()
49 put_user(val, &dst->length)) in snd_hwdep_dsp_load_compat()
52 put_user(val, &dst->driver_data)) in snd_hwdep_dsp_load_compat()
55 return snd_hwdep_dsp_load(hw, dst); in snd_hwdep_dsp_load_compat()
Dpcm_misc.c407 unsigned char *dst, *pat; in snd_pcm_format_set_silence() local
425 dst = data; in snd_pcm_format_set_silence()
428 memcpy(dst, pat, width); in snd_pcm_format_set_silence()
429 dst += width; in snd_pcm_format_set_silence()
436 memcpy(dst, pat, 2); in snd_pcm_format_set_silence()
437 dst += 2; in snd_pcm_format_set_silence()
442 memcpy(dst, pat, 3); in snd_pcm_format_set_silence()
443 dst += 3; in snd_pcm_format_set_silence()
448 memcpy(dst, pat, 4); in snd_pcm_format_set_silence()
449 dst += 4; in snd_pcm_format_set_silence()
[all …]
Drawmidi_compat.c111 #define put_timespec(src, dst) copy_to_user(dst, src, sizeof(*dst)) argument
/sound/soc/intel/atom/
Dsst-atom-controls.h322 #define SST_FILL_LOCATION_IDS(dst, cell_idx, pipe_id) do { \ argument
323 dst.location_id.p.cell_nbr_idx = (cell_idx); \
324 dst.location_id.p.path_id = (pipe_id); \
326 #define SST_FILL_LOCATION_ID(dst, loc_id) (\ argument
327 dst.location_id.f = (loc_id))
328 #define SST_FILL_MODULE_ID(dst, mod_id) (\ argument
329 dst.module_id = (mod_id))
331 #define SST_FILL_DESTINATION1(dst, id) do { \ argument
332 SST_FILL_LOCATION_ID(dst, (id) & 0xFFFF); \
333 SST_FILL_MODULE_ID(dst, ((id) & 0xFFFF0000) >> 16); \
[all …]
/sound/soc/nuc900/
Dnuc900-pcm.c207 dma_addr_t *src, dma_addr_t *dst) in nuc900_dma_getposition() argument
215 if (dst != NULL) in nuc900_dma_getposition()
216 *dst = AUDIO_READ(nuc900_audio->mmio + ACTL_RDSTC); in nuc900_dma_getposition()
224 dma_addr_t src, dst; in nuc900_dma_pointer() local
227 nuc900_dma_getposition(substream, &src, &dst); in nuc900_dma_pointer()
230 res = dst - runtime->dma_addr; in nuc900_dma_pointer()
/sound/firewire/tascam/
Damdtp-tascam.c97 u32 *dst; in read_pcm_s32() local
100 dst = (void *)runtime->dma_area + in read_pcm_s32()
109 *dst = be32_to_cpu(buffer[c]); in read_pcm_s32()
110 dst++; in read_pcm_s32()
114 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/firewire/
Damdtp-am824.c213 u32 *dst; in read_pcm_s32() local
216 dst = (void *)runtime->dma_area + in read_pcm_s32()
222 *dst = be32_to_cpu(buffer[p->pcm_positions[c]]) << 8; in read_pcm_s32()
223 dst++; in read_pcm_s32()
227 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/pci/emu10k1/
Demufx.c1427 #define _A_SWITCH(icode, ptr, dst, src, sw) \ in _snd_emu10k1_audigy_init_efx() argument
1428 A_OP((icode), ptr, iMACINT0, dst, A_C_00000000, src, sw); in _snd_emu10k1_audigy_init_efx()
1429 #define A_SWITCH(icode, ptr, dst, src, sw) \ in _snd_emu10k1_audigy_init_efx() argument
1430 _A_SWITCH(icode, ptr, A_GPR(dst), A_GPR(src), A_GPR(sw)) in _snd_emu10k1_audigy_init_efx()
1431 #define _A_SWITCH_NEG(icode, ptr, dst, src) \ in _snd_emu10k1_audigy_init_efx() argument
1432 A_OP((icode), ptr, iANDXOR, dst, src, A_C_00000001, A_C_00000001); in _snd_emu10k1_audigy_init_efx()
1433 #define A_SWITCH_NEG(icode, ptr, dst, src) \ in _snd_emu10k1_audigy_init_efx() argument
1434 _A_SWITCH_NEG(icode, ptr, A_GPR(dst), A_GPR(src)) in _snd_emu10k1_audigy_init_efx()
1766 static void _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) in _volume() argument
1768 OP(icode, ptr, iMAC0, dst, C_00000000, src, vol); in _volume()
[all …]
/sound/pci/lola/
Dlola_mixer.c502 int dst = chip->mixer.dest_phys_out_ofs + in init_mixer_values() local
504 lola_mixer_set_mapping_gain(chip, src, dst, 336, true); in init_mixer_values()
772 unsigned int dst, mask, i;
774 dst = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + dst_ofs;
775 mask = readl(&chip->mixer.array->dest_mix_gain_enable[dst]);
781 if (mask & (1 << dst))
782 val = readw(&chip->mixer.array->dest_mix_gain[dst][src]) + 1;
797 unsigned int dst, mask;
811 dst = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + dst_ofs;
812 return lola_mixer_set_dest_gains(chip, dst, mask, gains);
/sound/firewire/digi00x/
Damdtp-dot.c208 u32 *dst; in read_pcm_s32() local
211 dst = (void *)runtime->dma_area + in read_pcm_s32()
218 *dst = be32_to_cpu(buffer[c]) << 8; in read_pcm_s32()
219 dst++; in read_pcm_s32()
223 dst = (void *)runtime->dma_area; in read_pcm_s32()
/sound/usb/
Dstream.c144 unsigned int __user *dst; in usb_chmap_ctl_tlv() local
152 dst = tlv + 2; in usb_chmap_ctl_tlv()
164 if (put_user(SNDRV_CTL_TLVT_CHMAP_FIXED, dst) || in usb_chmap_ctl_tlv()
165 put_user(ch_bytes, dst + 1)) in usb_chmap_ctl_tlv()
167 dst += 2; in usb_chmap_ctl_tlv()
168 for (i = 0; i < fp->chmap->channels; i++, dst++) { in usb_chmap_ctl_tlv()
169 if (put_user(fp->chmap->map[i], dst)) in usb_chmap_ctl_tlv()
/sound/pci/korg1212/
Dkorg1212.c1278 struct KorgAudioFrame * dst = korg1212->playDataBufsPtr[0].bufferData + pos; in snd_korg1212_silence() local
1288 if ( (void *) dst < (void *) korg1212->playDataBufsPtr || in snd_korg1212_silence()
1289 (void *) dst > (void *) korg1212->playDataBufsPtr[8].bufferData ) { in snd_korg1212_silence()
1291 dst, i); in snd_korg1212_silence()
1295 memset((void*) dst + offset, 0, size); in snd_korg1212_silence()
1296 dst++; in snd_korg1212_silence()
1302 static int snd_korg1212_copy_to(struct snd_korg1212 *korg1212, void __user *dst, int pos, int count… in snd_korg1212_copy_to() argument
1316 …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()
1320 rc = copy_to_user(dst + offset, src, size); in snd_korg1212_copy_to()
1322 …DEBUG_PRINTK("K1212_DEBUG: snd_korg1212_copy_to USER EFAULT src=%p dst=%p iter=%d\n", src, dst, i); in snd_korg1212_copy_to()
[all …]
/sound/isa/wavefront/
Dwavefront_synth.c530 unsigned char *dst, in munge_int32() argument
536 *dst = src & 0x7F; /* Mask high bit of LSB */ in munge_int32()
540 dst++; in munge_int32()
542 return dst; in munge_int32()
561 munge_buf (unsigned char *src, unsigned char *dst, unsigned int dst_size) in munge_buf() argument
568 *dst++ = src[i] & 0x7f; in munge_buf()
569 *dst++ = src[i] >> 7; in munge_buf()
571 return dst; in munge_buf()
576 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.c42 void memcpy32_toio(void __iomem *dst, const void *src, int count) in memcpy32_toio() argument
47 __iowrite32_copy(dst, src, count/4); in memcpy32_toio()
50 void memcpy32_fromio(void *dst, const void __iomem *src, int count) in memcpy32_fromio() argument
55 __iowrite32_copy(dst, src, count/4); in memcpy32_fromio()
/sound/pci/ac97/
Dac97_patch.h81 const char *dst, const char *suffix);
85 const char *dst);

123