/sound/pci/ctxfi/ |
D | ctvmem.c | 36 struct list_head *pos; in get_vm_block() local 46 list_for_each(pos, &vm->unused) { in get_vm_block() 47 entry = list_entry(pos, struct ct_vm_block, list); in get_vm_block() 51 if (pos == &vm->unused) in get_vm_block() 81 struct list_head *pos, *pre; in put_vm_block() local 89 list_for_each(pos, &vm->unused) { in put_vm_block() 90 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block() 94 if (pos == &vm->unused) { in put_vm_block() 103 __list_add(&block->list, pos->prev, pos); in put_vm_block() 108 pos = &entry->list; in put_vm_block() [all …]
|
D | ctimap.c | 25 struct list_head *pos, *pre, *head; in input_mapper_add() local 37 list_for_each(pos, head) { in input_mapper_add() 38 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add() 45 if (pos != head) { in input_mapper_add() 46 pre = pos->prev; in input_mapper_add() 50 __list_add(&entry->list, pos->prev, pos); in input_mapper_add() 53 pos = head->next; in input_mapper_add() 58 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add() 103 struct list_head *pos; in free_input_mapper_list() local 106 pos = head->next; in free_input_mapper_list() [all …]
|
D | cttimer.c | 203 unsigned int pos; in ct_xfitimer_reprogram() local 208 pos = ti->substream->ops->pointer(ti->substream); in ct_xfitimer_reprogram() 209 if (pos / period_size != ti->position / period_size) { in ct_xfitimer_reprogram() 211 ti->position = pos; in ct_xfitimer_reprogram() 214 pos %= period_size; in ct_xfitimer_reprogram() 215 pos = period_size - pos; in ct_xfitimer_reprogram() 216 ti->frag_count = div_u64((u64)pos * CT_TIMER_FREQ + in ct_xfitimer_reprogram()
|
/sound/core/oss/ |
D | rate.c | 47 unsigned int pos; member 57 data->pos = 0; in rate_init() 69 unsigned int pos = 0; in resample_expand() local 80 pos = data->pos; in resample_expand() 99 if (pos & ~R_MASK) { in resample_expand() 100 pos &= R_MASK; in resample_expand() 107 val = S1 + ((S2 - S1) * (signed int)pos) / BITS; in resample_expand() 114 pos += data->pitch; in resample_expand() 120 data->pos = pos; in resample_expand() 128 unsigned int pos = 0; in resample_shrink() local [all …]
|
/sound/isa/sb/ |
D | emu8000_pcm.c | 465 int voice, unsigned long pos, in emu8k_pcm_copy() argument 471 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_copy() 473 LOOP_WRITE(rec, pos, src, count, COPY_UESR); in emu8k_pcm_copy() 478 int voice, unsigned long pos, in emu8k_pcm_copy_kernel() argument 484 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_copy_kernel() 486 LOOP_WRITE(rec, pos, src, count, COPY_KERNEL); in emu8k_pcm_copy_kernel() 492 int voice, unsigned long pos, unsigned long count) in emu8k_pcm_silence() argument 497 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_silence() 499 LOOP_WRITE(rec, pos, NULL, count, FILL_SILENCE); in emu8k_pcm_silence() 505 #define LOOP_WRITE(rec, pos, _buf, count, mode) \ argument [all …]
|
/sound/usb/caiaq/ |
D | control.c | 38 int pos = kcontrol->private_value; in control_info() local 39 int is_intval = pos & CNT_INTVAL; in control_info() 43 pos &= ~CNT_INTVAL; in control_info() 48 if (pos == 0) { in control_info() 84 int pos = kcontrol->private_value; in control_get() local 86 if (pos & CNT_INTVAL) in control_get() 88 = cdev->control_state[pos & ~CNT_INTVAL]; in control_get() 91 = !!(cdev->control_state[pos / 8] & (1 << pos % 8)); in control_get() 101 int pos = kcontrol->private_value; in control_put() local 117 if (pos & CNT_INTVAL) { in control_put() [all …]
|
/sound/core/ |
D | info.c | 108 static bool valid_pos(loff_t pos, size_t count) in valid_pos() argument 110 if (pos < 0 || (long) pos != pos || (ssize_t) count < 0) in valid_pos() 112 if ((unsigned long) pos + (unsigned long) count < (unsigned long) pos) in valid_pos() 168 loff_t pos; in snd_info_entry_read() local 170 pos = *offset; in snd_info_entry_read() 171 if (!valid_pos(pos, count)) in snd_info_entry_read() 173 if (pos >= entry->size) in snd_info_entry_read() 175 size = entry->size - pos; in snd_info_entry_read() 178 file, buffer, size, pos); in snd_info_entry_read() 180 *offset = pos + size; in snd_info_entry_read() [all …]
|
D | pcm_dmaengine.c | 35 unsigned int pos; member 145 prtd->pos += snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete() 146 if (prtd->pos >= snd_pcm_lib_buffer_bytes(substream)) in dmaengine_pcm_dma_complete() 147 prtd->pos = 0; in dmaengine_pcm_dma_complete() 165 prtd->pos = 0; in dmaengine_pcm_prepare_and_submit() 238 return bytes_to_frames(substream->runtime, prtd->pos); in snd_dmaengine_pcm_pointer_no_residue() 255 unsigned int pos = 0; in snd_dmaengine_pcm_pointer() local 261 pos = buf_size - state.residue; in snd_dmaengine_pcm_pointer() 264 return bytes_to_frames(substream->runtime, pos); in snd_dmaengine_pcm_pointer()
|
D | pcm_trace.h | 12 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t pos, bool irq), 13 TP_ARGS(substream, pos, irq), 20 __field( snd_pcm_uframes_t, pos ) 32 __entry->pos = (pos); 43 (unsigned long)__entry->pos,
|
/sound/isa/ |
D | cmi8328.c | 225 int err, pos; in snd_cmi8328_probe() local 272 pos = array_find(irqs, irq[ndev]); in snd_cmi8328_probe() 273 if (pos < 0) { in snd_cmi8328_probe() 277 val = irq_bits[pos] << 3; in snd_cmi8328_probe() 279 pos = array_find(dma1s, dma1[ndev]); in snd_cmi8328_probe() 280 if (pos < 0) { in snd_cmi8328_probe() 284 val |= dma_bits[pos]; in snd_cmi8328_probe() 287 pos = array_find(dma2s[dma1[ndev]], dma2[ndev]); in snd_cmi8328_probe() 288 if (pos < 0) { in snd_cmi8328_probe() 337 pos = array_find_l(mpu_ports, mpuport[ndev]); in snd_cmi8328_probe() [all …]
|
/sound/soc/blackfin/ |
D | bf5xx-i2s-pcm.c | 229 int channel, unsigned long pos, in bf5xx_pcm_copy() argument 242 pos = bytes_to_frames(runtime, pos); in bf5xx_pcm_copy() 247 dst += pos * sample_size * 8; in bf5xx_pcm_copy() 259 src += pos * sample_size * 8; in bf5xx_pcm_copy() 275 dst += pos; in bf5xx_pcm_copy() 278 src += pos; in bf5xx_pcm_copy() 289 int channel, unsigned long pos, in bf5xx_pcm_copy_user() argument 292 return bf5xx_pcm_copy(substream, channel, pos, (void *)buf, count); in bf5xx_pcm_copy_user() 296 int channel, unsigned long pos, in bf5xx_pcm_silence() argument 309 offset = bytes_to_frames(runtime, pos) * 8 * sample_size; in bf5xx_pcm_silence() [all …]
|
/sound/pci/hda/ |
D | hda_controller_trace.h | 37 TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay), 39 TP_ARGS(chip, dev, pos, delay), 44 __field( unsigned int, pos ) 51 __entry->pos = pos; 55 TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay)
|
D | hda_eld.c | 650 int pos, i; in snd_hdmi_get_eld_ati() local 673 pos = ELD_FIXED_BYTES; in snd_hdmi_get_eld_ati() 707 buf[pos++] = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); in snd_hdmi_get_eld_ati() 723 buf[pos++] = (ati_sad & 0x0000ff) >> 0; in snd_hdmi_get_eld_ati() 724 buf[pos++] = (ati_sad & 0x00ff00) >> 8; in snd_hdmi_get_eld_ati() 725 buf[pos++] = (ati_sad & 0xff0000) >> 16; in snd_hdmi_get_eld_ati() 732 buf[pos++] = ((ati_sad & 0x000000ff) & ~ATI_AUDIODESC_CHANNELS) | 0x1; in snd_hdmi_get_eld_ati() 734 buf[pos++] = (ati_sad & 0xff000000) >> 24; in snd_hdmi_get_eld_ati() 735 buf[pos++] = (ati_sad & 0x00ff0000) >> 16; in snd_hdmi_get_eld_ati() 739 if (pos == ELD_FIXED_BYTES + sink_desc_len) { in snd_hdmi_get_eld_ati() [all …]
|
/sound/isa/gus/ |
D | gus_pcm.c | 305 unsigned int pos, unsigned int count, in snd_gf1_pcm_poke_block() argument 324 snd_gf1_dram_addr(gus, pos); in snd_gf1_pcm_poke_block() 333 pos += 512; in snd_gf1_pcm_poke_block() 339 snd_gf1_poke(gus, pos++, *buf++); in snd_gf1_pcm_poke_block() 340 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block() 344 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block() 356 static int get_bpos(struct gus_pcm_private *pcmp, int voice, unsigned int pos, in get_bpos() argument 359 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2)); in get_bpos() 386 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy() argument 394 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_copy() [all …]
|
/sound/oss/ |
D | dmabuf.c | 642 int pos; in DMAbuf_get_buffer_pointer() local 646 pos = 0; in DMAbuf_get_buffer_pointer() 656 pos = get_dma_residue(chan); in DMAbuf_get_buffer_pointer() 658 pos = dmap->bytes_in_use - pos; in DMAbuf_get_buffer_pointer() 663 if (pos > dmap->fragment_size) in DMAbuf_get_buffer_pointer() 664 pos = 0; in DMAbuf_get_buffer_pointer() 667 if (pos > dmap->fragment_size) in DMAbuf_get_buffer_pointer() 668 pos = 0; in DMAbuf_get_buffer_pointer() 671 if (pos < 0) in DMAbuf_get_buffer_pointer() 672 pos = 0; in DMAbuf_get_buffer_pointer() [all …]
|
/sound/sh/ |
D | sh_dac_audio.c | 188 int channel, unsigned long pos, in snd_sh_dac_pcm_copy() argument 194 if (copy_from_user_toio(chip->data_buffer + pos, src, count)) in snd_sh_dac_pcm_copy() 196 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy() 207 int channel, unsigned long pos, in snd_sh_dac_pcm_copy_kernel() argument 213 memcpy_toio(chip->data_buffer + pos, src, count); in snd_sh_dac_pcm_copy_kernel() 214 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy_kernel() 225 int channel, unsigned long pos, in snd_sh_dac_pcm_silence() argument 231 memset_io(chip->data_buffer + pos, 0, count); in snd_sh_dac_pcm_silence() 232 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_silence()
|
/sound/soc/au1x/ |
D | dbdma2.c | 53 unsigned long pos; /* current byte position being played */ member 112 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb() 114 cd->pos = 0; in au1x_pcm_dmatx_cb() 125 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb() 127 cd->pos = 0; in au1x_pcm_dmarx_cb() 230 pcd->pos = 0; in au1xpsc_pcm_hw_params() 282 return bytes_to_frames(substream->runtime, to_dmadata(substream)->pos); in au1xpsc_pcm_pointer()
|
/sound/soc/codecs/ |
D | sigmadsp.c | 311 unsigned int length, pos; in sigmadsp_fw_load_v2() local 321 pos = sizeof(struct sigma_firmware_header); in sigmadsp_fw_load_v2() 323 while (pos < fw->size - sizeof(*chunk)) { in sigmadsp_fw_load_v2() 324 chunk = (struct sigma_fw_chunk *)(fw->data + pos); in sigmadsp_fw_load_v2() 328 if (length > fw->size - pos || length < sizeof(*chunk)) in sigmadsp_fw_load_v2() 355 pos += ALIGN(length, sizeof(__le32)); in sigmadsp_fw_load_v2() 427 size_t size, pos; in sigmadsp_fw_load_v1() local 430 pos = sizeof(struct sigma_firmware_header); in sigmadsp_fw_load_v1() 432 while (pos + sizeof(*sa) <= fw->size) { in sigmadsp_fw_load_v1() 433 sa = (struct sigma_action *)(fw->data + pos); in sigmadsp_fw_load_v1() [all …]
|
D | wm_adsp.c | 1431 static int wm_coeff_parse_string(int bytes, const u8 **pos, const u8 **str) in wm_coeff_parse_string() argument 1437 length = **pos; in wm_coeff_parse_string() 1440 length = le16_to_cpu(*((__le16 *)*pos)); in wm_coeff_parse_string() 1447 *str = *pos + bytes; in wm_coeff_parse_string() 1449 *pos += ((length + bytes) + 3) & ~0x03; in wm_coeff_parse_string() 1454 static int wm_coeff_parse_int(int bytes, const u8 **pos) in wm_coeff_parse_int() argument 1460 val = le16_to_cpu(*((__le16 *)*pos)); in wm_coeff_parse_int() 1463 val = le32_to_cpu(*((__le32 *)*pos)); in wm_coeff_parse_int() 1469 *pos += bytes; in wm_coeff_parse_int() 1632 unsigned int pos = 0; in wm_adsp_load() local [all …]
|
/sound/drivers/opl4/ |
D | opl4_proc.c | 54 size_t count, loff_t pos) in snd_opl4_mem_proc_read() argument 62 snd_opl4_read_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_read() 75 size_t count, loff_t pos) in snd_opl4_mem_proc_write() argument 87 snd_opl4_write_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_write()
|
/sound/pci/korg1212/ |
D | korg1212.c | 1276 static int snd_korg1212_silence(struct snd_korg1212 *korg1212, int pos, int count, int offset, int … in snd_korg1212_silence() argument 1278 struct KorgAudioFrame * dst = korg1212->playDataBufsPtr[0].bufferData + pos; in snd_korg1212_silence() 1282 pos, offset, size, count); in snd_korg1212_silence() 1283 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_silence() 1303 void __user *dst, int pos, int count, in snd_korg1212_copy_to() argument 1311 pos = bytes_to_frames(runtime, pos); in snd_korg1212_copy_to() 1314 src = korg1212->recordDataBufsPtr[0].bufferData + pos; in snd_korg1212_copy_to() 1316 pos, size, count); in snd_korg1212_copy_to() 1317 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_copy_to() 1340 void __user *src, int pos, int count, in snd_korg1212_copy_from() argument [all …]
|
/sound/soc/sh/rcar/ |
D | ssiu.c | 19 #define for_each_rsnd_ssiu(pos, priv, i) \ argument 22 ((pos) = ((struct rsnd_ssiu *)(priv)->ssiu + i)); \ 161 struct rsnd_mod *pos; in rsnd_ssiu_init_gen2() local 174 for_each_rsnd_mod_array(i, pos, io, rsnd_ssi_array) { in rsnd_ssiu_init_gen2() 177 rsnd_mod_id(pos) << shift; in rsnd_ssiu_init_gen2()
|
/sound/soc/ |
D | soc-topology.c | 118 const u8 *pos; /* read postion */ member 153 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count() 189 return (unsigned long)(tplg->pos - tplg->fw->data); in soc_tplg_get_offset() 772 be = (struct snd_soc_tplg_bytes_control *)tplg->pos; in soc_tplg_dbytes_create() 783 tplg->pos += (sizeof(struct snd_soc_tplg_bytes_control) + in soc_tplg_dbytes_create() 853 mc = (struct snd_soc_tplg_mixer_control *)tplg->pos; in soc_tplg_dmixer_create() 863 tplg->pos += (sizeof(struct snd_soc_tplg_mixer_control) + in soc_tplg_dmixer_create() 1001 ec = (struct snd_soc_tplg_enum_control *)tplg->pos; in soc_tplg_denum_create() 1002 tplg->pos += (sizeof(struct snd_soc_tplg_enum_control) + in soc_tplg_denum_create() 1109 tplg->pos += hdr->size + hdr->payload_size; in soc_tplg_kcontrol_elems_load() [all …]
|
/sound/soc/dwc/ |
D | dwc-pcm.c | 238 snd_pcm_uframes_t pos; in dw_pcm_pointer() local 241 pos = READ_ONCE(dev->tx_ptr); in dw_pcm_pointer() 243 pos = READ_ONCE(dev->rx_ptr); in dw_pcm_pointer() 245 return pos < runtime->buffer_size ? pos : 0; in dw_pcm_pointer()
|
/sound/usb/line6/ |
D | playback.c | 212 if (line6pcm->out.pos + urb_frames > runtime->buffer_size) { in submit_audio_out_urb() 219 len = runtime->buffer_size - line6pcm->out.pos; in submit_audio_out_urb() 224 line6pcm->out.pos * bytes_per_frame, in submit_audio_out_urb() 235 line6pcm->out.pos * bytes_per_frame, in submit_audio_out_urb() 239 line6pcm->out.pos += urb_frames; in submit_audio_out_urb() 240 if (line6pcm->out.pos >= runtime->buffer_size) in submit_audio_out_urb() 241 line6pcm->out.pos -= runtime->buffer_size; in submit_audio_out_urb()
|