OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mtd_device
(Results
1 - 4
of
4
) sorted by null
/external/vboot_reference/cgpt/
cgpt_nor.h
12
// Obtain the MTD size from its sysfs node. |
mtd_device
| should point to
14
int GetMtdSize(const char *
mtd_device
, uint64_t *size);
cgpt_wrapper.c
68
const char *
mtd_device
) {
88
if (GetMtdSize(
mtd_device
, &drive_size) != 0) {
89
Error("Cannot get the size of %s.\n",
mtd_device
);
110
if (strcmp(my_argv[i],
mtd_device
) == 0) {
163
const char *
mtd_device
= find_mtd_device(argc, argv);
local
164
if (
mtd_device
) {
165
return wrap_cgpt(argc, argv,
mtd_device
);
cgpt_nor.c
29
int GetMtdSize(const char *
mtd_device
, uint64_t *size) {
30
mtd_device
= strrchr(
mtd_device
, '/');
31
if (
mtd_device
== NULL) {
36
if (asprintf(&sysfs_name, "/sys/class/mtd%s/size",
mtd_device
) == -1) {
/system/sepolicy/
file_contexts
84
/dev/mtd(/.*)? u:object_r:
mtd_device
:s0
Completed in 356 milliseconds