Lines Matching refs:sdebug_capacity
798 static sector_t sdebug_capacity; /* in sectors */ variable
1841 sdebug_capacity = get_sdebug_capacity(); in resp_readcap()
1843 if (sdebug_capacity < 0xffffffff) { in resp_readcap()
1844 capac = (unsigned int)sdebug_capacity - 1; in resp_readcap()
1862 sdebug_capacity = get_sdebug_capacity(); in resp_readcap16()
1864 put_unaligned_be64((u64)(sdebug_capacity - 1), arr + 0); in resp_readcap16()
2359 if ((bd_len > 0) && (!sdebug_capacity)) in resp_mode_sense()
2360 sdebug_capacity = get_sdebug_capacity(); in resp_mode_sense()
2363 if (sdebug_capacity > 0xfffffffe) in resp_mode_sense()
2366 put_unaligned_be32(sdebug_capacity, ap + 0); in resp_mode_sense()
2371 put_unaligned_be64((u64)sdebug_capacity, ap + 0); in resp_mode_sense()
2865 if (lba + num > sdebug_capacity) { in check_device_access_params()
4010 sdebug_capacity = get_sdebug_capacity(); in resp_get_lba_status()
4011 if (sdebug_capacity - lba <= 0xffffffff) in resp_get_lba_status()
4012 num = sdebug_capacity - lba; in resp_get_lba_status()
4041 if (lba + num_blocks > sdebug_capacity) { in resp_sync_cache()
4078 if (lba + nblks > sdebug_capacity) { in resp_pre_fetch()
4306 if (zs_lba >= sdebug_capacity) { in resp_report_zones()
4327 if (lba > sdebug_capacity) in resp_report_zones()
4404 put_unaligned_be64(sdebug_capacity - 1, arr + 8); in resp_report_zones()
4461 if (z_id >= sdebug_capacity) { in resp_open_zone()
4529 if (z_id >= sdebug_capacity) { in resp_close_zone()
4602 if (z_id >= sdebug_capacity) { in resp_finish_zone()
4677 if (z_id >= sdebug_capacity) { in resp_rwp_zone()
6267 sdebug_capacity = get_sdebug_capacity(); in virtual_gb_store()
6771 sdebug_capacity = get_sdebug_capacity(); in scsi_debug_init()
6780 sdebug_cylinders_per = (unsigned long)sdebug_capacity / in scsi_debug_init()
6786 sdebug_cylinders_per = (unsigned long)sdebug_capacity / in scsi_debug_init()