Lines Matching refs:sdebug_capacity

569 static sector_t sdebug_capacity;	/* in sectors */  variable
1522 sdebug_capacity = get_sdebug_capacity(); in resp_readcap()
1524 if (sdebug_capacity < 0xffffffff) { in resp_readcap()
1525 capac = (unsigned int)sdebug_capacity - 1; in resp_readcap()
1553 sdebug_capacity = get_sdebug_capacity(); in resp_readcap16()
1555 capac = sdebug_capacity - 1; in resp_readcap16()
2049 if ((bd_len > 0) && (!sdebug_capacity)) in resp_mode_sense()
2050 sdebug_capacity = get_sdebug_capacity(); in resp_mode_sense()
2053 if (sdebug_capacity > 0xfffffffe) { in resp_mode_sense()
2059 ap[0] = (sdebug_capacity >> 24) & 0xff; in resp_mode_sense()
2060 ap[1] = (sdebug_capacity >> 16) & 0xff; in resp_mode_sense()
2061 ap[2] = (sdebug_capacity >> 8) & 0xff; in resp_mode_sense()
2062 ap[3] = sdebug_capacity & 0xff; in resp_mode_sense()
2069 unsigned long long capac = sdebug_capacity; in resp_mode_sense()
2347 if (lba + num > sdebug_capacity) { in check_device_access_params()
2614 if (lba + num > sdebug_capacity) { in resp_read_dt0()
2927 if (lba + num > sdebug_capacity) { in resp_write_dt0()
3167 if (lba + num > sdebug_capacity) { in resp_comp_write()
3303 sdebug_capacity = get_sdebug_capacity(); in resp_get_lba_status()
3304 if (sdebug_capacity - lba <= 0xffffffff) in resp_get_lba_status()
3305 num = sdebug_capacity - lba; in resp_get_lba_status()
4559 sdebug_capacity = get_sdebug_capacity(); in virtual_gb_store()
4845 sdebug_capacity = get_sdebug_capacity(); in scsi_debug_init()
4854 sdebug_cylinders_per = (unsigned long)sdebug_capacity / in scsi_debug_init()
4860 sdebug_cylinders_per = (unsigned long)sdebug_capacity / in scsi_debug_init()