Home
last modified time | relevance | path

Searched refs:usage_count (Results 1 – 7 of 7) 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.c38 #define GET_USAGE_COUNT(dev) (atomic_read(&dev->power.usage_count))
139 int usage_count = 0; in sst_power_control() local
143 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
144 dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); in sst_power_control()
150 if ((ctx->sst_state == SST_RESET) && (usage_count == 1)) { in sst_power_control()
159 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
160 dev_dbg(ctx->dev, "Disable: pm usage count: %d\n", usage_count); in sst_power_control()
/sound/usb/
Dcard.c659 atomic_set(&chip->usage_count, 0); in snd_usb_audio_create()
913 !atomic_read(&chip->usage_count)); in usb_audio_disconnect()
956 atomic_inc(&chip->usage_count); in snd_usb_lock_shutdown()
967 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_lock_shutdown()
976 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_unlock_shutdown()
Dusbaudio.h32 atomic_t usage_count; member
/sound/soc/intel/common/
Dsst-dsp-priv.h205 u32 usage_count; /* can be unloaded if count == 0 */ member