Home
last modified time | relevance | path

Searched refs:usage_count (Results 1 – 6 of 6) sorted by relevance

/sound/soc/intel/skylake/
Dskl-sst-dsp.c40 skl->cores.usage_count[SKL_DSP_CORE0_ID] = 1; in skl_dsp_init_core_state()
44 skl->cores.usage_count[i] = 0; in skl_dsp_init_core_state()
346 skl->cores.usage_count[core_id]++; in skl_dsp_get_core()
359 skl->cores.usage_count[core_id]); in skl_dsp_get_core()
375 if ((--skl->cores.usage_count[core_id] == 0) && in skl_dsp_put_core()
381 skl->cores.usage_count[core_id]++; in skl_dsp_put_core()
387 skl->cores.usage_count[core_id]); in skl_dsp_put_core()
Dskl-sst-ipc.h42 int *usage_count; member
Dskl-messages.c296 cores->usage_count = kcalloc(cores->count, sizeof(*cores->usage_count), in skl_init_dsp()
298 if (!cores->usage_count) { in skl_init_dsp()
326 kfree(skl->cores.usage_count); in skl_free_dsp()
/sound/soc/intel/atom/sst/
Dsst_drv_interface.c35 #define GET_USAGE_COUNT(dev) (atomic_read(&dev->power.usage_count))
136 int usage_count = 0; in sst_power_control() local
140 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
141 dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); in sst_power_control()
147 if ((ctx->sst_state == SST_RESET) && (usage_count == 1)) { in sst_power_control()
156 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
157 dev_dbg(ctx->dev, "Disable: pm usage count: %d\n", usage_count); in sst_power_control()
/sound/usb/
Dcard.c641 atomic_set(&chip->usage_count, 0); in snd_usb_audio_create()
936 !atomic_read(&chip->usage_count)); in usb_audio_disconnect()
982 atomic_inc(&chip->usage_count); in snd_usb_lock_shutdown()
993 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_lock_shutdown()
1002 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_unlock_shutdown()
Dusbaudio.h37 atomic_t usage_count; member