/drivers/s390/scsi/ |
D | zfcp_erp.c | 57 static bool zfcp_erp_action_is_running(struct zfcp_erp_action *act) in zfcp_erp_action_is_running() argument 61 list_for_each_entry(curr_act, &act->adapter->erp_running_head, list) in zfcp_erp_action_is_running() 62 if (act == curr_act) in zfcp_erp_action_is_running() 67 static void zfcp_erp_action_ready(struct zfcp_erp_action *act) in zfcp_erp_action_ready() argument 69 struct zfcp_adapter *adapter = act->adapter; in zfcp_erp_action_ready() 71 list_move(&act->list, &adapter->erp_ready_head); in zfcp_erp_action_ready() 72 zfcp_dbf_rec_run("erardy1", act); in zfcp_erp_action_ready() 74 zfcp_dbf_rec_run("erardy2", act); in zfcp_erp_action_ready() 77 static void zfcp_erp_action_dismiss(struct zfcp_erp_action *act) in zfcp_erp_action_dismiss() argument 79 act->status |= ZFCP_STATUS_ERP_DISMISSED; in zfcp_erp_action_dismiss() [all …]
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | action.c | 33 const struct flow_action_entry *act, in nfp_fl_push_mpls() argument 43 if (act->mpls_push.bos != ACT_MPLS_BOS_NOT_SET) { in nfp_fl_push_mpls() 44 mpls_lse |= act->mpls_push.bos << MPLS_LS_S_SHIFT; in nfp_fl_push_mpls() 51 if (act->mpls_push.tc != ACT_MPLS_TC_NOT_SET) in nfp_fl_push_mpls() 52 mpls_lse |= act->mpls_push.tc << MPLS_LS_TC_SHIFT; in nfp_fl_push_mpls() 55 mpls_lse |= act->mpls_push.label << MPLS_LS_LABEL_SHIFT; in nfp_fl_push_mpls() 56 mpls_lse |= act->mpls_push.ttl << MPLS_LS_TTL_SHIFT; in nfp_fl_push_mpls() 57 push_mpls->ethtype = act->mpls_push.proto; in nfp_fl_push_mpls() 65 const struct flow_action_entry *act) in nfp_fl_pop_mpls() argument 71 pop_mpls->ethtype = act->mpls_pop.proto; in nfp_fl_pop_mpls() [all …]
|
/drivers/net/ethernet/mediatek/ |
D | mtk_ppe_offload.c | 67 mtk_flow_offload_mangle_eth(const struct flow_action_entry *act, void *eth) in mtk_flow_offload_mangle_eth() argument 69 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth() 70 const void *src = &act->mangle.val; in mtk_flow_offload_mangle_eth() 72 if (act->mangle.offset > 8) in mtk_flow_offload_mangle_eth() 75 if (act->mangle.mask == 0xffff) { in mtk_flow_offload_mangle_eth() 80 memcpy(dest, src, act->mangle.mask ? 2 : 4); in mtk_flow_offload_mangle_eth() 85 mtk_flow_mangle_ports(const struct flow_action_entry *act, in mtk_flow_mangle_ports() argument 88 u32 val = ntohl(act->mangle.val); in mtk_flow_mangle_ports() 90 switch (act->mangle.offset) { in mtk_flow_mangle_ports() 92 if (act->mangle.mask == ~htonl(0xffff)) in mtk_flow_mangle_ports() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_actions.c | 1143 char *act = mlxsw_afa_block_append_action(block, in mlxsw_afa_block_append_vlan_modify() local 1147 if (IS_ERR(act)) { in mlxsw_afa_block_append_vlan_modify() 1149 return PTR_ERR(act); in mlxsw_afa_block_append_vlan_modify() 1151 mlxsw_afa_vlan_pack(act, MLXSW_AFA_VLAN_VLAN_TAG_CMD_NOP, in mlxsw_afa_block_append_vlan_modify() 1262 char *act = mlxsw_afa_block_append_action_trap(block, in mlxsw_afa_block_append_drop_plain() local 1266 if (IS_ERR(act)) in mlxsw_afa_block_append_drop_plain() 1267 return PTR_ERR(act); in mlxsw_afa_block_append_drop_plain() 1268 mlxsw_afa_trap_pack(act, MLXSW_AFA_TRAP_TRAP_ACTION_TRAP, in mlxsw_afa_block_append_drop_plain() 1283 char *act; in mlxsw_afa_block_append_drop_with_cookie() local 1293 act = mlxsw_afa_block_append_action_trap(block, MLXSW_AFA_TRAPWU_CODE, in mlxsw_afa_block_append_drop_with_cookie() [all …]
|
D | spectrum_flower.c | 24 const struct flow_action_entry *act; in mlxsw_sp_flower_parse_actions() local 35 act = flow_action_first_entry_get(flow_action); in mlxsw_sp_flower_parse_actions() 36 if (act->hw_stats & FLOW_ACTION_HW_STATS_DISABLED) { in mlxsw_sp_flower_parse_actions() 38 } else if (act->hw_stats & FLOW_ACTION_HW_STATS_IMMEDIATE) { in mlxsw_sp_flower_parse_actions() 48 flow_action_for_each(i, act, flow_action) { in mlxsw_sp_flower_parse_actions() 49 switch (act->id) { in mlxsw_sp_flower_parse_actions() 66 act->cookie, extack); in mlxsw_sp_flower_parse_actions() 90 u32 chain_index = act->chain_index; in mlxsw_sp_flower_parse_actions() 130 out_dev = act->dev; in mlxsw_sp_flower_parse_actions() 138 struct net_device *out_dev = act->dev; in mlxsw_sp_flower_parse_actions() [all …]
|
D | spectrum_matchall.c | 207 struct flow_action_entry *act; in mlxsw_sp_mall_replace() local 266 act = &f->rule->action.entries[0]; in mlxsw_sp_mall_replace() 268 switch (act->id) { in mlxsw_sp_mall_replace() 271 mall_entry->mirror.to_dev = act->dev; in mlxsw_sp_mall_replace() 275 mall_entry->sample.params.psample_group = act->sample.psample_group; in mlxsw_sp_mall_replace() 276 mall_entry->sample.params.truncate = act->sample.truncate; in mlxsw_sp_mall_replace() 277 mall_entry->sample.params.trunc_size = act->sample.trunc_size; in mlxsw_sp_mall_replace() 278 mall_entry->sample.params.rate = act->sample.rate; in mlxsw_sp_mall_replace()
|
/drivers/net/hyperv/ |
D | netvsc_bpf.c | 30 u32 act = XDP_PASS; in netvsc_run_xdp() local 42 act = XDP_DROP; in netvsc_run_xdp() 49 act = XDP_DROP; in netvsc_run_xdp() 58 act = bpf_prog_run_xdp(prog, xdp); in netvsc_run_xdp() 60 switch (act) { in netvsc_run_xdp() 67 trace_xdp_exception(ndev, prog, act); in netvsc_run_xdp() 71 bpf_warn_invalid_xdp_action(act); in netvsc_run_xdp() 77 if (page && act != XDP_PASS && act != XDP_TX) { in netvsc_run_xdp() 82 return act; in netvsc_run_xdp()
|
/drivers/input/serio/ |
D | hp_sdc.c | 201 if (curr->act.semaphore) in hp_sdc_take() 202 up(curr->act.semaphore); in hp_sdc_take() 205 if (curr->act.irqhook) in hp_sdc_take() 206 curr->act.irqhook(irq, dev_id, status, data); in hp_sdc_take() 328 if (curr->act.semaphore) in hp_sdc_tasklet() 329 up(curr->act.semaphore); in hp_sdc_tasklet() 335 if (curr->act.irqhook) in hp_sdc_tasklet() 336 curr->act.irqhook(0, NULL, 0, 0); in hp_sdc_tasklet() 351 uint8_t act; in hp_sdc_put() local 424 act = curr->seq[idx]; in hp_sdc_put() [all …]
|
D | gscps2.c | 95 u8 act, append; /* position in buffer[] */ member 137 ps2port->act = ps2port->append = 0; in gscps2_flush() 251 while (ps2port->act != ps2port->append) { in gscps2_interrupt() 261 status = ps2port->buffer[ps2port->act].str; in gscps2_interrupt() 262 data = ps2port->buffer[ps2port->act].data; in gscps2_interrupt() 264 ps2port->act = ((ps2port->act+1) & BUFFER_SIZE); in gscps2_interrupt()
|
D | hp_sdc_mlc.c | 193 if (priv->trans.act.semaphore != &mlc->csem) in hp_sdc_mlc_cts() 203 priv->trans.act.semaphore = &mlc->csem; in hp_sdc_mlc_cts() 217 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_cts() 245 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out() 286 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out() 316 hp_sdc_mlc_priv.trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_init()
|
/drivers/s390/block/ |
D | dasd_fba.c | 664 struct ccw1 *act, *end, *last; in dasd_fba_dump_sense() local 703 act = req->cpaddr; in dasd_fba_dump_sense() 704 for (last = act; last->flags & (CCW_FLAG_CC | CCW_FLAG_DC); last++); in dasd_fba_dump_sense() 705 end = min(act + 8, last); in dasd_fba_dump_sense() 707 while (act <= end) { in dasd_fba_dump_sense() 710 act, ((int *) act)[0], ((int *) act)[1]); in dasd_fba_dump_sense() 711 for (count = 0; count < 32 && count < act->count; in dasd_fba_dump_sense() 714 ((int *) (addr_t) act->cda) in dasd_fba_dump_sense() 717 act++; in dasd_fba_dump_sense() 724 if (act < ((struct ccw1 *)(addr_t) irb->scsw.cmd.cpa) - 2) { in dasd_fba_dump_sense() [all …]
|
/drivers/platform/x86/intel/speed_select_if/ |
D | isst_if_mbox_msr.c | 97 struct msrl_action *act = info; in msrl_update_func() local 99 act->err = isst_if_send_mbox_cmd(act->mbox_cmd->command, in msrl_update_func() 100 act->mbox_cmd->sub_command, in msrl_update_func() 101 act->mbox_cmd->parameter, in msrl_update_func() 102 act->mbox_cmd->req_data, in msrl_update_func() 103 &act->mbox_cmd->resp_data); in msrl_update_func()
|
/drivers/net/dsa/sja1105/ |
D | sja1105_flower.c | 309 const struct flow_action_entry *act; in sja1105_cls_flower_add() local 321 flow_action_for_each(i, act, &rule->action) { in sja1105_cls_flower_add() 322 switch (act->id) { in sja1105_cls_flower_add() 324 if (act->police.rate_pkt_ps) { in sja1105_cls_flower_add() 333 act->police.rate_bytes_ps, in sja1105_cls_flower_add() 334 act->police.burst); in sja1105_cls_flower_add() 353 to_dp = dsa_port_from_netdev(act->dev); in sja1105_cls_flower_add() 382 &key, act->gate.index, in sja1105_cls_flower_add() 383 act->gate.prio, in sja1105_cls_flower_add() 384 act->gate.basetime, in sja1105_cls_flower_add() [all …]
|
/drivers/hwmon/ |
D | nsa320-hwmon.c | 44 struct gpio_desc *act; member 79 gpiod_set_value(hwmon->act, 1); in nsa320_hwmon_update() 92 gpiod_set_value(hwmon->act, 0); in nsa320_hwmon_update() 169 hwmon->act = devm_gpiod_get(&pdev->dev, "act", GPIOD_OUT_LOW); in nsa320_hwmon_probe() 170 if (IS_ERR(hwmon->act)) in nsa320_hwmon_probe() 171 return PTR_ERR(hwmon->act); in nsa320_hwmon_probe()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_flower.c | 495 struct flow_action_entry *act; in cxgb4_process_flow_actions() local 499 flow_action_for_each(i, act, actions) { in cxgb4_process_flow_actions() 500 switch (act->id) { in cxgb4_process_flow_actions() 509 struct net_device *out = act->dev; in cxgb4_process_flow_actions() 519 u8 prio = act->vlan.prio; in cxgb4_process_flow_actions() 520 u16 vid = act->vlan.vid; in cxgb4_process_flow_actions() 522 switch (act->id) { in cxgb4_process_flow_actions() 543 htype = act->mangle.htype; in cxgb4_process_flow_actions() 544 mask = act->mangle.mask; in cxgb4_process_flow_actions() 545 val = act->mangle.val; in cxgb4_process_flow_actions() [all …]
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_span.c | 168 struct flow_action_entry *act; in prestera_span_replace() local 178 act = &f->rule->action.entries[0]; in prestera_span_replace() 180 if (!prestera_netdev_check(act->dev)) { in prestera_span_replace() 185 if (!tc_cls_can_offload_and_chain0(act->dev, &f->common)) in prestera_span_replace() 187 if (act->id != FLOW_ACTION_MIRRED) in prestera_span_replace() 192 port = netdev_priv(act->dev); in prestera_span_replace()
|
/drivers/gpu/drm/i915/gt/ |
D | selftest_rps.c | 160 u8 act; in wait_for_freq() local 162 act = read_cagf(rps); in wait_for_freq() 164 return act; in wait_for_freq() 167 if (act == freq) in wait_for_freq() 168 return act; in wait_for_freq() 171 if (!memchr_inv(history, act, sizeof(history))) in wait_for_freq() 172 return act; in wait_for_freq() 174 history[i] = act; in wait_for_freq() 696 int act = f; in live_rps_frequency_cs() local 699 count = measure_cs_frequency_at(rps, engine, &act); in live_rps_frequency_cs() [all …]
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp6000_pcie.c | 198 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() argument 223 if (act != NFP_CPP_ACTION_RW && act != 0) { in compute_bar() 230 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Action_BaseAddress(act); in compute_bar() 295 int tgt, int act, int tok, u64 offset, size_t size, int width) in reconfigure_bar() argument 302 tgt, act, tok, offset, size, width); in reconfigure_bar() 312 static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok, in matching_bar() argument 346 if (act == 0) in matching_bar() 347 act = NFP_CPP_ACTION_RW; in matching_bar() 362 (baract == act) && in matching_bar() 373 u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) in find_matching_bar() argument [all …]
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_xdp.c | 125 u32 act; in bnxt_rx_xdp() local 143 act = bpf_prog_run_xdp(xdp_prog, &xdp); in bnxt_rx_xdp() 157 switch (act) { in bnxt_rx_xdp() 163 trace_xdp_exception(bp->dev, xdp_prog, act); in bnxt_rx_xdp() 186 trace_xdp_exception(bp->dev, xdp_prog, act); in bnxt_rx_xdp() 192 trace_xdp_exception(bp->dev, xdp_prog, act); in bnxt_rx_xdp() 200 bpf_warn_invalid_xdp_action(act); in bnxt_rx_xdp() 203 trace_xdp_exception(bp->dev, xdp_prog, act); in bnxt_rx_xdp()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_switch.c | 39 (offsetof(struct ice_aqc_sw_rules_elem, pdata.lg_act.act) + \ 40 ((n) * sizeof(((struct ice_sw_rule_lg_act *)0)->act[0]))) 711 u32 act = 0; in ice_fill_sw_rule() local 716 s_rule->pdata.lkup_tx_rx.act = 0; in ice_fill_sw_rule() 732 act |= (f_info->fwd_id.hw_vsi_id << ICE_SINGLE_ACT_VSI_ID_S) & in ice_fill_sw_rule() 735 act |= ICE_SINGLE_ACT_VSI_FORWARDING | in ice_fill_sw_rule() 739 act |= ICE_SINGLE_ACT_VSI_LIST; in ice_fill_sw_rule() 740 act |= (f_info->fwd_id.vsi_list_id << in ice_fill_sw_rule() 744 act |= ICE_SINGLE_ACT_VSI_FORWARDING | in ice_fill_sw_rule() 748 act |= ICE_SINGLE_ACT_TO_Q; in ice_fill_sw_rule() [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_cls.c | 514 mvpp2_write(priv, MVPP22_CLS_C2_ACT, c2->act); in mvpp2_cls_c2_write() 543 c2->act = mvpp2_read(priv, MVPP22_CLS_C2_ACT); in mvpp2_cls_c2_read() 885 c2.act = MVPP22_CLS_C2_ACT_RSS_EN(MVPP22_C2_UPD_LOCK); in mvpp2_port_c2_cls_init() 888 c2.act |= MVPP22_CLS_C2_ACT_FWD(MVPP22_C2_FWD_SW_LOCK); in mvpp2_port_c2_cls_init() 893 c2.act |= MVPP22_CLS_C2_ACT_QHIGH(MVPP22_C2_UPD) | in mvpp2_port_c2_cls_init() 1086 struct flow_action_entry *act; in mvpp2_port_c2_tcam_rule_add() local 1101 act = &rule->flow->action.entries[0]; in mvpp2_port_c2_tcam_rule_add() 1122 if (act->id == FLOW_ACTION_DROP) { in mvpp2_port_c2_tcam_rule_add() 1123 c2.act = MVPP22_CLS_C2_ACT_COLOR(MVPP22_C2_COL_RED_LOCK); in mvpp2_port_c2_tcam_rule_add() 1130 c2.act = MVPP22_CLS_C2_ACT_COLOR(MVPP22_C2_COL_NO_UPD_LOCK); in mvpp2_port_c2_tcam_rule_add() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.c | 1640 const struct flow_action_entry *act; in flow_requires_tunnel_mapping() local 1646 flow_action_for_each(i, act, flow_action) { in flow_requires_tunnel_mapping() 1647 switch (act->id) { in flow_requires_tunnel_mapping() 2933 const struct flow_action_entry *act, int namespace, in parse_pedit_to_modify_hdr() argument 2938 u8 cmd = (act->id == FLOW_ACTION_MANGLE) ? 0 : 1; in parse_pedit_to_modify_hdr() 2943 htype = act->mangle.htype; in parse_pedit_to_modify_hdr() 2957 mask = act->mangle.mask; in parse_pedit_to_modify_hdr() 2958 val = act->mangle.val; in parse_pedit_to_modify_hdr() 2959 offset = act->mangle.offset; in parse_pedit_to_modify_hdr() 2974 const struct flow_action_entry *act, in parse_pedit_to_reformat() argument [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-switch-flower.c | 497 struct flow_action_entry *act; in dpaa2_switch_cls_flower_replace_acl() local 513 act = &rule->action.entries[0]; in dpaa2_switch_cls_flower_replace_acl() 514 err = dpaa2_switch_tc_parse_action_acl(ethsw, act, in dpaa2_switch_cls_flower_replace_acl() 647 struct flow_action_entry *act; in dpaa2_switch_cls_flower_replace() local 654 act = &rule->action.entries[0]; in dpaa2_switch_cls_flower_replace() 655 switch (act->id) { in dpaa2_switch_cls_flower_replace() 697 struct flow_action_entry *act; in dpaa2_switch_cls_matchall_replace_acl() local 709 act = &cls->rule->action.entries[0]; in dpaa2_switch_cls_matchall_replace_acl() 710 err = dpaa2_switch_tc_parse_action_acl(ethsw, act, in dpaa2_switch_cls_matchall_replace_acl() 792 struct flow_action_entry *act; in dpaa2_switch_cls_matchall_replace() local [all …]
|
/drivers/usb/gadget/udc/aspeed-vhub/ |
D | epn.c | 43 unsigned int act = req->req.actual; in ast_vhub_epn_kick() local 51 chunk = len - act; in ast_vhub_epn_kick() 58 req, act, len, chunk, req->last_desc); in ast_vhub_epn_kick() 65 memcpy(ep->buf, req->req.buf + act, chunk); in ast_vhub_epn_kick() 72 writel(req->req.dma + act, ep->epn.regs + AST_VHUB_EP_DESC_BASE); in ast_vhub_epn_kick() 165 unsigned int act = req->act_count; in ast_vhub_epn_kick_desc() local 177 act, len, ep->epn.chunk_max, ast_vhub_count_free_descs(ep)); in ast_vhub_epn_kick_desc() 189 chunk = len - act; in ast_vhub_epn_kick_desc() 206 act, len, chunk, req->last_desc, d_num, in ast_vhub_epn_kick_desc() 210 desc->w0 = cpu_to_le32(req->req.dma + act); in ast_vhub_epn_kick_desc() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_tc.c | 345 struct flow_action_entry *act; in otx2_tc_parse_actions() local 359 flow_action_for_each(i, act, flow_action) { in otx2_tc_parse_actions() 360 switch (act->id) { in otx2_tc_parse_actions() 368 target = act->dev; in otx2_tc_parse_actions() 392 if (act->police.rate_bytes_ps > 0) { in otx2_tc_parse_actions() 393 rate = act->police.rate_bytes_ps * 8; in otx2_tc_parse_actions() 394 burst = act->police.burst; in otx2_tc_parse_actions() 395 } else if (act->police.rate_pkt_ps > 0) { in otx2_tc_parse_actions() 401 rate = act->police.rate_pkt_ps * 8; in otx2_tc_parse_actions() 402 burst = act->police.burst_pkt; in otx2_tc_parse_actions() [all …]
|