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.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()
146 if ((ctx->sst_state == SST_RESET) && (usage_count == 1)) { in sst_power_control()
155 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
156 dev_dbg(ctx->dev, "Disable: pm usage count: %d\n", usage_count); in sst_power_control()
/sound/usb/
Dcard.c691 atomic_set(&chip->usage_count, 0); in snd_usb_audio_create()
1014 !atomic_read(&chip->usage_count)); in usb_audio_disconnect()
1060 atomic_inc(&chip->usage_count); in snd_usb_lock_shutdown()
1071 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_lock_shutdown()
1080 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_unlock_shutdown()
Dusbaudio.h38 atomic_t usage_count; member
/sound/soc/codecs/
Dhda.c180 WARN_ON(atomic_read(&hdev->dev.power.usage_count) != 1 || in hda_codec_probe()
305 WARN_ON(atomic_read(&hdev->dev.power.usage_count) != 1 || in hda_codec_remove()