Searched refs:parts (Results 1 - 25 of 30) sorted by relevance

12

/u-boot/board/emulation/common/
H A Dqemu_mtdparts.c41 static char parts[3 * MTDPARTS_LEN + 1]; local
47 *mtdparts = parts;
51 memset(parts, 0, sizeof(parts));
66 board_get_mtdparts("nor0", mtd_partition, ids, parts);
73 board_get_mtdparts("nor1", mtd_partition, ids, parts);
80 *mtdparts = parts;
81 debug("%s:mtdids=%s & mtdparts=%s\n", __func__, ids, parts);
/u-boot/test/dm/
H A Dfastboot.c25 struct disk_partition parts[2] = { local
45 gen_rand_uuid_str(parts[0].uuid, UUID_STR_FORMAT_STD);
46 gen_rand_uuid_str(parts[1].uuid, UUID_STR_FORMAT_STD);
49 ut_assertok(gpt_restore(mmc_dev_desc, str_disk_guid, parts,
50 ARRAY_SIZE(parts)));
H A Dpart.c35 struct disk_partition parts[2] = { local
50 gen_rand_uuid_str(parts[0].uuid, UUID_STR_FORMAT_STD);
51 gen_rand_uuid_str(parts[1].uuid, UUID_STR_FORMAT_STD);
54 ut_assertok(gpt_restore(mmc_dev_desc, str_disk_guid, parts,
55 ARRAY_SIZE(parts)));
/u-boot/test/cmd/
H A Drw.c16 struct disk_partition parts[2] = { local
31 gen_rand_uuid_str(parts[0].uuid, UUID_STR_FORMAT_STD);
32 gen_rand_uuid_str(parts[1].uuid, UUID_STR_FORMAT_STD);
35 ut_assertok(gpt_restore(*mmc_dev_desc, str_disk_guid, parts,
36 ARRAY_SIZE(parts)));
/u-boot/cmd/
H A Dmbr.c101 struct disk_partition *parts; local
142 parts = calloc(sizeof(struct disk_partition), p_count);
143 if (parts == NULL)
162 parts[i].size = 0;
165 parts[i].size = size_ll / blksz;
174 parts[i].start = start_ll / blksz;
185 parts[i].sys_ind = ustrtoul(p, &p, 0);
190 parts[i].bootable = PART_BOOTABLE;
194 *partitions = parts;
200 free(parts);
263 const char *parts = NULL; local
[all...]
H A Dmtdparts.c491 * Delete all partitions from parts head list, free memory.
524 if (list_empty(&dev->parts)) {
526 list_add(&part->link, &dev->parts);
539 list_for_each(entry, &dev->parts) {
566 list_add_tail(&part->link, &dev->parts);
746 part_delall(&dev_tmp->parts);
763 part_delall(&dev->parts);
890 part = list_entry(dev->parts.prev, struct part_info, link);
947 INIT_LIST_HEAD(&dev->parts);
950 /* move partitions from tmp_list to dev->parts */
1723 const char *ids, *parts; local
[all...]
H A Dgpt.c442 struct disk_partition *parts; local
500 parts = calloc(sizeof(struct disk_partition), p_count);
501 if (parts == NULL)
516 gen_rand_uuid_str(parts[i].uuid, UUID_STR_FORMAT_STD);
524 if (strnlen(p, max_str_part) >= sizeof(parts[i].uuid)) {
529 strncpy((char *)parts[i].uuid, p, max_str_part);
539 if (strnlen(p, max_str_part) >= sizeof(parts[i].type_guid)) {
545 strncpy((char *)parts[i].type_guid, p, max_str_part);
557 if (strnlen(p, max_str_part) >= sizeof(parts[i].name)) {
561 strncpy((char *)parts[
[all...]
H A Djffs2.c400 INIT_LIST_HEAD(&current_mtd_dev->parts);
401 list_add(&part->link, &current_mtd_dev->parts);
438 list_for_each(entry, &dev->parts) {
/u-boot/include/linux/mtd/
H A Dpartitions.h92 void mtd_free_parsed_partitions(struct mtd_partition *parts,
104 mtd_free_parsed_partitions(struct mtd_partition *parts, unsigned int nparts) argument
/u-boot/drivers/mtd/nand/raw/
H A Dpxa3xx_nand.h58 const struct mtd_partition *parts[NUM_CHIP_SELECT]; member in struct:pxa3xx_nand_platform_data
/u-boot/board/isee/igep00x0/
H A Digep00x0.c144 * Description: Configure board specific parts
183 static char parts[48]; local
188 snprintf(parts, sizeof(parts), "mtdparts=%s:%dk(SPL),-(UBI)",
191 *mtdparts = parts;
/u-boot/drivers/mtd/
H A Dmtdpart.c208 struct mtd_partition partition = {}, *parts; local
226 parts = malloc(sizeof(*parts) * nparts);
227 if (!parts) {
234 ret = mtd_parse_partition(_mtdparts, &parts[idx]);
238 if (parts[idx].size == MTD_SIZE_REMAINING)
239 parts[idx].size = parent->size - cur_sz;
240 cur_sz += parts[idx].size;
242 sz = parts[idx].size;
249 if (parts[id
276 mtd_free_parsed_partitions(struct mtd_partition *parts, unsigned int nparts) argument
857 add_mtd_partitions(struct mtd_info *master, const struct mtd_partition *parts, int nbparts) argument
887 ofnode parts, child; local
[all...]
H A Dmtd_uboot.c218 struct mtd_partition *parts; local
287 * pointer, create an array of parts (that must be freed), and
290 ret = mtd_parse_partitions(mtd, &mtdparts, &parts, &nparts);
301 add_mtd_partitions(mtd, parts, nparts);
304 mtd_free_parsed_partitions(parts, nparts);
343 * Remove all old parts. Note that partition removal can fail in case
351 * parts removal loop.
372 * parts registration loop.
/u-boot/scripts/
H A Dstyle.py55 parts = os.path.splitext(fname)[0].split('/')[1:]
56 module_name = '.'.join(parts)
57 return module_name, parts[-1], parts[0]
/u-boot/test/py/tests/
H A Dtest_gpt.py30 parts = []
44 parts.append(part)
46 return parts
134 parts = parse_gpt_parts(output.rstrip())
136 assert parts == [
299 parts = ('part2', 'part1')
300 for bootable in parts:
304 for p in parts:
H A Dtest_ut.py290 parts = {}
329 start = parts[partnum].start * sect_size
401 parts[int(num)] = Partition(int(start), int(size), name)
/u-boot/include/jffs2/
H A Dload_kernel.h29 struct list_head parts; /* partitions */ member in struct:mtd_device
/u-boot/tools/binman/
H A Delf.py81 parts = rest[7:].split()
82 section, size = parts[:2]
83 if len(parts) > 2:
84 name = parts[2] if parts[2] != '.hidden' else parts[3]
356 # Spilt the text into two parts so that we can make the entry point two
H A Dimage.py225 parts = entry_path.split('/')
228 for part in parts:
/u-boot/tools/patman/
H A Dpatchstream.py598 parts = [time_now.strftime("%Y%m%d%H%M%S")]
602 parts.append(self.series['prefix'])
604 parts.append(self.series['postfix'])
606 parts.append("v%s" % self.series['version'])
608 parts.append(str(self.commit.count + 1))
611 parts.append(self.commit.change_id)
613 # Join parts together with "." and write it out.
614 outfd.write('Message-Id: <%s@changeid>\n' % '.'.join(parts))
/u-boot/board/CZ.NIC/turris_omnia/
H A Dturris_omnia.c1126 int parts; local
1128 parts = fdt_subnode_offset(blob, offset, "partitions");
1129 if (parts >= 0) {
1130 if (fdt_del_node(blob, parts) < 0)
1137 parts = fdt_add_subnode(blob, offset, "partitions");
1138 if (parts < 0)
1141 if (fdt_setprop_u32(blob, parts, "#address-cells", 1) < 0)
1144 if (fdt_setprop_u32(blob, parts, "#size-cells", 1) < 0)
1147 if (fdt_setprop_string(blob, parts, "compatible",
1158 part = fdt_add_subnode(blob, parts, nam
[all...]
/u-boot/test/py/
H A Dconftest.py323 parts = fixture_name.split('__')
324 if len(parts) < 2:
326 if parts[0] not in subconfigs:
328 subconfig = subconfigs[parts[0]]
/u-boot/include/
H A Dpart.h514 * @parts: number of partitions
519 struct disk_partition *partitions, int parts);
602 * @parts: number of partitions read from '$partitions' env variable
609 struct disk_partition *partitions, int parts,
/u-boot/tools/dtoc/
H A Dfdt.py869 parts = path.split('/')
870 if len(parts) < 2:
872 if len(parts) == 2 and parts[1] == '':
874 for part in parts[1:]:
/u-boot/disk/
H A Dpart_efi.c417 struct disk_partition *partitions, int parts)
437 for (i = 0; i < parts; i++) {
466 if ((i == parts - 1) && (size == 0))
793 struct disk_partition *partitions, int parts,
807 for (i = 0; i < parts; i++) {
836 if ((i == parts - 1) && (partitions[i].size == 0))
415 gpt_fill_pte(struct blk_desc *desc, gpt_header *gpt_h, gpt_entry *gpt_e, struct disk_partition *partitions, int parts) argument
792 gpt_verify_partitions(struct blk_desc *desc, struct disk_partition *partitions, int parts, gpt_header *gpt_head, gpt_entry **gpt_pte) argument

Completed in 118 milliseconds

12