Documented in 1 files:
Defined in 4 files as a function:
- arch/powerpc/include/asm/bitops.h, line 230 (as a function)
- arch/riscv/include/asm/bitops.h, line 239 (as a function)
- arch/x86/include/asm/bitops.h, line 194 (as a function)
- include/asm-generic/bitops/atomic.h, line 58 (as a function)
Referenced in 1 files:
Smatch caller information:
net/bluetooth/mgmt.c test_and_change_bit() -> arch_test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 12 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| DATA_SOURCE | 0 | nr | $0 |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| TYPE_LOCK | (struct hci_dev)->lock |
mm/kasan/kasan_test_c.c test_and_change_bit() -> arch_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 |
| BUF_SIZE | 1 | addr | 9 |
| DATA_SOURCE | 0 | nr | $0 |
| DATA_SOURCE | 1 | addr | $1 |
| UNITS | 0 | nr | unit_bit |
drivers/block/drbd/drbd_req.c test_and_change_bit() -> arch_test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 20 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| DATA_SOURCE | 0 | nr | $0 |
| DATA_SOURCE | 1 | addr | $1 |
| 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_and_change_bit() -> arch_test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 8172114493323923456 |
| BUF_SIZE | 1 | addr | 32 |
| BUF_SIZE | 1 | addr | 32 |
| DATA_SOURCE | 0 | nr | $0 |
| DATA_SOURCE | 1 | addr | $1 |
drivers/net/ethernet/qlogic/qed/qed_rdma.c test_and_change_bit() -> arch_test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | nr | $0 |
| DATA_SOURCE | 1 | addr | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &p_info->lock | ||
| LOCK2 | bh | ||
| TYPE_LOCK | (struct qed_rdma_info)->lock |