| /linux/arch/m68k/68000/ |
| H A D | romvec.S | 15 .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/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_trap.c | 30 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/arch/riscv/kvm/ |
| H A D | vcpu_exit.c | 16 struct kvm_cpu_trap *trap) in gstage_page_fault() argument 25 fault_addr = (trap->htval << 2) | (trap->stval & 0x3); in gstage_page_fault() 31 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT && !writable)) { in gstage_page_fault() 32 switch (trap->scause) { in gstage_page_fault() 36 trap->htinst); in gstage_page_fault() 40 trap->htinst); in gstage_page_fault() 47 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT) ? true : false, in gstage_page_fault() 66 struct kvm_cpu_trap *trap) in kvm_riscv_vcpu_unpriv_read() argument 68 register unsigned long taddr asm("a0") = (unsigned long)trap; in kvm_riscv_vcpu_unpriv_read() 100 if (trap->scause == EXC_LOAD_PAGE_FAULT) in kvm_riscv_vcpu_unpriv_read() [all …]
|
| H A D | trace.h | 32 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;
|
| H A D | vcpu.c | 785 struct kvm_cpu_trap *trap) in kvm_riscv_vcpu_enter_exit() argument 842 trap->htval = nacl_csr_read(nsh, CSR_HTVAL); in kvm_riscv_vcpu_enter_exit() 843 trap->htinst = nacl_csr_read(nsh, CSR_HTINST); in kvm_riscv_vcpu_enter_exit() 851 trap->htval = csr_read(CSR_HTVAL); in kvm_riscv_vcpu_enter_exit() 852 trap->htinst = csr_read(CSR_HTINST); in kvm_riscv_vcpu_enter_exit() 855 trap->sepc = gcntx->sepc; in kvm_riscv_vcpu_enter_exit() 856 trap->scause = csr_read(CSR_SCAUSE); in kvm_riscv_vcpu_enter_exit() 857 trap->stval = csr_read(CSR_STVAL); in kvm_riscv_vcpu_enter_exit() 867 struct kvm_cpu_trap trap; in kvm_arch_vcpu_ioctl_run() local 977 kvm_riscv_vcpu_enter_exit(vcpu, &trap); in kvm_arch_vcpu_ioctl_run() [all …]
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A 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 …]
|
| /linux/Documentation/networking/devlink/ |
| H A D | prestera.rst | 26 - ``trap`` 29 - ``trap`` 32 - ``trap`` 35 - ``trap`` 38 - ``trap`` 41 - ``trap`` 44 - ``trap`` 47 - ``trap`` 50 - ``trap`` 53 - ``trap`` [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | nv50.c | 142 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/arch/powerpc/include/asm/ |
| H A D | ptrace.h | 46 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()
|
| /linux/arch/m68k/ifpsp060/ |
| H A D | fskeleton.S | 83 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/drivers/infiniband/hw/hfi1/ |
| H A 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 …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | irq_64.c | 139 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()
|
| H A D | interrupt.c | 106 unsigned long trap, srr0, srr1; in check_return_regs_valid() local 114 trap = TRAP(regs); in check_return_regs_valid() 116 if (cpu_has_feature(CPU_FTR_HVMODE) && trap == INTERRUPT_EXTERNAL) in check_return_regs_valid() 117 trap = 0xea0; in check_return_regs_valid() 119 switch (trap) { in check_return_regs_valid()
|
| /linux/arch/m68k/coldfire/ |
| H A D | vectors.c | 40 asmlinkage void trap(void); 55 _ramvec[i] = trap; in trap_init() 57 _ramvec[i] = trap; in trap_init()
|
| /linux/arch/powerpc/include/asm/book3s/64/ |
| H A D | mmu-hash.h | 460 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/arch/powerpc/mm/book3s64/ |
| H A D | hash_64k.c | 39 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()
|
| H A D | hash_utils.c | 1574 unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap) in hash_page_do_lazy_icache() argument 1586 if (trap == INTERRUPT_INST_STORAGE) { in hash_page_do_lazy_icache() 1686 unsigned long vsid, unsigned long trap, in hash_failure_debug() argument 1694 trap, vsid, ssize, psize, lpsize, pte); in hash_failure_debug() 1721 unsigned long access, unsigned long trap, in hash_page_mm() argument 1733 ea, access, trap); in hash_page_mm() 1734 trace_hash_fault(ea, access, trap); in hash_page_mm() 1840 trap, flags, ssize, psize); in hash_page_mm() 1843 rc = __hash_page_huge(ea, access, vsid, ptep, trap, in hash_page_mm() 1906 rc = __hash_page_64K(ea, access, vsid, ptep, trap, in hash_page_mm() [all …]
|
| H A D | hash_4k.c | 22 pte_t *ptep, unsigned long trap, unsigned long flags, in __hash_page_4K() argument 64 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K() 117 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
|
| /linux/Documentation/arch/sparc/ |
| H A D | adi.rst | 103 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/fs/overlayfs/ |
| H A D | inode.c | 1103 struct inode *trap; in ovl_lookup_trap_inode() local 1106 trap = ilookup5(sb, (unsigned long) key, ovl_inode_test, key); in ovl_lookup_trap_inode() 1107 if (!trap) in ovl_lookup_trap_inode() 1110 res = IS_DEADDIR(trap) && !ovl_inode_upper(trap) && in ovl_lookup_trap_inode() 1111 !ovl_inode_lower(trap); in ovl_lookup_trap_inode() 1113 iput(trap); in ovl_lookup_trap_inode() 1125 struct inode *trap; in ovl_get_trap_inode() local 1130 trap = iget5_locked(sb, (unsigned long) key, ovl_inode_test, in ovl_get_trap_inode() 1132 if (!trap) in ovl_get_trap_inode() 1135 if (!(inode_state_read_once(trap) & I_NEW)) { in ovl_get_trap_inode() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | kgdb.c | 291 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/arch/m68k/kernel/ |
| H A D | vectors.c | 36 asmlinkage void trap(void); 73 vectors[VEC_ILLEGAL] = trap; in base_trap_init() 86 vectors[i] = trap; in trap_init()
|
| /linux/tools/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace-perf-asm.S | 14 trap 31 trap
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv_p9_entry.c | 541 int trap; in kvmhv_vcpu_entry_p9() local 589 trap = 0; in kvmhv_vcpu_entry_p9() 736 trap = local_paca->kvm_hstate.scratch0 & ~0x2; in kvmhv_vcpu_entry_p9() 738 if (likely(trap > BOOK3S_INTERRUPT_MACHINE_CHECK)) in kvmhv_vcpu_entry_p9() 740 else if (trap == BOOK3S_INTERRUPT_SYSTEM_RESET) in kvmhv_vcpu_entry_p9() 771 if (unlikely(trap == BOOK3S_INTERRUPT_MACHINE_CHECK)) { in kvmhv_vcpu_entry_p9() 776 } else if (unlikely(trap == BOOK3S_INTERRUPT_HMI)) { in kvmhv_vcpu_entry_p9() 779 } else if (trap == BOOK3S_INTERRUPT_H_EMUL_ASSIST) { in kvmhv_vcpu_entry_p9() 782 } else if (trap == BOOK3S_INTERRUPT_H_DATA_STORAGE) { in kvmhv_vcpu_entry_p9() 787 } else if (trap == BOOK3S_INTERRUPT_H_INST_STORAGE) { in kvmhv_vcpu_entry_p9() [all …]
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot.c | 1658 struct ocelot_vcap_filter *trap; in ocelot_trap_add() local 1664 trap = ocelot_vcap_block_find_filter_by_id(block_vcap_is2, cookie, in ocelot_trap_add() 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() 1674 trap->id.tc_offload = false; in ocelot_trap_add() 1675 trap->block_id = VCAP_IS2; in ocelot_trap_add() [all …]
|