Searched refs:counter (Results 1 – 7 of 7) sorted by relevance
24 return pool->total_elements - atomic_read(&pool->counter); in snd_seq_pool_available()171 atomic_dec(&pool->counter); in free_cell()259 atomic_inc(&pool->counter); in snd_seq_cell_alloc()260 used = atomic_read(&pool->counter); in snd_seq_cell_alloc()435 while (atomic_read(&pool->counter) > 0) in snd_seq_pool_done()469 atomic_set(&pool->counter, 0); in snd_seq_pool_new()501 snd_iprintf(buffer, "%sCells in use : %d\n", space, atomic_read(&pool->counter)); in snd_seq_info_pool()
31 atomic_t counter; /* cells free */ member60 return pool ? pool->total_elements - atomic_read(&pool->counter) : 0; in snd_seq_unused_cells()
1861 if (atomic_read(&client->pool->counter)) in snd_seq_ioctl_set_client_pool()
280 unsigned int counter = 0; in snd_hdac_bus_parse_capabilities() local334 counter++; in snd_hdac_bus_parse_capabilities()336 if (counter > HDAC_MAX_CAPS) { in snd_hdac_bus_parse_capabilities()
339 zp->counter = sflist->zone_counter++; in set_zone_counter()371 sp->counter = sflist->sample_counter++; in set_sample_counter()1174 if (p->counter > cur->counter) in add_preset()1459 if (zp->counter < sflist->zone_locked) in snd_soundfont_remove_unlocked()1467 if (sp->counter < sflist->sample_locked) in snd_soundfont_remove_unlocked()
188 unsigned int counter = runtime->period_size; in mtk_afe_fe_trigger() local202 irq_data->irq_cnt_maskbit, counter, in mtk_afe_fe_trigger()
332 int counter = count; in aic31xx_wait_bits() local335 while ((bits & mask) != wbits && counter && !ret) { in aic31xx_wait_bits()338 counter--; in aic31xx_wait_bits()344 (count - counter) * sleep); in aic31xx_wait_bits()