Searched refs:numparts (Results 1 – 4 of 4) sorted by relevance
/openbmc/u-boot/cmd/ |
H A D | gpt.c | 158 static int calc_parts_list_len(int numparts) in calc_parts_list_len() argument 165 partlistlen += numparts * (strlen("name=,") + PART_NAME_LEN + 1); in calc_parts_list_len() 167 partlistlen += numparts * (strlen("start=MiB,") + sizeof(lbaint_t) + 1); in calc_parts_list_len() 168 partlistlen += numparts * (strlen("size=MiB,") + sizeof(lbaint_t) + 1); in calc_parts_list_len() 169 partlistlen += numparts * (strlen("uuid=;") + UUID_STR_LEN + 1); in calc_parts_list_len() 173 numparts); in calc_parts_list_len() 265 static int create_gpt_partitions_list(int numparts, const char *guid, in create_gpt_partitions_list() argument 659 int partlistlen, ret, numparts = 0, partnum, i = 1, ctr1 = 0, ctr2 = 0; in do_rename_gpt_parts() local 672 numparts = get_gpt_info(dev_desc); in do_rename_gpt_parts() 673 if (numparts <= 0) in do_rename_gpt_parts() [all …]
|
/openbmc/linux/drivers/mtd/parsers/ |
H A D | qcomsmempart.c | 53 __le32 numparts; member 62 int ret, i, j, tmpparts, numparts = 0; in parse_qcomsmem_part() local 91 tmpparts = le32_to_cpu(ptable->numparts); in parse_qcomsmem_part() 123 numparts++; in parse_qcomsmem_part() 126 parts = kcalloc(numparts, sizeof(*parts), GFP_KERNEL); in parse_qcomsmem_part() 159 return numparts; in parse_qcomsmem_part()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | diskonchip.c | 914 int numparts = 0; in nftl_partscan() local 987 numparts = 1; in nftl_partscan() 990 parts[numparts].name = " DiskOnChip BDTL partition"; in nftl_partscan() 991 parts[numparts].offset = offs; in nftl_partscan() 992 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan() 994 offs += parts[numparts].size; in nftl_partscan() 995 numparts++; in nftl_partscan() 998 parts[numparts].name = " DiskOnChip Remainder partition"; in nftl_partscan() 999 parts[numparts].offset = offs; in nftl_partscan() 1000 parts[numparts].size = mtd->size - offs; in nftl_partscan() [all …]
|
/openbmc/linux/drivers/mtd/chips/ |
H A D | cfi_cmdset_0001.c | 721 int numregions, numparts, partshift, numvirtchips, i, j; in cfi_intelext_partition_fixup() local 740 numparts = 0; in cfi_intelext_partition_fixup() 744 numparts += rinfo->NumIdentPartitions; in cfi_intelext_partition_fixup() 750 if (!numparts) in cfi_intelext_partition_fixup() 751 numparts = 1; in cfi_intelext_partition_fixup() 770 partshift = cfi->chipshift - __ffs(numparts); in cfi_intelext_partition_fixup() 775 __func__, numparts); in cfi_intelext_partition_fixup() 779 numvirtchips = cfi->numchips * numparts; in cfi_intelext_partition_fixup() 799 for (j = 0; j < numparts; j++) { in cfi_intelext_partition_fixup()
|