Home
last modified time | relevance | path

Searched refs:sectorCount (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/drivers/block/disk/src/
Ddisk.c317 static INT32 DiskAddPart(los_disk *disk, UINT64 sectorStart, UINT64 sectorCount, BOOL IsValidPart) in DiskAddPart() argument
330 if ((sectorCount > disk->sector_count) || ((disk->sector_count - sectorCount) < sectorStart)) { in DiskAddPart()
331 …_ERR("DiskAddPart failed: sector start is %llu, sector count is %llu\n", sectorStart, sectorCount); in DiskAddPart()
352 part = DiskPartAllocate(partDev, sectorStart, sectorCount); in DiskAddPart()
359 part = DiskPartAllocate(diskDev, sectorStart, sectorCount); in DiskAddPart()
1735 INT32 add_mmc_partition(struct disk_divide_info *info, size_t sectorStart, size_t sectorCount) in add_mmc_partition() argument
1743 if ((info->part_count >= MAX_DIVIDE_PART_PER_DISK) || (sectorCount == 0)) { in add_mmc_partition()
1747 if ((sectorCount > info->sector_count) || ((info->sector_count - sectorCount) < sectorStart)) { in add_mmc_partition()
1759 info->part[index].sector_count = sectorCount; in add_mmc_partition()
/kernel/liteos_a/drivers/block/disk/include/
Ddisk.h681 INT32 add_mmc_partition(struct disk_divide_info *info, size_t sectorStart, size_t sectorCount);