Lines Matching refs:total_sectors
894 uint32_t total_sectors;
965 dev->total_sectors = c.device_size / dev->sector_size;
967 dev->total_sectors = stat_buf->st_size / dev->sector_size;
976 if (ioctl(fd, BLKGETSIZE64, &dev->total_sectors) < 0) {
982 if (ioctl(fd, BLKGETSIZE, &total_sectors) < 0) {
987 dev->total_sectors = total_sectors;
989 dev->total_sectors /= dev->sector_size;
1085 c.total_sectors += dev->total_sectors;
1176 dev->total_sectors = device_size / dev->sector_size;
1180 c.total_sectors += dev->total_sectors;
1202 if (c.wanted_total_sectors < c.total_sectors) {
1204 c.total_sectors, c.sector_size);
1205 c.total_sectors = c.wanted_total_sectors;
1206 c.devices[0].total_sectors = c.total_sectors;
1208 if (c.total_sectors * c.sector_size >
1280 c.total_sectors, (c.total_sectors *