/
usr
/
src
/
linux-headers-5.15.0-190
/
arch
/
mips
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-190/arch/mips/include/asm
mkdir
upload
Name
Size
Mode
Actions
dec/
-
0755
rm
fw/
-
0755
rm
ip32/
-
0755
rm
mach-ar7/
-
0755
rm
mach-ath25/
-
0755
rm
mach-ath79/
-
0755
rm
mach-au1x00/
-
0755
rm
mach-bcm47xx/
-
0755
rm
mach-bcm63xx/
-
0755
rm
mach-bmips/
-
0755
rm
mach-cavium-octeon/
-
0755
rm
mach-cobalt/
-
0755
rm
mach-db1x00/
-
0755
rm
mach-dec/
-
0755
rm
mach-generic/
-
0755
rm
mach-ingenic/
-
0755
rm
mach-ip22/
-
0755
rm
mach-ip27/
-
0755
rm
mach-ip28/
-
0755
rm
mach-ip30/
-
0755
rm
mach-ip32/
-
0755
rm
mach-jazz/
-
0755
rm
mach-lantiq/
-
0755
rm
mach-loongson2ef/
-
0755
rm
mach-loongson32/
-
0755
rm
mach-loongson64/
-
0755
rm
mach-malta/
-
0755
rm
mach-n64/
-
0755
rm
mach-netlogic/
-
0755
rm
mach-pic32/
-
0755
rm
mach-ralink/
-
0755
rm
mach-rc32434/
-
0755
rm
mach-rm/
-
0755
rm
mach-sibyte/
-
0755
rm
mach-tx39xx/
-
0755
rm
mach-tx49xx/
-
0755
rm
mach-vr41xx/
-
0755
rm
mips-boards/
-
0755
rm
netlogic/
-
0755
rm
octeon/
-
0755
rm
pci/
-
0755
rm
sgi/
-
0755
rm
sibyte/
-
0755
rm
sn/
-
0755
rm
txx9/
-
0755
rm
vdso/
-
0755
rm
vr41xx/
-
0755
rm
xtalk/
-
0755
rm
abi.h
853
0644
edit
dl
rm
addrspace.h
4039
0644
edit
dl
rm
amon.h
409
0644
edit
dl
rm
arch_hweight.h
792
0644
edit
dl
rm
asm-eva.h
7343
0644
edit
dl
rm
asm-offsets.h
35
0644
edit
dl
rm
asm-prototypes.h
228
0644
edit
dl
rm
asm.h
6688
0644
edit
dl
rm
asmmacro-32.h
2529
0644
edit
dl
rm
asmmacro-64.h
1254
0644
edit
dl
rm
asmmacro.h
14639
0644
edit
dl
rm
atomic.h
8299
0644
edit
dl
rm
barrier.h
3507
0644
edit
dl
rm
bcache.h
2086
0644
edit
dl
rm
bitops.h
10914
0644
edit
dl
rm
bitrev.h
608
0644
edit
dl
rm
bmips-spaces.h
268
0644
edit
dl
rm
bmips.h
3097
0644
edit
dl
rm
bootinfo.h
4928
0644
edit
dl
rm
branch.h
2503
0644
edit
dl
rm
break.h
787
0644
edit
dl
rm
bug.h
759
0644
edit
dl
rm
bugs.h
640
0644
edit
dl
rm
cache.h
527
0644
edit
dl
rm
cacheflush.h
4863
0644
edit
dl
rm
cacheops.h
3801
0644
edit
dl
rm
cdmm.h
3761
0644
edit
dl
rm
cevt-r4k.h
823
0644
edit
dl
rm
checksum.h
5743
0644
edit
dl
rm
clocksource.h
273
0644
edit
dl
rm
cmp.h
492
0644
edit
dl
rm
cmpxchg.h
8880
0644
edit
dl
rm
compat-signal.h
640
0644
edit
dl
rm
compat.h
3866
0644
edit
dl
rm
compiler.h
2669
0644
edit
dl
rm
cop2.h
1812
0644
edit
dl
rm
cpu-features.h
22723
0644
edit
dl
rm
cpu-info.h
6276
0644
edit
dl
rm
cpu-type.h
4256
0644
edit
dl
rm
cpu.h
16955
0644
edit
dl
rm
cpufeature.h
510
0644
edit
dl
rm
debug.h
447
0644
edit
dl
rm
delay.h
841
0644
edit
dl
rm
div64.h
2223
0644
edit
dl
rm
dma-direct.h
255
0644
edit
dl
rm
dma-mapping.h
365
0644
edit
dl
rm
dma.h
10161
0644
edit
dl
rm
dmi.h
547
0644
edit
dl
rm
ds1287.h
333
0644
edit
dl
rm
dsemul.h
3595
0644
edit
dl
rm
dsp.h
1747
0644
edit
dl
rm
edac.h
839
0644
edit
dl
rm
elf.h
15559
0644
edit
dl
rm
elfcore-compat.h
841
0644
edit
dl
rm
errno.h
429
0644
edit
dl
rm
eva.h
796
0644
edit
dl
rm
exec.h
579
0644
edit
dl
rm
extable.h
241
0644
edit
dl
rm
fb.h
372
0644
edit
dl
rm
fixmap.h
2219
0644
edit
dl
rm
floppy.h
1609
0644
edit
dl
rm
fpregdef.h
2726
0644
edit
dl
rm
fpu.h
7332
0644
edit
dl
rm
fpu_emulator.h
4844
0644
edit
dl
rm
ftrace.h
2659
0644
edit
dl
rm
futex.h
5241
0644
edit
dl
rm
ginvt.h
1056
0644
edit
dl
rm
gio_device.h
1411
0644
edit
dl
rm
gt64120.h
19218
0644
edit
dl
rm
hardirq.h
544
0644
edit
dl
rm
hazards.h
8673
0644
edit
dl
rm
highmem.h
1741
0644
edit
dl
rm
hpet.h
1974
0644
edit
dl
rm
hugetlb.h
2165
0644
edit
dl
rm
hw_irq.h
475
0644
edit
dl
rm
i8259.h
2440
0644
edit
dl
rm
ide.h
330
0644
edit
dl
rm
idle.h
727
0644
edit
dl
rm
inst.h
2398
0644
edit
dl
rm
io.h
17334
0644
edit
dl
rm
irq.h
2408
0644
edit
dl
rm
irqflags.h
4206
0644
edit
dl
rm
irq_cpu.h
427
0644
edit
dl
rm
irq_gt641xx.h
2074
0644
edit
dl
rm
irq_regs.h
540
0644
edit
dl
rm
isa-rev.h
556
0644
edit
dl
rm
isadep.h
603
0644
edit
dl
rm
jazz.h
8192
0644
edit
dl
rm
jazzdma.h
2826
0644
edit
dl
rm
jump_label.h
1571
0644
edit
dl
rm
Kbuild
414
0644
edit
dl
rm
kdebug.h
303
0644
edit
dl
rm
kexec.h
1490
0644
edit
dl
rm
kgdb.h
1222
0644
edit
dl
rm
kprobes.h
1727
0644
edit
dl
rm
kvm_host.h
30488
0644
edit
dl
rm
kvm_types.h
184
0644
edit
dl
rm
linkage.h
306
0644
edit
dl
rm
llsc.h
923
0644
edit
dl
rm
local.h
5473
0644
edit
dl
rm
maar.h
4270
0644
edit
dl
rm
machine.h
2795
0644
edit
dl
rm
mc146818-time.h
3779
0644
edit
dl
rm
mc146818rtc.h
450
0644
edit
dl
rm
mips-cm.h
16857
0644
edit
dl
rm
mips-cpc.h
5766
0644
edit
dl
rm
mips-cps.h
6494
0644
edit
dl
rm
mips-gic.h
12387
0644
edit
dl
rm
mips-r2-to-r6-emul.h
2095
0644
edit
dl
rm
mipsmtregs.h
11171
0644
edit
dl
rm
mipsprom.h
2146
0644
edit
dl
rm
mipsregs.h
96926
0644
edit
dl
rm
mips_mt.h
707
0644
edit
dl
rm
mmiowb.h
197
0644
edit
dl
rm
mmu.h
555
0644
edit
dl
rm
mmu_context.h
6205
0644
edit
dl
rm
mmzone.h
427
0644
edit
dl
rm
module.h
2388
0644
edit
dl
rm
msa.h
7525
0644
edit
dl
rm
msc01_ic.h
6709
0644
edit
dl
rm
paccess.h
3140
0644
edit
dl
rm
page.h
7610
0644
edit
dl
rm
pci.h
3902
0644
edit
dl
rm
perf_event.h
336
0644
edit
dl
rm
pgalloc.h
2571
0644
edit
dl
rm
pgtable-32.h
8149
0644
edit
dl
rm
pgtable-64.h
9709
0644
edit
dl
rm
pgtable-bits.h
7852
0644
edit
dl
rm
pgtable.h
18529
0644
edit
dl
rm
pm-cps.h
1515
0644
edit
dl
rm
pm.h
3871
0644
edit
dl
rm
prefetch.h
2148
0644
edit
dl
rm
processor.h
11321
0644
edit
dl
rm
prom.h
696
0644
edit
dl
rm
ptrace.h
5582
0644
edit
dl
rm
r4k-timer.h
604
0644
edit
dl
rm
r4kcache.h
11373
0644
edit
dl
rm
reboot.h
440
0644
edit
dl
rm
reg.h
26
0644
edit
dl
rm
regdef.h
2693
0644
edit
dl
rm
rtlx.h
2148
0644
edit
dl
rm
seccomp.h
810
0644
edit
dl
rm
setup.h
941
0644
edit
dl
rm
sgialib.h
1743
0644
edit
dl
rm
sgiarcs.h
14022
0644
edit
dl
rm
shmparam.h
352
0644
edit
dl
rm
sigcontext.h
1060
0644
edit
dl
rm
signal.h
1042
0644
edit
dl
rm
sim.h
2070
0644
edit
dl
rm
smp-cps.h
998
0644
edit
dl
rm
smp-ops.h
2476
0644
edit
dl
rm
smp.h
3696
0644
edit
dl
rm
sni.h
7495
0644
edit
dl
rm
socket.h
1377
0644
edit
dl
rm
sparsemem.h
486
0644
edit
dl
rm
spinlock.h
822
0644
edit
dl
rm
spinlock_types.h
188
0644
edit
dl
rm
spram.h
261
0644
edit
dl
rm
stackframe.h
11157
0644
edit
dl
rm
stackprotector.h
1177
0644
edit
dl
rm
stacktrace.h
2199
0644
edit
dl
rm
string.h
692
0644
edit
dl
rm
switch_to.h
4455
0644
edit
dl
rm
sync.h
7823
0644
edit
dl
rm
syscall.h
3703
0644
edit
dl
rm
termios.h
2933
0644
edit
dl
rm
thread_info.h
6640
0644
edit
dl
rm
time.h
1617
0644
edit
dl
rm
timex.h
2937
0644
edit
dl
rm
tlb.h
613
0644
edit
dl
rm
tlbdebug.h
403
0644
edit
dl
rm
tlbex.h
977
0644
edit
dl
rm
tlbflush.h
1683
0644
edit
dl
rm
tlbmisc.h
320
0644
edit
dl
rm
topology.h
619
0644
edit
dl
rm
traps.h
1229
0644
edit
dl
rm
txx9irq.h
743
0644
edit
dl
rm
txx9pio.h
592
0644
edit
dl
rm
txx9tmr.h
1625
0644
edit
dl
rm
types.h
459
0644
edit
dl
rm
uaccess.h
16450
0644
edit
dl
rm
uasm.h
9578
0644
edit
dl
rm
unaligned-emul.h
26856
0644
edit
dl
rm
unistd.h
1860
0644
edit
dl
rm
unroll.h
2860
0644
edit
dl
rm
uprobes.h
1141
0644
edit
dl
rm
vdso.h
1469
0644
edit
dl
rm
vermagic.h
2372
0644
edit
dl
rm
vga.h
1291
0644
edit
dl
rm
vmalloc.h
90
0644
edit
dl
rm
vpe.h
2843
0644
edit
dl
rm
war.h
2282
0644
edit
dl
rm
watch.h
827
0644
edit
dl
rm
wbflush.h
694
0644
edit
dl
rm
yamon-dt.h
1717
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/arch/mips/include/asm/msa.h
(7525B)
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2013 Imagination Technologies * Author: Paul Burton <paul.burton@mips.com> */ #ifndef _ASM_MSA_H #define _ASM_MSA_H #include <asm/mipsregs.h> #ifndef __ASSEMBLY__ #include <asm/inst.h> extern void _save_msa(struct task_struct *); extern void _restore_msa(struct task_struct *); extern void _init_msa_upper(void); extern void read_msa_wr_b(unsigned idx, union fpureg *to); extern void read_msa_wr_h(unsigned idx, union fpureg *to); extern void read_msa_wr_w(unsigned idx, union fpureg *to); extern void read_msa_wr_d(unsigned idx, union fpureg *to); /** * read_msa_wr() - Read a single MSA vector register * @idx: The index of the vector register to read * @to: The FPU register union to store the registers value in * @fmt: The format of the data in the vector register * * Read the value of MSA vector register idx into the FPU register * union to, using the format fmt. */ static inline void read_msa_wr(unsigned idx, union fpureg *to, enum msa_2b_fmt fmt) { switch (fmt) { case msa_fmt_b: read_msa_wr_b(idx, to); break; case msa_fmt_h: read_msa_wr_h(idx, to); break; case msa_fmt_w: read_msa_wr_w(idx, to); break; case msa_fmt_d: read_msa_wr_d(idx, to); break; default: BUG(); } } extern void write_msa_wr_b(unsigned idx, union fpureg *from); extern void write_msa_wr_h(unsigned idx, union fpureg *from); extern void write_msa_wr_w(unsigned idx, union fpureg *from); extern void write_msa_wr_d(unsigned idx, union fpureg *from); /** * write_msa_wr() - Write a single MSA vector register * @idx: The index of the vector register to write * @from: The FPU register union to take the registers value from * @fmt: The format of the data in the vector register * * Write the value from the FPU register union from into MSA vector * register idx, using the format fmt. */ static inline void write_msa_wr(unsigned idx, union fpureg *from, enum msa_2b_fmt fmt) { switch (fmt) { case msa_fmt_b: write_msa_wr_b(idx, from); break; case msa_fmt_h: write_msa_wr_h(idx, from); break; case msa_fmt_w: write_msa_wr_w(idx, from); break; case msa_fmt_d: write_msa_wr_d(idx, from); break; default: BUG(); } } static inline void enable_msa(void) { if (cpu_has_msa) { set_c0_config5(MIPS_CONF5_MSAEN); enable_fpu_hazard(); } } static inline void disable_msa(void) { if (cpu_has_msa) { clear_c0_config5(MIPS_CONF5_MSAEN); disable_fpu_hazard(); } } static inline int is_msa_enabled(void) { if (!cpu_has_msa) return 0; return read_c0_config5() & MIPS_CONF5_MSAEN; } static inline int thread_msa_context_live(void) { /* * Check cpu_has_msa only if it's a constant. This will allow the * compiler to optimise out code for CPUs without MSA without adding * an extra redundant check for CPUs with MSA. */ if (__builtin_constant_p(cpu_has_msa) && !cpu_has_msa) return 0; return test_thread_flag(TIF_MSA_CTX_LIVE); } static inline void save_msa(struct task_struct *t) { if (cpu_has_msa) _save_msa(t); } static inline void restore_msa(struct task_struct *t) { if (cpu_has_msa) _restore_msa(t); } static inline void init_msa_upper(void) { /* * Check cpu_has_msa only if it's a constant. This will allow the * compiler to optimise out code for CPUs without MSA without adding * an extra redundant check for CPUs with MSA. */ if (__builtin_constant_p(cpu_has_msa) && !cpu_has_msa) return; _init_msa_upper(); } #ifndef TOOLCHAIN_SUPPORTS_MSA /* * Define assembler macros using .word for the c[ft]cmsa instructions in order * to allow compilation with toolchains that do not support MSA. Once all * toolchains in use support MSA these can be removed. */ _ASM_MACRO_2R(cfcmsa, rd, cs, _ASM_INSN_IF_MIPS(0x787e0019 | __cs << 11 | __rd << 6) _ASM_INSN32_IF_MM(0x587e0016 | __cs << 11 | __rd << 6)); _ASM_MACRO_2R(ctcmsa, cd, rs, _ASM_INSN_IF_MIPS(0x783e0019 | __rs << 11 | __cd << 6) _ASM_INSN32_IF_MM(0x583e0016 | __rs << 11 | __cd << 6)); #define _ASM_SET_MSA "" #else /* TOOLCHAIN_SUPPORTS_MSA */ #define _ASM_SET_MSA ".set\tfp=64\n\t" \ ".set\tmsa\n\t" #endif #define __BUILD_MSA_CTL_REG(name, cs) \ static inline unsigned int read_msa_##name(void) \ { \ unsigned int reg; \ __asm__ __volatile__( \ " .set push\n" \ _ASM_SET_MSA \ " cfcmsa %0, $" #cs "\n" \ " .set pop\n" \ : "=r"(reg)); \ return reg; \ } \ \ static inline void write_msa_##name(unsigned int val) \ { \ __asm__ __volatile__( \ " .set push\n" \ _ASM_SET_MSA \ " ctcmsa $" #cs ", %0\n" \ " .set pop\n" \ : : "r"(val)); \ } __BUILD_MSA_CTL_REG(ir, 0) __BUILD_MSA_CTL_REG(csr, 1) __BUILD_MSA_CTL_REG(access, 2) __BUILD_MSA_CTL_REG(save, 3) __BUILD_MSA_CTL_REG(modify, 4) __BUILD_MSA_CTL_REG(request, 5) __BUILD_MSA_CTL_REG(map, 6) __BUILD_MSA_CTL_REG(unmap, 7) #endif /* !__ASSEMBLY__ */ #define MSA_IR 0 #define MSA_CSR 1 #define MSA_ACCESS 2 #define MSA_SAVE 3 #define MSA_MODIFY 4 #define MSA_REQUEST 5 #define MSA_MAP 6 #define MSA_UNMAP 7 /* MSA Implementation Register (MSAIR) */ #define MSA_IR_REVB 0 #define MSA_IR_REVF (_ULCAST_(0xff) << MSA_IR_REVB) #define MSA_IR_PROCB 8 #define MSA_IR_PROCF (_ULCAST_(0xff) << MSA_IR_PROCB) #define MSA_IR_WRPB 16 #define MSA_IR_WRPF (_ULCAST_(0x1) << MSA_IR_WRPB) /* MSA Control & Status Register (MSACSR) */ #define MSA_CSR_RMB 0 #define MSA_CSR_RMF (_ULCAST_(0x3) << MSA_CSR_RMB) #define MSA_CSR_RM_NEAREST 0 #define MSA_CSR_RM_TO_ZERO 1 #define MSA_CSR_RM_TO_POS 2 #define MSA_CSR_RM_TO_NEG 3 #define MSA_CSR_FLAGSB 2 #define MSA_CSR_FLAGSF (_ULCAST_(0x1f) << MSA_CSR_FLAGSB) #define MSA_CSR_FLAGS_IB 2 #define MSA_CSR_FLAGS_IF (_ULCAST_(0x1) << MSA_CSR_FLAGS_IB) #define MSA_CSR_FLAGS_UB 3 #define MSA_CSR_FLAGS_UF (_ULCAST_(0x1) << MSA_CSR_FLAGS_UB) #define MSA_CSR_FLAGS_OB 4 #define MSA_CSR_FLAGS_OF (_ULCAST_(0x1) << MSA_CSR_FLAGS_OB) #define MSA_CSR_FLAGS_ZB 5 #define MSA_CSR_FLAGS_ZF (_ULCAST_(0x1) << MSA_CSR_FLAGS_ZB) #define MSA_CSR_FLAGS_VB 6 #define MSA_CSR_FLAGS_VF (_ULCAST_(0x1) << MSA_CSR_FLAGS_VB) #define MSA_CSR_ENABLESB 7 #define MSA_CSR_ENABLESF (_ULCAST_(0x1f) << MSA_CSR_ENABLESB) #define MSA_CSR_ENABLES_IB 7 #define MSA_CSR_ENABLES_IF (_ULCAST_(0x1) << MSA_CSR_ENABLES_IB) #define MSA_CSR_ENABLES_UB 8 #define MSA_CSR_ENABLES_UF (_ULCAST_(0x1) << MSA_CSR_ENABLES_UB) #define MSA_CSR_ENABLES_OB 9 #define MSA_CSR_ENABLES_OF (_ULCAST_(0x1) << MSA_CSR_ENABLES_OB) #define MSA_CSR_ENABLES_ZB 10 #define MSA_CSR_ENABLES_ZF (_ULCAST_(0x1) << MSA_CSR_ENABLES_ZB) #define MSA_CSR_ENABLES_VB 11 #define MSA_CSR_ENABLES_VF (_ULCAST_(0x1) << MSA_CSR_ENABLES_VB) #define MSA_CSR_CAUSEB 12 #define MSA_CSR_CAUSEF (_ULCAST_(0x3f) << MSA_CSR_CAUSEB) #define MSA_CSR_CAUSE_IB 12 #define MSA_CSR_CAUSE_IF (_ULCAST_(0x1) << MSA_CSR_CAUSE_IB) #define MSA_CSR_CAUSE_UB 13 #define MSA_CSR_CAUSE_UF (_ULCAST_(0x1) << MSA_CSR_CAUSE_UB) #define MSA_CSR_CAUSE_OB 14 #define MSA_CSR_CAUSE_OF (_ULCAST_(0x1) << MSA_CSR_CAUSE_OB) #define MSA_CSR_CAUSE_ZB 15 #define MSA_CSR_CAUSE_ZF (_ULCAST_(0x1) << MSA_CSR_CAUSE_ZB) #define MSA_CSR_CAUSE_VB 16 #define MSA_CSR_CAUSE_VF (_ULCAST_(0x1) << MSA_CSR_CAUSE_VB) #define MSA_CSR_CAUSE_EB 17 #define MSA_CSR_CAUSE_EF (_ULCAST_(0x1) << MSA_CSR_CAUSE_EB) #define MSA_CSR_NXB 18 #define MSA_CSR_NXF (_ULCAST_(0x1) << MSA_CSR_NXB) #define MSA_CSR_FSB 24 #define MSA_CSR_FSF (_ULCAST_(0x1) << MSA_CSR_FSB) #endif /* _ASM_MSA_H */
Save
cmd:
run