Lines Matching refs:sdebug_capacity
798 static sector_t sdebug_capacity; /* in sectors */ variable
1843 sdebug_capacity = get_sdebug_capacity(); in resp_readcap()
1845 if (sdebug_capacity < 0xffffffff) { in resp_readcap()
1846 capac = (unsigned int)sdebug_capacity - 1; in resp_readcap()
1864 sdebug_capacity = get_sdebug_capacity(); in resp_readcap16()
1866 put_unaligned_be64((u64)(sdebug_capacity - 1), arr + 0); in resp_readcap16()
2370 if ((bd_len > 0) && (!sdebug_capacity)) in resp_mode_sense()
2371 sdebug_capacity = get_sdebug_capacity(); in resp_mode_sense()
2374 if (sdebug_capacity > 0xfffffffe) in resp_mode_sense()
2377 put_unaligned_be32(sdebug_capacity, ap + 0); in resp_mode_sense()
2382 put_unaligned_be64((u64)sdebug_capacity, ap + 0); in resp_mode_sense()
2895 if (lba + num > sdebug_capacity) { in check_device_access_params()
4040 sdebug_capacity = get_sdebug_capacity(); in resp_get_lba_status()
4041 if (sdebug_capacity - lba <= 0xffffffff) in resp_get_lba_status()
4042 num = sdebug_capacity - lba; in resp_get_lba_status()
4071 if (lba + num_blocks > sdebug_capacity) { in resp_sync_cache()
4108 if (lba + nblks > sdebug_capacity) { in resp_pre_fetch()
4340 if (zs_lba >= sdebug_capacity) { in resp_report_zones()
4361 if (lba > sdebug_capacity) in resp_report_zones()
4438 put_unaligned_be64(sdebug_capacity - 1, arr + 8); in resp_report_zones()
4495 if (z_id >= sdebug_capacity) { in resp_open_zone()
4563 if (z_id >= sdebug_capacity) { in resp_close_zone()
4636 if (z_id >= sdebug_capacity) { in resp_finish_zone()
4716 if (z_id >= sdebug_capacity) { in resp_rwp_zone()
6306 sdebug_capacity = get_sdebug_capacity(); in virtual_gb_store()
6811 sdebug_capacity = get_sdebug_capacity(); in scsi_debug_init()
6820 sdebug_cylinders_per = (unsigned long)sdebug_capacity / in scsi_debug_init()
6826 sdebug_cylinders_per = (unsigned long)sdebug_capacity / in scsi_debug_init()