Home
last modified time | relevance | path

Searched refs:meminfo (Results 1 – 3 of 3) sorted by relevance

/busybox-1.35.0/miscutils/
Dnandwrite.c78 static void dump_bad(struct mtd_info_user *meminfo, unsigned len, int oob) in dump_bad() argument
80 unsigned char buf[meminfo->writesize]; in dump_bad()
84 len = ((len - 1) | (meminfo->writesize - 1)) + 1; in dump_bad()
87 for (count = 0; count < len; count += meminfo->writesize) { in dump_bad()
88 xwrite(STDOUT_FILENO, buf, meminfo->writesize); in dump_bad()
90 xwrite(STDOUT_FILENO, buf, meminfo->oobsize); in dump_bad()
94 static unsigned next_good_eraseblock(int fd, struct mtd_info_user *meminfo, in next_good_eraseblock() argument
100 if (block_offset >= meminfo->size) { in next_good_eraseblock()
111 block_offset += meminfo->erasesize; in next_good_eraseblock()
126 struct mtd_info_user meminfo; in nandwrite_main() local
[all …]
Dflash_eraseall.c65 static void show_progress(mtd_info_t *meminfo, erase_info_t *erase) in show_progress() argument
68 (unsigned)meminfo->erasesize / 1024, in show_progress()
70 (unsigned) ((unsigned long long) erase->start * 100 / meminfo->size) in show_progress()
79 mtd_info_t meminfo; in flash_eraseall_main() local
94 xioctl(fd, MEMGETINFO, &meminfo); in flash_eraseall_main()
95 erase.length = meminfo.erasesize; in flash_eraseall_main()
96 if (meminfo.type == MTD_NANDFLASH) in flash_eraseall_main()
126 switch (meminfo.oobsize) { in flash_eraseall_main()
152 for (erase.start = 0; erase.start < meminfo.size; in flash_eraseall_main()
153 erase.start += meminfo.erasesize) { in flash_eraseall_main()
[all …]
/busybox-1.35.0/procps/
Dtop.c533 static void parse_meminfo(unsigned long meminfo[MI_MAX])
553 memset(meminfo, 0, sizeof(meminfo[0]) * MI_MAX);
562 meminfo[i] = strtoul(c+1, NULL, 10);
571 unsigned long meminfo[MI_MAX]; local
573 parse_meminfo(meminfo);
580 meminfo[MI_MEMTOTAL] - meminfo[MI_MEMFREE],
581 meminfo[MI_MEMFREE],
582 meminfo[MI_MEMSHARED] + meminfo[MI_SHMEM],
583 meminfo[MI_BUFFERS],
584 meminfo[MI_CACHED]);
[all …]