/sound/pci/ctxfi/ |
D | ctvmem.c | 33 struct list_head *pos; in get_vm_block() local 43 list_for_each(pos, &vm->unused) { in get_vm_block() 44 entry = list_entry(pos, struct ct_vm_block, list); in get_vm_block() 48 if (pos == &vm->unused) in get_vm_block() 78 struct list_head *pos, *pre; in put_vm_block() local 86 list_for_each(pos, &vm->unused) { in put_vm_block() 87 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block() 91 if (pos == &vm->unused) { in put_vm_block() 100 __list_add(&block->list, pos->prev, pos); in put_vm_block() 105 pos = &entry->list; in put_vm_block() [all …]
|
D | ctimap.c | 21 struct list_head *pos, *pre, *head; in input_mapper_add() local 33 list_for_each(pos, head) { in input_mapper_add() 34 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add() 41 if (pos != head) { in input_mapper_add() 42 pre = pos->prev; in input_mapper_add() 46 __list_add(&entry->list, pos->prev, pos); in input_mapper_add() 49 pos = head->next; in input_mapper_add() 54 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add() 99 struct list_head *pos; in free_input_mapper_list() local 102 pos = head->next; in free_input_mapper_list() [all …]
|
/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 | 452 int voice, unsigned long pos, in emu8k_pcm_copy() argument 458 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_copy() 460 LOOP_WRITE(rec, pos, src, count, COPY_USER); in emu8k_pcm_copy() 465 int voice, unsigned long pos, in emu8k_pcm_copy_kernel() argument 471 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_copy_kernel() 473 LOOP_WRITE(rec, pos, src, count, COPY_KERNEL); in emu8k_pcm_copy_kernel() 479 int voice, unsigned long pos, unsigned long count) in emu8k_pcm_silence() argument 484 pos = (pos << 1) + rec->loop_start[voice]; in emu8k_pcm_silence() 486 LOOP_WRITE(rec, pos, NULL, count, FILL_SILENCE); in emu8k_pcm_silence() 492 #define LOOP_WRITE(rec, pos, _buf, count, mode) \ argument [all …]
|
/sound/soc/stm/ |
D | stm32_adfsdm.c | 40 unsigned int pos; member 172 unsigned int old_pos = priv->pos; in stm32_afsdm_pcm_cb() 183 __func__, &pcm_buff[priv->pos], priv->pos, src_size); in stm32_afsdm_pcm_cb() 185 if ((priv->pos + src_size) > buff_size) { in stm32_afsdm_pcm_cb() 187 stm32_memcpy_32to16(&pcm_buff[priv->pos], src_buff, in stm32_afsdm_pcm_cb() 188 buff_size - priv->pos); in stm32_afsdm_pcm_cb() 190 memcpy(&pcm_buff[priv->pos], src_buff, in stm32_afsdm_pcm_cb() 191 buff_size - priv->pos); in stm32_afsdm_pcm_cb() 192 cur_size -= buff_size - priv->pos; in stm32_afsdm_pcm_cb() 193 priv->pos = 0; in stm32_afsdm_pcm_cb() [all …]
|
/sound/soc/intel/catpt/ |
D | dsp.c | 460 u8 *dump, *pos; in catpt_coredump() local 478 pos = dump; in catpt_coredump() 480 hdr = (struct catpt_dump_section_hdr *)pos; in catpt_coredump() 485 pos += sizeof(*hdr); in catpt_coredump() 498 memcpy(pos, info, min_t(u32, eof - info, CATPT_DUMP_HASH_SIZE)); in catpt_coredump() 499 pos += CATPT_DUMP_HASH_SIZE; in catpt_coredump() 501 hdr = (struct catpt_dump_section_hdr *)pos; in catpt_coredump() 506 pos += sizeof(*hdr); in catpt_coredump() 508 memcpy_fromio(pos, cdev->lpe_ba + cdev->iram.start, hdr->size); in catpt_coredump() 509 pos += hdr->size; in catpt_coredump() [all …]
|
D | pcm.c | 103 struct catpt_stream_runtime *pos, *result = NULL; in catpt_stream_find() local 106 list_for_each_entry(pos, &cdev->stream_list, node) { in catpt_stream_find() 107 if (pos->info.stream_hw_id == stream_hw_id) { in catpt_stream_find() 108 result = pos; in catpt_stream_find() 120 u32 pos; in catpt_stream_read_position() local 122 memcpy_fromio(&pos, cdev->lpe_ba + stream->info.read_pos_regaddr, in catpt_stream_read_position() 123 sizeof(pos)); in catpt_stream_read_position() 124 return pos; in catpt_stream_read_position() 334 struct snd_kcontrol *pos; in catpt_dai_apply_usettings() local 357 list_for_each_entry(pos, &component->card->snd_card->controls, list) { in catpt_dai_apply_usettings() [all …]
|
/sound/usb/caiaq/ |
D | control.c | 25 int pos = kcontrol->private_value; in control_info() local 26 int is_intval = pos & CNT_INTVAL; in control_info() 30 pos &= ~CNT_INTVAL; in control_info() 35 if (pos == 0) { in control_info() 71 int pos = kcontrol->private_value; in control_get() local 73 if (pos & CNT_INTVAL) in control_get() 75 = cdev->control_state[pos & ~CNT_INTVAL]; in control_get() 78 = !!(cdev->control_state[pos / 8] & (1 << pos % 8)); in control_get() 88 int pos = kcontrol->private_value; in control_put() local 104 if (pos & CNT_INTVAL) { in control_put() [all …]
|
/sound/soc/sof/intel/ |
D | hda-pcm.c | 160 snd_pcm_uframes_t pos; in hda_dsp_pcm_pointer() local 171 pos = spcm->stream[substream->stream].posn.host_posn; in hda_dsp_pcm_pointer() 184 pos = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, in hda_dsp_pcm_pointer() 206 pos = snd_hdac_stream_get_pos_posbuf(hstream); in hda_dsp_pcm_pointer() 209 if (pos >= hstream->bufsize) in hda_dsp_pcm_pointer() 210 pos = 0; in hda_dsp_pcm_pointer() 213 pos = bytes_to_frames(substream->runtime, pos); in hda_dsp_pcm_pointer() 216 hstream->index, substream->stream, pos); in hda_dsp_pcm_pointer() 217 return pos; in hda_dsp_pcm_pointer()
|
/sound/core/ |
D | info.c | 92 static bool valid_pos(loff_t pos, size_t count) in valid_pos() argument 94 if (pos < 0 || (long) pos != pos || (ssize_t) count < 0) in valid_pos() 96 if ((unsigned long) pos + (unsigned long) count < (unsigned long) pos) in valid_pos() 152 loff_t pos; in snd_info_entry_read() local 154 pos = *offset; in snd_info_entry_read() 155 if (!valid_pos(pos, count)) in snd_info_entry_read() 157 if (pos >= entry->size) in snd_info_entry_read() 159 size = entry->size - pos; in snd_info_entry_read() 162 file, buffer, size, pos); in snd_info_entry_read() 164 *offset = pos + size; in snd_info_entry_read() [all …]
|
D | pcm_dmaengine.c | 26 unsigned int pos; member 139 new_pos = prtd->pos + snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete() 142 prtd->pos = new_pos; in dmaengine_pcm_dma_complete() 160 prtd->pos = 0; in dmaengine_pcm_prepare_and_submit() 233 return bytes_to_frames(substream->runtime, prtd->pos); in snd_dmaengine_pcm_pointer_no_residue() 251 unsigned int pos = 0; in snd_dmaengine_pcm_pointer() local 257 pos = buf_size - state.residue; in snd_dmaengine_pcm_pointer() 263 return bytes_to_frames(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 | 226 int err, pos; in snd_cmi8328_probe() local 273 pos = array_find(irqs, irq[ndev]); in snd_cmi8328_probe() 274 if (pos < 0) { in snd_cmi8328_probe() 278 val = irq_bits[pos] << 3; in snd_cmi8328_probe() 280 pos = array_find(dma1s, dma1[ndev]); in snd_cmi8328_probe() 281 if (pos < 0) { in snd_cmi8328_probe() 285 val |= dma_bits[pos]; in snd_cmi8328_probe() 288 pos = array_find(dma2s[dma1[ndev]], dma2[ndev]); in snd_cmi8328_probe() 289 if (pos < 0) { in snd_cmi8328_probe() 338 pos = array_find_l(mpu_ports, mpuport[ndev]); in snd_cmi8328_probe() [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 | 637 int pos, i; in snd_hdmi_get_eld_ati() local 660 pos = ELD_FIXED_BYTES; in snd_hdmi_get_eld_ati() 694 buf[pos++] = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); in snd_hdmi_get_eld_ati() 710 buf[pos++] = (ati_sad & 0x0000ff) >> 0; in snd_hdmi_get_eld_ati() 711 buf[pos++] = (ati_sad & 0x00ff00) >> 8; in snd_hdmi_get_eld_ati() 712 buf[pos++] = (ati_sad & 0xff0000) >> 16; in snd_hdmi_get_eld_ati() 719 buf[pos++] = ((ati_sad & 0x000000ff) & ~ATI_AUDIODESC_CHANNELS) | 0x1; in snd_hdmi_get_eld_ati() 721 buf[pos++] = (ati_sad & 0xff000000) >> 24; in snd_hdmi_get_eld_ati() 722 buf[pos++] = (ati_sad & 0x00ff0000) >> 16; in snd_hdmi_get_eld_ati() 726 if (pos == ELD_FIXED_BYTES + sink_desc_len) { in snd_hdmi_get_eld_ati() [all …]
|
/sound/isa/gus/ |
D | gus_pcm.c | 290 unsigned int pos, unsigned int count, in snd_gf1_pcm_poke_block() argument 309 snd_gf1_dram_addr(gus, pos); in snd_gf1_pcm_poke_block() 318 pos += 512; in snd_gf1_pcm_poke_block() 324 snd_gf1_poke(gus, pos++, *buf++); in snd_gf1_pcm_poke_block() 325 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block() 329 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block() 341 static int get_bpos(struct gus_pcm_private *pcmp, int voice, unsigned int pos, in get_bpos() argument 344 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2)); in get_bpos() 371 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy() argument 379 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_copy() [all …]
|
/sound/xen/ |
D | xen_snd_front_alsa.c | 606 int channel, unsigned long pos, void __user *src, in alsa_pb_copy_user() argument 611 if (unlikely(pos + count > stream->buffer_sz)) in alsa_pb_copy_user() 614 if (copy_from_user(stream->buffer + pos, src, count)) in alsa_pb_copy_user() 617 return xen_snd_front_stream_write(&stream->evt_pair->req, pos, count); in alsa_pb_copy_user() 621 int channel, unsigned long pos, void *src, in alsa_pb_copy_kernel() argument 626 if (unlikely(pos + count > stream->buffer_sz)) in alsa_pb_copy_kernel() 629 memcpy(stream->buffer + pos, src, count); in alsa_pb_copy_kernel() 631 return xen_snd_front_stream_write(&stream->evt_pair->req, pos, count); in alsa_pb_copy_kernel() 635 int channel, unsigned long pos, void __user *dst, in alsa_cap_copy_user() argument 641 if (unlikely(pos + count > stream->buffer_sz)) in alsa_cap_copy_user() [all …]
|
/sound/sh/ |
D | sh_dac_audio.c | 160 int channel, unsigned long pos, in snd_sh_dac_pcm_copy() argument 166 if (copy_from_user_toio(chip->data_buffer + pos, src, count)) in snd_sh_dac_pcm_copy() 168 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy() 179 int channel, unsigned long pos, in snd_sh_dac_pcm_copy_kernel() argument 185 memcpy_toio(chip->data_buffer + pos, src, count); in snd_sh_dac_pcm_copy_kernel() 186 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy_kernel() 197 int channel, unsigned long pos, in snd_sh_dac_pcm_silence() argument 203 memset_io(chip->data_buffer + pos, 0, count); in snd_sh_dac_pcm_silence() 204 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_silence()
|
/sound/soc/sof/ |
D | debug.c | 443 loff_t pos = *ppos; in sof_dfsentry_read() local 470 if (pos < 0) in sof_dfsentry_read() 472 if (pos >= size || !count) in sof_dfsentry_read() 475 if (count > size - pos) in sof_dfsentry_read() 476 count = size - pos; in sof_dfsentry_read() 479 pos = ALIGN_DOWN(pos, 4); in sof_dfsentry_read() 485 if (unlikely(pos != *ppos)) { in sof_dfsentry_read() 486 skip = *ppos - pos; in sof_dfsentry_read() 487 if (pos + size + 4 < dfse->size) in sof_dfsentry_read() 505 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read() [all …]
|
D | trace.c | 169 loff_t pos = 0; in sof_dfsentry_trace_filter_write() local 186 ret = simple_write_to_buffer(string, count, &pos, from, count); in sof_dfsentry_trace_filter_write() 236 loff_t pos, size_t buffer_size) in sof_trace_avail() argument 245 if (host_offset < pos) in sof_trace_avail() 246 return buffer_size - pos; in sof_trace_avail() 249 if (host_offset > pos) in sof_trace_avail() 250 return host_offset - pos; in sof_trace_avail() 256 loff_t pos, size_t buffer_size) in sof_wait_trace_avail() argument 259 size_t ret = sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail() 285 return sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail()
|
/sound/soc/au1x/ |
D | dbdma2.c | 51 unsigned long pos; /* current byte position being played */ member 110 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb() 112 cd->pos = 0; in au1x_pcm_dmatx_cb() 123 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb() 125 cd->pos = 0; in au1x_pcm_dmarx_cb() 224 pcd->pos = 0; in au1xpsc_pcm_hw_params() 274 to_dmadata(substream, component)->pos); in au1xpsc_pcm_pointer()
|
/sound/soc/codecs/ |
D | sigmadsp.c | 324 unsigned int length, pos; in sigmadsp_fw_load_v2() local 334 pos = sizeof(struct sigma_firmware_header); in sigmadsp_fw_load_v2() 336 while (pos < fw->size - sizeof(*chunk)) { in sigmadsp_fw_load_v2() 337 chunk = (struct sigma_fw_chunk *)(fw->data + pos); in sigmadsp_fw_load_v2() 341 if (length > fw->size - pos || length < sizeof(*chunk)) in sigmadsp_fw_load_v2() 368 pos += ALIGN(length, sizeof(__le32)); in sigmadsp_fw_load_v2() 440 size_t size, pos; in sigmadsp_fw_load_v1() local 443 pos = sizeof(struct sigma_firmware_header); in sigmadsp_fw_load_v1() 445 while (pos + sizeof(*sa) <= fw->size) { in sigmadsp_fw_load_v1() 446 sa = (struct sigma_action *)(fw->data + pos); in sigmadsp_fw_load_v1() [all …]
|
D | wm_adsp.c | 1554 static int wm_coeff_parse_string(int bytes, const u8 **pos, const u8 **str) in wm_coeff_parse_string() argument 1560 length = **pos; in wm_coeff_parse_string() 1563 length = le16_to_cpu(*((__le16 *)*pos)); in wm_coeff_parse_string() 1570 *str = *pos + bytes; in wm_coeff_parse_string() 1572 *pos += ((length + bytes) + 3) & ~0x03; in wm_coeff_parse_string() 1577 static int wm_coeff_parse_int(int bytes, const u8 **pos) in wm_coeff_parse_int() argument 1583 val = le16_to_cpu(*((__le16 *)*pos)); in wm_coeff_parse_int() 1586 val = le32_to_cpu(*((__le32 *)*pos)); in wm_coeff_parse_int() 1592 *pos += bytes; in wm_coeff_parse_int() 1763 unsigned int pos, in wm_adsp1_parse_sizes() argument [all …]
|
/sound/drivers/opl4/ |
D | opl4_proc.c | 41 size_t count, loff_t pos) in snd_opl4_mem_proc_read() argument 49 snd_opl4_read_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_read() 62 size_t count, loff_t pos) in snd_opl4_mem_proc_write() argument 74 snd_opl4_write_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_write()
|
/sound/pci/korg1212/ |
D | korg1212.c | 1261 static int snd_korg1212_silence(struct snd_korg1212 *korg1212, int pos, int count, int offset, int … in snd_korg1212_silence() argument 1263 struct KorgAudioFrame * dst = korg1212->playDataBufsPtr[0].bufferData + pos; in snd_korg1212_silence() 1267 pos, offset, size, count); in snd_korg1212_silence() 1268 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_silence() 1288 void __user *dst, int pos, int count, in snd_korg1212_copy_to() argument 1296 pos = bytes_to_frames(runtime, pos); in snd_korg1212_copy_to() 1299 src = korg1212->recordDataBufsPtr[0].bufferData + pos; in snd_korg1212_copy_to() 1301 pos, size, count); in snd_korg1212_copy_to() 1302 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_copy_to() 1325 void __user *src, int pos, int count, in snd_korg1212_copy_from() argument [all …]
|