Home
last modified time | relevance | path

Searched defs:FlashromError (Results 1 – 4 of 4) sorted by relevance

/aosp_15_r20/external/flashrom/util/flashrom_tester/flashrom/src/
H A Dlib.rs89 pub struct FlashromError { struct
93 impl fmt::Display for FlashromError { implementation
99 impl error::Error for FlashromError {} implementation
101 impl<T> From<T> for FlashromError implementation
112 fn get_size(&self) -> Result<i64, FlashromError>; in get_size() argument
115 fn name(&self) -> Result<(String, String), FlashromError>; in name() argument
118 fn wp_range(&self, range: (i64, i64), wp_enable: bool) -> Result<bool, FlashromError>; in wp_range() argument
121 fn wp_list(&self) -> Result<String, FlashromError>; in wp_list() argument
124 fn wp_status(&self, en: bool) -> Result<bool, FlashromError>; in wp_status() argument
131 fn wp_toggle(&self, en: bool) -> Result<bool, FlashromError>; in wp_toggle() argument
[all …]
H A Dflashromlib.rs63 fn get_size(&self) -> Result<i64, FlashromError> { in get_size() argument
67 fn name(&self) -> Result<(String, String), FlashromError> { in name() argument
71 fn wp_range(&self, range: (i64, i64), wp_enable: bool) -> Result<bool, FlashromError> { in wp_range() argument
85 fn wp_list(&self) -> Result<String, FlashromError> { in wp_list() argument
90 fn wp_status(&self, en: bool) -> Result<bool, FlashromError> { in wp_status() argument
104 fn wp_toggle(&self, en: bool) -> Result<bool, FlashromError> { in wp_toggle() argument
109 fn read_into_file(&self, path: &Path) -> Result<(), FlashromError> { in read_into_file() argument
115 fn read_region_into_file(&self, path: &Path, region: &str) -> Result<(), FlashromError> { in read_region_into_file() argument
124 fn write_from_file(&self, path: &Path) -> Result<(), FlashromError> { in write_from_file() argument
135 ) -> Result<bool, FlashromError> { in write_from_file_region() argument
[all …]
H A Dcmd.rs95 fn flashrom_extract_size(stdout: &str) -> Result<i64, FlashromError> { in flashrom_extract_size() argument
118 ) -> Result<(String, String), FlashromError> { in dispatch() argument
125 fn get_size(&self) -> Result<i64, FlashromError> { in get_size() argument
131 fn name(&self) -> Result<(String, String), FlashromError> { in name() argument
149 ) -> Result<bool, FlashromError> { in write_from_file_region() argument
163 fn wp_range(&self, range: (i64, i64), en: bool) -> Result<bool, FlashromError> { in wp_range() argument
178 fn wp_list(&self) -> Result<String, FlashromError> { in wp_list() argument
197 fn wp_status(&self, en: bool) -> Result<bool, FlashromError> { in wp_status() argument
215 fn wp_toggle(&self, en: bool) -> Result<bool, FlashromError> { in wp_toggle() argument
233 fn read_into_file(&self, path: &Path) -> Result<(), FlashromError> { in read_into_file() argument
[all …]
/aosp_15_r20/external/flashrom/util/flashrom_tester/src/
H A Dtester.rs76 ) -> Result<Self, FlashromError> { in create() argument
136 pub fn ensure_golden(&mut self) -> Result<(), FlashromError> { in ensure_golden() argument
143 pub fn erase(&self) -> Result<(), FlashromError> { in erase() argument
152 pub fn verify(&self, contents_path: &Path) -> Result<(), FlashromError> { in verify() argument
189 pub fn from_hardware(cmd: &'a dyn Flashrom, fc: FlashChip) -> Result<Self, FlashromError> { in from_hardware() argument
212 fn get_sw(cmd: &dyn Flashrom) -> Result<bool, FlashromError> { in get_sw() argument