Searched refs:atomic_dec_if_positive (Results 1 – 17 of 17) sorted by relevance
12 static inline int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive() function25 #define atomic_dec_if_positive atomic_dec_if_positive macro
87 while (atomic_dec_if_positive(&nr_free_contexts) < 0) in get_mmu_context()
96 #ifndef atomic_dec_if_positive97 static inline int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive() function
228 static __inline__ int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive() function249 #define atomic_dec_if_positive atomic_dec_if_positive macro
45 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
185 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
59 val = atomic_dec_if_positive(&st->data_ready); in _hid_sensor_power_state()
276 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
557 if (atomic_dec_if_positive(&codec->in_pm) < 0) in snd_hdac_power_down_pm()
453 atomic_dec_if_positive(&ctx->gang->aff_sched_count); in spu_unbind_context()
575 if (!atomic_dec_if_positive(&pool->events[offset].free)) { in get_event_struct()880 atomic_dec_if_positive(&hostdata->request_limit); in ibmvscsi_send_srp_event()
868 atomic_dec_if_positive(&ps3fb.ext_flip); in ps3fb_ioctl()
632 val = atomic_dec_if_positive(&team->notify_peers.count_pending); in team_notify_peers_work()678 val = atomic_dec_if_positive(&team->mcast_rejoin.count_pending); in team_mcast_rejoin_work()
1128 if (0 == atomic_dec_if_positive(&group->container_users)) in vfio_group_try_dissolve_container()
259 if (atomic_dec_if_positive(&card->users) == 0) { in gelic_card_down()
969 ret = atomic_dec_if_positive(&module->refcnt); in module_put()
5150 if (atomic_dec_if_positive(&h->passthru_cmds_avail) < 0) in hpsa_ioctl()5156 if (atomic_dec_if_positive(&h->passthru_cmds_avail) < 0) in hpsa_ioctl()