Lines Matching refs:sector_count
286 part->sector_count = count;
330 if ((sectorCount > disk->sector_count) || ((disk->sector_count - sectorCount) < sectorStart)) {
379 if (info->sector_count < info->part[i].sector_start) {
382 if (info->part[i].sector_count > (info->sector_count - info->part[i].sector_start)) {
383 PRINT_ERR("Part[%u] sector_start:%llu, sector_count:%llu, exceed emmc sector_count:%llu.\n", i,
384 info->part[i].sector_start, info->part[i].sector_count,
385 (info->sector_count - info->part[i].sector_start));
386 info->part[i].sector_count = info->sector_count - info->part[i].sector_start;
387 PRINT_ERR("Part[%u] sector_count change to %llu.\n", i, info->part[i].sector_count);
389 ret = DiskAddPart(disk, info->part[i].sector_start, info->part[i].sector_count, TRUE);
395 ret = DiskAddPart(disk, info->part[i].sector_start, info->part[i].sector_count, TRUE);
478 info->part[*partitionCount].sector_count = (partitionEnd - partitionStart) + 1;
509 if ((partitionStart >= partitionEnd) || (partitionEnd > info->sector_count)) {
613 if (info->sector_count <= LD_DWORD_DISK(&mbrBuf[PAR_OFFSET + PAR_START_OFFSET])) {
641 info->part[i].sector_count = LD_DWORD_DISK(&mbrBuf[PAR_OFFSET + PAR_COUNT_OFFSET + (i * PAR_TABLE_SIZE)]);
665 if (((UINT64)(extendedAddress) + extendedOffset) >= info->sector_count) {
683 info->part[MAX_PRIMARY_PART_PER_DISK + ebrCount].sector_count = LD_DWORD_DISK(&ebrBuf[PAR_OFFSET +
764 parInfo.sector_count = disk->sector_count;
767 part = get_part(DiskAddPart(disk, 0, disk->sector_count, FALSE));
780 part = get_part(DiskAddPart(disk, 0, disk->sector_count, TRUE));
794 part = get_part(DiskAddPart(disk, parInfo.part[i].sector_start, parInfo.part[i].sector_count, TRUE));
900 if ((count > disk->sector_count) || ((disk->sector_count - count) < sector)) {
957 if ((count > disk->sector_count) || ((disk->sector_count - count) < sector)) {
1065 if (count > part->sector_count) {
1072 if ((disk->sector_count - part->sector_start) > sector) {
1081 (((sector + count) > (part->sector_start + part->sector_count)) || (sector < part->sector_start))) {
1083 "part->sector_count = %llu\n", sector, count, part->sector_start, part->sector_count);
1121 if (count > part->sector_count) {
1128 if ((disk->sector_count - part->sector_start) > sector) {
1137 (((sector + count) > (part->sector_start + part->sector_count)) || (sector < part->sector_start))) {
1139 "part->sector_count = %llu\n", sector, count, part->sector_start, part->sector_count);
1196 *(UINT64 *)buf = part->sector_count;
1320 disk->sector_count = diskInfo->geo_nsectors;
1597 bc = BlockCacheInit(disk->dev, disk->sector_size, sectorPerBlock, blockNum, disk->sector_count / sectorPerBlock);
1747 if ((sectorCount > info->sector_count) || ((info->sector_count - sectorCount) < sectorStart)) {
1753 if (sectorStart < (info->part[i].sector_start + info->part[i].sector_count)) {
1759 info->part[index].sector_count = sectorCount;
1780 PRINTK("part sec count : %llu\n", part->sector_count);