Documented in 1 files:

Defined in 1 files as a function:

Referenced in 43 files:

Smatch caller information:

drivers/gpu/drm/i915/gvt/gtt.c intel_vgpu_unpin_mm() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
NOCHECK_CALL
LOCK2 &vgpu->vgpu_lock
TYPE_LOCK (struct intel_vgpu)->vgpu_lock

drivers/infiniband/ulp/rtrs/rtrs.c rtrs_post_rdma_write_imm_empty() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/misc/mei/vsc-tp.c vsc_tp_wakeup_release() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 _T->lock

drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c iwl_pcie_rx_allocator_get() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD
RX_PATH
LOCK2 &rxq->lock
TYPE_LOCK (struct iwl_rxq)->lock

mm/percpu.c pcpu_alloc_noprof() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 2545491967768621056
PARAM_VALUE 0 v->counter 10
HALF_LOCKED2 global &pcpu_alloc_mutex

drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_link_ps() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/net/wireless/ath/ath11k/wmi.c wmi_process_mgmt_tx_comp() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &ab->core_lock

drivers/scsi/hpsa.c hpsa_ioctl() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
HALF_LOCKED2 &cd->lock

drivers/scsi/hpsa.c hpsa_ioctl() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
HALF_LOCKED2 &cd->lock

drivers/scsi/hpsa.c hpsa_ioctl32_big_passthru() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
HALF_LOCKED2 &cd->lock

drivers/scsi/hpsa.c hpsa_ioctl32_passthru() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
HALF_LOCKED2 &cd->lock

arch/x86/kvm/i8254.c kvm_pit_ack_irq() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
LOCK2 &kvm->irq_srcu
TYPE_LOCK (struct kvm)->irq_srcu

mm/kasan/kasan_test_c.c kasan_atomics_helper() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
DATA_SOURCE 0 v $1
NOCHECK_CALL

fs/ext4/orphan.c ext4_orphan_file_add() -> atomic_dec_if_positive()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem

drivers/net/wireless/ath/ath12k/mac.c ath12k_mgmt_over_wmi_tx_drop() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/target/iscsi/iscsi_target_login.c __iscsi_target_login_thread() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD <- disables preempt
LOCK2 &np->np_thread_lock
LOCK2 bh
TYPE_LOCK (struct iscsi_np)->np_thread_lock

drivers/target/iscsi/iscsi_target_login.c __iscsi_target_login_thread() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PARAM_VALUE 0 v->counter 0-s32max
PREEMPT_ADD <- disables preempt
LOCK2 &np->np_thread_lock
LOCK2 bh
TYPE_LOCK (struct iscsi_np)->np_thread_lock

drivers/pinctrl/qcom/tlmm-test.c tlmm_test_intr_fn() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 flags

drivers/pinctrl/qcom/tlmm-test.c tlmm_test_intr_thread_fn() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/iio/common/hid-sensors/hid-sensor-trigger.c _hid_sensor_power_state() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fsm->lock

sound/hda/core/device.c snd_hdac_power_down_pm() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &codec->spec->coef_mutex
HALF_LOCKED2 _T->lock

drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_build_ldio_fusion() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &sdev->state_mutex

fs/btrfs/zoned.c btrfs_dev_set_active_zone() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PARAM_VALUE 0 v->counter (-2147483647)-s32max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &block_group->lock
LOCK2 &fs_info->zone_active_bgs_lock
HALF_LOCKED2 &fs_info->chunk_mutex
HALF_LOCKED2 &space_info->groups_sem
TYPE_LOCK (struct btrfs_block_group)->lock
TYPE_LOCK (struct btrfs_fs_info)->zone_active_bgs_lock

drivers/base/power/wakeup.c pm_system_cancel_wakeup() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 8052923461336580096
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &system_transition_mutex
HALF_LOCKED2 global &acpi_scan_lock
HALF_LOCKED2 global &device_hotplug_lock

drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c ice_update_per_q_fltr() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
NOCHECK_CALL
LOCK2 &hw->fdir_fltr_lock
TYPE_LOCK (struct ice_hw)->fdir_fltr_lock

drivers/net/team/team_core.c team_mcast_rejoin_work() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &pool->lock

drivers/net/team/team_core.c team_notify_peers_work() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &pool->lock

drivers/block/mtip32xx/mtip32xx.c mtip_check_unal_depth() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/infiniband/hw/hfi1/netdev_rx.c hfi1_netdev_disable_queues() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &rdev->wiphy.mtx
HALF_LOCKED2 global &rtnl_mutex

drivers/net/wireless/ath/ath12k/wmi.c wmi_process_mgmt_tx_comp() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
LOCK2 rcu_read
HALF_LOCKED2 &ab->core_lock
HALF_LOCKED2 &ag->mutex
HALF_LOCKED2 &pool->lock

net/sunrpc/clnt.c rpc_clnt_swap_deactivate() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
CAPABLE 0 21
HALF_LOCKED2 &inode->i_rwsem

drivers/nvme/host/multipath.c nvme_mpath_end_request() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/net/wireless/ath/ath11k/mac.c ath11k_mgmt_over_wmi_tx_drop() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ar->conf_mutex
HALF_LOCKED2 &pool->lock

drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_devstatuschg_evt_th() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &drv_cmd->mutex
HALF_LOCKED2 &pool->lock

drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_issue_tm() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
NOCHECK_CALL

drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_pcietopochg_evt_th() -> atomic_dec_if_positive()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &drv_cmd->mutex
HALF_LOCKED2 &pool->lock

drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_sastopochg_evt_th() -> atomic_dec_if_positive()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &drv_cmd->mutex
HALF_LOCKED2 &pool->lock

kernel/module/main.c module_put() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max

kernel/seccomp.c recv_wait_event() -> atomic_dec_if_positive()

Type Parameter Key Value

kernel/seccomp.c recv_wait_event() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v->counter 0-s32max
TASK_NOT_RUNNING

drivers/misc/mei/platform-vsc.c mei_vsc_write() -> atomic_dec_if_positive()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL