/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_action.c | 774 struct mlx5dr_action *action; in mlx5dr_actions_build_ste_arr() local 778 action = actions[i]; in mlx5dr_actions_build_ste_arr() 779 action_type = action->action_type; in mlx5dr_actions_build_ste_arr() 787 dest_action = action; in mlx5dr_actions_build_ste_arr() 788 ret = dr_action_get_dest_tbl_addr(matcher, action->dest_tbl, in mlx5dr_actions_build_ste_arr() 795 action->range->hit_tbl_action->dest_tbl, in mlx5dr_actions_build_ste_arr() 801 action->range->miss_tbl_action->dest_tbl, in mlx5dr_actions_build_ste_arr() 806 attr.range.definer_id = action->range->definer_id; in mlx5dr_actions_build_ste_arr() 807 attr.range.min = action->range->min; in mlx5dr_actions_build_ste_arr() 808 attr.range.max = action->range->max; in mlx5dr_actions_build_ste_arr() [all …]
|
H A D | fs_dr.c | 34 struct mlx5dr_action *action = NULL; in set_miss_action() local 40 action = mlx5dr_action_create_dest_table(next_tbl); in set_miss_action() 41 if (!action) in set_miss_action() 45 err = mlx5dr_table_set_miss_action(ft->fs_dr_table.dr_table, action); in set_miss_action() 46 if (err && action) { in set_miss_action() 47 err = mlx5dr_action_destroy(action); in set_miss_action() 51 action = NULL; in set_miss_action() 53 ft->fs_dr_table.miss_action = action; in set_miss_action() 110 struct mlx5dr_action *action = ft->fs_dr_table.miss_action; in mlx5_cmd_dr_destroy_flow_table() local 122 if (action) { in mlx5_cmd_dr_destroy_flow_table() [all …]
|
/openbmc/u-boot/tools/buildman/ |
H A D | cmdline.py | 19 action='store_true', default=False, 21 parser.add_option('--boards', type='string', action='append', 26 action='store_true', default=False, 29 action='store_true', default=False, 31 parser.add_option('-D', '--config-only', action='store_true', default=False, 33 parser.add_option('-e', '--show_errors', action='store_true', 35 parser.add_option('-E', '--warnings-as-errors', action='store_true', 38 action='store_true', default=False, 41 action='store_true', default=False, 51 parser.add_option('-H', '--full-help', action='store_true', dest='full_help', [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/actions/ |
H A D | compare_vpd_action_tests.cpp | 42 CompareVPDAction action{ in TEST() local 46 action.getFRU(), in TEST() 48 EXPECT_EQ(action.getKeyword(), "CCIN"); in TEST() 49 EXPECT_EQ(action.getValue(), value); in TEST() 55 CompareVPDAction action{ in TEST() local 59 action.getFRU(), in TEST() 61 EXPECT_EQ(action.getKeyword(), "CCIN"); in TEST() 62 EXPECT_EQ(action.getValue(), value); in TEST() 87 CompareVPDAction action{fru, keyword, abcdValue}; in TEST() local 88 EXPECT_TRUE(action.execute(environment)); in TEST() [all …]
|
H A D | i2c_compare_bytes_action_tests.cpp | 51 I2CCompareBytesAction action{0x7C, values}; in TEST() local 53 EXPECT_EQ(action.getRegister(), 0x7C); in TEST() 55 EXPECT_EQ(action.getValues().size(), 3); in TEST() 56 EXPECT_EQ(action.getValues()[0], 0x56); in TEST() 57 EXPECT_EQ(action.getValues()[1], 0x14); in TEST() 58 EXPECT_EQ(action.getValues()[2], 0xDA); in TEST() 60 EXPECT_EQ(action.getMasks().size(), 3); in TEST() 61 EXPECT_EQ(action.getMasks()[0], 0xFF); in TEST() 62 EXPECT_EQ(action.getMasks()[1], 0xFF); in TEST() 63 EXPECT_EQ(action.getMasks()[2], 0xFF); in TEST() [all …]
|
H A D | i2c_write_bytes_action_tests.cpp | 54 I2CWriteBytesAction action{0x7C, values}; in TEST() local 56 EXPECT_EQ(action.getRegister(), 0x7C); in TEST() 58 EXPECT_EQ(action.getValues().size(), 3); in TEST() 59 EXPECT_EQ(action.getValues()[0], 0x56); in TEST() 60 EXPECT_EQ(action.getValues()[1], 0x14); in TEST() 61 EXPECT_EQ(action.getValues()[2], 0xDA); in TEST() 63 EXPECT_EQ(action.getMasks().size(), 0); in TEST() 74 I2CWriteBytesAction action{0x7C, values}; in TEST() local 97 I2CWriteBytesAction action{0xA0, values, masks}; in TEST() local 99 EXPECT_EQ(action.getRegister(), 0xA0); in TEST() [all …]
|
H A D | action_utils_tests.cpp | 60 std::unique_ptr<MockAction> action; in TEST() local 63 action = std::make_unique<MockAction>(); in TEST() 64 EXPECT_CALL(*action, execute) in TEST() 67 actions.push_back(std::move(action)); in TEST() 70 action = std::make_unique<MockAction>(); in TEST() 71 EXPECT_CALL(*action, execute).Times(0); in TEST() 72 actions.push_back(std::move(action)); in TEST() 86 std::unique_ptr<MockAction> action; in TEST() local 89 action = std::make_unique<MockAction>(); in TEST() 90 EXPECT_CALL(*action, execute).Times(1).WillOnce(Return(true)); in TEST() [all …]
|
H A D | i2c_compare_byte_action_tests.cpp | 45 I2CCompareByteAction action{0x7C, 0xDE}; in TEST() local 46 EXPECT_EQ(action.getRegister(), 0x7C); in TEST() 47 EXPECT_EQ(action.getValue(), 0xDE); in TEST() 48 EXPECT_EQ(action.getMask(), 0xFF); in TEST() 53 I2CCompareByteAction action{0xA0, 0x03, 0x47}; in TEST() local 54 EXPECT_EQ(action.getRegister(), 0xA0); in TEST() 55 EXPECT_EQ(action.getValue(), 0x03); in TEST() 56 EXPECT_EQ(action.getMask(), 0x47); in TEST() 86 I2CCompareByteAction action{0xA0, 0x56, 0x7E}; in TEST() local 87 EXPECT_EQ(action.execute(env), true); in TEST() [all …]
|
H A D | and_action_tests.cpp | 70 std::unique_ptr<MockAction> action; in TEST() local 73 action = std::make_unique<MockAction>(); in TEST() 74 EXPECT_CALL(*action, execute) in TEST() 77 actions.push_back(std::move(action)); in TEST() 80 action = std::make_unique<MockAction>(); in TEST() 81 EXPECT_CALL(*action, execute).Times(0); in TEST() 82 actions.push_back(std::move(action)); in TEST() 97 std::unique_ptr<MockAction> action; in TEST() local 100 action = std::make_unique<MockAction>(); in TEST() 101 EXPECT_CALL(*action, execute).Times(1).WillOnce(Return(true)); in TEST() [all …]
|
H A D | or_action_tests.cpp | 71 std::unique_ptr<MockAction> action; in TEST() local 74 action = std::make_unique<MockAction>(); in TEST() 75 EXPECT_CALL(*action, execute) in TEST() 78 actions.push_back(std::move(action)); in TEST() 81 action = std::make_unique<MockAction>(); in TEST() 82 EXPECT_CALL(*action, execute).Times(0); in TEST() 83 actions.push_back(std::move(action)); in TEST() 98 std::unique_ptr<MockAction> action; in TEST() local 101 action = std::make_unique<MockAction>(); in TEST() 102 EXPECT_CALL(*action, execute).Times(1).WillOnce(Return(false)); in TEST() [all …]
|
H A D | i2c_write_byte_action_tests.cpp | 46 I2CWriteByteAction action{0x7C, 0x0A}; in TEST() local 47 EXPECT_EQ(action.getRegister(), 0x7C); in TEST() 48 EXPECT_EQ(action.getValue(), 0x0A); in TEST() 49 EXPECT_EQ(action.getMask(), 0xFF); in TEST() 54 I2CWriteByteAction action{0xA0, 0xD6, 0xC3}; in TEST() local 55 EXPECT_EQ(action.getRegister(), 0xA0); in TEST() 56 EXPECT_EQ(action.getValue(), 0xD6); in TEST() 57 EXPECT_EQ(action.getMask(), 0xC3); in TEST() 85 I2CWriteByteAction action{0x7C, 0x0A}; in TEST() local 86 EXPECT_EQ(action.execute(env), true); in TEST() [all …]
|
H A D | i2c_compare_bit_action_tests.cpp | 46 I2CCompareBitAction action{0x7C, 2, 0}; in TEST() local 47 EXPECT_EQ(action.getRegister(), 0x7C); in TEST() 48 EXPECT_EQ(action.getPosition(), 2); in TEST() 49 EXPECT_EQ(action.getValue(), 0); in TEST() 59 I2CCompareBitAction action{0x7C, 8, 0}; in TEST() local 74 I2CCompareBitAction action{0x7C, 2, 2}; in TEST() local 121 for (I2CCompareBitAction& action : actions) in TEST() 123 EXPECT_EQ(action.execute(env), true); in TEST() 139 for (I2CCompareBitAction& action : actions) in TEST() 141 EXPECT_EQ(action.execute(env), false); in TEST() [all …]
|
H A D | run_rule_action_tests.cpp | 41 RunRuleAction action{"set_voltage_rule"}; in TEST() local 42 EXPECT_EQ(action.getRuleID(), "set_voltage_rule"); in TEST() 72 std::unique_ptr<MockAction> action = std::make_unique<MockAction>(); in TEST() local 73 EXPECT_CALL(*action, execute) in TEST() 76 actions.push_back(std::move(action)); in TEST() 129 std::unique_ptr<MockAction> action; in TEST() local 131 action = std::make_unique<MockAction>(); in TEST() 132 EXPECT_CALL(*action, execute).Times(1).WillOnce(Return(true)); in TEST() 133 actions.push_back(std::move(action)); in TEST() 135 action = std::make_unique<MockAction>(); in TEST() [all …]
|
H A D | compare_presence_action_tests.cpp | 42 ComparePresenceAction action{ in TEST() local 44 EXPECT_EQ(action.getFRU(), in TEST() 46 EXPECT_EQ(action.getValue(), true); in TEST() 78 ComparePresenceAction action{"/xyz/openbmc_project/inventory/" in TEST() local 81 EXPECT_EQ(action.execute(env), true); in TEST() 86 ComparePresenceAction action{"/xyz/openbmc_project/inventory/" in TEST() local 89 EXPECT_EQ(action.execute(env), false); in TEST() 124 ComparePresenceAction action{"/xyz/openbmc_project/inventory/" in TEST() local 127 EXPECT_EQ(action.execute(env), false); in TEST() 132 ComparePresenceAction action{"/xyz/openbmc_project/inventory/" in TEST() local [all …]
|
H A D | i2c_write_bit_action_tests.cpp | 47 I2CWriteBitAction action{0x7C, 2, 0}; in TEST() local 48 EXPECT_EQ(action.getRegister(), 0x7C); in TEST() 49 EXPECT_EQ(action.getPosition(), 2); in TEST() 50 EXPECT_EQ(action.getValue(), 0); in TEST() 60 I2CWriteBitAction action{0x7C, 8, 0}; in TEST() local 75 I2CWriteBitAction action{0x7C, 2, 2}; in TEST() local 117 I2CWriteBitAction action{0xA0, 5, 0}; in TEST() local 118 EXPECT_EQ(action.execute(env), true); in TEST() 152 I2CWriteBitAction action{0x7C, 5, 1}; in TEST() local 153 EXPECT_EQ(action.execute(env), true); in TEST() [all …]
|
H A D | pmbus_write_vout_command_action_tests.cpp | 55 PMBusWriteVoutCommandAction action{volts, format, exponent, isVerified}; in TEST() local 56 EXPECT_EQ(action.getVolts().has_value(), true); in TEST() 57 EXPECT_EQ(action.getVolts().value(), 1.3); in TEST() 58 EXPECT_EQ(action.getFormat(), pmbus_utils::VoutDataFormat::linear); in TEST() 59 EXPECT_EQ(action.getExponent().has_value(), true); in TEST() 60 EXPECT_EQ(action.getExponent().value(), -8); in TEST() 61 EXPECT_EQ(action.isVerified(), true); in TEST() 75 PMBusWriteVoutCommandAction action{volts, format, exponent, isVerified}; in TEST() local 76 EXPECT_EQ(action.getVolts().has_value(), false); in TEST() 77 EXPECT_EQ(action.getFormat(), pmbus_utils::VoutDataFormat::linear); in TEST() [all …]
|
H A D | i2c_capture_bytes_action_tests.cpp | 47 I2CCaptureBytesAction action{0x2A, 2}; in TEST() local 48 EXPECT_EQ(action.getRegister(), 0x2A); in TEST() 49 EXPECT_EQ(action.getCount(), 2); in TEST() 59 I2CCaptureBytesAction action{0x2A, 0}; in TEST() local 97 I2CCaptureBytesAction action{0xA0, 1}; in TEST() local 98 EXPECT_EQ(action.execute(env), true); in TEST() 131 I2CCaptureBytesAction action{0x7C, 3}; in TEST() local 132 EXPECT_EQ(action.execute(env), true); in TEST() 172 I2CCaptureBytesAction action{0xCA, 1}; in TEST() local 173 EXPECT_EQ(action.execute(env), true); in TEST() [all …]
|
H A D | pmbus_read_sensor_action_tests.cpp | 57 PMBusReadSensorAction action{type, command, format, exponent}; in TEST() local 58 EXPECT_EQ(action.getType(), SensorType::vout); in TEST() 59 EXPECT_EQ(action.getCommand(), 0x8B); in TEST() 60 EXPECT_EQ(action.getFormat(), SensorDataFormat::linear_16); in TEST() 61 EXPECT_EQ(action.getExponent().has_value(), true); in TEST() 62 EXPECT_EQ(action.getExponent().value(), -8); in TEST() 71 PMBusReadSensorAction action{type, command, format, exponent}; in TEST() local 72 EXPECT_EQ(action.getType(), SensorType::iout); in TEST() 73 EXPECT_EQ(action.getCommand(), 0x8C); in TEST() 74 EXPECT_EQ(action.getFormat(), SensorDataFormat::linear_11); in TEST() [all …]
|
/openbmc/openbmc/poky/scripts/lib/ |
H A D | argparse_oe.py | 38 action = self._get_subparser_action() 40 subparser = action._name_parser_map[subcommand] 78 action = self._get_subparser_action() 79 if action.dest == argparse.SUPPRESS: 82 name = getattr(args, action.dest) 84 return action._name_parser_map[name] 92 for action in self._subparsers._group_actions: 93 if isinstance(action, argparse._SubParsersAction): 94 return action 115 for action in positionals: [all …]
|
/openbmc/linux/kernel/irq/ |
H A D | handle.c | 52 static void warn_no_thread(unsigned int irq, struct irqaction *action) in warn_no_thread() argument 54 if (test_and_set_bit(IRQTF_WARNED, &action->thread_flags)) in warn_no_thread() 58 "but no thread function available.", irq, action->name); in warn_no_thread() 61 void __irq_wake_thread(struct irq_desc *desc, struct irqaction *action) in __irq_wake_thread() argument 68 if (action->thread->flags & PF_EXITING) in __irq_wake_thread() 75 if (test_and_set_bit(IRQTF_RUNTHREAD, &action->thread_flags)) in __irq_wake_thread() 123 desc->threads_oneshot |= action->thread_mask; in __irq_wake_thread() 136 wake_up_process(action->thread); in __irq_wake_thread() 143 struct irqaction *action; in __handle_irq_event_percpu() local 147 for_each_action_of_desc(desc, action) { in __handle_irq_event_percpu() [all …]
|
H A D | manage.c | 192 struct irqaction *action; in irq_set_thread_affinity() local 194 for_each_action_of_desc(desc, action) { in irq_set_thread_affinity() 195 if (action->thread) in irq_set_thread_affinity() 196 set_bit(IRQTF_AFFINITY, &action->thread_flags); in irq_set_thread_affinity() 197 if (action->secondary && action->secondary->thread) in irq_set_thread_affinity() 198 set_bit(IRQTF_AFFINITY, &action->secondary->thread_flags); in irq_set_thread_affinity() 950 if (!desc->action || in can_request_irq() 951 irqflags & desc->action->flags & IRQF_SHARED) in can_request_irq() 1056 static int irq_wait_for_interrupt(struct irqaction *action) in irq_wait_for_interrupt() argument 1064 &action->thread_flags)) { in irq_wait_for_interrupt() [all …]
|
/openbmc/phosphor-led-manager/manager/ |
H A D | manager.cpp | 19 Layout::LedAction action) in applyGroupAction() argument 21 if (!newState.contains(action.name)) in applyGroupAction() 23 newState[action.name] = action; in applyGroupAction() 27 auto currentAction = newState[action.name]; in applyGroupAction() 31 if (hasPriority && currentAction.action == action.priority) in applyGroupAction() 38 newState[action.name] = action; in applyGroupAction() 52 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithGroupPriorities() local 54 newState[action.name] = action; in getNewMapWithGroupPriorities() 68 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithLEDPriorities() local 70 applyGroupAction(newState, action); in getNewMapWithLEDPriorities() [all …]
|
/openbmc/sdbusplus/include/sdbusplus/server/ |
H A D | object.hpp | 57 enum class action enum 77 action act = action::emit_object_added) : in object() 89 if (__sdbusplus_server_object_signalstate != action::emit_no_signals) in ~object() 100 if (__sdbusplus_server_object_signalstate == action::defer_emit) in emit_object_added() 105 __sdbusplus_server_object_signalstate = action::emit_object_added; in emit_object_added() 116 action __sdbusplus_server_object_signalstate = action::defer_emit; 120 void check_action(action act) in check_action() 124 case action::emit_object_added: in check_action() 127 __sdbusplus_server_object_signalstate = action::defer_emit; in check_action() 131 case action::emit_interface_added: in check_action() [all …]
|
/openbmc/u-boot/tools/binman/ |
H A D | cmdline.py | 21 parser.add_option('-a', '--entry-arg', type='string', action='append', 29 parser.add_option('-D', '--debug', action='store_true', 31 parser.add_option('-E', '--entry-docs', action='store_true', 33 parser.add_option('--fake-dtb', action='store_true', 35 parser.add_option('-i', '--image', type='string', action='append', 37 parser.add_option('-I', '--indir', action='append', 39 parser.add_option('-H', '--full-help', action='store_true', 41 parser.add_option('-m', '--map', action='store_true', 44 action='store', help='Path to directory to use for intermediate and ' 46 parser.add_option('-p', '--preserve', action='store_true',\ [all …]
|
/openbmc/qemu/hw/acpi/ |
H A D | erst.c | 238 unsigned action; in build_erst() local 290 action = ACTION_BEGIN_WRITE_OPERATION; in build_erst() 291 build_serialization_instruction(&wr_action, action, action); in build_erst() 293 action = ACTION_BEGIN_READ_OPERATION; in build_erst() 294 build_serialization_instruction(&wr_action, action, action); in build_erst() 296 action = ACTION_BEGIN_CLEAR_OPERATION; in build_erst() 297 build_serialization_instruction(&wr_action, action, action); in build_erst() 299 action = ACTION_END_OPERATION; in build_erst() 300 build_serialization_instruction(&wr_action, action, action); in build_erst() 302 action = ACTION_SET_RECORD_OFFSET; in build_erst() [all …]
|