/sound/core/ |
D | compress_offload.c | 188 struct snd_compr_avail *avail) in snd_compr_calc_avail() argument 190 memset(avail, 0, sizeof(*avail)); in snd_compr_calc_avail() 191 snd_compr_update_tstamp(stream, &avail->tstamp); in snd_compr_calc_avail() 214 avail->avail = stream->runtime->total_bytes_available - in snd_compr_calc_avail() 217 avail->avail = stream->runtime->buffer_size - avail->avail; in snd_compr_calc_avail() 219 pr_debug("ret avail as %lld\n", avail->avail); in snd_compr_calc_avail() 220 return avail->avail; in snd_compr_calc_avail() 225 struct snd_compr_avail avail; in snd_compr_get_avail() local 227 return snd_compr_calc_avail(stream, &avail); in snd_compr_get_avail() 234 size_t avail; in snd_compr_ioctl_avail() local [all …]
|
D | rawmidi.c | 57 u32 avail; /* available bytes */ member 69 size_t avail; /* available bytes */ member 100 return runtime->avail >= runtime->avail_min; in __snd_rawmidi_ready() 120 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append() 121 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 159 runtime->avail = 0; in snd_rawmidi_runtime_create() 161 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create() 203 runtime->avail = is_input ? 0 : runtime->buffer_size; in __reset_runtime_ptrs() 233 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output() 237 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output() [all …]
|
D | rawmidi_compat.c | 49 u32 avail; member 85 .avail = status.avail, in snd_rawmidi_ioctl_status_compat64()
|
D | pcm_lib.c | 74 snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime); in snd_pcm_playback_silence() local 75 if (avail > runtime->buffer_size) in snd_pcm_playback_silence() 76 avail = runtime->buffer_size; in snd_pcm_playback_silence() 77 runtime->silence_filled = avail > 0 ? avail : 0; in snd_pcm_playback_silence() 183 snd_pcm_uframes_t avail; in snd_pcm_update_state() local 185 avail = snd_pcm_avail(substream); in snd_pcm_update_state() 186 if (avail > runtime->avail_max) in snd_pcm_update_state() 187 runtime->avail_max = avail; in snd_pcm_update_state() 189 if (avail >= runtime->buffer_size) { in snd_pcm_update_state() 194 if (avail >= runtime->stop_threshold) { in snd_pcm_update_state() [all …]
|
D | pcm_trace.h | 116 __field( snd_pcm_uframes_t, avail ) 127 …__entry->avail = (substream)->stream ? snd_pcm_capture_avail(substream->runtime) : snd_pcm_playbac… 138 __entry->avail,
|
D | pcm_native.c | 1038 status->avail = snd_pcm_avail(substream); in snd_pcm_status64() 1105 .avail = status64.avail, in snd_pcm_status_user32() 2905 snd_pcm_sframes_t avail) in forward_appl_ptr() argument 2911 if (avail <= 0) in forward_appl_ptr() 2913 if (frames > (snd_pcm_uframes_t)avail) in forward_appl_ptr() 2914 frames = avail; in forward_appl_ptr() 2925 snd_pcm_sframes_t avail) in rewind_appl_ptr() argument 2931 if (avail <= 0) in rewind_appl_ptr() 2933 if (frames > (snd_pcm_uframes_t)avail) in rewind_appl_ptr() 2934 frames = avail; in rewind_appl_ptr() [all …]
|
D | pcm_compat.c | 168 u32 avail; member 215 .avail = status.avail, in snd_pcm_status_user_compat64()
|
D | pcm.c | 469 snd_iprintf(buffer, "avail : %ld\n", status.avail); in snd_pcm_substream_proc_status_read()
|
/sound/pci/ctxfi/ |
D | ctresource.c | 77 if (n > mgr->avail) in mgr_get_resource() 82 mgr->avail -= n; in mgr_get_resource() 90 mgr->avail += n; in mgr_put_resource() 244 mgr->avail = mgr->amount = amount; in rsc_mgr_init() 286 mgr->avail = mgr->amount = 0; in rsc_mgr_uninit()
|
D | ctresource.h | 56 unsigned int avail; /* The amount of currently available resources */ member
|
/sound/soc/mediatek/common/ |
D | mtk-btcvsd.c | 704 unsigned long avail; in mtk_btcvsd_snd_read() local 711 avail = (bt->rx->packet_w - bt->rx->packet_r) * packet_size; in mtk_btcvsd_snd_read() 717 if (!avail) { in mtk_btcvsd_snd_read() 728 avail % packet_size != 0) { in mtk_btcvsd_snd_read() 730 __func__, count, avail, packet_size); in mtk_btcvsd_snd_read() 733 avail -= avail % packet_size; in mtk_btcvsd_snd_read() 736 if (count > avail) in mtk_btcvsd_snd_read() 737 read_size = avail; in mtk_btcvsd_snd_read() 783 int written_size = count, avail = 0, cur_write_idx, write_size, cont; in mtk_btcvsd_snd_write() local 803 avail = bt->tx->buf_size - in mtk_btcvsd_snd_write() [all …]
|
/sound/soc/sof/ |
D | trace.c | 76 size_t avail, buffer_size = dfse->size; in sof_dfsentry_trace_read() local 96 avail = sof_wait_trace_avail(sdev, lpos, buffer_size); in sof_dfsentry_trace_read() 103 count = avail > count ? count : avail; in sof_dfsentry_trace_read()
|
/sound/soc/sprd/ |
D | sprd-mcdt.c | 573 int avail, i = 0, words = size / 4; in sprd_mcdt_chan_write() local 591 avail = sprd_mcdt_dac_fifo_avail(mcdt, chan->id); in sprd_mcdt_chan_write() 592 if (size > avail) { in sprd_mcdt_chan_write() 624 int i = 0, avail, words = size / 4; in sprd_mcdt_chan_read() local 641 avail = sprd_mcdt_adc_fifo_avail(mcdt, chan->id); in sprd_mcdt_chan_read() 642 if (size > avail) in sprd_mcdt_chan_read() 643 words = avail / 4; in sprd_mcdt_chan_read()
|
/sound/soc/qcom/qdsp6/ |
D | q6asm-dai.c | 521 uint64_t avail; in compress_event_handler() local 580 avail = prtd->bytes_received - prtd->bytes_sent; in compress_event_handler() 581 if (avail > prtd->pcm_count) { in compress_event_handler() 586 bytes_to_write = avail; in compress_event_handler() 1070 int avail, bytes_in_flight = 0; in q6asm_compr_copy() local 1117 avail = prtd->bytes_received - prtd->bytes_sent; in q6asm_compr_copy() 1119 if (avail < prtd->pcm_count) in q6asm_compr_copy() 1120 bytes_to_write = avail; in q6asm_compr_copy()
|
/sound/firewire/ |
D | amdtp-stream.c | 930 unsigned int avail; in pool_ideal_seq_descs() local 936 avail = d->seq_tail; in pool_ideal_seq_descs() 937 if (seq_index > avail) in pool_ideal_seq_descs() 938 avail += d->seq_size; in pool_ideal_seq_descs() 939 avail -= seq_index; in pool_ideal_seq_descs() 941 if (avail < min_avail) in pool_ideal_seq_descs() 942 min_avail = avail; in pool_ideal_seq_descs()
|
/sound/soc/codecs/ |
D | wm_adsp.c | 450 int avail; member 1457 int avail = SNDRV_CTL_ELEM_ID_NAME_MAXLEN - ret - 2; in wm_adsp_create_control() local 1461 avail -= strlen(dsp->component->name_prefix) + 1; in wm_adsp_create_control() 1464 if (subname_len > avail) in wm_adsp_create_control() 1465 skip = subname_len - avail; in wm_adsp_create_control() 3792 buf->avail = 0; in wm_adsp_buffer_clear() 4077 int write_index, read_index, avail; in wm_adsp_buffer_update_avail() local 4105 avail = write_index - buf->read_index; in wm_adsp_buffer_update_avail() 4106 if (avail < 0) in wm_adsp_buffer_update_avail() 4107 avail += wm_adsp_buffer_size(buf); in wm_adsp_buffer_update_avail() [all …]
|
/sound/core/seq/ |
D | seq_midi.c | 76 while (runtime->avail > 0) { in snd_midi_input_event() 104 if ((tmp = runtime->avail) < count) { in dump_midi()
|
/sound/core/oss/ |
D | pcm_oss.c | 2248 snd_pcm_sframes_t avail; in snd_pcm_oss_get_space() local 2276 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &avail); in snd_pcm_oss_get_space() 2277 if (err == -EPIPE || err == -ESTRPIPE || (! err && avail < 0)) { in snd_pcm_oss_get_space() 2278 avail = runtime->buffer_size; in snd_pcm_oss_get_space() 2282 avail = runtime->buffer_size - avail; in snd_pcm_oss_get_space() 2286 err = snd_pcm_oss_capture_position_fixup(substream, &avail); in snd_pcm_oss_get_space() 2291 info.bytes = snd_pcm_oss_bytes(substream, avail) + fixup; in snd_pcm_oss_get_space()
|
/sound/soc/intel/atom/sst/ |
D | sst.h | 307 int avail; member
|