• Home
  • Raw
  • Download

Lines Matching refs:capacity

1230        	diskinfo[2] = sdkp->capacity >> 11;  in sd_getgeo()
1234 host->hostt->bios_param(sdp, bdev, sdkp->capacity, diskinfo); in sd_getgeo()
1236 scsicam_bios_param(bdev, sdkp->capacity, diskinfo); in sd_getgeo()
1313 sdkp->capacity = 0; in set_media_not_present()
1917 sdkp->capacity = 0; /* unknown mapped to zero - as usual */ in read_capacity_error()
1988 sdkp->capacity = 0; in read_capacity_16()
1992 if ((sizeof(sdkp->capacity) == 4) && (lba >= 0xffffffffULL)) { in read_capacity_16()
1996 sdkp->capacity = 0; in read_capacity_16()
2019 sdkp->capacity = lba + 1; in read_capacity_16()
2073 sdkp->capacity = 0; in read_capacity_10()
2078 if ((sizeof(sdkp->capacity) == 4) && (lba == 0xffffffff)) { in read_capacity_10()
2082 sdkp->capacity = 0; in read_capacity_10()
2086 sdkp->capacity = lba + 1; in read_capacity_10()
2112 sector_t old_capacity = sdkp->capacity; in sd_read_capacity()
2130 if ((sizeof(sdkp->capacity) > 4) && in sd_read_capacity()
2131 (sdkp->capacity > 0xffffffffULL)) { in sd_read_capacity()
2139 sdkp->capacity = 1 + (sector_t) 0xffffffff; in sd_read_capacity()
2157 (sdp->guess_capacity && (sdkp->capacity & 0x01))) { in sd_read_capacity()
2160 (unsigned long long) sdkp->capacity); in sd_read_capacity()
2161 --sdkp->capacity; in sd_read_capacity()
2184 sdkp->capacity = 0; in sd_read_capacity()
2197 u64 sz = (u64)sdkp->capacity << ilog2(sector_size); in sd_read_capacity()
2204 if (sdkp->first_scan || old_capacity != sdkp->capacity) { in sd_read_capacity()
2207 (unsigned long long)sdkp->capacity, in sd_read_capacity()
2217 sdp->use_16_for_rw = (sdkp->capacity > 0xffffffff); in sd_read_capacity()
2221 sdkp->capacity <<= 3; in sd_read_capacity()
2223 sdkp->capacity <<= 2; in sd_read_capacity()
2225 sdkp->capacity <<= 1; in sd_read_capacity()
2227 sdkp->capacity >>= 1; in sd_read_capacity()
2721 set_capacity(disk, sdkp->capacity); in sd_revalidate_disk()
2821 sdkp->capacity = 0; in sd_probe_async()
2844 if (sdkp->capacity) in sd_probe_async()