Lines Matching full:knob

34 /* Can hold one 'knob'
36 * <knob type="scalar" setupType="oneof" name="TpmDeviceInterfaceAttempt"
45 * </knob>
52 * biosknobs has array of 'knob' */
55 namespace knob namespace
88 /* Can hold one 'knob' */
89 struct knob struct
91 knob(std::string nameStr, std::string currentValStr, int currentVal, in knob() function
117 } // namespace knob
123 Depex(std::vector<knob::knob>& knobs) : mKnobs(knobs) {} in Depex()
130 for (auto& knob : mKnobs) in compute() local
133 if ("TRUE" == knob.depexStr) in compute()
135 knob.depex = true; in compute()
137 else if (!knob.readOnly) in compute()
141 if (!evaluateExpression(knob.depexStr, value)) in compute()
143 mError.emplace_back("bad depex: " + knob.depexStr + in compute()
144 " in knob: " + knob.nameStr); in compute()
150 knob.depex = true; in compute()
157 /* Returns the number of 'knob's which have a bad 'depex' expression. */
163 /* Prints all the 'knob's which have a bad 'depex' expression. */
192 /* Function to find current value of a 'knob'
193 * search is done using 'knob' attribute 'name' */
196 for (auto& knob : mKnobs) in getValue() local
198 if (knob.nameStr == variableName) in getValue()
200 value = knob.currentVal; in getValue()
206 "Unable to find knob: " + variableName + " in knob list\n"; in getValue()
378 std::stack<knob::DepexOperators>& operators, in evaluateExprStack()
396 case knob::DepexOperators::OR: in evaluateExprStack()
400 case knob::DepexOperators::AND: in evaluateExprStack()
404 case knob::DepexOperators::EQU: in evaluateExprStack()
414 case knob::DepexOperators::NEQ: in evaluateExprStack()
424 case knob::DepexOperators::LTE: in evaluateExprStack()
434 case knob::DepexOperators::LT: in evaluateExprStack()
444 case knob::DepexOperators::GTE: in evaluateExprStack()
454 case knob::DepexOperators::GT: in evaluateExprStack()
464 case knob::DepexOperators::MODULO: in evaluateExprStack()
507 std::stack<knob::DepexOperators> operators; in evaluateExpression()
543 operators.emplace(knob::DepexOperators::OR); in evaluateExpression()
561 operators.emplace(knob::DepexOperators::AND); in evaluateExpression()
565 operators.emplace(knob::DepexOperators::LTE); in evaluateExpression()
569 operators.emplace(knob::DepexOperators::LT); in evaluateExpression()
573 operators.emplace(knob::DepexOperators::GTE); in evaluateExpression()
577 operators.emplace(knob::DepexOperators::GT); in evaluateExpression()
581 operators.emplace(knob::DepexOperators::NEQ); in evaluateExpression()
585 operators.emplace(knob::DepexOperators::EQU); in evaluateExpression()
589 operators.emplace(knob::DepexOperators::MODULO); in evaluateExpression()
664 /* To store all 'knob's in 'biosknobs' */
665 std::vector<knob::knob>& mKnobs;
684 /* Fill Bios table with all 'knob's which have output of 'depex' expression
690 for (auto& knob : mKnobs) in getBaseTable() local
692 if (knob.depex) in getBaseTable()
698 for (auto& option : knob.options) in getBaseTable()
706 false, knob.promptStr, knob.descriptionStr, "./", in getBaseTable()
707 knob.currentValStr, knob.defaultStr, options); in getBaseTable()
709 baseTable.emplace(knob.nameStr, baseTableEntry); in getBaseTable()
760 /* Get node options inside knob */ in getOptions()
784 /* Get 'knob' */
864 pBiosknobs->FirstChildElement("knob"); in getKnobs()
865 pKnob; pKnob = pKnob->NextSiblingElement("knob")) in getKnobs()
874 pBiosknobs->FirstChildElement("knob"); in getKnobs()
875 pKnob; pKnob = pKnob->NextSiblingElement("knob")) in getKnobs()
891 /* To store all 'knob's in 'biosknobs' */
892 std::vector<knob::knob> mKnobs;