Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/md/raid5-ppl.c ppl_recover_entry() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 1 r_sector 0-18446744073709551614
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 1995736998680256512
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
CAPPED_DATA 0 conf->chunk_sectors 1
CAPPED_DATA 1 r_sector 1
CAPPED_DATA 1 r_sector 1
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING
UNITS 1 r_sector unit_byte
LOCK2 &mddev->reconfig_mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct mddev)->reconfig_mutex

drivers/md/raid5-ppl.c ppl_recover_entry() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->disks 4096-ptr_max
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 1912545730728116224
PARAM_VALUE 3 *dd_idx s32max
PARAM_VALUE 4 sh 4006432896281567232
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
CAPPED_DATA 0 conf->chunk_sectors 1
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING
UNITS 1 r_sector unit_byte
LOCK2 &mddev->reconfig_mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct mddev)->reconfig_mutex

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

Type Parameter Key Value
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 2287975931203043328
PARAM_VALUE 4 sh 0
DATA_SOURCE 0 conf $0
DATA_SOURCE 1 r_sector r raid5_compute_blocknr

drivers/md/raid5.c make_stripe_request() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->ctx_pool 4096-ptr_max
PARAM_VALUE 0 conf->ctx_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 conf->wait_for_reshape.lock.rlock.dep_map->name 0-255
PARAM_VALUE 2 previous 0-1
PARAM_VALUE 3 dd_idx 125016246444544000
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
CAPPED_DATA 0 conf->reshape_progress 1
CAPPED_DATA 1 r_sector 1
CAPPED_DATA 1 r_sector 1
DATA_SOURCE 0 conf $1
DATA_SOURCE 1 r_sector $3
FUZZY_MAX 2 previous 1
NOSPEC 1 r_sector
NOSPEC 1 r_sector
HARD_MAX 2 previous 1
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 r_sector 0,8-u64max[c]
USER_DATA 1 r_sector 0,8-u64max[c]
UNITS 1 r_sector unit_byte
HALF_LOCKED2 &bi->bi_bdev->bd_queue->queue_lock
HALF_LOCKED2 &md->io_barrier

drivers/md/raid5.c raid5_bio_lowest_chunk_sector() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->ctx_pool 4096-ptr_max
PARAM_VALUE 0 conf->ctx_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 conf->reshape_progress u64max
PARAM_VALUE 1 r_sector 0
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 4761700557125705728
PARAM_VALUE 4 sh 7204427972566552576
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
DATA_SOURCE 0 conf $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bi->bi_bdev->bd_queue->queue_lock
HALF_LOCKED2 &md->io_barrier

drivers/md/raid5.c raid5_bitmap_sector() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 5419395017610014720
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
CAPPED_DATA 1 r_sector 1
CAPPED_DATA 1 r_sector 1
RX_PATH
TASK_NOT_RUNNING

drivers/md/raid5.c raid5_bitmap_sector() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 5419395017610014720
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
RX_PATH
TASK_NOT_RUNNING

drivers/md/raid5.c raid5_bitmap_sector() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->device_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 conf->reshape_progress 0-18446744073709551614
PARAM_VALUE 2 previous 1
PARAM_VALUE 3 dd_idx 5419395017610014720
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
CAPPED_DATA 0 conf->reshape_progress 1
CAPPED_DATA 1 r_sector 1
CAPPED_DATA 1 r_sector 1
RX_PATH
TASK_NOT_RUNNING

drivers/md/raid5.c raid5_bitmap_sector() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->device_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 conf->reshape_progress 0-18446744073709551614
PARAM_VALUE 2 previous 1
PARAM_VALUE 3 dd_idx 5419395017610014720
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
CAPPED_DATA 0 conf->reshape_progress 1
CAPPED_DATA 1 r_sector 1
CAPPED_DATA 1 r_sector 1
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 2 previous 0-1
PARAM_VALUE 3 dd_idx 5990280134922518528
PARAM_VALUE 4 sh 6461572328746901504
DATA_SOURCE 2 previous $2
FUZZY_MAX 2 previous 1
HARD_MAX 2 previous 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &log->io_mutex
HALF_LOCKED2 irq

drivers/md/raid5.c raid5_read_one_chunk() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 3547265834465914880
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
NOSPEC 1 r_sector
NOSPEC 1 r_sector
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 r_sector 0-u64max
USER_DATA 1 r_sector 0-u64max
UNITS 1 r_sector unit_byte
HALF_LOCKED2 &md->io_barrier
HALF_LOCKED2 &raid_bio->bi_bdev->bd_queue->queue_lock

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

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->device_lock.rlock.dep_map->name 0-255
PARAM_VALUE 2 previous 1
PARAM_VALUE 3 dd_idx 4314442188638957568
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712

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

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->device_lock.rlock.dep_map->name 0-255
PARAM_VALUE 2 previous 1
PARAM_VALUE 3 dd_idx 4314442188638957568
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712

drivers/md/raid5.c retry_aligned_read() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 0 conf->bitmap_list.next 4096-ptr_max
PARAM_VALUE 0 conf->device_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 conf->retry_read_aligned 0
PARAM_VALUE 1 r_sector 0,8-u64max
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 8994658091683098624
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
DATA_SOURCE 0 conf $0
BIT_INFO 1 r_sector 0x0,0xfffffffffffffff8
BIT_INFO 1 r_sector 0x0,0xfffffffffffffff8

drivers/md/raid5.c stripe_set_idx() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 0 conf 4096-ptr_max
PARAM_VALUE 2 previous 0-1
PARAM_VALUE 3 dd_idx 3433240900731846656
PARAM_VALUE 4 sh 4096-ptr_max
PARAM_VALUE 4 sh->batch_head 0
PARAM_VALUE 4 sh->check_state 0
PARAM_VALUE 4 sh->count.counter 0
PARAM_VALUE 4 sh->hash->next->pprev 1-u64max
PARAM_VALUE 4 sh->hash.next 0
PARAM_VALUE 4 sh->hash.next->pprev 1-u64max
PARAM_VALUE 4 sh->hash.pprev 0
PARAM_VALUE 4 sh->hash_lock_index 0-7
PARAM_VALUE 4 sh->reconstruct_state 0
CAPPED_DATA 4 sh->hash_lock_index 1
DATA_SOURCE 0 conf $1
DATA_SOURCE 2 previous $2
DATA_SOURCE 4 sh $3
HARD_MAX 2 previous 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 irq

drivers/md/raid5-cache.c r5c_recovery_analyze_meta_block() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 3278291843232276480
PARAM_VALUE 4 sh 0
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
RX_PATH
TASK_NOT_RUNNING
UNITS 1 r_sector unit_byte
HALF_LOCKED2 &mddev->reconfig_mutex

drivers/md/raid5-cache.c r5l_recovery_load_data() -> raid5_compute_sector()

Type Parameter Key Value
PARAM_VALUE 2 previous 0
PARAM_VALUE 3 dd_idx 3263485359458930688
PARAM_VALUE 4 sh 4096-ptr_max
BUF_SIZE 0 conf 1216,1600,2712
BUF_SIZE 0 conf 1216,1600,2712
DATA_SOURCE 4 sh $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 r_sector unit_byte
HALF_LOCKED2 &mddev->reconfig_mutex