/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/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 | 11 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t pos, bool irq), 12 TP_ARGS(substream, pos, irq), 19 __field( snd_pcm_uframes_t, pos ) 31 __entry->pos = (pos); 42 (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/pci/hda/ |
D | hda_controller_trace.h | 36 TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay), 38 TP_ARGS(chip, dev, pos, delay), 43 __field( unsigned int, pos ) 50 __entry->pos = pos; 54 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/oss/ |
D | dmabuf.c | 640 int pos; in DMAbuf_get_buffer_pointer() local 644 pos = 0; in DMAbuf_get_buffer_pointer() 654 pos = get_dma_residue(chan); in DMAbuf_get_buffer_pointer() 656 pos = dmap->bytes_in_use - pos; in DMAbuf_get_buffer_pointer() 661 if (pos > dmap->fragment_size) in DMAbuf_get_buffer_pointer() 662 pos = 0; in DMAbuf_get_buffer_pointer() 665 if (pos > dmap->fragment_size) in DMAbuf_get_buffer_pointer() 666 pos = 0; in DMAbuf_get_buffer_pointer() 669 if (pos < 0) in DMAbuf_get_buffer_pointer() 670 pos = 0; in DMAbuf_get_buffer_pointer() [all …]
|
/sound/isa/sb/ |
D | emu8000_pcm.c | 443 snd_pcm_uframes_t pos, in emu8k_pcm_copy() argument 456 err = emu8k_transfer_block(emu, pos + rec->loop_start[i], buf, count); in emu8k_pcm_copy() 463 return emu8k_transfer_block(emu, pos + rec->loop_start[voice], src, count); in emu8k_pcm_copy() 481 snd_pcm_uframes_t pos, in emu8k_pcm_silence() argument 492 err = emu8k_silence_block(emu, pos + rec->loop_start[0], count / 2); in emu8k_pcm_silence() 495 return emu8k_silence_block(emu, pos + rec->loop_start[1], count / 2); in emu8k_pcm_silence() 497 return emu8k_silence_block(emu, pos + rec->loop_start[voice], count); in emu8k_pcm_silence() 509 snd_pcm_uframes_t pos, in emu8k_pcm_copy() argument 518 EMU8000_SMALW_WRITE(emu, pos + rec->loop_start[0]); in emu8k_pcm_copy() 520 EMU8000_SMARW_WRITE(emu, pos + rec->loop_start[1]); in emu8k_pcm_copy() [all …]
|
/sound/soc/blackfin/ |
D | bf5xx-i2s-pcm.c | 229 snd_pcm_uframes_t pos, void *buf, snd_pcm_uframes_t count) in bf5xx_pcm_copy() argument 244 dst += pos * sample_size * 8; in bf5xx_pcm_copy() 256 src += pos * sample_size * 8; in bf5xx_pcm_copy() 272 dst += frames_to_bytes(runtime, pos); in bf5xx_pcm_copy() 275 src += frames_to_bytes(runtime, pos); in bf5xx_pcm_copy() 286 int channel, snd_pcm_uframes_t pos, snd_pcm_uframes_t count) in bf5xx_pcm_silence() argument 298 offset = pos * 8 * sample_size; in bf5xx_pcm_silence() 301 offset = frames_to_bytes(runtime, pos); in bf5xx_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/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() 358 snd_pcm_uframes_t pos, in snd_gf1_pcm_playback_copy() argument 366 bpos = samples_to_bytes(runtime, pos) + (voice * (pcmp->dma_size / 2)); in snd_gf1_pcm_playback_copy() 390 snd_pcm_uframes_t pos, in snd_gf1_pcm_playback_silence() argument 397 bpos = samples_to_bytes(runtime, pos) + (voice * (pcmp->dma_size / 2)); in snd_gf1_pcm_playback_silence() [all …]
|
/sound/soc/codecs/ |
D | sigmadsp.c | 312 unsigned int length, pos; in sigmadsp_fw_load_v2() local 322 pos = sizeof(struct sigma_firmware_header); in sigmadsp_fw_load_v2() 324 while (pos < fw->size - sizeof(*chunk)) { in sigmadsp_fw_load_v2() 325 chunk = (struct sigma_fw_chunk *)(fw->data + pos); in sigmadsp_fw_load_v2() 329 if (length > fw->size - pos || length < sizeof(*chunk)) in sigmadsp_fw_load_v2() 356 pos += ALIGN(length, sizeof(__le32)); in sigmadsp_fw_load_v2() 428 size_t size, pos; in sigmadsp_fw_load_v1() local 431 pos = sizeof(struct sigma_firmware_header); in sigmadsp_fw_load_v1() 433 while (pos + sizeof(*sa) <= fw->size) { in sigmadsp_fw_load_v1() 434 sa = (struct sigma_action *)(fw->data + pos); in sigmadsp_fw_load_v1() [all …]
|
D | wm_adsp.c | 1197 static int wm_coeff_parse_string(int bytes, const u8 **pos, const u8 **str) in wm_coeff_parse_string() argument 1203 length = **pos; in wm_coeff_parse_string() 1206 length = le16_to_cpu(*((__le16 *)*pos)); in wm_coeff_parse_string() 1213 *str = *pos + bytes; in wm_coeff_parse_string() 1215 *pos += ((length + bytes) + 3) & ~0x03; in wm_coeff_parse_string() 1220 static int wm_coeff_parse_int(int bytes, const u8 **pos) in wm_coeff_parse_int() argument 1226 val = le16_to_cpu(*((__le16 *)*pos)); in wm_coeff_parse_int() 1229 val = le32_to_cpu(*((__le32 *)*pos)); in wm_coeff_parse_int() 1235 *pos += bytes; in wm_coeff_parse_int() 1360 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/soc/ |
D | soc-topology.c | 60 const u8 *pos; /* read postion */ member 95 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count() 131 return (unsigned long)(tplg->pos - tplg->fw->data); in soc_tplg_get_offset() 680 be = (struct snd_soc_tplg_bytes_control *)tplg->pos; in soc_tplg_dbytes_create() 691 tplg->pos += (sizeof(struct snd_soc_tplg_bytes_control) + in soc_tplg_dbytes_create() 761 mc = (struct snd_soc_tplg_mixer_control *)tplg->pos; in soc_tplg_dmixer_create() 771 tplg->pos += (sizeof(struct snd_soc_tplg_mixer_control) + in soc_tplg_dmixer_create() 908 ec = (struct snd_soc_tplg_enum_control *)tplg->pos; in soc_tplg_denum_create() 909 tplg->pos += (sizeof(struct snd_soc_tplg_enum_control) + in soc_tplg_denum_create() 1016 tplg->pos += hdr->size + hdr->payload_size; in soc_tplg_kcontrol_elems_load() [all …]
|
/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() 1302 static int snd_korg1212_copy_to(struct snd_korg1212 *korg1212, void __user *dst, int pos, int count… in snd_korg1212_copy_to() argument 1304 struct KorgAudioFrame * src = korg1212->recordDataBufsPtr[0].bufferData + pos; in snd_korg1212_copy_to() 1308 pos, offset, size); in snd_korg1212_copy_to() 1309 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_copy_to() 1332 static int snd_korg1212_copy_from(struct snd_korg1212 *korg1212, void __user *src, int pos, int cou… in snd_korg1212_copy_from() argument 1334 struct KorgAudioFrame * dst = korg1212->playDataBufsPtr[0].bufferData + pos; in snd_korg1212_copy_from() [all …]
|
/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()
|
/sound/soc/sh/ |
D | dma-sh7760.c | 281 unsigned long pos; in camelot_pos() local 290 pos = cam->rx_period ? cam->rx_period_size : 0; in camelot_pos() 292 pos = cam->tx_period ? cam->tx_period_size : 0; in camelot_pos() 294 return bytes_to_frames(runtime, pos); in camelot_pos()
|
/sound/soc/fsl/ |
D | fsl_asrc_dma.c | 54 pair->pos += snd_pcm_lib_period_bytes(substream); in fsl_asrc_dma_complete() 55 if (pair->pos >= snd_pcm_lib_buffer_bytes(substream)) in fsl_asrc_dma_complete() 56 pair->pos = 0; in fsl_asrc_dma_complete() 74 pair->pos = 0; in fsl_asrc_dma_prepare_and_submit() 322 return bytes_to_frames(substream->runtime, pair->pos); in fsl_asrc_dma_pcm_pointer()
|
/sound/soc/dwc/ |
D | designware_pcm.c | 186 snd_pcm_uframes_t pos = READ_ONCE(dev->tx_ptr); in dw_pcm_pointer() local 188 return pos < runtime->buffer_size ? pos : 0; in dw_pcm_pointer()
|