Lines Matching refs:total_sectors
895 uint32_t total_sectors; in get_device_info() local
966 dev->total_sectors = c.device_size / dev->sector_size; in get_device_info()
968 dev->total_sectors = stat_buf->st_size / dev->sector_size; in get_device_info()
977 if (ioctl(fd, BLKGETSIZE64, &dev->total_sectors) < 0) { in get_device_info()
983 if (ioctl(fd, BLKGETSIZE, &total_sectors) < 0) { in get_device_info()
988 dev->total_sectors = total_sectors; in get_device_info()
990 dev->total_sectors /= dev->sector_size; in get_device_info()
1089 c.total_sectors += dev->total_sectors; in get_device_info()
1180 dev->total_sectors = device_size / dev->sector_size; in get_device_info()
1184 c.total_sectors += dev->total_sectors; in get_device_info()
1206 if (c.wanted_total_sectors < c.total_sectors) { in f2fs_get_f2fs_info()
1208 c.total_sectors, c.sector_size); in f2fs_get_f2fs_info()
1209 c.total_sectors = c.wanted_total_sectors; in f2fs_get_f2fs_info()
1210 c.devices[0].total_sectors = c.total_sectors; in f2fs_get_f2fs_info()
1212 if (c.total_sectors * c.sector_size > in f2fs_get_f2fs_info()
1284 c.total_sectors, (c.total_sectors * in f2fs_get_f2fs_info()