/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_action.c | 660 struct mlx5dr_action *action; in mlx5dr_actions_build_ste_arr() local 664 action = actions[i]; in mlx5dr_actions_build_ste_arr() 665 action_type = action->action_type; in mlx5dr_actions_build_ste_arr() 673 dest_action = action; in mlx5dr_actions_build_ste_arr() 674 if (!action->dest_tbl.is_fw_tbl) { in mlx5dr_actions_build_ste_arr() 675 if (action->dest_tbl.tbl->dmn != dmn) { in mlx5dr_actions_build_ste_arr() 680 if (action->dest_tbl.tbl->level <= matcher->tbl->level) { in mlx5dr_actions_build_ste_arr() 686 action->dest_tbl.tbl->level); in mlx5dr_actions_build_ste_arr() 689 action->dest_tbl.tbl->rx.s_anchor->chunk->icm_addr : in mlx5dr_actions_build_ste_arr() 690 action->dest_tbl.tbl->tx.s_anchor->chunk->icm_addr; in mlx5dr_actions_build_ste_arr() [all …]
|
D | fs_dr.c | 32 struct mlx5dr_action *action = NULL; in set_miss_action() local 38 action = mlx5dr_action_create_dest_table(next_tbl); in set_miss_action() 39 if (!action) in set_miss_action() 43 err = mlx5dr_table_set_miss_action(ft->fs_dr_table.dr_table, action); in set_miss_action() 44 if (err && action) { in set_miss_action() 45 err = mlx5dr_action_destroy(action); in set_miss_action() 49 action = NULL; in set_miss_action() 51 ft->fs_dr_table.miss_action = action; in set_miss_action() 105 struct mlx5dr_action *action = ft->fs_dr_table.miss_action; in mlx5_cmd_dr_destroy_flow_table() local 117 if (action) { in mlx5_cmd_dr_destroy_flow_table() [all …]
|
D | dr_cmd.c | 203 MLX5_SET(flow_context, in_flow_context, action, in mlx5dr_cmd_set_fte_modify_and_vport() 495 if (!(fte->action.action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST)) in mlx5dr_cmd_set_extended_dest() 574 u32 action; in mlx5dr_cmd_set_fte() local 576 action = fte->action.action & in mlx5dr_cmd_set_fte() 578 MLX5_SET(flow_context, in_flow_context, action, action); in mlx5dr_cmd_set_fte() 580 MLX5_SET(flow_context, in_flow_context, action, in mlx5dr_cmd_set_fte() 581 fte->action.action); in mlx5dr_cmd_set_fte() 582 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte() 584 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte() 586 if (fte->action.modify_hdr) in mlx5dr_cmd_set_fte() [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_fltr.c | 133 const u8 *mac, enum ice_sw_fwd_act_type action) in ice_fltr_add_mac_to_list() argument 140 info.fltr_act = action; in ice_fltr_add_mac_to_list() 158 u16 vlan_id, enum ice_sw_fwd_act_type action) in ice_fltr_add_vlan_to_list() argument 165 info.fltr_act = action; in ice_fltr_add_vlan_to_list() 184 enum ice_sw_fwd_act_type action) in ice_fltr_add_eth_to_list() argument 190 info.fltr_act = action; in ice_fltr_add_eth_to_list() 212 enum ice_sw_fwd_act_type action, in ice_fltr_prepare_mac() argument 219 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, action)) { in ice_fltr_prepare_mac() 238 enum ice_sw_fwd_act_type action, in ice_fltr_prepare_mac_and_broadcast() argument 247 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, action) || in ice_fltr_prepare_mac_and_broadcast() [all …]
|
D | ice_fltr.h | 10 const u8 *mac, enum ice_sw_fwd_act_type action); 13 enum ice_sw_fwd_act_type action); 16 enum ice_sw_fwd_act_type action); 21 enum ice_sw_fwd_act_type action); 27 enum ice_sw_fwd_act_type action); 30 enum ice_sw_fwd_act_type action); 34 enum ice_sw_fwd_act_type action); 37 enum ice_sw_fwd_act_type action);
|
/drivers/platform/x86/intel_speed_select_if/ |
D | isst_if_mbox_msr.c | 108 struct msrl_action action; in isst_if_mbox_proc_cmd() local 111 action.mbox_cmd = (struct isst_if_mbox_cmd *)cmd_ptr; in isst_if_mbox_proc_cmd() 113 if (isst_if_mbox_cmd_invalid(action.mbox_cmd)) in isst_if_mbox_proc_cmd() 116 if (isst_if_mbox_cmd_set_req(action.mbox_cmd) && in isst_if_mbox_proc_cmd() 127 ret = smp_call_function_single(action.mbox_cmd->logical_cpu, in isst_if_mbox_proc_cmd() 128 msrl_update_func, &action, 1); in isst_if_mbox_proc_cmd() 132 if (!action.err && !resume && isst_if_mbox_cmd_set_req(action.mbox_cmd)) in isst_if_mbox_proc_cmd() 133 action.err = isst_store_cmd(action.mbox_cmd->command, in isst_if_mbox_proc_cmd() 134 action.mbox_cmd->sub_command, in isst_if_mbox_proc_cmd() 135 action.mbox_cmd->logical_cpu, 1, in isst_if_mbox_proc_cmd() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_dpipe.c | 81 struct devlink_dpipe_action action = {0}; in mlxsw_sp_dpipe_table_erif_actions_dump() local 84 action.type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_erif_actions_dump() 85 action.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_actions_dump() 86 action.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_L3_FORWARD; in mlxsw_sp_dpipe_table_erif_actions_dump() 88 err = devlink_dpipe_action_put(skb, &action); in mlxsw_sp_dpipe_table_erif_actions_dump() 92 action.type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_erif_actions_dump() 93 action.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_actions_dump() 94 action.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_L3_DROP; in mlxsw_sp_dpipe_table_erif_actions_dump() 96 return devlink_dpipe_action_put(skb, &action); in mlxsw_sp_dpipe_table_erif_actions_dump() 113 struct devlink_dpipe_action *action) in mlxsw_sp_erif_match_action_prepare() argument [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | host.h | 398 __le16 action; member 444 __le16 action; member 495 __le16 action; member 501 __le16 action; member 545 __le16 action; member 558 __le16 action; member 567 __le16 action; member 578 __le16 action; member 585 __le16 action; member 594 __le16 action; member [all …]
|
/drivers/of/ |
D | dynamic.c | 75 int of_reconfig_notify(unsigned long action, struct of_reconfig_data *p) in of_reconfig_notify() argument 81 switch (action) { in of_reconfig_notify() 84 pr_debug("notify %-15s %pOF\n", action_names[action], in of_reconfig_notify() 90 pr_debug("notify %-15s %pOF:%s\n", action_names[action], in of_reconfig_notify() 96 rc = blocking_notifier_call_chain(&of_reconfig_chain, action, p); in of_reconfig_notify() 111 int of_reconfig_get_state_change(unsigned long action, struct of_reconfig_data *pr) in of_reconfig_get_state_change() argument 117 switch (action) { in of_reconfig_get_state_change() 149 switch (action) { in of_reconfig_get_state_change() 189 int of_property_notify(int action, struct device_node *np, in of_property_notify() argument 201 return of_reconfig_notify(action, &pr); in of_property_notify() [all …]
|
/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 171 if (!flow_action_basic_hw_stats_check(&f->rule->action, in ocelot_flower_parse_action() 189 flow_action_for_each(i, a, &f->rule->action) { in ocelot_flower_parse_action() 202 filter->action.mask_mode = OCELOT_MASK_MODE_PERMIT_DENY; in ocelot_flower_parse_action() 203 filter->action.port_mask = 0; in ocelot_flower_parse_action() 204 filter->action.police_ena = true; in ocelot_flower_parse_action() 205 filter->action.pol_ix = OCELOT_POLICER_DISCARD; in ocelot_flower_parse_action() 220 filter->action.mask_mode = OCELOT_MASK_MODE_PERMIT_DENY; in ocelot_flower_parse_action() 221 filter->action.port_mask = 0; in ocelot_flower_parse_action() 222 filter->action.cpu_copy_ena = true; in ocelot_flower_parse_action() 223 filter->action.cpu_qu_num = 0; in ocelot_flower_parse_action() [all …]
|
/drivers/platform/mellanox/ |
D | mlxbf-bootctl.c | 66 static int mlxbf_bootctl_reset_action_to_val(const char *action) in mlxbf_bootctl_reset_action_to_val() argument 71 if (sysfs_streq(boot_names[i].name, action)) in mlxbf_bootctl_reset_action_to_val() 78 static const char *mlxbf_bootctl_action_to_string(int action) in mlxbf_bootctl_action_to_string() argument 83 if (boot_names[i].value == action) in mlxbf_bootctl_action_to_string() 121 int action; in mlxbf_bootctl_show() local 123 action = mlxbf_bootctl_smc(smc_op, 0); in mlxbf_bootctl_show() 124 if (action < 0) in mlxbf_bootctl_show() 125 return action; in mlxbf_bootctl_show() 127 return sprintf(buf, "%s\n", mlxbf_bootctl_action_to_string(action)); in mlxbf_bootctl_show() 132 int ret, action; in mlxbf_bootctl_store() local [all …]
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 1261 tbl->action = 0; in rs_switch_to_mimo2() 1316 tbl->action = 0; in rs_switch_to_mimo3() 1365 tbl->action = 0; in rs_switch_to_siso() 1419 if (tbl->action == IWL_LEGACY_SWITCH_ANTENNA2) in rs_move_legacy_other() 1420 tbl->action = IWL_LEGACY_SWITCH_SISO; in rs_move_legacy_other() 1427 if (tbl->action >= IWL_LEGACY_SWITCH_ANTENNA2 && in rs_move_legacy_other() 1428 tbl->action != IWL_LEGACY_SWITCH_SISO) in rs_move_legacy_other() 1429 tbl->action = IWL_LEGACY_SWITCH_SISO; in rs_move_legacy_other() 1438 tbl->action = IWL_LEGACY_SWITCH_ANTENNA1; in rs_move_legacy_other() 1440 tbl->action > IWL_LEGACY_SWITCH_SISO) in rs_move_legacy_other() [all …]
|
/drivers/infiniband/core/ |
D | uverbs_std_types_flow_action.c | 41 struct ib_flow_action *action = uobject->object; in uverbs_free_flow_action() local 44 ret = ib_destroy_usecnt(&action->usecnt, why, uobject); in uverbs_free_flow_action() 48 return action->device->ops.destroy_flow_action(action); in uverbs_free_flow_action() 315 struct ib_flow_action *action; in UVERBS_HANDLER() local 326 action = ib_dev->ops.create_flow_action_esp(ib_dev, &esp_attr.hdr, in UVERBS_HANDLER() 328 if (IS_ERR(action)) in UVERBS_HANDLER() 329 return PTR_ERR(action); in UVERBS_HANDLER() 331 uverbs_flow_action_fill_action(action, uobj, ib_dev, in UVERBS_HANDLER() 342 struct ib_flow_action *action = uobj->object; in UVERBS_HANDLER() local 346 if (!action->device->ops.modify_flow_action_esp) in UVERBS_HANDLER() [all …]
|
/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc.c | 406 int intel_guc_send_mmio(struct intel_guc *guc, const u32 *action, u32 len, in intel_guc_send_mmio() argument 418 GEM_BUG_ON(*action & ~INTEL_GUC_MSG_CODE_MASK); in intel_guc_send_mmio() 421 GEM_BUG_ON(*action != INTEL_GUC_ACTION_REGISTER_COMMAND_TRANSPORT_BUFFER && in intel_guc_send_mmio() 422 *action != INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER); in intel_guc_send_mmio() 428 intel_uncore_write(uncore, guc_send_reg(guc, i), action[i]); in intel_guc_send_mmio() 450 action[0], ret, status); in intel_guc_send_mmio() 493 u32 action[2]; in intel_guc_sample_forcewake() local 495 action[0] = INTEL_GUC_ACTION_SAMPLE_FORCEWAKE; in intel_guc_sample_forcewake() 498 action[1] = 0; in intel_guc_sample_forcewake() 501 action[1] = GUC_FORCEWAKE_RENDER | GUC_FORCEWAKE_MEDIA; in intel_guc_sample_forcewake() [all …]
|
D | intel_guc_ct.c | 102 u32 action[] = { in guc_action_register_ct_buffer() local 110 return intel_guc_send_mmio(guc, action, ARRAY_SIZE(action), NULL, 0); in guc_action_register_ct_buffer() 125 u32 action[] = { in guc_action_deregister_ct_buffer() local 132 return intel_guc_send_mmio(guc, action, ARRAY_SIZE(action), NULL, 0); in guc_action_deregister_ct_buffer() 313 const u32 *action, in ct_write() argument 362 (action[0] << GUC_CT_MSG_ACTION_SHIFT); in ct_write() 365 4, &header, 4, &fence, 4 * (len - 1), &action[1]); in ct_write() 374 cmds[tail] = action[i]; in ct_write() 477 const u32 *action, in ct_send() argument 505 err = ct_write(ct, action, len, fence, !!response_buf); in ct_send() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fence.c | 74 struct vmw_fence_action action; member 265 struct vmw_fence_action *action, *next_action; in vmw_fence_work_func() local 292 list_for_each_entry_safe(action, next_action, &list, head) { in vmw_fence_work_func() 293 list_del_init(&action->head); in vmw_fence_work_func() 294 if (action->cleanup) in vmw_fence_work_func() 295 action->cleanup(action); in vmw_fence_work_func() 367 struct vmw_fence_action *action, *next_action; in vmw_fences_perform_actions() local 369 list_for_each_entry_safe(action, next_action, list, head) { in vmw_fences_perform_actions() 370 list_del_init(&action->head); in vmw_fences_perform_actions() 371 fman->pending_actions[action->type]--; in vmw_fences_perform_actions() [all …]
|
/drivers/net/ethernet/realtek/ |
D | r8169_firmware.c | 94 u32 action = le32_to_cpu(pa->code[index]); in rtl_fw_data_ok() local 95 u32 val = action & 0x0000ffff; in rtl_fw_data_ok() 96 u32 regno = (action & 0x0fff0000) >> 16; in rtl_fw_data_ok() 98 switch (action >> 28) { in rtl_fw_data_ok() 129 dev_err(rtl_fw->dev, "Invalid action 0x%08x\n", action); in rtl_fw_data_ok() 149 u32 action = le32_to_cpu(pa->code[index]); in rtl_fw_write_firmware() local 150 u32 data = action & 0x0000ffff; in rtl_fw_write_firmware() 151 u32 regno = (action & 0x0fff0000) >> 16; in rtl_fw_write_firmware() 152 enum rtl_fw_opcode opcode = action >> 28; in rtl_fw_write_firmware() 154 if (!action) in rtl_fw_write_firmware()
|
/drivers/watchdog/ |
D | sbsa_gwdt.c | 104 static int action; variable 105 module_param(action, int, 0); 106 MODULE_PARM_DESC(action, "after watchdog gets WS0 interrupt, do: " 126 if (action) in sbsa_gwdt_set_timeout() 151 if (!action && in sbsa_gwdt_get_timeleft() 269 if (action) { in sbsa_gwdt_probe() 272 action = 0; in sbsa_gwdt_probe() 282 action = 0; in sbsa_gwdt_probe() 287 if (!action) in sbsa_gwdt_probe() 294 if (!action) in sbsa_gwdt_probe() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch_offloads_termtbl.c | 26 hash = jhash_1word(flow_act->action, 0); in mlx5_eswitch_termtbl_hash() 48 ret = flow_act1->action != flow_act2->action || in mlx5_eswitch_termtbl_cmp() 181 if (src->action & MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH) { in mlx5_eswitch_termtbl_actions_move() 182 src->action &= ~MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH; in mlx5_eswitch_termtbl_actions_move() 183 dst->action |= MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH; in mlx5_eswitch_termtbl_actions_move() 187 if (src->action & MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH_2) { in mlx5_eswitch_termtbl_actions_move() 188 src->action &= ~MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH_2; in mlx5_eswitch_termtbl_actions_move() 189 dst->action |= MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH_2; in mlx5_eswitch_termtbl_actions_move() 228 if (flow_act->action & MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH) in mlx5_eswitch_termtbl_required() 255 term_tbl_act.action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in mlx5_eswitch_add_termtbl_rule() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | fs.c | 145 struct mlx5_flow_act *action) in parse_flow_flow_action() argument 150 if (action->action & (MLX5_FLOW_CONTEXT_ACTION_ENCRYPT | in parse_flow_flow_action() 154 action->esp_id = (uintptr_t)maction->esp_aes_gcm.ctx; in parse_flow_flow_action() 155 action->action |= is_egress ? in parse_flow_flow_action() 162 if (action->action & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR) in parse_flow_flow_action() 164 action->action |= MLX5_FLOW_CONTEXT_ACTION_MOD_HDR; in parse_flow_flow_action() 165 action->modify_hdr = in parse_flow_flow_action() 171 if (action->action & MLX5_FLOW_CONTEXT_ACTION_DECAP) in parse_flow_flow_action() 173 action->action |= MLX5_FLOW_CONTEXT_ACTION_DECAP; in parse_flow_flow_action() 178 if (action->action & in parse_flow_flow_action() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_fs.c | 55 u8 action[MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto)] = {}; in rx_err_add_rule() local 68 MLX5_SET(copy_action_in, action, action_type, MLX5_ACTION_TYPE_COPY); in rx_err_add_rule() 69 MLX5_SET(copy_action_in, action, src_field, MLX5_ACTION_IN_FIELD_IPSEC_SYNDROME); in rx_err_add_rule() 70 MLX5_SET(copy_action_in, action, src_offset, 0); in rx_err_add_rule() 71 MLX5_SET(copy_action_in, action, length, 7); in rx_err_add_rule() 72 MLX5_SET(copy_action_in, action, dst_field, MLX5_ACTION_IN_FIELD_METADATA_REG_B); in rx_err_add_rule() 73 MLX5_SET(copy_action_in, action, dst_offset, 24); in rx_err_add_rule() 76 1, action); in rx_err_add_rule() 86 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_MOD_HDR | in rx_err_add_rule() 464 u8 action[MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto)] = {}; in rx_add_rule() local [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_cmd.c | 53 cmd->params.rssi_info.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_rssi_info() 79 u16 cmd_action, u32 *action) in mwifiex_cmd_mac_control() argument 92 mac_ctrl->action = cpu_to_le32(*action); in mwifiex_cmd_mac_control() 181 rate_cfg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_tx_rate_cfg() 272 cmd_txp_cfg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_tx_power_cfg() 275 cmd_txp_cfg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_tx_power_cfg() 294 txp->action = cpu_to_le16(cmd_action); in mwifiex_cmd_rf_tx_power() 328 ant_siso->action = cpu_to_le16(HostCmd_ACT_SET_BOTH); in mwifiex_cmd_rf_antenna() 343 ant_siso->action = cpu_to_le16(HostCmd_ACT_GET_BOTH); in mwifiex_cmd_rf_antenna() 397 hs_cfg->action = cpu_to_le16(HS_ACTIVATE); in mwifiex_cmd_802_11_hs_cfg() [all …]
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | binding.c | 75 static int iwl_mvm_binding_cmd(struct iwl_mvm *mvm, u32 action, in iwl_mvm_binding_cmd() argument 97 cmd.action = cpu_to_le32(action); in iwl_mvm_binding_cmd() 112 action, ret); in iwl_mvm_binding_cmd() 154 u32 action = FW_CTXT_ACTION_MODIFY; in iwl_mvm_binding_update() local 169 action = FW_CTXT_ACTION_ADD; in iwl_mvm_binding_update() 171 action = FW_CTXT_ACTION_REMOVE; in iwl_mvm_binding_update() 183 return iwl_mvm_binding_cmd(mvm, action, &data); in iwl_mvm_binding_update()
|
/drivers/xen/ |
D | arm-device.c | 105 unsigned long action, void *data) in xen_platform_notifier() argument 113 switch (action) { in xen_platform_notifier() 125 action == BUS_NOTIFY_ADD_DEVICE ? "map" : in xen_platform_notifier() 126 (action == BUS_NOTIFY_DEL_DEVICE ? "unmap" : "?"), in xen_platform_notifier() 150 unsigned long action, void *data) in xen_amba_notifier() argument 155 switch (action) { in xen_amba_notifier() 167 action == BUS_NOTIFY_ADD_DEVICE ? "map" : in xen_amba_notifier() 168 (action == BUS_NOTIFY_DEL_DEVICE ? "unmap" : "?"), in xen_amba_notifier()
|
/drivers/md/ |
D | dm-uevent.c | 21 enum kobject_action action; member 32 enum kobject_action action; member 60 enum kobject_action action, in dm_build_path_uevent() argument 73 event->action = action; in dm_build_path_uevent() 152 r = kobject_uevent_env(kobj, event->action, event->ku_env.envp); in dm_send_uevents() 182 _dm_uevent_type_names[event_type].action, in dm_path_uevent()
|