~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/vfp/vfpinstr.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/arm/vfp/vfpinstr.h (Version linux-6.12-rc7) and /arch/mips/vfp/vfpinstr.h (Version policy-sample)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  *  linux/arch/arm/vfp/vfpinstr.h                 
  4  *                                                
  5  *  Copyright (C) 2004 ARM Limited.               
  6  *  Written by Deep Blue Solutions Limited.       
  7  *                                                
  8  * VFP instruction masks.                         
  9  */                                               
 10 #define INST_CPRTDO(inst)       (((inst) & 0x0    
 11 #define INST_CPRT(inst)         ((inst) & (1 <    
 12 #define INST_CPRT_L(inst)       ((inst) & (1 <    
 13 #define INST_CPRT_Rd(inst)      (((inst) & (15    
 14 #define INST_CPRT_OP(inst)      (((inst) >> 21    
 15 #define INST_CPNUM(inst)        ((inst) & 0xf0    
 16 #define CPNUM(cp)               ((cp) << 8)       
 17                                                   
 18 #define FOP_MASK        (0x00b00040)              
 19 #define FOP_FMAC        (0x00000000)              
 20 #define FOP_FNMAC       (0x00000040)              
 21 #define FOP_FMSC        (0x00100000)              
 22 #define FOP_FNMSC       (0x00100040)              
 23 #define FOP_FMUL        (0x00200000)              
 24 #define FOP_FNMUL       (0x00200040)              
 25 #define FOP_FADD        (0x00300000)              
 26 #define FOP_FSUB        (0x00300040)              
 27 #define FOP_FDIV        (0x00800000)              
 28 #define FOP_EXT         (0x00b00040)              
 29                                                   
 30 #define FOP_TO_IDX(inst)        ((inst & 0x00b    
 31                                                   
 32 #define FEXT_MASK       (0x000f0080)              
 33 #define FEXT_FCPY       (0x00000000)              
 34 #define FEXT_FABS       (0x00000080)              
 35 #define FEXT_FNEG       (0x00010000)              
 36 #define FEXT_FSQRT      (0x00010080)              
 37 #define FEXT_FCMP       (0x00040000)              
 38 #define FEXT_FCMPE      (0x00040080)              
 39 #define FEXT_FCMPZ      (0x00050000)              
 40 #define FEXT_FCMPEZ     (0x00050080)              
 41 #define FEXT_FCVT       (0x00070080)              
 42 #define FEXT_FUITO      (0x00080000)              
 43 #define FEXT_FSITO      (0x00080080)              
 44 #define FEXT_FTOUI      (0x000c0000)              
 45 #define FEXT_FTOUIZ     (0x000c0080)              
 46 #define FEXT_FTOSI      (0x000d0000)              
 47 #define FEXT_FTOSIZ     (0x000d0080)              
 48                                                   
 49 #define FEXT_TO_IDX(inst)       ((inst & 0x000    
 50                                                   
 51 #define vfp_get_sd(inst)        ((inst & 0x000    
 52 #define vfp_get_dd(inst)        ((inst & 0x000    
 53 #define vfp_get_sm(inst)        ((inst & 0x000    
 54 #define vfp_get_dm(inst)        ((inst & 0x000    
 55 #define vfp_get_sn(inst)        ((inst & 0x000    
 56 #define vfp_get_dn(inst)        ((inst & 0x000    
 57                                                   
 58 #define vfp_single(inst)        (((inst) & 0x0    
 59                                                   
 60 #define FPSCR_N (1 << 31)                         
 61 #define FPSCR_Z (1 << 30)                         
 62 #define FPSCR_C (1 << 29)                         
 63 #define FPSCR_V (1 << 28)                         
 64                                                   
 65 #ifdef CONFIG_AS_VFP_VMRS_FPINST                  
 66                                                   
 67 #define fmrx(_vfp_) ({                            
 68         u32 __v;                                  
 69         asm volatile (".fpu     vfpv2\n"          
 70                       "vmrs     %0, " #_vfp_      
 71                      : "=r" (__v) : : "cc");      
 72         __v;                                      
 73 })                                                
 74                                                   
 75 #define fmxr(_vfp_, _var_) ({                     
 76         asm volatile (".fpu     vfpv2\n"          
 77                       "vmsr     " #_vfp_ ", %0    
 78                      : : "r" (_var_) : "cc");     
 79 })                                                
 80                                                   
 81 #else                                             
 82                                                   
 83 #define vfpreg(_vfp_) #_vfp_                      
 84                                                   
 85 #define fmrx(_vfp_) ({                            
 86         u32 __v;                                  
 87         asm volatile ("mrc p10, 7, %0, " vfpre    
 88                       "cr0, 0 @ fmrx    %0, "     
 89                      : "=r" (__v) : : "cc");      
 90         __v;                                      
 91 })                                                
 92                                                   
 93 #define fmxr(_vfp_, _var_) ({                     
 94         asm volatile ("mcr p10, 7, %0, " vfpre    
 95                       "cr0, 0 @ fmxr    " #_vf    
 96                      : : "r" (_var_) : "cc");     
 97 })                                                
 98                                                   
 99 #endif                                            
100                                                   
101 u32 vfp_single_cpdo(u32 inst, u32 fpscr);         
102 u32 vfp_single_cprt(u32 inst, u32 fpscr, struc    
103                                                   
104 u32 vfp_double_cpdo(u32 inst, u32 fpscr);         
105                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php