/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_trap.c | 30 struct devlink_trap trap; member 635 .trap = MLXSW_SP_TRAP_DROP(SMAC_MC, L2_DROPS), 641 .trap = MLXSW_SP_TRAP_DROP(VLAN_TAG_MISMATCH, L2_DROPS), 648 .trap = MLXSW_SP_TRAP_DROP(INGRESS_VLAN_FILTER, L2_DROPS), 654 .trap = MLXSW_SP_TRAP_DROP(INGRESS_STP_FILTER, L2_DROPS), 660 .trap = MLXSW_SP_TRAP_DROP(EMPTY_TX_LIST, L2_DROPS), 667 .trap = MLXSW_SP_TRAP_DROP(PORT_LOOPBACK_FILTER, L2_DROPS), 673 .trap = MLXSW_SP_TRAP_DROP(BLACKHOLE_ROUTE, L3_DROPS), 679 .trap = MLXSW_SP_TRAP_DROP(NON_IP_PACKET, L3_DROPS), 686 .trap = MLXSW_SP_TRAP_DROP(UC_DIP_MC_DMAC, L3_DROPS), [all …]
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_devlink.c | 117 struct devlink_trap trap; member 185 .trap = PRESTERA_TRAP_DRIVER_CONTROL(ARP_BC, NEIGH_DISCOVERY), 189 .trap = PRESTERA_TRAP_DRIVER_CONTROL(IS_IS, LOCAL_DELIVERY), 193 .trap = PRESTERA_TRAP_DRIVER_CONTROL(OSPF, OSPF), 197 .trap = PRESTERA_TRAP_DRIVER_CONTROL(IP_BC_MAC, LOCAL_DELIVERY), 201 .trap = PRESTERA_TRAP_CONTROL(STP, STP, TRAP), 205 .trap = PRESTERA_TRAP_CONTROL(LACP, LACP, TRAP), 209 .trap = PRESTERA_TRAP_CONTROL(LLDP, LLDP, TRAP), 213 .trap = PRESTERA_TRAP_DRIVER_CONTROL(ROUTER_MC, LOCAL_DELIVERY), 217 .trap = PRESTERA_TRAP_DRIVER_CONTROL(VRRP, VRRP), [all …]
|
D | prestera_router.c | 304 prestera_util_kern_set_nh_offload(struct fib_nh_common *nhc, bool offloaded, bool trap) in prestera_util_kern_set_nh_offload() argument 311 if (trap) in prestera_util_kern_set_nh_offload() 659 bool offloaded, bool trap) in __prestera_k_arb_fib_nh_offload_set() argument 668 prestera_util_kern_set_nh_offload(nhc, offloaded, trap); in __prestera_k_arb_fib_nh_offload_set() 673 prestera_util_kern_set_nh_offload(nhc, offloaded, trap); in __prestera_k_arb_fib_nh_offload_set() 698 bool fail, bool offload, bool trap) in __prestera_k_arb_fib_lpm_offload_set() argument 712 fri.trap = trap; in __prestera_k_arb_fib_lpm_offload_set()
|
D | prestera_acl.c | 36 } accept, drop, trap; member 604 if (e->trap.valid) { in __prestera_acl_rule_entry2hw_add() 670 e->trap.valid = arg->trap.valid; in __prestera_acl_rule_entry_act_construct()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | nv50.c | 143 u32 trap[6], idx, inst; in nv50_fb_intr() local 155 trap[i] = nvkm_rd32(device, 0x100c94); in nv50_fb_intr() 162 st0 = (trap[0] & 0x0000000f) >> 0; in nv50_fb_intr() 163 st1 = (trap[0] & 0x000000f0) >> 4; in nv50_fb_intr() 164 st2 = (trap[0] & 0x00000f00) >> 8; in nv50_fb_intr() 165 st3 = (trap[0] & 0x0000f000) >> 12; in nv50_fb_intr() 167 st0 = (trap[0] & 0x000000ff) >> 0; in nv50_fb_intr() 168 st1 = (trap[0] & 0x0000ff00) >> 8; in nv50_fb_intr() 169 st2 = (trap[0] & 0x00ff0000) >> 16; in nv50_fb_intr() 170 st3 = (trap[0] & 0xff000000) >> 24; in nv50_fb_intr() [all …]
|
D | mcp77.c | 30 .trap = 0x001d07ff,
|
D | mcp89.c | 30 .trap = 0x089d1fff,
|
D | g84.c | 31 .trap = 0x001d07ff,
|
D | gt215.c | 31 .trap = 0x000d0fff,
|
D | nv50.h | 17 u32 trap; member
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | trap.c | 170 void mlx5e_close_trap(struct mlx5e_trap *trap) in mlx5e_close_trap() argument 172 mlx5e_tir_destroy(&trap->tir); in mlx5e_close_trap() 173 mlx5e_close_trap_rq(&trap->rq); in mlx5e_close_trap() 174 netif_napi_del(&trap->napi); in mlx5e_close_trap() 175 kvfree(trap); in mlx5e_close_trap() 178 static void mlx5e_activate_trap(struct mlx5e_trap *trap) in mlx5e_activate_trap() argument 180 napi_enable(&trap->napi); in mlx5e_activate_trap() 181 mlx5e_activate_rq(&trap->rq); in mlx5e_activate_trap() 182 mlx5e_trigger_napi_sched(&trap->napi); in mlx5e_activate_trap() 187 struct mlx5e_trap *trap = priv->en_trap; in mlx5e_deactivate_trap() local [all …]
|
D | trap.h | 32 void mlx5e_close_trap(struct mlx5e_trap *trap);
|
/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 317 static void ocelot_populate_l2_ptp_trap_key(struct ocelot_vcap_filter *trap) in ocelot_populate_l2_ptp_trap_key() argument 319 trap->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_populate_l2_ptp_trap_key() 320 *(__be16 *)trap->key.etype.etype.value = htons(ETH_P_1588); in ocelot_populate_l2_ptp_trap_key() 321 *(__be16 *)trap->key.etype.etype.mask = htons(0xffff); in ocelot_populate_l2_ptp_trap_key() 325 ocelot_populate_ipv4_ptp_event_trap_key(struct ocelot_vcap_filter *trap) in ocelot_populate_ipv4_ptp_event_trap_key() argument 327 trap->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_populate_ipv4_ptp_event_trap_key() 328 trap->key.ipv4.proto.value[0] = IPPROTO_UDP; in ocelot_populate_ipv4_ptp_event_trap_key() 329 trap->key.ipv4.proto.mask[0] = 0xff; in ocelot_populate_ipv4_ptp_event_trap_key() 330 trap->key.ipv4.dport.value = PTP_EV_PORT; in ocelot_populate_ipv4_ptp_event_trap_key() 331 trap->key.ipv4.dport.mask = 0xffff; in ocelot_populate_ipv4_ptp_event_trap_key() [all …]
|
D | ocelot.c | 1306 struct ocelot_vcap_filter *trap; in ocelot_trap_add() local 1312 trap = ocelot_vcap_block_find_filter_by_id(block_vcap_is2, cookie, in ocelot_trap_add() 1314 if (!trap) { in ocelot_trap_add() 1315 trap = kzalloc(sizeof(*trap), GFP_KERNEL); in ocelot_trap_add() 1316 if (!trap) in ocelot_trap_add() 1319 populate(trap); in ocelot_trap_add() 1320 trap->prio = 1; in ocelot_trap_add() 1321 trap->id.cookie = cookie; in ocelot_trap_add() 1322 trap->id.tc_offload = false; in ocelot_trap_add() 1323 trap->block_id = VCAP_IS2; in ocelot_trap_add() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | devlink.c | 219 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id() 225 static int mlx5_devlink_trap_init(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_init() argument 235 dl_trap->trap.id = trap->id; in mlx5_devlink_trap_init() 236 dl_trap->trap.action = DEVLINK_TRAP_ACTION_DROP; in mlx5_devlink_trap_init() 239 if (mlx5_find_trap_by_id(dev, trap->id)) { in mlx5_devlink_trap_init() 241 mlx5_core_err(dev, "Devlink trap: Trap 0x%x already found", trap->id); in mlx5_devlink_trap_init() 249 static void mlx5_devlink_trap_fini(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_fini() argument 255 dl_trap = mlx5_find_trap_by_id(dev, trap->id); in mlx5_devlink_trap_fini() 257 mlx5_core_err(dev, "Devlink trap: Missing trap id 0x%x", trap->id); in mlx5_devlink_trap_fini() 265 const struct devlink_trap *trap, in mlx5_devlink_trap_action_set() argument [all …]
|
D | devlink.h | 22 struct mlx5_trap_ctx trap; member
|
/drivers/infiniband/hw/hfi1/ |
D | mad.c | 83 static void cleanup_traps(struct hfi1_ibport *ibp, struct trap_node *trap) in cleanup_traps() argument 102 if (node != trap) in cleanup_traps() 111 kfree(trap); in cleanup_traps() 115 struct trap_node *trap) in check_and_add_trap() argument 125 queue_id = trap->data.generic_type & 0x0F; in check_and_add_trap() 129 trap->data.generic_type, trap_count); in check_and_add_trap() 130 kfree(trap); in check_and_add_trap() 142 if (node == trap) { in check_and_add_trap() 153 list_add_tail(&trap->list, &trap_list->list); in check_and_add_trap() 156 trap->data.generic_type); in check_and_add_trap() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | gf100.c | 1179 u32 trap[4]; in gf100_gr_trap_gpc_rop() local 1181 trap[0] = nvkm_rd32(device, GPC_UNIT(gpc, 0x0420)) & 0x3fffffff; in gf100_gr_trap_gpc_rop() 1182 trap[1] = nvkm_rd32(device, GPC_UNIT(gpc, 0x0434)); in gf100_gr_trap_gpc_rop() 1183 trap[2] = nvkm_rd32(device, GPC_UNIT(gpc, 0x0438)); in gf100_gr_trap_gpc_rop() 1184 trap[3] = nvkm_rd32(device, GPC_UNIT(gpc, 0x043c)); in gf100_gr_trap_gpc_rop() 1186 nvkm_snprintbf(error, sizeof(error), gf100_gpc_rop_error, trap[0]); in gf100_gr_trap_gpc_rop() 1190 gpc, trap[0], error, trap[1] & 0xffff, trap[1] >> 16, in gf100_gr_trap_gpc_rop() 1191 (trap[2] >> 8) & 0x3f, trap[3] & 0xff); in gf100_gr_trap_gpc_rop() 1263 u32 trap = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0224)); in gf100_gr_trap_tpc() local 1264 nvkm_error(subdev, "GPC%d/TPC%d/TEX: %08x\n", gpc, tpc, trap); in gf100_gr_trap_tpc() [all …]
|
/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 736 struct opa_veswport_trap *trap; in opa_vnic_vema_send_trap() local 829 trap = (struct opa_veswport_trap *)trap_mad->notice.raw_data; in opa_vnic_vema_send_trap() 830 trap->fabric_id = cpu_to_be16(data->fabric_id); in opa_vnic_vema_send_trap() 831 trap->veswid = cpu_to_be16(data->veswid); in opa_vnic_vema_send_trap() 832 trap->veswportnum = cpu_to_be32(data->veswportnum); in opa_vnic_vema_send_trap() 833 trap->opaportnum = cpu_to_be16(data->opaportnum); in opa_vnic_vema_send_trap() 834 trap->veswportindex = data->veswportindex; in opa_vnic_vema_send_trap() 835 trap->opcode = data->opcode; in opa_vnic_vema_send_trap()
|
/drivers/net/netdevsim/ |
D | fib.c | 331 fri.trap = false; in nsim_fib4_rt_offload_failed_flag_set() 338 bool trap) in nsim_fib4_rt_hw_flags_set() argument 351 fri.trap = trap; in nsim_fib4_rt_hw_flags_set() 629 WRITE_ONCE(fib6_event->rt_arr[i]->trap, true); in nsim_fib6_rt_append() 636 WRITE_ONCE(fib6_event->rt_arr[i]->trap, false); in nsim_fib6_rt_append() 665 bool trap) in nsim_fib6_rt_hw_flags_set() argument 671 fib6_info_hw_flags_set(net, fib6_rt_nh->rt, false, trap, false); in nsim_fib6_rt_hw_flags_set() 676 bool trap) in nsim_fib6_rt_hw_flags_set() argument 1185 bool trap) in nsim_nexthop_hw_flags_set() argument 1189 nexthop_set_hw_flags(net, nexthop->id, false, trap); in nsim_nexthop_hw_flags_set() [all …]
|
/drivers/net/dsa/ocelot/ |
D | felix.c | 287 const struct ocelot_vcap_filter *trap) in felix_trap_get_cpu_port() argument 292 if (WARN_ON(!trap->ingress_port_mask)) in felix_trap_get_cpu_port() 295 first_port = __ffs(trap->ingress_port_mask); in felix_trap_get_cpu_port() 311 struct ocelot_vcap_filter *trap; in felix_update_trapping_destinations() local 326 list_for_each_entry(trap, &block_vcap_is2->rules, list) { in felix_update_trapping_destinations() 327 if (!trap->is_trap) in felix_update_trapping_destinations() 337 port_mask = BIT(felix_trap_get_cpu_port(ds, trap)); in felix_update_trapping_destinations() 338 cpu_copy_ena = !!trap->take_ts; in felix_update_trapping_destinations() 348 if (trap->action.mask_mode == mask_mode && in felix_update_trapping_destinations() 349 trap->action.port_mask == port_mask && in felix_update_trapping_destinations() [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-devlink.c | 117 const struct devlink_trap *trap, in dpaa2_eth_dl_trap_init() argument 124 dpaa2_eth_trap_item = dpaa2_eth_dl_trap_item_lookup(priv, trap->id); in dpaa2_eth_dl_trap_init() 134 const struct devlink_trap *trap, in dpaa2_eth_dl_trap_action_set() argument
|
/drivers/gpu/drm/i915/gvt/ |
D | cfg_space.c | 139 static void trap_gttmmio(struct intel_vgpu *vgpu, bool trap) in trap_gttmmio() argument 141 if (trap != vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].tracked) in trap_gttmmio() 142 vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].tracked = trap; in trap_gttmmio()
|
/drivers/gpu/drm/ast/ |
D | ast_post.c | 865 u32 trap, trap_AC2, trap_MRS; in get_ddr3_info() local 870 trap = (ast_mindwm(ast, 0x1E6E2070) >> 25) & 0x3; in get_ddr3_info() 871 trap_AC2 = 0x00020000 + (trap << 16); in get_ddr3_info() 872 trap_AC2 |= 0x00300000 + ((trap & 0x2) << 19); in get_ddr3_info() 873 trap_MRS = 0x00000010 + (trap << 4); in get_ddr3_info() 874 trap_MRS |= ((trap & 0x2) << 18); in get_ddr3_info() 1230 u32 trap, trap_AC2, trap_MRS; in get_ddr2_info() local 1235 trap = (ast_mindwm(ast, 0x1E6E2070) >> 25) & 0x3; in get_ddr2_info() 1236 trap_AC2 = (trap << 20) | (trap << 16); in get_ddr2_info() 1238 trap_MRS = 0x00000040 | (trap << 4); in get_ddr2_info()
|
/drivers/soc/fsl/qe/ |
D | qe.c | 542 u32 trap = be32_to_cpu(ucode->traps[j]); in qe_upload_firmware() local 544 if (trap) in qe_upload_firmware() 545 iowrite32be(trap, in qe_upload_firmware()
|