Documented in 2 files:

Defined in 1 files as a prototype:

Defined in 4 files as a macro:

Defined in 11 files as a function:

Referenced in 11 files:

Smatch caller information:

net/bluetooth/mgmt.c set_external_config() -> test_and_change_bit()

Type Parameter Key Value
PARAM_VALUE 0 nr 12
PARAM_VALUE 1 addr 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
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_test_and_modify() -> test_and_change_bit()

Type Parameter Key Value
PARAM_VALUE 0 nr 72
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/block/drbd/drbd_req.c remote_due_to_read_balancing() -> test_and_change_bit()

Type Parameter Key Value
PARAM_VALUE 0 nr 20
PARAM_VALUE 1 addr 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &resource->req_lock
LOCK2 irq
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct drbd_resource)->req_lock

lib/tests/bitops_kunit.c test_test_and_change_bit() -> test_and_change_bit()

Type Parameter Key Value
PARAM_VALUE 1 addr 8172114493323923456
BUF_SIZE 1 addr 32

lib/tests/bitops_kunit.c test_test_and_change_bit() -> test_and_change_bit()

Type Parameter Key Value
PARAM_VALUE 1 addr 8172114493323923456
BUF_SIZE 1 addr 32

drivers/net/ethernet/qlogic/qed/qed_rdma.c qed_rdma_toggle_bit_create_resize_cq() -> test_and_change_bit()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &p_info->lock
LOCK2 bh
TYPE_LOCK (struct qed_rdma_info)->lock