| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | spectrum_trap.c | 1193 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_policer_item_lookup() local 1207 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_group_item_lookup() local 1221 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_item_lookup() local 1225 if (trap->trap_items_arr[i].trap.id == id) in mlxsw_sp_trap_item_lookup() 1234 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_cpu_policers_set() local 1265 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_policer_items_arr_init() local 1317 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_policers_init() local 1348 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_policers_fini() local 1364 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_group_items_arr_init() local 1400 struct mlxsw_sp_trap *trap = mlxsw_sp->trap; in mlxsw_sp_trap_groups_init() local [all …]
|
| /drivers/net/ethernet/marvell/prestera/ |
| A D | prestera_devlink.c | 117 struct devlink_trap trap; member 201 .trap = PRESTERA_TRAP_CONTROL(STP, STP, TRAP), 349 const struct devlink_trap *trap, 373 const struct devlink_trap *trap, 554 trap_item->action = trap->init_action; in prestera_trap_init() 560 const struct devlink_trap *trap, in prestera_trap_action_set() argument 569 const struct devlink_trap *trap, in prestera_drop_counter_get() argument 576 container_of(trap, struct prestera_trap, trap); in prestera_drop_counter_get() 586 const struct devlink_trap *trap; in prestera_devlink_traps_unregister() local 590 trap = &prestera_trap_items_arr[i].trap; in prestera_devlink_traps_unregister() [all …]
|
| A 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()
|
| A 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/ |
| A D | nv50.c | 142 u32 trap[6], idx, inst; in nv50_fb_intr() local 161 st0 = (trap[0] & 0x0000000f) >> 0; in nv50_fb_intr() 162 st1 = (trap[0] & 0x000000f0) >> 4; in nv50_fb_intr() 163 st2 = (trap[0] & 0x00000f00) >> 8; in nv50_fb_intr() 164 st3 = (trap[0] & 0x0000f000) >> 12; in nv50_fb_intr() 166 st0 = (trap[0] & 0x000000ff) >> 0; in nv50_fb_intr() 167 st1 = (trap[0] & 0x0000ff00) >> 8; in nv50_fb_intr() 168 st2 = (trap[0] & 0x00ff0000) >> 16; in nv50_fb_intr() 171 inst = ((trap[2] << 16) | trap[1]) << 12; in nv50_fb_intr() 185 trap[5] & 0xff, trap[4] & 0xffff, trap[3] & 0xffff, in nv50_fb_intr() [all …]
|
| A D | mcp77.c | 30 .trap = 0x001d07ff,
|
| A D | mcp89.c | 30 .trap = 0x089d1fff,
|
| A D | gt215.c | 31 .trap = 0x000d0fff,
|
| A D | g84.c | 31 .trap = 0x001d07ff,
|
| A D | nv50.h | 15 u32 trap; member
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | trap.c | 177 kvfree(trap); in mlx5e_close_trap() 183 mlx5e_activate_rq(&trap->rq); in mlx5e_activate_trap() 197 struct mlx5e_trap *trap; in mlx5e_add_trap_queue() local 199 trap = mlx5e_open_trap(priv); in mlx5e_add_trap_queue() 200 if (IS_ERR(trap)) in mlx5e_add_trap_queue() 203 mlx5e_activate_trap(trap); in mlx5e_add_trap_queue() 205 return trap; in mlx5e_add_trap_queue() 223 struct mlx5e_trap *trap; in mlx5e_handle_action_trap() local 228 if (IS_ERR(trap)) in mlx5e_handle_action_trap() 229 return PTR_ERR(trap); in mlx5e_handle_action_trap() [all …]
|
| A D | trap.h | 32 void mlx5e_close_trap(struct mlx5e_trap *trap);
|
| /drivers/net/ethernet/mscc/ |
| A D | ocelot_ptp.c | 324 trap->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_populate_ipv4_ptp_event_trap_key() 326 trap->key.ipv4.proto.mask[0] = 0xff; in ocelot_populate_ipv4_ptp_event_trap_key() 328 trap->key.ipv4.dport.mask = 0xffff; in ocelot_populate_ipv4_ptp_event_trap_key() 334 trap->key_type = OCELOT_VCAP_KEY_IPV6; in ocelot_populate_ipv6_ptp_event_trap_key() 336 trap->key.ipv6.proto.mask[0] = 0xff; in ocelot_populate_ipv6_ptp_event_trap_key() 338 trap->key.ipv6.dport.mask = 0xffff; in ocelot_populate_ipv6_ptp_event_trap_key() 344 trap->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_populate_ipv4_ptp_general_trap_key() 346 trap->key.ipv4.proto.mask[0] = 0xff; in ocelot_populate_ipv4_ptp_general_trap_key() 348 trap->key.ipv4.dport.mask = 0xffff; in ocelot_populate_ipv4_ptp_general_trap_key() 356 trap->key.ipv6.proto.mask[0] = 0xff; in ocelot_populate_ipv6_ptp_general_trap_key() [all …]
|
| A D | ocelot.c | 1666 if (!trap) { in ocelot_trap_add() 1667 trap = kzalloc(sizeof(*trap), GFP_KERNEL); in ocelot_trap_add() 1668 if (!trap) in ocelot_trap_add() 1671 populate(trap); in ocelot_trap_add() 1672 trap->prio = 1; in ocelot_trap_add() 1673 trap->id.cookie = cookie; in ocelot_trap_add() 1677 trap->lookup = 0; in ocelot_trap_add() 1681 trap->take_ts = take_ts; in ocelot_trap_add() 1682 trap->is_trap = true; in ocelot_trap_add() 1695 kfree(trap); in ocelot_trap_add() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | devlink.c | 284 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id() 300 dl_trap->trap.id = trap->id; in mlx5_devlink_trap_init() 304 if (mlx5_find_trap_by_id(dev, trap->id)) { in mlx5_devlink_trap_init() 330 const struct devlink_trap *trap, in mlx5_devlink_trap_action_set() argument 354 if (action == dl_trap->trap.action) in mlx5_devlink_trap_action_set() 357 action_orig = dl_trap->trap.action; in mlx5_devlink_trap_action_set() 358 dl_trap->trap.action = action; in mlx5_devlink_trap_action_set() 359 trap_event_ctx.trap = &dl_trap->trap; in mlx5_devlink_trap_action_set() 364 dl_trap->trap.action = action_orig; in mlx5_devlink_trap_action_set() 417 dl_trap->trap.action); in mlx5_devlink_trap_report() [all …]
|
| A D | devlink.h | 33 struct mlx5_trap_ctx trap; member 39 struct mlx5_trap_ctx *trap; member
|
| /drivers/infiniband/hw/hfi1/ |
| A D | mad.c | 202 if (trap && trap->tid == smp->tid) { in subn_handle_opa_trap_repress() 293 trap = check_and_add_trap(ibp, trap); in send_trap() 393 trap = kzalloc(sizeof(*trap), GFP_ATOMIC); in create_trap_node() 431 trap->len = sizeof(trap->data); in hfi1_bad_pkey() 450 trap->data.ntc_256.lid = trap->data.issuer_lid; in bad_mkey() 468 trap->len = sizeof(trap->data); in bad_mkey() 490 trap->data.ntc_144.lid = trap->data.issuer_lid; in hfi1_cap_mask_chg() 494 trap->len = sizeof(trap->data); in hfi1_cap_mask_chg() 512 trap->data.ntc_145.lid = trap->data.issuer_lid; in hfi1_sys_guid_chg() 514 trap->len = sizeof(trap->data); in hfi1_sys_guid_chg() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| A D | gf100.c | 1240 u32 trap[4]; in gf100_gr_trap_gpc_rop() local 1251 gpc, trap[0], error, trap[1] & 0xffff, trap[1] >> 16, in gf100_gr_trap_gpc_rop() 1252 (trap[2] >> 8) & 0x3f, trap[3] & 0xff); in gf100_gr_trap_gpc_rop() 1426 trap &= ~0x00000001; in gf100_gr_trap_intr() 1438 trap &= ~0x00000002; in gf100_gr_trap_intr() 1449 trap &= ~0x00000008; in gf100_gr_trap_intr() 1458 trap &= ~0x00000010; in gf100_gr_trap_intr() 1470 trap &= ~0x00000040; in gf100_gr_trap_intr() 1487 trap &= ~0x00000080; in gf100_gr_trap_intr() 1499 trap &= ~0x00000100; in gf100_gr_trap_intr() [all …]
|
| /drivers/infiniband/ulp/opa_vnic/ |
| A 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/gpu/drm/ast/ |
| A D | ast_2300.c | 511 u32 trap, trap_AC2, trap_MRS; in get_ddr3_info() local 516 trap = (ast_mindwm(ast, 0x1E6E2070) >> 25) & 0x3; in get_ddr3_info() 517 trap_AC2 = 0x00020000 + (trap << 16); in get_ddr3_info() 518 trap_AC2 |= 0x00300000 + ((trap & 0x2) << 19); in get_ddr3_info() 519 trap_MRS = 0x00000010 + (trap << 4); in get_ddr3_info() 520 trap_MRS |= ((trap & 0x2) << 18); in get_ddr3_info() 869 u32 trap, trap_AC2, trap_MRS; in get_ddr2_info() local 874 trap = (ast_mindwm(ast, 0x1E6E2070) >> 25) & 0x3; in get_ddr2_info() 875 trap_AC2 = (trap << 20) | (trap << 16); in get_ddr2_info() 877 trap_MRS = 0x00000040 | (trap << 4); in get_ddr2_info()
|
| /drivers/net/netdevsim/ |
| A 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/ethernet/freescale/dpaa2/ |
| A D | dpaa2-eth-devlink.c | 108 const struct devlink_trap *trap, in dpaa2_eth_dl_trap_init() argument 115 dpaa2_eth_trap_item = dpaa2_eth_dl_trap_item_lookup(priv, trap->id); in dpaa2_eth_dl_trap_init() 125 const struct devlink_trap *trap, in dpaa2_eth_dl_trap_action_set() argument
|
| /drivers/net/dsa/ocelot/ |
| A D | felix.c | 363 const struct ocelot_vcap_filter *trap) in felix_trap_get_cpu_port() argument 368 if (WARN_ON(!trap->ingress_port_mask)) in felix_trap_get_cpu_port() 371 first_port = __ffs(trap->ingress_port_mask); in felix_trap_get_cpu_port() 387 struct ocelot_vcap_filter *trap; in felix_update_trapping_destinations() local 403 if (!trap->is_trap) in felix_update_trapping_destinations() 414 cpu_copy_ena = !!trap->take_ts; in felix_update_trapping_destinations() 424 if (trap->action.mask_mode == mask_mode && in felix_update_trapping_destinations() 425 trap->action.port_mask == port_mask && in felix_update_trapping_destinations() 429 trap->action.mask_mode = mask_mode; in felix_update_trapping_destinations() 430 trap->action.port_mask = port_mask; in felix_update_trapping_destinations() [all …]
|
| /drivers/gpu/drm/i915/gvt/ |
| A 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/soc/fsl/qe/ |
| A D | qe.c | 543 u32 trap = be32_to_cpu(ucode->traps[j]); in qe_upload_firmware() local 545 if (trap) in qe_upload_firmware() 546 iowrite32be(trap, in qe_upload_firmware()
|