Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 4 files as a macro:
- arch/arm/include/asm/bitops.h, line 193 (as a macro)
- arch/m68k/include/asm/bitops.h, line 145 (as a macro)
- arch/m68k/include/asm/bitops.h, line 147 (as a macro)
- arch/m68k/include/asm/bitops.h, line 149 (as a macro)
Defined in 11 files as a function:
- arch/alpha/include/asm/bitops.h, line 101 (as a function)
- arch/hexagon/include/asm/bitops.h, line 116 (as a function)
- arch/mips/include/asm/bitops.h, line 158 (as a function)
- arch/openrisc/include/asm/bitops/atomic.h, line 46 (as a function)
- arch/parisc/include/asm/bitops.h, line 43 (as a function)
- arch/sh/include/asm/bitops-cas.h, line 38 (as a function)
- arch/sh/include/asm/bitops-grb.h, line 52 (as a function)
- arch/sh/include/asm/bitops-llsc.h, line 47 (as a function)
- arch/sparc/include/asm/bitops_32.h, line 82 (as a function)
- arch/sparc/lib/bitops.S, line 120 (as a function)
- include/asm-generic/bitops/instrumented-atomic.h, line 55 (as a function)
Referenced in 19 files:
- arch/arm64/include/asm/sync_bitops.h, line 20
- arch/m68k/include/asm/bitops.h, line 157
- arch/sparc/lib/bitops.S
- drivers/gpio/gpiolib.c, line 3392
- drivers/md/bcache/btree.c, line 424
- drivers/mtd/devices/docg3.c, line 662
- drivers/mtd/nand/raw/stm32_fmc2_nand.c, line 666
- drivers/net/can/c_can/c_can_main.c, line 308
- drivers/net/ethernet/intel/ice/ice_ethtool.c
- drivers/net/ethernet/marvell/octeontx2/af/rvu.c, line 2148
- drivers/net/ethernet/rocker/rocker_ofdpa.c
- drivers/net/ethernet/sfc/ef100_nic.c, line 323
- include/linux/scx200_gpio.h, line 81
- include/net/bluetooth/hci_core.h, line 854
- lib/tests/bitops_kunit.c
- mm/kasan/kasan_test_c.c, line 1742
- net/bluetooth/hci_debugfs.c, line 62
- net/bridge/br_fdb.c
- sound/soc/intel/atom/sst/sst_pvt.c, line 314
Smatch caller information:
drivers/mtd/nand/raw/stm32_fmc2_nand.c stm32_fmc2_nfc_bch_decode() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 0-u16max |
| BUF_SIZE | 1 | addr | (-1)-s32max |
| BUF_SIZE | 1 | addr | (-1)-s32max |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | *addr | 0-255 |
drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_port_vlan() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 0-u16max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 512 |
| DATA_SOURCE | 0 | nr | r ofdpa_port_vid_to_vlan |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | nr | 0-u16max |
drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_port_vlan() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 0-u16max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 512 |
| DATA_SOURCE | 0 | nr | r ofdpa_port_vid_to_vlan |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | nr | 0-u16max |
net/bridge/br_fdb.c br_fdb_external_learn_add() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 8 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &br->hash_lock | ||
| LOCK2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->hash_lock |
net/bridge/br_fdb.c br_fdb_offloaded_set() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 5 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &br->hash_lock | ||
| LOCK2 | bh | ||
| TYPE_LOCK | (struct net_bridge)->hash_lock |
net/bridge/br_fdb.c fdb_add_entry() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 2 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &br->hash_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| TYPE_LOCK | (struct net_bridge)->hash_lock |
drivers/mtd/devices/docg3.c doc_ecc_bch_fix_data() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | s32min-4159 |
| BUF_SIZE | 1 | addr | (-1)-s32max |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | *addr | 0-u64max |
| UNITS | 1 | addr | unit_byte |
| USER_PTR | 1 | addr | |
| LOCK2 | &docg3->cascade->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex | ||
| TYPE_LOCK | (struct docg3_cascade)->lock |
net/bluetooth/mgmt.c set_bredr() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 35 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
net/bluetooth/mgmt.c set_discoverable() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 30 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
net/bluetooth/mgmt.c set_fast_connectable() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 34 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
net/bluetooth/mgmt.c set_le() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 26 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
net/bluetooth/mgmt.c set_link_security() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 32 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
mm/kasan/kasan_test_c.c kasan_bitops_modify() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 64 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 9 |
| DATA_SOURCE | 0 | nr | $1 |
| DATA_SOURCE | 1 | addr | $2 |
| NOCHECK_CALL | |||
| UNITS | 0 | nr | unit_bit |
drivers/net/ethernet/intel/ice/ice_ethtool.c ice_set_priv_flags() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 19 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/intel/ice/ice_ethtool.c ice_set_priv_flags() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 21 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_mbox_handler_set_vf_perm() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 3 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| NOCHECK_CALL |
net/bluetooth/hci_debugfs.c dut_mode_write() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 41 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| NOCHECK_CALL |
net/bluetooth/hci_debugfs.c force_no_mitm_write() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 47 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| NOCHECK_CALL |
net/bluetooth/hci_debugfs.c force_static_address_write() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 44 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| NOCHECK_CALL |
net/bluetooth/hci_debugfs.c quirk_simultaneous_discovery_write() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 11 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| NOCHECK_CALL |
net/bluetooth/hci_debugfs.c quirk_strict_duplicate_filter_write() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 10 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| NOCHECK_CALL |
lib/tests/bitops_kunit.c test_change_bit() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 2146776563023245312 |
| BUF_SIZE | 1 | addr | 32 |
| NOCHECK_CALL |
lib/tests/bitops_kunit.c test_change_bit() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 2146776563023245312 |
| BUF_SIZE | 1 | addr | 32 |
| NOCHECK_CALL |
drivers/net/ethernet/sfc/ef100_nic.c ef100_ev_process() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | nr | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/can/c_can/c_can_main.c c_can_setup_tx_object() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 0-255 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| CAPPED_DATA | 0 | nr | 1 |
| DATA_SOURCE | 0 | nr | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | nr | unit_array_size |
| HALF_LOCKED2 | &txq->_xmit_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
drivers/md/bcache/btree.c __bch_btree_node_write() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 2 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &b->io_mutex | ||
| HALF_LOCKED2 | &b->lock | ||
| HALF_LOCKED2 | &b->write_lock | ||
| HALF_LOCKED2 | &c->bucket_lock | ||
| TYPE_LOCK | (struct btree)->io_mutex |
drivers/gpio/gpiolib.c gpiod_toggle_active_low() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 6 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
net/bluetooth/smp.c smp_force_bredr() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 43 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| NOCHECK_CALL |
sound/soc/intel/atom/sst/sst_pvt.c sst_assign_pvt_id() -> change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | s32min-14 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| DATA_SOURCE | 0 | nr | r variable_ffz |
| HARD_MAX | 0 | nr | 14 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &drv->block_lock | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct intel_sst_drv)->block_lock |