Searched refs:counter (Results 1 – 11 of 11) sorted by relevance
/sound/soc/sof/ |
D | trace.c | 21 int capacity, int *counter) in trace_filter_append_elem() argument 23 if (*counter >= capacity) in trace_filter_append_elem() 26 elem_list[*counter].key = key; in trace_filter_append_elem() 27 elem_list[*counter].value = value; in trace_filter_append_elem() 28 ++*counter; in trace_filter_append_elem() 35 int capacity, int *counter) in trace_filter_parse_entry() argument 38 int cnt = *counter; in trace_filter_parse_entry() 83 *counter = cnt; in trace_filter_parse_entry()
|
/sound/core/seq/ |
D | seq_memory.c | 24 return pool->total_elements - atomic_read(&pool->counter); in snd_seq_pool_available() 173 atomic_dec(&pool->counter); in free_cell() 261 atomic_inc(&pool->counter); in snd_seq_cell_alloc() 262 used = atomic_read(&pool->counter); in snd_seq_cell_alloc() 437 while (atomic_read(&pool->counter) > 0) in snd_seq_pool_done() 471 atomic_set(&pool->counter, 0); in snd_seq_pool_new() 503 snd_iprintf(buffer, "%sCells in use : %d\n", space, atomic_read(&pool->counter)); in snd_seq_info_pool()
|
D | seq_memory.h | 31 atomic_t counter; /* cells free */ member 60 return pool ? pool->total_elements - atomic_read(&pool->counter) : 0; in snd_seq_unused_cells()
|
D | seq_clientmgr.c | 1873 if (atomic_read(&client->pool->counter)) in snd_seq_ioctl_set_client_pool()
|
/sound/synth/emux/ |
D | soundfont.c | 339 zp->counter = sflist->zone_counter++; in set_zone_counter() 372 sp->counter = sflist->sample_counter++; in set_sample_counter() 1182 if (p->counter > cur->counter) in add_preset() 1471 if (zp->counter < sflist->zone_locked) in snd_soundfont_remove_unlocked() 1479 if (sp->counter < sflist->sample_locked) in snd_soundfont_remove_unlocked()
|
/sound/hda/ |
D | hdac_controller.c | 306 unsigned int counter = 0; in snd_hdac_bus_parse_capabilities() local 360 counter++; in snd_hdac_bus_parse_capabilities() 362 if (counter > HDAC_MAX_CAPS) { in snd_hdac_bus_parse_capabilities()
|
/sound/soc/mediatek/mt8195/ |
D | mt8195-mt6359-rt1019-rt5682.c | 125 int counter; in mt8195_mt6359_mtkaif_calibration() local 171 counter = 0; in mt8195_mt6359_mtkaif_calibration() 188 if (++counter > 10000) { in mt8195_mt6359_mtkaif_calibration()
|
/sound/pci/echoaudio/ |
D | echoaudio.c | 824 u32 counter, step; in pcm_pointer() local 831 counter = le32_to_cpu(*pipe->dma_counter); /* presumed atomic */ in pcm_pointer() 833 step = counter - pipe->last_counter; /* handles wrapping */ in pcm_pointer() 834 pipe->last_counter = counter; in pcm_pointer() 1824 u32 counter, step; in period_has_elapsed() local 1832 counter = le32_to_cpu(*pipe->dma_counter); /* presumed atomic */ in period_has_elapsed() 1834 step = counter - pipe->last_period; /* handles wrapping */ in period_has_elapsed()
|
/sound/soc/codecs/ |
D | tlv320aic31xx.c | 365 int counter = count; in aic31xx_wait_bits() local 368 while ((bits & mask) != wbits && counter && !ret) { in aic31xx_wait_bits() 371 counter--; in aic31xx_wait_bits() 377 (count - counter) * sleep); in aic31xx_wait_bits()
|
/sound/soc/mediatek/mt8192/ |
D | mt8192-mt6359-rt1015-rt5682.c | 142 int counter; in mt8192_mt6359_mtkaif_calibration() local 185 counter = 0; in mt8192_mt6359_mtkaif_calibration() 205 if (++counter > 10000) { in mt8192_mt6359_mtkaif_calibration()
|
/sound/soc/mediatek/common/ |
D | mtk-afe-fe-dai.c | 206 unsigned int counter = runtime->period_size; in mtk_afe_fe_trigger() local 224 irq_data->irq_cnt_maskbit, counter, in mtk_afe_fe_trigger()
|