Home
last modified time | relevance | path

Searched refs:LayoutNames (Results 1 – 2 of 2) sorted by relevance

/external/flashrom/util/flashrom_tester/src/
Dutils.rs40 pub enum LayoutNames { enum
47 impl LayoutNames { impl
49 pub fn get_non_overlapping_section(&self) -> LayoutNames { in get_non_overlapping_section() argument
51 LayoutNames::TopQuad => LayoutNames::BottomQuad, in get_non_overlapping_section()
52 LayoutNames::TopHalf => LayoutNames::BottomHalf, in get_non_overlapping_section()
53 LayoutNames::BottomHalf => LayoutNames::TopHalf, in get_non_overlapping_section()
54 LayoutNames::BottomQuad => LayoutNames::TopQuad, in get_non_overlapping_section()
86 pub fn layout_section(ls: &LayoutSizes, ln: LayoutNames) -> (&'static str, i64, i64) { in layout_section()
88 LayoutNames::TopQuad => ("TOP_QUAD", ls.top_quad_bottom, ls.quad_sz), in layout_section()
89 LayoutNames::TopHalf => ("TOP_HALF", ls.half_sz, ls.half_sz), in layout_section()
[all …]
Dtests.rs38 use super::utils::{self, LayoutNames};
105 &("Lock_top_quad", partial_lock_test(LayoutNames::TopQuad)), in generic()
108 partial_lock_test(LayoutNames::BottomQuad), in generic()
112 partial_lock_test(LayoutNames::BottomHalf), in generic()
114 &("Lock_top_half", partial_lock_test(LayoutNames::TopHalf)), in generic()
272 fn partial_lock_test(section: LayoutNames) -> impl Fn(&mut TestEnv) -> TestResult { in partial_lock_test()