Home
last modified time | relevance | path

Searched refs:eccsr (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/mtd/nand/spi/
H A Dxtx.c155 u8 eccsr = (status & GENMASK(5, 2)) >> 2; in xt26g0xa_ecc_get_status() local
157 if (eccsr <= 7) in xt26g0xa_ecc_get_status()
158 return eccsr; in xt26g0xa_ecc_get_status()
159 else if (eccsr == 12) in xt26g0xa_ecc_get_status()
179 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in xt26g02b_ecc_get_status() local
181 if (eccsr <= 4) in xt26g02b_ecc_get_status()
182 return eccsr; in xt26g02b_ecc_get_status()
200 u8 eccsr = (status & GENMASK(7, 4)) >> 4; in xt26g01c_ecc_get_status() local
202 if (eccsr <= 8) in xt26g01c_ecc_get_status()
203 return eccsr; in xt26g01c_ecc_get_status()
H A Dmacronix.c54 static int mx35lf1ge4ab_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in mx35lf1ge4ab_get_eccsr() argument
59 SPI_MEM_OP_DATA_IN(1, eccsr, 1)); in mx35lf1ge4ab_get_eccsr()
65 *eccsr &= MACRONIX_ECCSR_MASK; in mx35lf1ge4ab_get_eccsr()
73 u8 eccsr; in mx35lf1ge4ab_ecc_get_status() local
88 if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr)) in mx35lf1ge4ab_ecc_get_status()
91 if (WARN_ON(eccsr > nand->eccreq.strength || !eccsr)) in mx35lf1ge4ab_ecc_get_status()
94 return eccsr; in mx35lf1ge4ab_ecc_get_status()
H A Dfmsh.c100 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in fm25s01bi3_ecc_ecc_get_status() local
102 if (eccsr <= 1 || eccsr == 3) in fm25s01bi3_ecc_ecc_get_status()
103 return eccsr; in fm25s01bi3_ecc_ecc_get_status()
104 else if (eccsr == 5) in fm25s01bi3_ecc_ecc_get_status()
H A Dunim.c75 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in tx25g01_ecc_get_status() local
77 if (eccsr < 4) in tx25g01_ecc_get_status()
78 return eccsr; in tx25g01_ecc_get_status()
79 else if (eccsr == 4) in tx25g01_ecc_get_status()
H A Djsc.c76 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in js28u1gqscahg_ecc_get_status() local
78 if (eccsr < 4) in js28u1gqscahg_ecc_get_status()
79 return eccsr; in js28u1gqscahg_ecc_get_status()
80 else if (eccsr == 4) in js28u1gqscahg_ecc_get_status()
/OK3568_Linux_fs/kernel/drivers/mtd/nand/spi/
H A Dxtx.c153 u8 eccsr = (status & GENMASK(5, 2)) >> 2; in xt26g0xa_ecc_get_status() local
155 if (eccsr <= 7) in xt26g0xa_ecc_get_status()
156 return eccsr; in xt26g0xa_ecc_get_status()
157 else if (eccsr == 12) in xt26g0xa_ecc_get_status()
177 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in xt26g02b_ecc_get_status() local
179 if (eccsr <= 4) in xt26g02b_ecc_get_status()
180 return eccsr; in xt26g02b_ecc_get_status()
198 u8 eccsr = (status & GENMASK(7, 4)) >> 4; in xt26g01c_ecc_get_status() local
200 if (eccsr <= 8) in xt26g01c_ecc_get_status()
201 return eccsr; in xt26g01c_ecc_get_status()
H A Dmacronix.c81 static int mx35lf1ge4ab_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in mx35lf1ge4ab_get_eccsr() argument
86 SPI_MEM_OP_DATA_IN(1, eccsr, 1)); in mx35lf1ge4ab_get_eccsr()
92 *eccsr &= MACRONIX_ECCSR_MASK; in mx35lf1ge4ab_get_eccsr()
100 u8 eccsr; in mx35lf1ge4ab_ecc_get_status() local
115 if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr)) in mx35lf1ge4ab_ecc_get_status()
118 if (WARN_ON(eccsr > nanddev_get_ecc_requirements(nand)->strength || in mx35lf1ge4ab_ecc_get_status()
119 !eccsr)) in mx35lf1ge4ab_ecc_get_status()
122 return eccsr; in mx35lf1ge4ab_ecc_get_status()
H A Dfmsh.c98 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in fm25s01bi3_ecc_ecc_get_status() local
100 if (eccsr <= 1 || eccsr == 3) in fm25s01bi3_ecc_ecc_get_status()
101 return eccsr; in fm25s01bi3_ecc_ecc_get_status()
102 else if (eccsr == 5) in fm25s01bi3_ecc_ecc_get_status()
H A Dunim.c73 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in tx25g01_ecc_get_status() local
75 if (eccsr < 4) in tx25g01_ecc_get_status()
76 return eccsr; in tx25g01_ecc_get_status()
77 else if (eccsr == 4) in tx25g01_ecc_get_status()
H A Djsc.c74 u8 eccsr = (status & GENMASK(6, 4)) >> 4; in js28u1gqscahg_ecc_get_status() local
76 if (eccsr < 4) in js28u1gqscahg_ecc_get_status()
77 return eccsr; in js28u1gqscahg_ecc_get_status()
78 else if (eccsr == 4) in js28u1gqscahg_ecc_get_status()