Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/md/raid5.c handle_stripe_expansion() -> raid5_compute_blocknr()

Type Parameter Key Value
PARAM_VALUE 0 sh 4096-ptr_max
PARAM_VALUE 0 sh->batch_head 0
PARAM_VALUE 0 sh->disks 1-s32max
PARAM_VALUE 1 i 0-s32max
PARAM_VALUE 2 previous 1
CAPPED_DATA 1 i 1
DATA_SOURCE 0 sh $1
PARAM_COMPARE 1 i != $0->pd_idx
PARAM_COMPARE 1 i != $0->qd_idx
PARAM_COMPARE 1 i < $0->disks
UNITS 1 i unit_byte

drivers/md/raid5.c init_stripe() -> raid5_compute_blocknr()

Type Parameter Key Value
PARAM_VALUE 0 sh 4096-ptr_max
PARAM_VALUE 0 sh->batch_head 0
PARAM_VALUE 0 sh->check_state 0
PARAM_VALUE 0 sh->count.counter 0
PARAM_VALUE 0 sh->ddf_layout 0-1
PARAM_VALUE 0 sh->dev 4096-ptr_max
PARAM_VALUE 0 sh->hash->next->pprev 1-u64max
PARAM_VALUE 0 sh->hash.next 0
PARAM_VALUE 0 sh->hash.next->pprev 1-u64max
PARAM_VALUE 0 sh->hash.pprev 0
PARAM_VALUE 0 sh->hash_lock_index 0-7
PARAM_VALUE 0 sh->reconstruct_state 0
PARAM_VALUE 0 sh->state 0
PARAM_VALUE 2 previous 0-1
CAPPED_DATA 0 sh->hash_lock_index 1
DATA_SOURCE 0 sh $0
DATA_SOURCE 2 previous $2
FUZZY_MAX 2 previous 1
NOSPEC 0 sh->hash_lock_index
NOSPEC 0 sh->sector
HARD_MAX 2 previous 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 sh->hash_lock_index 1-7[c]
HOST_DATA 0 sh->sector 0-s32max[c]
USER_DATA 0 sh->hash_lock_index 1-7[c]
USER_DATA 0 sh->sector 0-s32max[c]
UNITS 1 i unit_byte
LOCK2 irq

drivers/md/raid5.c reshape_request() -> raid5_compute_blocknr()

Type Parameter Key Value
PARAM_VALUE 0 sh 4096-ptr_max
PARAM_VALUE 0 sh->batch_head 0
PARAM_VALUE 0 sh->check_state 0
PARAM_VALUE 0 sh->cpu 0
PARAM_VALUE 0 sh->ddf_layout 0-1
PARAM_VALUE 0 sh->overwrite_disks 0
PARAM_VALUE 0 sh->raid_conf 4096-ptr_max
PARAM_VALUE 0 sh->reconstruct_state 0
PARAM_VALUE 0 sh->state 0
PARAM_VALUE 2 previous 0
DATA_SOURCE 0 sh r raid5_get_active_stripe
PARAM_COMPARE 1 i != $0->pd_idx
UNITS 1 i unit_byte

drivers/md/raid5-cache.c r5c_recovery_rewrite_data_only_stripes() -> raid5_compute_blocknr()

Type Parameter Key Value
PARAM_VALUE 0 sh 4096-ptr_max
PARAM_VALUE 0 sh->dev 4096-ptr_max
PARAM_VALUE 2 previous 0
CAPPED_DATA 0 &sh->lru 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 i unit_byte
HALF_LOCKED2 &mddev->reconfig_mutex

drivers/md/raid5-cache.c r5l_log_stripe() -> raid5_compute_blocknr()

Type Parameter Key Value
PARAM_VALUE 0 sh 4096-ptr_max
PARAM_VALUE 0 sh->dev 4096-ptr_max
PARAM_VALUE 0 sh->disks 1-s32max
PARAM_VALUE 0 sh->raid_conf 4096-ptr_max
PARAM_VALUE 0 sh->raid_conf->log 1-u64max
PARAM_VALUE 1 i 0-s32max
PARAM_VALUE 2 previous 0
CAPPED_DATA 0 sh->disks 1
CAPPED_DATA 1 i 1
DATA_SOURCE 0 sh $1
PARAM_COMPARE 1 i != $0->pd_idx
PARAM_COMPARE 1 i != $0->qd_idx
PARAM_COMPARE 1 i < $0->disks
UNITS 1 i unit_byte
LOCK2 &log->io_mutex
TYPE_LOCK (struct r5l_log)->io_mutex