Home
last modified time | relevance | path

Searched refs:trap (Results 1 – 25 of 225) sorted by relevance

123456789

/linux-6.6.21/arch/m68k/68000/
Dromvec.S15 .global trap
21 .long CONFIG_RAMBASE+CONFIG_RAMSIZE-4, _start, buserr, trap
22 .long trap, trap, trap, trap
23 .long trap, trap, trap, trap
24 .long trap, trap, trap, trap
25 .long trap, trap, trap, trap
26 .long trap, trap, trap, trap
27 .long trap, trap, trap, trap
28 .long trap, trap, trap, trap
30 .long system_call, trap, trap, trap
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_trap.c30 struct devlink_trap trap; member
643 .trap = MLXSW_SP_TRAP_DROP(SMAC_MC, L2_DROPS),
649 .trap = MLXSW_SP_TRAP_DROP(VLAN_TAG_MISMATCH, L2_DROPS),
656 .trap = MLXSW_SP_TRAP_DROP(INGRESS_VLAN_FILTER, L2_DROPS),
662 .trap = MLXSW_SP_TRAP_DROP(INGRESS_STP_FILTER, L2_DROPS),
668 .trap = MLXSW_SP_TRAP_DROP(EMPTY_TX_LIST, L2_DROPS),
675 .trap = MLXSW_SP_TRAP_DROP(PORT_LOOPBACK_FILTER, L2_DROPS),
681 .trap = MLXSW_SP_TRAP_DROP(BLACKHOLE_ROUTE, L3_DROPS),
687 .trap = MLXSW_SP_TRAP_DROP(NON_IP_PACKET, L3_DROPS),
694 .trap = MLXSW_SP_TRAP_DROP(UC_DIP_MC_DMAC, L3_DROPS),
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c117 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 …]
/linux-6.6.21/arch/riscv/kvm/
Dvcpu_exit.c14 struct kvm_cpu_trap *trap) in gstage_page_fault() argument
22 fault_addr = (trap->htval << 2) | (trap->stval & 0x3); in gstage_page_fault()
28 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT && !writable)) { in gstage_page_fault()
29 switch (trap->scause) { in gstage_page_fault()
33 trap->htinst); in gstage_page_fault()
37 trap->htinst); in gstage_page_fault()
44 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT) ? true : false); in gstage_page_fault()
62 struct kvm_cpu_trap *trap) in kvm_riscv_vcpu_unpriv_read() argument
64 register unsigned long taddr asm("a0") = (unsigned long)trap; in kvm_riscv_vcpu_unpriv_read()
96 if (trap->scause == EXC_LOAD_PAGE_FAULT) in kvm_riscv_vcpu_unpriv_read()
[all …]
/linux-6.6.21/Documentation/networking/devlink/
Dprestera.rst26 - ``trap``
29 - ``trap``
32 - ``trap``
35 - ``trap``
38 - ``trap``
41 - ``trap``
44 - ``trap``
47 - ``trap``
50 - ``trap``
53 - ``trap``
[all …]
Ddevlink-trap.rst31 The ``devlink-trap`` mechanism allows capable device drivers to register their
35 Upon receiving trapped packets, ``devlink`` will perform a per-trap packets and
37 event along with all the provided metadata (e.g., trap reason, timestamp, input
42 The following diagram provides a general overview of ``devlink-trap``::
89 The ``devlink-trap`` mechanism supports the following packet trap types:
93 The trap action (see :ref:`Trap-Actions`) can be changed.
112 The ``devlink-trap`` mechanism supports the following packet trap actions:
114 * ``trap``: The sole copy of the packet is sent to the CPU.
123 Generic packet traps are used to describe traps that trap well-defined packets
361 IP address with a link-local scope (i.e., fe80::/10). The trap allows
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv50.c142 u32 trap[6], idx, inst; in nv50_fb_intr() local
154 trap[i] = nvkm_rd32(device, 0x100c94); in nv50_fb_intr()
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()
169 st3 = (trap[0] & 0xff000000) >> 24; in nv50_fb_intr()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtrap.c169 void mlx5e_close_trap(struct mlx5e_trap *trap) in mlx5e_close_trap() argument
171 mlx5e_tir_destroy(&trap->tir); in mlx5e_close_trap()
172 mlx5e_close_trap_rq(&trap->rq); in mlx5e_close_trap()
173 netif_napi_del(&trap->napi); in mlx5e_close_trap()
174 kvfree(trap); in mlx5e_close_trap()
177 static void mlx5e_activate_trap(struct mlx5e_trap *trap) in mlx5e_activate_trap() argument
179 napi_enable(&trap->napi); in mlx5e_activate_trap()
180 mlx5e_activate_rq(&trap->rq); in mlx5e_activate_trap()
181 mlx5e_trigger_napi_sched(&trap->napi); in mlx5e_activate_trap()
186 struct mlx5e_trap *trap = priv->en_trap; in mlx5e_deactivate_trap() local
[all …]
/linux-6.6.21/drivers/net/ethernet/mscc/
Docelot_ptp.c317 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 …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c233 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id()
239 static int mlx5_devlink_trap_init(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_init() argument
249 dl_trap->trap.id = trap->id; in mlx5_devlink_trap_init()
250 dl_trap->trap.action = DEVLINK_TRAP_ACTION_DROP; in mlx5_devlink_trap_init()
253 if (mlx5_find_trap_by_id(dev, trap->id)) { in mlx5_devlink_trap_init()
255 mlx5_core_err(dev, "Devlink trap: Trap 0x%x already found", trap->id); in mlx5_devlink_trap_init()
263 static void mlx5_devlink_trap_fini(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_fini() argument
269 dl_trap = mlx5_find_trap_by_id(dev, trap->id); in mlx5_devlink_trap_fini()
271 mlx5_core_err(dev, "Devlink trap: Missing trap id 0x%x", trap->id); in mlx5_devlink_trap_fini()
279 const struct devlink_trap *trap, in mlx5_devlink_trap_action_set() argument
[all …]
/linux-6.6.21/net/devlink/
Dtrap.c64 const struct devlink_trap *trap; member
91 if (!strcmp(trap_item->trap->name, name)) in devlink_trap_item_lookup()
132 const struct devlink_trap *trap) in devlink_trap_metadata_put() argument
140 if ((trap->metadata_cap & DEVLINK_TRAP_METADATA_TYPE_F_IN_PORT) && in devlink_trap_metadata_put()
143 if ((trap->metadata_cap & DEVLINK_TRAP_METADATA_TYPE_F_FA_COOKIE) && in devlink_trap_metadata_put()
221 trap_item->trap, in devlink_trap_stats_put()
277 if (nla_put_string(msg, DEVLINK_ATTR_TRAP_NAME, trap_item->trap->name)) in devlink_nl_trap_fill()
280 if (nla_put_u8(msg, DEVLINK_ATTR_TRAP_TYPE, trap_item->trap->type)) in devlink_nl_trap_fill()
283 if (trap_item->trap->generic && in devlink_nl_trap_fill()
290 err = devlink_trap_metadata_put(msg, trap_item->trap); in devlink_nl_trap_fill()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/
Dptrace.h46 unsigned long trap; member
250 #define IS_CRITICAL_EXC(regs) (((regs)->trap & 2) != 0)
251 #define IS_MCHECK_EXC(regs) (((regs)->trap & 4) != 0)
252 #define IS_DEBUG_EXC(regs) (((regs)->trap & 8) != 0)
254 #define TRAP(regs) ((regs)->trap & ~TRAP_FLAGS_MASK)
258 regs->trap = (regs->trap & TRAP_FLAGS_MASK) | (val & ~TRAP_FLAGS_MASK); in set_trap()
278 return regs->trap & 0x1; in trap_norestart()
283 regs->trap |= 0x1; in set_trap_norestart()
Dtrace.h272 TP_PROTO(unsigned long addr, unsigned long access, unsigned long trap),
273 TP_ARGS(addr, access, trap),
277 __field(unsigned long, trap)
283 __entry->trap = trap;
287 __entry->addr, __entry->access, __entry->trap)
/linux-6.6.21/arch/m68k/ifpsp060/
Dfskeleton.S83 bral trap | jump to trap handler
102 bral trap | jump to trap handler
121 bral trap | jump to trap handler
140 bral trap | jump to trap handler
159 bral trap | jump to trap handler
178 bral trap | jump to trap handler
200 bral trap | jump to trap handler
214 bral trap | jump to trap handler
246 | discovers that the trap condition is true and it should branch to the operating
247 | system handler for the trap exception vector number 7.
[all …]
/linux-6.6.21/Documentation/netlink/specs/
Ddevlink.yaml116 name: trap-name
123 name: trap-group-name
134 name: trap-policer-id
525 name: trap-get
526 doc: Get trap instances.
536 attributes: &trap-id-attrs
539 - trap-name
540 reply: &trap-get-reply
542 attributes: *trap-id-attrs
546 reply: *trap-get-reply
[all …]
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dmad.c83 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 …]
/linux-6.6.21/arch/powerpc/kernel/
Dirq_64.c139 regs.trap = INTERRUPT_HMI; in __replay_soft_interrupts()
145 regs.trap = INTERRUPT_DECREMENTER; in __replay_soft_interrupts()
151 regs.trap = INTERRUPT_EXTERNAL; in __replay_soft_interrupts()
158 regs.trap = INTERRUPT_DOORBELL; in __replay_soft_interrupts()
166 regs.trap = INTERRUPT_PERFMON; in __replay_soft_interrupts()
445 regs.trap = 0x100; in replay_system_reset()
/linux-6.6.21/arch/m68k/coldfire/
Dvectors.c39 asmlinkage void trap(void);
54 _ramvec[i] = trap; in trap_init()
56 _ramvec[i] = trap; in trap_init()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dgf100.c1239 u32 trap[4]; in gf100_gr_trap_gpc_rop() local
1241 trap[0] = nvkm_rd32(device, GPC_UNIT(gpc, 0x0420)) & 0x3fffffff; in gf100_gr_trap_gpc_rop()
1242 trap[1] = nvkm_rd32(device, GPC_UNIT(gpc, 0x0434)); in gf100_gr_trap_gpc_rop()
1243 trap[2] = nvkm_rd32(device, GPC_UNIT(gpc, 0x0438)); in gf100_gr_trap_gpc_rop()
1244 trap[3] = nvkm_rd32(device, GPC_UNIT(gpc, 0x043c)); in gf100_gr_trap_gpc_rop()
1246 nvkm_snprintbf(error, sizeof(error), gf100_gpc_rop_error, trap[0]); in gf100_gr_trap_gpc_rop()
1250 gpc, trap[0], error, trap[1] & 0xffff, trap[1] >> 16, in gf100_gr_trap_gpc_rop()
1251 (trap[2] >> 8) & 0x3f, trap[3] & 0xff); in gf100_gr_trap_gpc_rop()
1323 u32 trap = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0224)); in gf100_gr_trap_tpc() local
1324 nvkm_error(subdev, "GPC%d/TPC%d/TEX: %08x\n", gpc, tpc, trap); in gf100_gr_trap_tpc()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h460 unsigned long vsid, pte_t *ptep, unsigned long trap,
463 unsigned long vsid, pte_t *ptep, unsigned long trap,
466 unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap);
468 unsigned long access, unsigned long trap,
470 extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap,
473 int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr, unsigned long msr);
475 pte_t *ptep, unsigned long trap, unsigned long flags,
479 unsigned long vsid, pmd_t *pmdp, unsigned long trap,
484 unsigned long trap, unsigned long flags, in __hash_page_thp() argument
492 unsigned long vsid, unsigned long trap,
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dhash_64k.c39 pte_t *ptep, unsigned long trap, unsigned long flags, in __hash_page_4K() argument
86 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K()
213 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
229 unsigned long vsid, pte_t *ptep, unsigned long trap, in __hash_page_64K() argument
273 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_64K()
328 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_64K()
Dhash_utils.c1308 unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap) in hash_page_do_lazy_icache() argument
1320 if (trap == INTERRUPT_INST_STORAGE) { in hash_page_do_lazy_icache()
1418 unsigned long vsid, unsigned long trap, in hash_failure_debug() argument
1426 trap, vsid, ssize, psize, lpsize, pte); in hash_failure_debug()
1453 unsigned long access, unsigned long trap, in hash_page_mm() argument
1465 ea, access, trap); in hash_page_mm()
1466 trace_hash_fault(ea, access, trap); in hash_page_mm()
1565 trap, flags, ssize, psize); in hash_page_mm()
1568 rc = __hash_page_huge(ea, access, vsid, ptep, trap, in hash_page_mm()
1629 rc = __hash_page_64K(ea, access, vsid, ptep, trap, in hash_page_mm()
[all …]
/linux-6.6.21/Documentation/arch/sparc/
Dadi.rst103 the corresponding cacheline, a memory corruption trap occurs. By
104 default, it is a disrupting trap and is sent to the hypervisor
106 resumable error (TT=0x7e) trap to the kernel. The kernel sends
107 a SIGSEGV to the task that resulted in this trap with the following
123 the corresponding cacheline, a memory corruption trap occurs. If
126 a SIGSEGV to the task that resulted in this trap with the following
132 siginfo.si_addr = addr; /* address that caused trap */
136 ADI tag mismatch on a load always results in precise trap.
143 on a memory address, processor sends an MCD disabled trap. This
144 trap is handled by hypervisor first and the hypervisor vectors this
[all …]
/linux-6.6.21/arch/mips/kernel/
Dkgdb.c291 int trap = (regs->cp0_cause & 0x7c) >> 2; in kgdb_mips_notify() local
309 if (kgdb_handle_exception(trap, compute_signal(trap), cmd, regs)) in kgdb_mips_notify()
313 if ((trap == 9) && (regs->cp0_epc == (unsigned long)breakinst)) in kgdb_mips_notify()
325 struct pt_regs *regs, long err, int trap, int sig) in kgdb_ll_trap() argument
331 .trapnr = trap, in kgdb_ll_trap()
/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/
Dptrace-perf-asm.S14 trap
31 trap

123456789