Home
last modified time | relevance | path

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

12345678910

/linux-6.15/arch/m68k/68000/
H A Dromvec.S22 .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
31 .long trap, trap, trap, trap
32 .long trap, trap, trap, trap
[all …]
/linux-6.15/arch/riscv/kvm/
H A 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()
29 switch (trap->scause) { in gstage_page_fault()
33 trap->htinst); in gstage_page_fault()
37 trap->htinst); in gstage_page_fault()
62 struct kvm_cpu_trap *trap) in kvm_riscv_vcpu_unpriv_read() argument
136 struct kvm_cpu_trap *trap) in kvm_riscv_vcpu_trap_redirect() argument
159 csr_write(CSR_VSEPC, trap->sepc); in kvm_riscv_vcpu_trap_redirect()
184 struct kvm_cpu_trap *trap) in kvm_riscv_vcpu_exit() argument
195 switch (trap->scause) { in kvm_riscv_vcpu_exit()
[all …]
H A Dtrace.h32 TP_PROTO(struct kvm_cpu_trap *trap),
33 TP_ARGS(trap),
44 __entry->sepc = trap->sepc;
45 __entry->scause = trap->scause;
46 __entry->stval = trap->stval;
47 __entry->htval = trap->htval;
48 __entry->htinst = trap->htinst;
/linux-6.15/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_trap.c1193 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 …]
/linux-6.15/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c117 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 …]
/linux-6.15/Documentation/networking/devlink/
H A Dprestera.rst26 - ``trap``
29 - ``trap``
32 - ``trap``
35 - ``trap``
38 - ``trap``
41 - ``trap``
44 - ``trap``
47 - ``trap``
50 - ``trap``
53 - ``trap``
[all …]
H A Ddevlink-trap.rst31 The ``devlink-trap`` mechanism allows capable device drivers to register their
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.
407 tc's trap action)
447 error checking is performed here as for the ip_1_parsing trap
571 - Contains a packet trap for unicast loopback packets (i.e.,
620 to associate these policers with supported packet trap groups (see
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dnv50.c142 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 …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtrap.c177 kvfree(trap); in mlx5e_close_trap()
182 napi_enable(&trap->napi); in mlx5e_activate_trap()
192 napi_disable(&trap->napi); in mlx5e_deactivate_trap()
197 struct mlx5e_trap *trap; in mlx5e_add_trap_queue() local
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 …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Ddevlink.c231 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id()
247 dl_trap->trap.id = trap->id; in mlx5_devlink_trap_init()
251 if (mlx5_find_trap_by_id(dev, trap->id)) { in mlx5_devlink_trap_init()
277 const struct devlink_trap *trap, in mlx5_devlink_trap_action_set() argument
301 if (action == dl_trap->trap.action) in mlx5_devlink_trap_action_set()
304 action_orig = dl_trap->trap.action; in mlx5_devlink_trap_action_set()
305 dl_trap->trap.action = action; in mlx5_devlink_trap_action_set()
306 trap_event_ctx.trap = &dl_trap->trap; in mlx5_devlink_trap_action_set()
311 dl_trap->trap.action = action_orig; in mlx5_devlink_trap_action_set()
362 dl_trap->trap.action); in mlx5_devlink_trap_report()
[all …]
/linux-6.15/net/devlink/
H A Dtrap.c64 const struct devlink_trap *trap; member
132 const struct devlink_trap *trap) in devlink_trap_metadata_put() argument
219 trap_item->trap, in devlink_trap_stats_put()
278 if (trap_item->trap->generic && in devlink_nl_trap_fill()
1089 if (strcmp(trap->name, devlink_trap_generic[trap->id].name)) in devlink_trap_generic_verify()
1092 if (trap->type != devlink_trap_generic[trap->id].type) in devlink_trap_generic_verify()
1115 if (!trap || !trap->name) in devlink_trap_verify()
1118 if (trap->generic) in devlink_trap_verify()
1284 trap_item->trap = trap; in devlink_trap_register()
1327 const struct devlink_trap *trap) in devlink_trap_disable() argument
[all …]
/linux-6.15/drivers/net/ethernet/mscc/
H A Docelot_ptp.c329 trap->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_populate_ipv4_ptp_event_trap_key()
331 trap->key.ipv4.proto.mask[0] = 0xff; in ocelot_populate_ipv4_ptp_event_trap_key()
333 trap->key.ipv4.dport.mask = 0xffff; in ocelot_populate_ipv4_ptp_event_trap_key()
339 trap->key_type = OCELOT_VCAP_KEY_IPV6; in ocelot_populate_ipv6_ptp_event_trap_key()
341 trap->key.ipv6.proto.mask[0] = 0xff; in ocelot_populate_ipv6_ptp_event_trap_key()
343 trap->key.ipv6.dport.mask = 0xffff; in ocelot_populate_ipv6_ptp_event_trap_key()
349 trap->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_populate_ipv4_ptp_general_trap_key()
351 trap->key.ipv4.proto.mask[0] = 0xff; in ocelot_populate_ipv4_ptp_general_trap_key()
353 trap->key.ipv4.dport.mask = 0xffff; in ocelot_populate_ipv4_ptp_general_trap_key()
361 trap->key.ipv6.proto.mask[0] = 0xff; in ocelot_populate_ipv6_ptp_general_trap_key()
[all …]
/linux-6.15/arch/powerpc/include/asm/
H A 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()
H A Dtrace.h273 TP_PROTO(unsigned long addr, unsigned long access, unsigned long trap),
274 TP_ARGS(addr, access, trap),
278 __field(unsigned long, trap)
284 __entry->trap = trap;
288 __entry->addr, __entry->access, __entry->trap)
/linux-6.15/arch/m68k/ifpsp060/
H A 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.15/drivers/infiniband/hw/hfi1/
H A Dmad.c202 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 …]
/linux-6.15/arch/powerpc/kernel/
H A 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.15/arch/m68k/coldfire/
H A Dvectors.c40 asmlinkage void trap(void);
55 _ramvec[i] = trap; in trap_init()
57 _ramvec[i] = trap; in trap_init()
/linux-6.15/Documentation/netlink/specs/
H A Ddevlink.yaml187 name: trap-action
192 name: trap
197 name: trap-type
650 name: trap-name
653 name: trap-action
657 name: trap-type
659 enum: trap-type
1983 name: trap-get
1995 - trap-name
2005 name: trap-set
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgf100.c1240 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 …]
/linux-6.15/arch/powerpc/include/asm/book3s/64/
H A 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.15/arch/powerpc/mm/book3s64/
H A 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()
/linux-6.15/Documentation/arch/sparc/
H A 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
145 trap through to the kernel as Data Access Exception trap with
[all …]
/linux-6.15/fs/overlayfs/
H A Dinode.c1123 struct inode *trap; in ovl_lookup_trap_inode() local
1127 if (!trap) in ovl_lookup_trap_inode()
1130 res = IS_DEADDIR(trap) && !ovl_inode_upper(trap) && in ovl_lookup_trap_inode()
1133 iput(trap); in ovl_lookup_trap_inode()
1145 struct inode *trap; in ovl_get_trap_inode() local
1152 if (!trap) in ovl_get_trap_inode()
1157 iput(trap); in ovl_get_trap_inode()
1161 trap->i_mode = S_IFDIR; in ovl_get_trap_inode()
1162 trap->i_flags = S_DEAD; in ovl_get_trap_inode()
1163 unlock_new_inode(trap); in ovl_get_trap_inode()
[all …]
/linux-6.15/arch/mips/kernel/
H A 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()

12345678910