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

TOMOYO Linux Cross Reference
Linux/include/linux/mtd/nand-ecc-sw-hamming.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 /include/linux/mtd/nand-ecc-sw-hamming.h (Version linux-6.12-rc7) and /include/linux/mtd/nand-ecc-sw-hamming.h (Version linux-4.19.323)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  *  Copyright (C) 2000-2010 Steven J. Hill <sj    
  4  *                          David Woodhouse <d    
  5  *                          Thomas Gleixner <t    
  6  *                                                
  7  * This file is the header for the NAND Hammin    
  8  */                                               
  9                                                   
 10 #ifndef __MTD_NAND_ECC_SW_HAMMING_H__             
 11 #define __MTD_NAND_ECC_SW_HAMMING_H__             
 12                                                   
 13 #include <linux/mtd/nand.h>                       
 14                                                   
 15 /**                                               
 16  * struct nand_ecc_sw_hamming_conf - private s    
 17  * @req_ctx: Save request context and tweak th    
 18  *           engine needs                         
 19  * @code_size: Number of bytes needed to store    
 20  * @calc_buf: Buffer to use when calculating E    
 21  * @code_buf: Buffer to use when reading (raw)    
 22  * @sm_order: Smart Media special ordering        
 23  */                                               
 24 struct nand_ecc_sw_hamming_conf {                 
 25         struct nand_ecc_req_tweak_ctx req_ctx;    
 26         unsigned int code_size;                   
 27         u8 *calc_buf;                             
 28         u8 *code_buf;                             
 29         unsigned int sm_order;                    
 30 };                                                
 31                                                   
 32 #if IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING)    
 33                                                   
 34 int nand_ecc_sw_hamming_init_ctx(struct nand_d    
 35 void nand_ecc_sw_hamming_cleanup_ctx(struct na    
 36 int ecc_sw_hamming_calculate(const unsigned ch    
 37                              unsigned char *co    
 38 int nand_ecc_sw_hamming_calculate(struct nand_    
 39                                   const unsign    
 40                                   unsigned cha    
 41 int ecc_sw_hamming_correct(unsigned char *buf,    
 42                            unsigned char *calc    
 43                            bool sm_order);        
 44 int nand_ecc_sw_hamming_correct(struct nand_de    
 45                                 unsigned char     
 46                                 unsigned char     
 47                                                   
 48 #else /* !CONFIG_MTD_NAND_ECC_SW_HAMMING */       
 49                                                   
 50 static inline int nand_ecc_sw_hamming_init_ctx    
 51 {                                                 
 52         return -ENOTSUPP;                         
 53 }                                                 
 54                                                   
 55 static inline void nand_ecc_sw_hamming_cleanup    
 56                                                   
 57 static inline int ecc_sw_hamming_calculate(con    
 58                                            uns    
 59                                            uns    
 60 {                                                 
 61         return -ENOTSUPP;                         
 62 }                                                 
 63                                                   
 64 static inline int nand_ecc_sw_hamming_calculat    
 65                                                   
 66                                                   
 67 {                                                 
 68         return -ENOTSUPP;                         
 69 }                                                 
 70                                                   
 71 static inline int ecc_sw_hamming_correct(unsig    
 72                                          unsig    
 73                                          unsig    
 74                                          unsig    
 75 {                                                 
 76         return -ENOTSUPP;                         
 77 }                                                 
 78                                                   
 79 static inline int nand_ecc_sw_hamming_correct(    
 80                                                   
 81                                                   
 82                                                   
 83 {                                                 
 84         return -ENOTSUPP;                         
 85 }                                                 
 86                                                   
 87 #endif /* CONFIG_MTD_NAND_ECC_SW_HAMMING */       
 88                                                   
 89 #endif /* __MTD_NAND_ECC_SW_HAMMING_H__ */        
 90                                                   

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