Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/scsi/sd.c sd_completed_bytes() -> bytes_to_logical()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->sector_size 0-4294967294
PARAM_VALUE 1 bytes 1-u32max
CAPPED_DATA 0 sdev->sector_size 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sdev unit_byte

drivers/scsi/sd.c sd_config_write_same() -> bytes_to_logical()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->sector_size 0-4294967294
PARAM_VALUE 1 bytes 1-u32max
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING
UNITS 1 bytes unit_byte
LOCK2 &of->mutex
LOCK2 &sdkp->disk->queue->limits_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct request_queue)->limits_lock