Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 33) sorted by relevance

12

/components/fal/src/
A Dfal_partition.c76 const struct fal_partition *part; in fal_show_part_table() local
82 part = &partition_table[i]; in fal_show_part_table()
101 part = &partition_table[i]; in fal_show_part_table()
107 FAL_DEV_NAME_MAX, part->flash_name, part->offset, part->len); in fal_show_part_table()
414 RT_ASSERT(part); in fal_partition_read()
417 if (addr + size > part->len) in fal_partition_read()
455 RT_ASSERT(part); in fal_partition_write()
458 if (addr + size > part->len) in fal_partition_write()
495 RT_ASSERT(part); in fal_partition_erase()
497 if (addr + size > part->len) in fal_partition_erase()
[all …]
A Dfal_rtt.c43 RT_ASSERT(part != RT_NULL); in blk_dev_control()
89 RT_ASSERT(part != RT_NULL); in blk_dev_read()
91 …ret = fal_partition_read(part->fal_part, pos * part->geometry.block_size, buffer, size * part->geo… in blk_dev_read()
108 struct fal_blk_device *part; in blk_dev_write() local
113 RT_ASSERT(part != RT_NULL); in blk_dev_write()
226 RT_ASSERT(part != RT_NULL); in mtd_nor_dev_read()
248 RT_ASSERT(part != RT_NULL); in mtd_nor_dev_write()
270 RT_ASSERT(part != RT_NULL); in mtd_nor_dev_erase()
357 RT_ASSERT(part != RT_NULL); in char_dev_read()
376 RT_ASSERT(part != RT_NULL); in char_dev_write()
[all …]
/components/fal/docs/
A Dfal_api.md52 int fal_partition_read(const struct fal_partition *part, rt_uint32_t addr, rt_uint8_t *buf, rt_size…
57 | part | 分区对象 |
66 int fal_partition_write(const struct fal_partition *part, rt_uint32_t addr, const rt_uint8_t *buf, …
71 | part | 分区对象 |
80 int fal_partition_erase(const struct fal_partition *part, rt_uint32_t addr, rt_size_t size)
85 | part | 分区对象 |
93 int fal_partition_erase_all(const struct fal_partition *part)
98 | part | 分区对象 |
A Dfal_api_en.md52 int fal_partition_read(const struct fal_partition *part, rt_uint32_t addr, rt_uint8_t *buf, rt_size…
57 | part | Partition object |
66 int fal_partition_write(const struct fal_partition *part, rt_uint32_t addr, const rt_uint8_t *buf, …
71 | part | Partition object |
80 int fal_partition_erase(const struct fal_partition *part, rt_uint32_t addr, rt_size_t size)
85 | part | Partition object |
93 int fal_partition_erase_all(const struct fal_partition *part)
98 | part | Partition object |
/components/drivers/block/partitions/
A Ddfs.c21 struct dfs_partition part; in dfs_partition() local
39 res = dfs_filesystem_get_partition(&part, sector, i); in dfs_partition()
46 if (blk_put_partition(disk, "dfs", part.offset, part.size, i) == -RT_ENOMEM) in dfs_partition()
A Defi.c68 rt_inline int pmbr_part_valid(gpt_mbr_record *part) in pmbr_part_valid() argument
70 if (part->os_type != EFI_PMBR_OSTYPE_EFI_GPT) in pmbr_part_valid()
76 if (rt_le32_to_cpu(part->starting_lba) != GPT_PRIMARY_PARTITION_TABLE_LBA) in pmbr_part_valid()
97 int part = 0, ret = 0; /* invalid by default */ in is_pmbr_valid() local
110 part = i; in is_pmbr_valid()
149 sz = rt_le32_to_cpu(mbr->partition_record[part].size_in_lba); in is_pmbr_valid()
/components/fal/inc/
A Dfal.h81 int fal_partition_read(const struct fal_partition *part, rt_uint32_t addr, rt_uint8_t *buf, rt_size…
94 int fal_partition_write(const struct fal_partition *part, rt_uint32_t addr, const rt_uint8_t *buf, …
106 int fal_partition_erase(const struct fal_partition *part, rt_uint32_t addr, rt_size_t size);
116 int fal_partition_erase_all(const struct fal_partition *part);
/components/dfs/dfs_v1/src/
A Ddfs_fs.c156 int dfs_filesystem_get_partition(struct dfs_partition *part, in dfs_filesystem_get_partition() argument
166 RT_ASSERT(part != NULL); in dfs_filesystem_get_partition()
182 part->type = type; in dfs_filesystem_get_partition()
183 part->offset = *(dpt + 8) | *(dpt + 9) << 8 | *(dpt + 10) << 16 | *(dpt + 11) << 24; in dfs_filesystem_get_partition()
184 part->size = *(dpt + 12) | *(dpt + 13) << 8 | *(dpt + 14) << 16 | *(dpt + 15) << 24; in dfs_filesystem_get_partition()
187 pindex, part->offset * 512); in dfs_filesystem_get_partition()
188 if ((part->size >> 11) == 0) in dfs_filesystem_get_partition()
189 rt_kprintf("%d%s", part->size >> 1, "KB\n"); /* KB */ in dfs_filesystem_get_partition()
193 part_size = part->size >> 11; /* MB */ in dfs_filesystem_get_partition()
195 rt_kprintf("%d.%d%s", part_size, (part->size >> 1) & 0x3FF, "MB\n"); in dfs_filesystem_get_partition()
/components/dfs/dfs_v2/src/
A Ddfs_fs.c679 int dfs_filesystem_get_partition(struct dfs_partition *part, in dfs_filesystem_get_partition() argument
689 RT_ASSERT(part != NULL); in dfs_filesystem_get_partition()
705 part->type = type; in dfs_filesystem_get_partition()
706 part->offset = *(dpt + 8) | *(dpt + 9) << 8 | *(dpt + 10) << 16 | *(dpt + 11) << 24; in dfs_filesystem_get_partition()
707 part->size = *(dpt + 12) | *(dpt + 13) << 8 | *(dpt + 14) << 16 | *(dpt + 15) << 24; in dfs_filesystem_get_partition()
710 pindex, part->offset * 512); in dfs_filesystem_get_partition()
711 if ((part->size >> 11) == 0) in dfs_filesystem_get_partition()
712 rt_kprintf("%ld%s", part->size >> 1, "KB\n"); /* KB */ in dfs_filesystem_get_partition()
716 part_size = part->size >> 11; /* MB */ in dfs_filesystem_get_partition()
718 rt_kprintf("%d.%ld%s", part_size, (part->size >> 1) & 0x3FF, "MB\n"); in dfs_filesystem_get_partition()
/components/legacy/usb/usbhost/class/
A Dudisk.c196 struct dfs_partition part[MAX_PARTITION_COUNT]; in rt_udisk_run() local
314 ret = dfs_filesystem_get_partition(&part[i], sector, i); in rt_udisk_run()
328 data->part.lock = rt_sem_create(sname, 1, RT_IPC_FLAG_FIFO); in rt_udisk_run()
370 data->part.offset = 0; in rt_udisk_run()
371 data->part.size = 0; in rt_udisk_run()
373 data->part.lock = rt_sem_create("sem_ud", 1, RT_IPC_FLAG_FIFO); in rt_udisk_run()
444 rt_sem_delete(data->part.lock); in rt_udisk_stop()
A Dmass.h22 struct dfs_partition part; member
/components/libc/posix/
A Dreadme.md1 This folder provides functions that are not part of the standard C library but are part of the POSI…
/components/net/lwip/lwip-1.4.1/doc/
A Dsnmp_agent.txt137 An example for a private MIB is part of the "minimal Unix" project:
153 the middle part
156 and the index part
165 for a matching prefix, middle part and index part
171 The middle part is usually located in ROM (const)
176 The index part is handled by functions which in
/components/libc/compilers/common/extension/
A Dreadme.md3 This folder is "common" for toolchains, which only support ISO C, as an extension part, such as Kei…
/components/dfs/dfs_v1/include/
A Ddfs_fs.h82 int dfs_filesystem_get_partition(struct dfs_partition *part,
/components/dfs/dfs_v2/include/
A Ddfs_fs.h133 int dfs_filesystem_get_partition(struct dfs_partition *part,
/components/net/lwip/lwip-2.0.3/
A DCOPYING27 * This file is part of the lwIP TCP/IP stack.
/components/net/lwip/lwip-2.1.2/
A DCOPYING27 * This file is part of the lwIP TCP/IP stack.
/components/net/lwip/lwip-1.4.1/
A DCOPYING27 * This file is part of the lwIP TCP/IP stack.
/components/drivers/usb/cherryusb/
A DLICENSE103 excluding those notices that do not pertain to any part of
106 (d) If the Work includes a "NOTICE" text file as part of its
110 pertain to any part of the Derivative Works, in at least one
112 as part of the Derivative Works; within the Source form or
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dinit.h.cmake.in32 * This file is part of the lwIP TCP/IP stack.
/components/net/lwip/lwip-2.0.3/doc/
A Dmqtt_client.txt116 /* Last fragment of payload received (or whole part if payload fits receive buffer
/components/net/lwip/lwip-2.1.2/doc/
A Dmqtt_client.txt116 /* Last fragment of payload received (or whole part if payload fits receive buffer
/components/dfs/dfs_v1/filesystems/elmfat/
A Dff.c3280 UINT part /* Partition to fined = 0:auto, 1..:forced */ argument
3288 …if (fmt != 2 && (fmt >= 3 || part == 0)) return fmt; /* Returns if it is an FAT VBR as auto scan, …
3307 if (part == 0 && fmt <= 1) return fmt; /* Auto search (valid FAT volume found first) */
3308 …if (part != 0 && v_ent == part) return fmt; /* Forced partition order (regardless of it is valid …
3314 if (FF_MULTI_PARTITION && part > 4) return 3; /* MBR has 4 partitions max */
3318 i = part ? part - 1 : 0; /* Table index to find first */
3321 } while (part == 0 && fmt >= 2 && ++i < 4);
/components/dfs/dfs_v2/filesystems/elmfat/
A Dff.c3333 UINT part /* Partition to fined = 0:find as SFD and partitions, >0:forced partition number */ argument
3341 …if (fmt != 2 && (fmt >= 3 || part == 0)) return fmt; /* Returns if it is an FAT VBR as auto scan, …
3360 if (part == 0 && fmt <= 1) return fmt; /* Auto search (valid FAT volume found first) */
3361 …if (part != 0 && v_ent == part) return fmt; /* Forced partition order (regardless of it is valid …
3367 if (FF_MULTI_PARTITION && part > 4) return 3; /* MBR has 4 partitions max */
3371 i = part ? part - 1 : 0; /* Table index to find first */
3374 } while (part == 0 && fmt >= 2 && ++i < 4);

Completed in 49 milliseconds

12