Home
last modified time | relevance | path

Searched refs:Layout (Results 1 – 25 of 83) sorted by relevance

1234

/openbmc/phosphor-led-manager/test/
H A Dled-test-map.hpp8 {"One", phosphor::led::Layout::Action::On, 0, 0,
9 phosphor::led::Layout::Action::Blink},
17 {"One", phosphor::led::Layout::Action::Blink, 0, 0,
18 phosphor::led::Layout::Action::Blink},
26 {"One", phosphor::led::Layout::Action::Blink, 0, 0,
27 phosphor::led::Layout::Action::On},
35 {"One", phosphor::led::Layout::Action::On, 0, 0,
36 phosphor::led::Layout::Action::On},
37 {"Two", phosphor::led::Layout::Action::On, 0, 0,
38 phosphor::led::Layout::Action::On},
[all …]
H A Dutest-group-priority.cpp23 static void assertMap(std::map<LedName, Layout::LedAction> map, in assertMap()
24 std::map<LedName, Layout::Action> expect) in assertMap()
38 {"led1", Layout::Action::On, 0, 0, std::nullopt},
39 {"led2", Layout::Action::On, 0, 0, std::nullopt},
44 {"led3", Layout::Action::On, 0, 0, std::nullopt},
45 {"led4", Layout::Action::On, 0, 0, std::nullopt},
54 std::set<const Layout::GroupLayout*> assertedGroups; in TEST_F()
56 Layout::GroupLayout mygroup = in TEST_F()
61 std::map<LedName, Layout::LedAction> map = in TEST_F()
65 {"led1", Layout::Action::On}, in TEST_F()
[all …]
H A Dutest-config-validator.cpp26 {"led1", Layout::Action::On, 0, 0, Layout::Action::On}, in TEST()
27 {"led2", Layout::Action::On, 0, 0, Layout::Action::Blink}, in TEST()
29 Layout::GroupLayout group1 = {0, group1ActionSet}; in TEST()
38 {"led1", Layout::Action::On, 0, 0, std::nullopt}, in TEST()
39 {"led2", Layout::Action::On, 0, 0, std::nullopt}, in TEST()
42 {"led1", Layout::Action::On, 0, 0, std::nullopt}, in TEST()
43 {"led2", Layout::Action::On, 0, 0, std::nullopt}, in TEST()
45 Layout::GroupLayout group1 = {1, group1ActionSet}; in TEST()
46 Layout::GroupLayout group2 = {2, group1ActionSet}; in TEST()
58 {"led1", Layout::Action::On, 0, 0, Layout::Action::On}, in TEST()
[all …]
H A Dutest.cpp39 {"One", phosphor::led::Layout::Action::On, 0, 0, in TEST_F()
40 phosphor::led::Layout::Action::Blink}, in TEST_F()
71 {"One", phosphor::led::Layout::Action::Blink, 0, 0, in TEST_F()
72 phosphor::led::Layout::Action::Blink}, in TEST_F()
103 {"One", phosphor::led::Layout::Action::On, 0, 0, in TEST_F()
104 phosphor::led::Layout::Action::Blink}, in TEST_F()
149 {"One", phosphor::led::Layout::Action::On, 0, 0, in TEST_F()
150 phosphor::led::Layout::Action::On}, in TEST_F()
151 {"Two", phosphor::led::Layout::Action::On, 0, 0, in TEST_F()
152 phosphor::led::Layout::Action::On}, in TEST_F()
[all …]
H A Dutest-led-json.cpp29 ASSERT_EQ(group.action, phosphor::led::Layout::Action::On); in TEST()
32 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Blink); in TEST()
38 ASSERT_EQ(group.action, phosphor::led::Layout::Action::On); in TEST()
41 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::On); in TEST()
46 ASSERT_EQ(group.action, phosphor::led::Layout::Action::Off); in TEST()
47 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Off); in TEST()
54 ASSERT_EQ(group.action, phosphor::led::Layout::Action::Blink); in TEST()
57 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Blink); in TEST()
61 ASSERT_EQ(group.action, phosphor::led::Layout::Action::Blink); in TEST()
64 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Blink); in TEST()
H A Dutest-led-yaml-group-priority.cpp15 using Action = phosphor::led::Layout::Action;
27 phosphor::led::Layout::GroupLayout group = systemLedMap.at(groupPath); in TEST()
45 phosphor::led::Layout::GroupLayout group = systemLedMap.at(groupPath); in TEST()
63 phosphor::led::Layout::GroupLayout group = systemLedMap.at(groupPath); in TEST()
83 phosphor::led::Layout::GroupLayout group = systemLedMap.at(groupPath); in TEST()
H A Dutest-led-yaml-led-priority.cpp15 using Action = phosphor::led::Layout::Action;
27 phosphor::led::Layout::GroupLayout group = systemLedMap.at(groupPath); in TEST()
45 phosphor::led::Layout::GroupLayout group = systemLedMap.at(groupPath); in TEST()
63 phosphor::led::Layout::GroupLayout group = systemLedMap.at(groupPath); in TEST()
H A Dutest-led-yaml-empty-group.cpp30 const Layout::GroupLayout& emptyGroup = systemLedMap.at(emptyGroupPath); in TEST()
31 const Layout::GroupLayout& nonEmptyGroup = in TEST()
/openbmc/phosphor-led-manager/manager/
H A Dmanager.cpp18 static void applyGroupAction(std::map<LedName, Layout::LedAction>& newState, in applyGroupAction()
19 Layout::LedAction action) in applyGroupAction()
43 std::set<const Layout::GroupLayout*, Layout::CompareGroupLayout> sorted) in getNewMapWithGroupPriorities()
44 -> std::map<LedName, Layout::LedAction> in getNewMapWithGroupPriorities()
46 std::map<LedName, Layout::LedAction> newState; in getNewMapWithGroupPriorities()
52 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithGroupPriorities()
60 static std::map<LedName, Layout::LedAction> getNewMapWithLEDPriorities( in getNewMapWithLEDPriorities()
61 std::set<const Layout::GroupLayout*> assertedGroups) in getNewMapWithLEDPriorities()
63 std::map<LedName, Layout::LedAction> newState; in getNewMapWithLEDPriorities()
65 for (const Layout::GroupLayout* it : assertedGroups) in getNewMapWithLEDPriorities()
[all …]
H A Dmanager.hpp41 static bool ledComp(const phosphor::led::Layout::LedAction& left, in ledComp()
42 const phosphor::led::Layout::LedAction& right) in ledComp()
58 static bool ledLess(const phosphor::led::Layout::LedAction& left, in ledLess()
59 const phosphor::led::Layout::LedAction& right) in ledLess()
65 static bool ledEqual(const phosphor::led::Layout::LedAction& left, in ledEqual()
66 const phosphor::led::Layout::LedAction& right) in ledEqual()
90 static auto getNewMap(std::set<const Layout::GroupLayout*> assertedGroups)
91 -> std::map<LedName, Layout::LedAction>;
127 Layout::Action action, uint8_t dutyOn,
146 std::set<const Layout::GroupLayout*> assertedGroups;
[all …]
H A Djson-parser.hpp23 std::optional<phosphor::led::Layout::Action>>;
60 phosphor::led::Layout::Action getAction(const std::string& action) in getAction()
64 return phosphor::led::Layout::Action::On; in getAction()
68 return phosphor::led::Layout::Action::Off; in getAction()
72 return phosphor::led::Layout::Action::Blink; in getAction()
76 return phosphor::led::Layout::Action::Blink; in getAction()
88 std::optional<phosphor::led::Layout::Action> priority = std::nullopt; in loadJsonConfigV1GroupMember()
95 phosphor::led::Layout::LedAction ledAction{name, action, dutyOn, period, in loadJsonConfigV1GroupMember()
118 phosphor::led::Layout::GroupLayout groupLayout{}; in loadJsonConfigV1Group()
H A Dconfig-validator.cpp19 std::optional<phosphor::led::Layout::Action>>;
34 const std::optional<phosphor::led::Layout::Action>& priority) in priorityToString()
42 case phosphor::led::Layout::Action::Off: in priorityToString()
44 case phosphor::led::Layout::Action::On: in priorityToString()
46 case phosphor::led::Layout::Action::Blink: in priorityToString()
62 const std::optional<phosphor::led::Layout::Action>& priority, in validatePriority()
84 const phosphor::led::Layout::GroupLayout& group, PriorityMap& priorityMap) in validateConfigV1GroupForLedPriority()
120 const phosphor::led::Layout::GroupLayout& group) in validateConfigV1GroupForGroupPriority()
H A Dgrouplayout.hpp15 namespace Layout namespace
28 bool operator()(const Layout::GroupLayout* lhs, in operator ()()
29 const Layout::GroupLayout* rhs) const in operator ()()
37 using GroupMap = std::unordered_map<std::string, Layout::GroupLayout>;
H A Dledlayout.hpp16 namespace Layout namespace
53 using ActionSet = std::set<Layout::LedAction>;
/openbmc/linux/rust/alloc/
H A Dalloc.rs94 pub unsafe fn alloc(layout: Layout) -> *mut u8 { in alloc()
118 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) { in dealloc() argument
137 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() argument
171 pub unsafe fn alloc_zeroed(layout: Layout) -> *mut u8 { in alloc_zeroed()
178 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument
195 old_layout: Layout, in grow_impl() argument
196 new_layout: Layout, in grow_impl() argument
242 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate()
247 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed()
252 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) { in deallocate() argument
[all …]
H A Draw_vec.rs14 use crate::alloc::{Allocator, Global, Layout};
184 let layout = match Layout::array::<T>(capacity) { in allocate_in()
218 let layout = Layout::array::<T>(capacity).map_err(|_| CapacityOverflow)?; in try_allocate_in()
272 fn current_memory(&self) -> Option<(NonNull<u8>, Layout)> { in current_memory() argument
284 let layout = Layout::from_size_align_unchecked(size, align); in current_memory()
440 let new_layout = Layout::array::<T>(cap); in grow_amortized()
459 let new_layout = Layout::array::<T>(cap); in grow_exact()
487 let new_layout = Layout::from_size_align_unchecked(new_size, layout.align()); in shrink()
504 new_layout: Result<Layout, LayoutError>, in finish_grow() argument
505 current_memory: Option<(NonNull<u8>, Layout)>, in finish_grow() argument
/openbmc/linux/rust/kernel/
H A Dallocator.rs5 use core::alloc::{GlobalAlloc, Layout};
18 unsafe fn krealloc_aligned(ptr: *mut u8, new_layout: Layout, flags: bindings::gfp_t) -> *mut u8 { in krealloc_aligned() argument
43 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc()
49 unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) { in dealloc() argument
55 unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() argument
60 let layout = unsafe { Layout::from_size_align_unchecked(new_size, layout.align()) }; in realloc()
70 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed()
/openbmc/phosphor-led-manager/manager/lamptest/
H A Dlamptest.cpp35 path, Layout::Action::Off, it.dutyOn, it.period); in processLEDUpdates()
84 phosphor::led::Manager::drivePhysicalLED(path, Layout::Action::Off, 0, in stop()
101 Layout::Action LampTest::getActionFromString(const std::string& str) in getActionFromString()
103 Layout::Action action = Layout::Action::Off; in getActionFromString()
107 action = Layout::Action::On; in getActionFromString()
111 action = Layout::Action::Blink; in getActionFromString()
167 phosphor::led::Layout::Action action = getActionFromString(state); in storePhysicalLEDsStates()
168 if (action != phosphor::led::Layout::Action::Off) in storePhysicalLEDsStates()
170 phosphor::led::Layout::LedAction ledAction{ in storePhysicalLEDsStates()
172 phosphor::led::Layout::Action::On}; in storePhysicalLEDsStates()
[all …]
H A Dlamptest.hpp137 static Layout::Action getActionFromString(const std::string& str);
/openbmc/qemu/rust/qemu-api/src/
H A Dlib.rs40 alloc::{GlobalAlloc, Layout},
125 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc()
151 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { in dealloc() argument
/openbmc/linux/rust/alloc/collections/
H A Dmod.rs57 use crate::alloc::{Layout, LayoutError};
96 layout: Layout,
/openbmc/linux/Documentation/arch/arm/samsung/
H A Doverview.rst31 Layout chapter
48 Layout changes
/openbmc/linux/drivers/nvmem/layouts/
H A DKconfig3 menu "Layout Types"
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/doc/
H A DREADME.lsch3_215 1)DDR Layout
/openbmc/linux/Documentation/arch/arm/sti/
H A Doverview.rst18 Layout chapter

1234