Searched refs:usage_count (Results 1 – 4 of 4) sorted by relevance
46 #define GET_USAGE_COUNT(dev) (atomic_read(&dev->power.usage_count))147 int usage_count = 0; in sst_power_control() local151 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()152 dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); in sst_power_control()158 if ((ctx->sst_state == SST_RESET) && (usage_count == 1)) { in sst_power_control()167 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()168 dev_dbg(ctx->dev, "Disable: pm usage count: %d\n", usage_count); in sst_power_control()
394 atomic_set(&chip->usage_count, 0); in snd_usb_audio_create()628 !atomic_read(&chip->usage_count)); in usb_audio_disconnect()663 atomic_inc(&chip->usage_count); in snd_usb_lock_shutdown()674 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_lock_shutdown()683 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_unlock_shutdown()
43 atomic_t usage_count; member
210 u32 usage_count; /* can be unloaded if count == 0 */ member