Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 24 of 24) sorted by relevance

/sound/soc/fsl/
Dfsl_sai.h23 #define FSL_SAI_TCSR(ofs) (0x00 + ofs) /* SAI Transmit Control */ argument
24 #define FSL_SAI_TCR1(ofs) (0x04 + ofs) /* SAI Transmit Configuration 1 */ argument
25 #define FSL_SAI_TCR2(ofs) (0x08 + ofs) /* SAI Transmit Configuration 2 */ argument
26 #define FSL_SAI_TCR3(ofs) (0x0c + ofs) /* SAI Transmit Configuration 3 */ argument
27 #define FSL_SAI_TCR4(ofs) (0x10 + ofs) /* SAI Transmit Configuration 4 */ argument
28 #define FSL_SAI_TCR5(ofs) (0x14 + ofs) /* SAI Transmit Configuration 5 */ argument
50 #define FSL_SAI_RCSR(ofs) (0x80 + ofs) /* SAI Receive Control */ argument
51 #define FSL_SAI_RCR1(ofs) (0x84 + ofs)/* SAI Receive Configuration 1 */ argument
52 #define FSL_SAI_RCR2(ofs) (0x88 + ofs) /* SAI Receive Configuration 2 */ argument
53 #define FSL_SAI_RCR3(ofs) (0x8c + ofs) /* SAI Receive Configuration 3 */ argument
[all …]
Dfsl_sai.c90 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_isr() local
103 regmap_read(sai->regmap, FSL_SAI_TCSR(ofs), &xcsr); in fsl_sai_isr()
130 regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), flags | xcsr); in fsl_sai_isr()
134 regmap_read(sai->regmap, FSL_SAI_RCSR(ofs), &xcsr); in fsl_sai_isr()
161 regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), flags | xcsr); in fsl_sai_isr()
192 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_sysclk_tr() local
212 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx, ofs), in fsl_sai_set_dai_sysclk_tr()
277 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_fmt_tr() local
378 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx, ofs), in fsl_sai_set_dai_fmt_tr()
380 regmap_update_bits(sai->regmap, FSL_SAI_xCR4(tx, ofs), in fsl_sai_set_dai_fmt_tr()
[all …]
/sound/pci/ice1712/
Dphase.c480 int i, ofs, voices; in wm_vol_get() local
483 ofs = kcontrol->private_value & 0xff; in wm_vol_get()
486 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
495 int i, idx, ofs, voices; in wm_vol_put() local
499 ofs = kcontrol->private_value & 0xff; in wm_vol_put()
506 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
507 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
508 spec->vol[ofs+i] = vol; in wm_vol_put()
509 idx = WM_DAC_ATTEN + ofs + i; in wm_vol_put()
510 wm_set_vol(ice, idx, spec->vol[ofs+i], in wm_vol_put()
[all …]
Daureon.c796 int i, ofs, voices; in wm_vol_get() local
799 ofs = kcontrol->private_value & 0xff; in wm_vol_get()
802 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
810 int i, idx, ofs, voices; in wm_vol_put() local
814 ofs = kcontrol->private_value & 0xff; in wm_vol_put()
820 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
821 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
822 spec->vol[ofs+i] = vol; in wm_vol_put()
823 idx = WM_DAC_ATTEN + ofs + i; in wm_vol_put()
824 wm_set_vol(ice, idx, spec->vol[ofs + i], in wm_vol_put()
[all …]
Dprodigy_hifi.c413 int i, ofs, voices; in wm8766_vol_get() local
416 ofs = kcontrol->private_value & 0xff; in wm8766_vol_get()
418 ucontrol->value.integer.value[i] = spec->vol[ofs + i]; in wm8766_vol_get()
426 int i, idx, ofs, voices; in wm8766_vol_put() local
430 ofs = kcontrol->private_value & 0xff; in wm8766_vol_put()
433 if (ucontrol->value.integer.value[i] != spec->vol[ofs + i]) { in wm8766_vol_put()
434 idx = WM8766_LDA1 + ofs + i; in wm8766_vol_put()
435 spec->vol[ofs + i] &= WM_VOL_MUTE; in wm8766_vol_put()
436 spec->vol[ofs + i] |= ucontrol->value.integer.value[i]; in wm8766_vol_put()
438 spec->vol[ofs + i], spec->master[i]); in wm8766_vol_put()
/sound/hda/
Dhdac_stream.c429 int ofs, int size, int with_ioc) in setup_bdle() argument
440 addr = snd_sgbuf_get_addr(dmab, ofs); in setup_bdle()
445 chunk = snd_sgbuf_get_chunk_size(dmab, ofs, size); in setup_bdle()
448 u32 remain = 0x1000 - (ofs & 0xfff); in setup_bdle()
461 ofs += chunk; in setup_bdle()
464 return ofs; in setup_bdle()
480 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local
492 ofs = 0; in snd_hdac_stream_setup_periods()
509 ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), in snd_hdac_stream_setup_periods()
511 &bdl, ofs, pos_adj, true); in snd_hdac_stream_setup_periods()
[all …]
/sound/pci/lola/
Dlola_pcm.c306 int ofs, int size) in setup_bdle() argument
317 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in setup_bdle()
322 chunk = snd_pcm_sgbuf_get_chunk_size(substream, ofs, size); in setup_bdle()
331 ofs += chunk; in setup_bdle()
334 return ofs; in setup_bdle()
345 int i, ofs, periods, period_bytes; in lola_setup_periods() local
352 ofs = 0; in lola_setup_periods()
355 ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes); in lola_setup_periods()
356 if (ofs < 0) in lola_setup_periods()
Dlola_mixer.c677 unsigned int ofs = kcontrol->private_value & 0xff; in lola_src_gain_get() local
683 unsigned int idx = ofs + i; in lola_src_gain_get()
700 unsigned int ofs = kcontrol->private_value & 0xff; in lola_src_gain_put() local
705 unsigned int idx = ofs + i; in lola_src_gain_put()
730 int num, int ofs, char *name) in create_src_gain_mixer() argument
733 lola_src_gain_mixer.private_value = ofs + (num << 8); in create_src_gain_mixer()
818 int num, int ofs, char *name)
823 src_ofs + (src_num << 8) + (ofs << 16) + (num << 24);
/sound/core/
Dmemalloc.c267 unsigned int ofs, unsigned int size) in snd_sgbuf_get_chunk_size() argument
272 return ops->get_chunk_size(dmab, ofs, size); in snd_sgbuf_get_chunk_size()
382 unsigned int ofs, unsigned int size) in snd_dma_vmalloc_get_chunk_size() argument
387 start = ALIGN_DOWN(ofs, PAGE_SIZE); in snd_dma_vmalloc_get_chunk_size()
388 end = ofs + size - 1; /* the last byte address */ in snd_dma_vmalloc_get_chunk_size()
397 return start - ofs; in snd_dma_vmalloc_get_chunk_size()
635 unsigned int ofs, unsigned int size) in snd_dma_noncontig_get_chunk_size() argument
641 start = ALIGN_DOWN(ofs, PAGE_SIZE); in snd_dma_noncontig_get_chunk_size()
642 end = ofs + size - 1; /* the last byte address */ in snd_dma_noncontig_get_chunk_size()
655 return start - ofs; in snd_dma_noncontig_get_chunk_size()
Dmemalloc_local.h11 unsigned int ofs, unsigned int size);
Dpcm_lib.c48 snd_pcm_uframes_t frames, ofs, transfer; in snd_pcm_playback_silence() local
82 ofs = runtime->status->hw_ptr; in snd_pcm_playback_silence()
83 frames = new_hw_ptr - ofs; in snd_pcm_playback_silence()
91 runtime->silence_start = ofs; in snd_pcm_playback_silence()
100 ofs = runtime->silence_start % runtime->buffer_size; in snd_pcm_playback_silence()
102 transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; in snd_pcm_playback_silence()
103 err = fill_silence_frames(substream, ofs, transfer); in snd_pcm_playback_silence()
107 ofs = 0; in snd_pcm_playback_silence()
/sound/pci/hda/
Dpatch_cs8409.c461 unsigned int ofs = get_amp_offset(kctrl); in cs42l42_volume_info() local
468 switch (ofs) { in cs42l42_volume_info()
490 unsigned int ofs = get_amp_offset(kctrl); in cs42l42_volume_get() local
493 switch (ofs) { in cs42l42_volume_get()
496 *valp++ = cs42l42->vol[ofs]; in cs42l42_volume_get()
498 *valp = cs42l42->vol[ofs+1]; in cs42l42_volume_get()
502 *valp = cs42l42->vol[ofs]; in cs42l42_volume_get()
549 unsigned int ofs = get_amp_offset(kctrl); in cs42l42_volume_put() local
552 switch (ofs) { in cs42l42_volume_put()
555 cs42l42->vol[ofs] = *valp; in cs42l42_volume_put()
[all …]
Dhda_codec.c1437 unsigned int ofs) in get_amp_max_value() argument
1442 if (ofs < caps) in get_amp_max_value()
1443 caps -= ofs; in get_amp_max_value()
1462 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_info() local
1467 uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs); in snd_hda_mixer_amp_volume_info()
1481 int ch, int dir, int idx, unsigned int ofs) in read_amp_value() argument
1486 if (val >= ofs) in read_amp_value()
1487 val -= ofs; in read_amp_value()
1495 int ch, int dir, int idx, unsigned int ofs, in update_amp_value() argument
1501 val += ofs; in update_amp_value()
[all …]
Dhda_local.h26 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument
27 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23))
/sound/pci/
Dvia82xx_modem.c267 unsigned int i, idx, ofs, rest; in build_via_table() local
290 ofs = 0; in build_via_table()
307 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in build_via_table()
309 r = PAGE_SIZE - (ofs % PAGE_SIZE); in build_via_table()
326 dev->idx_table[idx].offset = ofs; in build_via_table()
328 ofs += r; in build_via_table()
Dvia82xx.c414 unsigned int i, idx, ofs, rest; in build_via_table() local
437 ofs = 0; in build_via_table()
454 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in build_via_table()
456 r = snd_pcm_sgbuf_get_chunk_size(substream, ofs, rest); in build_via_table()
471 dev->idx_table[idx].offset = ofs; in build_via_table()
473 ofs += r; in build_via_table()
/sound/pci/trident/
Dtrident_memory.c185 unsigned long ofs = idx << PAGE_SHIFT; in snd_trident_alloc_sg_pages() local
186 dma_addr_t addr = snd_pcm_sgbuf_get_addr(substream, ofs); in snd_trident_alloc_sg_pages()
/sound/pci/emu10k1/
Dmemory.c331 unsigned long ofs = idx << PAGE_SHIFT; in snd_emu10k1_alloc_pages() local
333 if (ofs >= runtime->dma_bytes) in snd_emu10k1_alloc_pages()
336 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in snd_emu10k1_alloc_pages()
/sound/pci/rme9652/
Dhdsp.c4662 int i, j, channels, ofs; in hdsp_9652_get_peak() local
4670 ofs = HDSP_9652_peakBase - j * 4; in hdsp_9652_get_peak()
4671 if (copy_u32_le(&peak_rms->input_peaks[i], hdsp->iobase + ofs)) in hdsp_9652_get_peak()
4673 ofs -= channels * 4; in hdsp_9652_get_peak()
4674 if (copy_u32_le(&peak_rms->playback_peaks[i], hdsp->iobase + ofs)) in hdsp_9652_get_peak()
4676 ofs -= channels * 4; in hdsp_9652_get_peak()
4677 if (copy_u32_le(&peak_rms->output_peaks[i], hdsp->iobase + ofs)) in hdsp_9652_get_peak()
4679 ofs = HDSP_9652_rmsBase + j * 8; in hdsp_9652_get_peak()
4680 if (copy_u48_le(&peak_rms->input_rms[i], hdsp->iobase + ofs, in hdsp_9652_get_peak()
4681 hdsp->iobase + ofs + 4)) in hdsp_9652_get_peak()
[all …]
/sound/drivers/
Ddummy.c937 #define get_dummy_int_ptr(dummy, ofs) \ argument
938 (unsigned int *)((char *)&((dummy)->pcm_hw) + (ofs))
939 #define get_dummy_ll_ptr(dummy, ofs) \ argument
940 (unsigned long long *)((char *)&((dummy)->pcm_hw) + (ofs))
/sound/usb/
Dpcm.c1401 int i, ofs = subs->hwptr_done; in fill_playback_urb_dsd_bitrev() local
1404 *buf++ = bitrev8(src[ofs]); in fill_playback_urb_dsd_bitrev()
1405 if (++ofs >= subs->buffer_bytes) in fill_playback_urb_dsd_bitrev()
1406 ofs = 0; in fill_playback_urb_dsd_bitrev()
/sound/ppc/
Dtumbler.c826 #define DEFINE_SNAPPER_MIX(xname,idx,ofs) { \ argument
833 .private_value = ofs, \
/sound/x86/
Dintel_hdmi_audio.c875 int ofs = intelhaddata->pcmbuf_filled * intelhaddata->period_bytes; in had_prog_bd() local
876 u32 addr = substream->runtime->dma_addr + ofs; in had_prog_bd()
/sound/pci/riptide/
Driptide.c1499 unsigned int ofs, addr; in snd_riptide_prepare() local
1507 ofs = j << PAGE_SHIFT; in snd_riptide_prepare()
1508 addr = snd_pcm_sgbuf_get_addr(substream, ofs) + pt; in snd_riptide_prepare()