Lines Matching full:priority
16 // Priority for a particular LED needs to stay SAME across all groups
25 if (group.priority != 0) in isUsingGroupPriority()
34 const std::optional<phosphor::led::Layout::Action>& priority) in priorityToString() argument
36 if (!priority.has_value()) in priorityToString()
40 switch (priority.value()) in priorityToString()
52 /** @brief Validate the Priority of an LED is same across ALL groups
55 * @param[in] priority - member priority of each group
56 * @param[out] priorityMap - std::unordered_map, key:name, value:priority
62 const std::optional<phosphor::led::Layout::Action>& priority, in validatePriority() argument
68 priorityMap.emplace(name, priority); in validatePriority()
72 if (iter->second != priority) in validatePriority()
76 "Priority of the LED is not same across groups. Old Priority = " + in validatePriority()
78 ", New Priority = " + priorityToString(priority)); in validatePriority()
86 if (group.priority != 0) in validateConfigV1GroupForLedPriority()
90 "Cannot mix group priority and led priority"); in validateConfigV1GroupForLedPriority()
95 if (ledAction.priority == std::nullopt) in validateConfigV1GroupForLedPriority()
99 "Need valid led priority"); in validateConfigV1GroupForLedPriority()
104 validatePriority(ledAction.name, ledAction.priority, priorityMap); in validateConfigV1GroupForLedPriority()
124 if (led.priority != std::nullopt) in validateConfigV1GroupForGroupPriority()
128 "Cannot mix group priority and led priority for LED"); in validateConfigV1GroupForGroupPriority()
132 if (group.priority == 0) in validateConfigV1GroupForGroupPriority()
134 // group priority 0 is for internal use in validateConfigV1GroupForGroupPriority()
136 "Group Priority cannot be 0"); in validateConfigV1GroupForGroupPriority()
146 groupPriorities.insert(group.priority); in validateConfigV1ForGroupPriority()
153 "When using Group Priority, no 2 Groups may have the same priority"); in validateConfigV1ForGroupPriority()