Lines Matching refs:total_sectors
880 uint32_t total_sectors; in get_device_info() local
951 dev->total_sectors = c.device_size / dev->sector_size; in get_device_info()
953 dev->total_sectors = stat_buf->st_size / dev->sector_size; in get_device_info()
962 if (ioctl(fd, BLKGETSIZE64, &dev->total_sectors) < 0) { in get_device_info()
968 if (ioctl(fd, BLKGETSIZE, &total_sectors) < 0) { in get_device_info()
973 dev->total_sectors = total_sectors; in get_device_info()
975 dev->total_sectors /= dev->sector_size; in get_device_info()
1066 c.total_sectors += dev->total_sectors; in get_device_info()
1157 dev->total_sectors = device_size / dev->sector_size; in get_device_info()
1161 c.total_sectors += dev->total_sectors; in get_device_info()
1177 if (c.wanted_total_sectors < c.total_sectors) { in f2fs_get_device_info()
1179 c.total_sectors, c.sector_size); in f2fs_get_device_info()
1180 c.total_sectors = c.wanted_total_sectors; in f2fs_get_device_info()
1181 c.devices[0].total_sectors = c.total_sectors; in f2fs_get_device_info()
1183 if (c.total_sectors * c.sector_size > in f2fs_get_device_info()
1252 c.total_sectors, (c.total_sectors * in f2fs_get_device_info()