Defined in 2 files as a macro:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/block/drbd/drbd_bitmap.c __bm_change_bits_to() -> __test_and_clear_bit_le()

Type Parameter Key Value
PARAM_VALUE 0 nr 0-s16max
PARAM_VALUE 1 addr 0,18379471554275704832,18446612682070032384
CAPPED_DATA 0 nr 1
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 nr 0-4096[c]
USER_DATA 0 nr 0-4096[c]
LOCK2 &b->bm_lock
HALF_LOCKED2 &device->resource->req_lock
HALF_LOCKED2 &resource->req_lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq
TYPE_LOCK (struct drbd_bitmap)->bm_lock

fs/ext4/ialloc.c ext4_free_inode() -> __test_and_clear_bit_le()

Type Parameter Key Value
CAPPED_DATA 0 nr 1
CAPPED_DATA 0 nr 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 addr unit_byte
LOCK2 sb

fs/minix/bitmap.c minix_free_block() -> __test_and_clear_bit_le()

Type Parameter Key Value
CAPPED_DATA 0 nr 1
CAPPED_DATA 0 nr 1
BIT_INFO 0 nr 0x0,0xffffffff
BIT_INFO 0 nr 0x0,0xffffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 1 addr unit_byte
LOCK2 global &bitmap_lock

fs/minix/bitmap.c minix_free_inode() -> __test_and_clear_bit_le()

Type Parameter Key Value
CAPPED_DATA 0 nr 1
CAPPED_DATA 0 nr 1
BIT_INFO 0 nr 0x0,0xffffffff
BIT_INFO 0 nr 0x0,0xffffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 1 addr unit_byte
LOCK2 global &bitmap_lock

fs/ext4/mballoc.c mb_test_and_clear_bit() -> __test_and_clear_bit_le()

Type Parameter Key Value
PARAM_VALUE 0 nr 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 addr 0,8-u64max
DATA_SOURCE 0 nr $0 [m]
DATA_SOURCE 1 addr r mb_correct_addr_and_bit
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 nr 0-s32max,18446744071562067968-u64max[c]
UNITS 0 nr unit_byte
HALF_LOCKED2 ac->ac_sb
HALF_LOCKED2 sb

fs/udf/balloc.c udf_bitmap_new_block() -> __test_and_clear_bit_le()

Type Parameter Key Value
PARAM_VALUE 0 nr 0-s32max,18446744071562067968-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 addr unit_byte
LOCK2 &sbi->s_alloc_mutex
HALF_LOCKED2 &iinfo->i_data_sem
TYPE_LOCK (struct udf_sb_info)->s_alloc_mutex

fs/udf/balloc.c udf_bitmap_prealloc_blocks() -> __test_and_clear_bit_le()

Type Parameter Key Value
PARAM_VALUE 0 nr 0-s32max,18446744071562067968-18446744073709551607
CAPPED_DATA 0 nr 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 addr unit_byte
LOCK2 &iinfo->i_data_sem
LOCK2 &sbi->s_alloc_mutex
TYPE_LOCK (struct udf_inode_info)->i_data_sem
TYPE_LOCK (struct udf_sb_info)->s_alloc_mutex