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

TOMOYO Linux Cross Reference
Linux/arch/sparc/crypto/sha256_asm.S

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/sparc/crypto/sha256_asm.S (Architecture mips) and /arch/i386/crypto/sha256_asm.S (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0 */            
  2 #include <linux/linkage.h>                        
  3 #include <asm/visasm.h>                           
  4                                                   
  5 #include "opcodes.h"                              
  6                                                   
  7 ENTRY(sha256_sparc64_transform)                   
  8         /* %o0 = digest, %o1 = data, %o2 = rou    
  9         VISEntryHalf                              
 10         ld      [%o0 + 0x00], %f0                 
 11         ld      [%o0 + 0x04], %f1                 
 12         ld      [%o0 + 0x08], %f2                 
 13         ld      [%o0 + 0x0c], %f3                 
 14         ld      [%o0 + 0x10], %f4                 
 15         ld      [%o0 + 0x14], %f5                 
 16         andcc   %o1, 0x7, %g0                     
 17         ld      [%o0 + 0x18], %f6                 
 18         bne,pn  %xcc, 10f                         
 19          ld     [%o0 + 0x1c], %f7                 
 20                                                   
 21 1:                                                
 22         ldd     [%o1 + 0x00], %f8                 
 23         ldd     [%o1 + 0x08], %f10                
 24         ldd     [%o1 + 0x10], %f12                
 25         ldd     [%o1 + 0x18], %f14                
 26         ldd     [%o1 + 0x20], %f16                
 27         ldd     [%o1 + 0x28], %f18                
 28         ldd     [%o1 + 0x30], %f20                
 29         ldd     [%o1 + 0x38], %f22                
 30                                                   
 31         SHA256                                    
 32                                                   
 33         subcc   %o2, 1, %o2                       
 34         bne,pt  %xcc, 1b                          
 35          add    %o1, 0x40, %o1                    
 36                                                   
 37 5:                                                
 38         st      %f0, [%o0 + 0x00]                 
 39         st      %f1, [%o0 + 0x04]                 
 40         st      %f2, [%o0 + 0x08]                 
 41         st      %f3, [%o0 + 0x0c]                 
 42         st      %f4, [%o0 + 0x10]                 
 43         st      %f5, [%o0 + 0x14]                 
 44         st      %f6, [%o0 + 0x18]                 
 45         st      %f7, [%o0 + 0x1c]                 
 46         retl                                      
 47          VISExitHalf                              
 48 10:                                               
 49         alignaddr %o1, %g0, %o1                   
 50                                                   
 51         ldd     [%o1 + 0x00], %f10                
 52 1:                                                
 53         ldd     [%o1 + 0x08], %f12                
 54         ldd     [%o1 + 0x10], %f14                
 55         ldd     [%o1 + 0x18], %f16                
 56         ldd     [%o1 + 0x20], %f18                
 57         ldd     [%o1 + 0x28], %f20                
 58         ldd     [%o1 + 0x30], %f22                
 59         ldd     [%o1 + 0x38], %f24                
 60         ldd     [%o1 + 0x40], %f26                
 61                                                   
 62         faligndata %f10, %f12, %f8                
 63         faligndata %f12, %f14, %f10               
 64         faligndata %f14, %f16, %f12               
 65         faligndata %f16, %f18, %f14               
 66         faligndata %f18, %f20, %f16               
 67         faligndata %f20, %f22, %f18               
 68         faligndata %f22, %f24, %f20               
 69         faligndata %f24, %f26, %f22               
 70                                                   
 71         SHA256                                    
 72                                                   
 73         subcc   %o2, 1, %o2                       
 74         fsrc2   %f26, %f10                        
 75         bne,pt  %xcc, 1b                          
 76          add    %o1, 0x40, %o1                    
 77                                                   
 78         ba,a,pt %xcc, 5b                          
 79 ENDPROC(sha256_sparc64_transform)                 
                                                      

~ [ 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