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

TOMOYO Linux Cross Reference
Linux/arch/sparc/crypto/sha1_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/sha1_asm.S (Architecture sparc) and /arch/i386/crypto/sha1_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(sha1_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         andcc   %o1, 0x7, %g0                     
 14         ld      [%o0 + 0x0c], %f3                 
 15         bne,pn  %xcc, 10f                         
 16          ld     [%o0 + 0x10], %f4                 
 17                                                   
 18 1:                                                
 19         ldd     [%o1 + 0x00], %f8                 
 20         ldd     [%o1 + 0x08], %f10                
 21         ldd     [%o1 + 0x10], %f12                
 22         ldd     [%o1 + 0x18], %f14                
 23         ldd     [%o1 + 0x20], %f16                
 24         ldd     [%o1 + 0x28], %f18                
 25         ldd     [%o1 + 0x30], %f20                
 26         ldd     [%o1 + 0x38], %f22                
 27                                                   
 28         SHA1                                      
 29                                                   
 30         subcc   %o2, 1, %o2                       
 31         bne,pt  %xcc, 1b                          
 32          add    %o1, 0x40, %o1                    
 33                                                   
 34 5:                                                
 35         st      %f0, [%o0 + 0x00]                 
 36         st      %f1, [%o0 + 0x04]                 
 37         st      %f2, [%o0 + 0x08]                 
 38         st      %f3, [%o0 + 0x0c]                 
 39         st      %f4, [%o0 + 0x10]                 
 40         retl                                      
 41          VISExitHalf                              
 42 10:                                               
 43         alignaddr %o1, %g0, %o1                   
 44                                                   
 45         ldd     [%o1 + 0x00], %f10                
 46 1:                                                
 47         ldd     [%o1 + 0x08], %f12                
 48         ldd     [%o1 + 0x10], %f14                
 49         ldd     [%o1 + 0x18], %f16                
 50         ldd     [%o1 + 0x20], %f18                
 51         ldd     [%o1 + 0x28], %f20                
 52         ldd     [%o1 + 0x30], %f22                
 53         ldd     [%o1 + 0x38], %f24                
 54         ldd     [%o1 + 0x40], %f26                
 55                                                   
 56         faligndata %f10, %f12, %f8                
 57         faligndata %f12, %f14, %f10               
 58         faligndata %f14, %f16, %f12               
 59         faligndata %f16, %f18, %f14               
 60         faligndata %f18, %f20, %f16               
 61         faligndata %f20, %f22, %f18               
 62         faligndata %f22, %f24, %f20               
 63         faligndata %f24, %f26, %f22               
 64                                                   
 65         SHA1                                      
 66                                                   
 67         subcc   %o2, 1, %o2                       
 68         fsrc2   %f26, %f10                        
 69         bne,pt  %xcc, 1b                          
 70          add    %o1, 0x40, %o1                    
 71                                                   
 72         ba,a,pt %xcc, 5b                          
 73 ENDPROC(sha1_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