Home
last modified time | relevance | path

Searched refs:atomic_dec_if_positive (Results 1 – 22 of 22) sorted by relevance

/linux-4.4.14/arch/microblaze/include/asm/
Datomic.h12 static inline int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive() function
25 #define atomic_dec_if_positive atomic_dec_if_positive macro
Dmmu_context_mm.h87 while (atomic_dec_if_positive(&nr_free_contexts) < 0) in get_mmu_context()
/linux-4.4.14/arch/powerpc/include/asm/
Datomic.h232 static __inline__ int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive() function
253 #define atomic_dec_if_positive atomic_dec_if_positive macro
/linux-4.4.14/arch/metag/include/asm/
Datomic.h45 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
/linux-4.4.14/include/linux/
Datomic.h533 #ifndef atomic_dec_if_positive
534 static inline int atomic_dec_if_positive(atomic_t *v) in atomic_dec_if_positive() function
/linux-4.4.14/arch/avr32/include/asm/
Datomic.h197 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
/linux-4.4.14/drivers/iio/common/hid-sensors/
Dhid-sensor-trigger.c59 val = atomic_dec_if_positive(&st->data_ready); in _hid_sensor_power_state()
/linux-4.4.14/arch/mips/include/asm/
Datomic.h280 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) macro
/linux-4.4.14/sound/hda/
Dhdac_device.c625 if (atomic_dec_if_positive(&codec->in_pm) < 0) in snd_hdac_power_down_pm()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dsched.c453 atomic_dec_if_positive(&ctx->gang->aff_sched_count); in spu_unbind_context()
/linux-4.4.14/drivers/scsi/ibmvscsi/
Dibmvscsi.c575 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()
/linux-4.4.14/arch/powerpc/kernel/
Deeh.c1415 WARN_ON(atomic_dec_if_positive(&edev->pe->pass_dev_cnt) < 0); in eeh_dev_release()
/linux-4.4.14/drivers/scsi/cxlflash/
Dmain.c59 if (!atomic_dec_if_positive(&cmd->free)) { in cmd_checkout()
2340 if (atomic_dec_if_positive(&cfg->scan_host_needed) >= 0) in cxlflash_worker_thread()
Dsuperpipe.c1691 atomic_dec_if_positive(&cfg->recovery_threads); in cxlflash_afu_recover()
/linux-4.4.14/drivers/net/wireless/iwlwifi/pcie/
Drx.c536 if (atomic_dec_if_positive(&rba->req_ready) < 0) in iwl_pcie_rx_allocator_get()
/linux-4.4.14/drivers/video/fbdev/
Dps3fb.c868 atomic_dec_if_positive(&ps3fb.ext_flip); in ps3fb_ioctl()
/linux-4.4.14/drivers/net/team/
Dteam.c632 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()
/linux-4.4.14/drivers/vfio/
Dvfio.c1176 if (0 == atomic_dec_if_positive(&group->container_users)) in vfio_group_try_dissolve_container()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c271 if (atomic_dec_if_positive(&card->users) == 0) { in gelic_card_down()
/linux-4.4.14/net/sunrpc/
Dclnt.c2518 if (atomic_dec_if_positive(&clnt->cl_swapper) == 0) { in rpc_clnt_swap_deactivate()
/linux-4.4.14/drivers/scsi/
Dhpsa.c5791 atomic_dec_if_positive(&h->abort_cmds_available) >= 0, in wait_for_available_abort_cmd()
6470 if (atomic_dec_if_positive(&h->passthru_cmds_avail) < 0) in hpsa_ioctl()
6476 if (atomic_dec_if_positive(&h->passthru_cmds_avail) < 0) in hpsa_ioctl()
/linux-4.4.14/kernel/
Dmodule.c1126 ret = atomic_dec_if_positive(&module->refcnt); in module_put()