Searched refs:atomic_dec_if_positive (Results 1 - 17 of 17) sorted by relevance

/linux-4.1.27/arch/microblaze/include/asm/
H A Datomic.h12 static inline int atomic_dec_if_positive(atomic_t *v) atomic_dec_if_positive() function
25 #define atomic_dec_if_positive atomic_dec_if_positive macro
H A Dmmu_context_mm.h87 while (atomic_dec_if_positive(&nr_free_contexts) < 0) get_mmu_context()
/linux-4.1.27/include/linux/
H A Datomic.h90 * atomic_dec_if_positive - decrement by 1 if old value positive
96 #ifndef atomic_dec_if_positive atomic_dec_if_positive()
97 static inline int atomic_dec_if_positive(atomic_t *v) atomic_dec_if_positive() function
/linux-4.1.27/arch/metag/include/asm/
H A Datomic.h45 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
/linux-4.1.27/arch/powerpc/include/asm/
H A Datomic.h228 static __inline__ int atomic_dec_if_positive(atomic_t *v) atomic_dec_if_positive() function
234 "1: lwarx %0,0,%1 # atomic_dec_if_positive\n\ atomic_dec_if_positive()
249 #define atomic_dec_if_positive atomic_dec_if_positive macro
/linux-4.1.27/arch/avr32/include/asm/
H A Datomic.h185 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
/linux-4.1.27/drivers/iio/common/hid-sensors/
H A Dhid-sensor-trigger.c59 val = atomic_dec_if_positive(&st->data_ready); _hid_sensor_power_state()
/linux-4.1.27/arch/mips/include/asm/
H A Datomic.h273 * atomic_dec_if_positive - decrement by 1 if old value positive
276 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
/linux-4.1.27/sound/hda/
H A Dhdac_device.c557 if (atomic_dec_if_positive(&codec->in_pm) < 0) snd_hdac_power_down_pm()
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
H A Dsched.c450 * being considered in this gang. Using atomic_dec_if_positive spu_unbind_context()
453 atomic_dec_if_positive(&ctx->gang->aff_sched_count); spu_unbind_context()
/linux-4.1.27/drivers/net/team/
H A Dteam.c632 val = atomic_dec_if_positive(&team->notify_peers.count_pending); team_notify_peers_work()
678 val = atomic_dec_if_positive(&team->mcast_rejoin.count_pending); team_mcast_rejoin_work()
/linux-4.1.27/drivers/video/fbdev/
H A Dps3fb.c868 atomic_dec_if_positive(&ps3fb.ext_flip); ps3fb_ioctl()
/linux-4.1.27/drivers/scsi/ibmvscsi/
H A Dibmvscsi.c575 if (!atomic_dec_if_positive(&pool->events[offset].free)) { get_event_struct()
880 atomic_dec_if_positive(&hostdata->request_limit); ibmvscsi_send_srp_event()
/linux-4.1.27/drivers/net/ethernet/toshiba/
H A Dps3_gelic_net.c259 if (atomic_dec_if_positive(&card->users) == 0) { gelic_card_down()
/linux-4.1.27/drivers/vfio/
H A Dvfio.c1128 if (0 == atomic_dec_if_positive(&group->container_users)) vfio_group_try_dissolve_container()
/linux-4.1.27/drivers/scsi/
H A Dhpsa.c5150 if (atomic_dec_if_positive(&h->passthru_cmds_avail) < 0) hpsa_ioctl()
5156 if (atomic_dec_if_positive(&h->passthru_cmds_avail) < 0) hpsa_ioctl()
/linux-4.1.27/kernel/
H A Dmodule.c969 ret = atomic_dec_if_positive(&module->refcnt); module_put()

Completed in 373 milliseconds