Home
last modified time | relevance | path

Searched refs:oob (Results 1 – 25 of 61) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/mtd/parsers/
Dsharpslpart.c132 static int sharpsl_nand_get_logical_num(u8 *oob) in sharpsl_nand_get_logical_num() argument
137 if (oob[NAND_NOOB_LOGADDR_00] == oob[NAND_NOOB_LOGADDR_10] && in sharpsl_nand_get_logical_num()
138 oob[NAND_NOOB_LOGADDR_01] == oob[NAND_NOOB_LOGADDR_11]) { in sharpsl_nand_get_logical_num()
141 } else if (oob[NAND_NOOB_LOGADDR_10] == oob[NAND_NOOB_LOGADDR_20] && in sharpsl_nand_get_logical_num()
142 oob[NAND_NOOB_LOGADDR_11] == oob[NAND_NOOB_LOGADDR_21]) { in sharpsl_nand_get_logical_num()
145 } else if (oob[NAND_NOOB_LOGADDR_20] == oob[NAND_NOOB_LOGADDR_00] && in sharpsl_nand_get_logical_num()
146 oob[NAND_NOOB_LOGADDR_21] == oob[NAND_NOOB_LOGADDR_01]) { in sharpsl_nand_get_logical_num()
153 us = oob[good0] | oob[good1] << 8; in sharpsl_nand_get_logical_num()
171 u8 *oob; in sharpsl_nand_init_ftl() local
173 oob = kzalloc(mtd->oobsize, GFP_KERNEL); in sharpsl_nand_init_ftl()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/
Dsm_ftl.c148 static int sm_read_lba(struct sm_oob *oob) in sm_read_lba() argument
157 if (!memcmp(oob, erased_pattern, SM_OOB_SIZE)) in sm_read_lba()
161 lba_test = *(uint16_t *)oob->lba_copy1 ^ *(uint16_t*)oob->lba_copy2; in sm_read_lba()
166 lba = sm_get_lba(oob->lba_copy1); in sm_read_lba()
169 lba = sm_get_lba(oob->lba_copy2); in sm_read_lba()
174 static void sm_write_lba(struct sm_oob *oob, uint16_t lba) in sm_write_lba() argument
186 oob->lba_copy1[0] = oob->lba_copy2[0] = tmp[0]; in sm_write_lba()
187 oob->lba_copy1[1] = oob->lba_copy2[1] = tmp[1]; in sm_write_lba()
217 static int sm_correct_sector(uint8_t *buffer, struct sm_oob *oob) in sm_correct_sector() argument
223 if (__nand_correct_data(buffer, ecc, oob->ecc1, SM_SMALL_PAGE, in sm_correct_sector()
[all …]
Dnftlcore.c168 size_t *retlen, uint8_t *buf, uint8_t *oob) in nftl_write() argument
177 ops.oobbuf = oob; in nftl_write()
241 struct nftl_oob oob; in NFTL_foldchain() local
268 (char *)&oob); in NFTL_foldchain()
270 foldmark = oob.u.c.FoldMark | oob.u.c.FoldMark1; in NFTL_foldchain()
281 status = oob.b.Status | oob.b.Status1; in NFTL_foldchain()
380 oob.u.c.FoldMark = oob.u.c.FoldMark1 = cpu_to_le16(FOLD_MARK_IN_PROGRESS); in NFTL_foldchain()
381 oob.u.c.unused = 0xffffffff; in NFTL_foldchain()
383 8, &retlen, (char *)&oob.u); in NFTL_foldchain()
420 memset(&oob, 0xff, sizeof(struct nftl_oob)); in NFTL_foldchain()
[all …]
Dinftlcore.c177 size_t *retlen, uint8_t *buf, uint8_t *oob) in inftl_write() argument
185 ops.oobbuf = oob; in inftl_write()
244 struct inftl_oob oob; in INFTL_foldchain() local
274 (char *)&oob) < 0) in INFTL_foldchain()
277 status = oob.b.Status | oob.b.Status1; in INFTL_foldchain()
347 memset(&oob, 0xff, sizeof(struct inftl_oob)); in INFTL_foldchain()
348 oob.b.Status = oob.b.Status1 = SECTOR_USED; in INFTL_foldchain()
352 movebuf, (char *)&oob); in INFTL_foldchain()
466 struct inftl_oob oob; in INFTL_findwriteunit() local
574 + 8, 8, &retlen, (char *)&oob.u); in INFTL_findwriteunit()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dsm_common.h39 static inline int sm_sector_valid(struct sm_oob *oob) in sm_sector_valid() argument
41 return hweight16(oob->data_status) >= 5; in sm_sector_valid()
44 static inline int sm_block_valid(struct sm_oob *oob) in sm_block_valid() argument
46 return hweight16(oob->block_status) >= 7; in sm_block_valid()
49 static inline int sm_block_erased(struct sm_oob *oob) in sm_block_erased() argument
55 if (!memcmp(oob, erased_pattern, sizeof(*oob))) in sm_block_erased()
Dsunxi_nand.c716 static void sunxi_nfc_hw_ecc_get_prot_oob_bytes(struct nand_chip *nand, u8 *oob, in sunxi_nfc_hw_ecc_get_prot_oob_bytes() argument
722 oob); in sunxi_nfc_hw_ecc_get_prot_oob_bytes()
726 sunxi_nfc_randomize_bbm(nand, page, oob); in sunxi_nfc_hw_ecc_get_prot_oob_bytes()
730 const u8 *oob, int step, in sunxi_nfc_hw_ecc_set_prot_oob_bytes() argument
738 memcpy(user_data, oob, sizeof(user_data)); in sunxi_nfc_hw_ecc_set_prot_oob_bytes()
740 oob = user_data; in sunxi_nfc_hw_ecc_set_prot_oob_bytes()
743 writel(sunxi_nfc_buf_to_user_data(oob), in sunxi_nfc_hw_ecc_set_prot_oob_bytes()
760 static int sunxi_nfc_hw_ecc_correct(struct nand_chip *nand, u8 *data, u8 *oob, in sunxi_nfc_hw_ecc_correct() argument
785 if (oob) in sunxi_nfc_hw_ecc_correct()
786 memset(oob, pattern, ecc->bytes + 4); in sunxi_nfc_hw_ecc_correct()
[all …]
Dtango_nand.c400 static void raw_read(struct nand_chip *chip, u8 *buf, u8 *oob) in raw_read() argument
403 u8 *oob_orig = oob; in raw_read()
410 if (oob) in raw_read()
411 oob += BBM_SIZE; in raw_read()
413 aux_read(chip, &oob, METADATA_SIZE, &pos); in raw_read()
417 aux_read(chip, &oob, ecc_size, &pos); in raw_read()
424 aux_read(chip, &oob, ecc_size, &pos); in raw_read()
427 static void raw_write(struct nand_chip *chip, const u8 *buf, const u8 *oob) in raw_write() argument
430 const u8 *oob_orig = oob; in raw_write()
437 if (oob) in raw_write()
[all …]
Dsm_common.c103 struct sm_oob oob; in sm_block_markbad() local
106 memset(&oob, -1, SM_OOB_SIZE); in sm_block_markbad()
107 oob.block_status = 0x0F; in sm_block_markbad()
114 ops.oobbuf = (void *)&oob; in sm_block_markbad()
Dnand_base.c346 static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len, in nand_fill_oob() argument
362 memcpy(chip->oob_poi + ops->ooboffs, oob, len); in nand_fill_oob()
363 return oob + len; in nand_fill_oob()
366 ret = mtd_ooblayout_set_databytes(mtd, oob, chip->oob_poi, in nand_fill_oob()
369 return oob + len; in nand_fill_oob()
2673 uint8_t *oob = chip->oob_poi; in nand_read_page_raw_syndrome() local
2688 ret = nand_read_data_op(chip, oob, chip->ecc.prepad, in nand_read_page_raw_syndrome()
2693 oob += chip->ecc.prepad; in nand_read_page_raw_syndrome()
2696 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome()
2700 oob += eccbytes; in nand_read_page_raw_syndrome()
[all …]
Dfsl_elbc_nand.c62 unsigned int oob; /* Non zero if operating on OOB data */ member
152 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() argument
171 (oob ? FPAR_LP_MS : 0) | column); in set_addr()
181 (oob ? FPAR_SP_MS : 0) | column); in set_addr()
189 if (oob) in set_addr()
276 static void fsl_elbc_do_read(struct nand_chip *chip, int oob) in fsl_elbc_do_read() argument
299 if (oob) in fsl_elbc_do_read()
433 elbc_fcm_ctrl->oob = 1; in fsl_elbc_cmdfunc()
436 elbc_fcm_ctrl->oob = 0; in fsl_elbc_cmdfunc()
463 if (elbc_fcm_ctrl->oob) in fsl_elbc_cmdfunc()
[all …]
Dcadence-nand-controller.c1453 u8 *oob; in cadence_nand_write_page() local
1456 oob = chip->oob_poi; in cadence_nand_write_page()
1458 oob = cdns_ctrl->buf + mtd->writesize; in cadence_nand_write_page()
1462 page, (void *)buf, oob, in cadence_nand_write_page()
1556 const u8 *oob = chip->oob_poi; in cadence_nand_write_page_raw() local
1562 memcpy(tmp_buf + writesize, oob, oob_skip); in cadence_nand_write_page_raw()
1565 memcpy(tmp_buf + oob_data_offset, oob, in cadence_nand_write_page_raw()
1567 oob += cdns_chip->avail_oob_size; in cadence_nand_write_page_raw()
1582 memcpy(tmp_buf + pos, oob, len); in cadence_nand_write_page_raw()
1583 oob += len; in cadence_nand_write_page_raw()
[all …]
Dfsl_ifc_nand.c50 unsigned int oob; /* Non zero if operating on OOB data */ member
139 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() argument
150 ifc_out32((oob ? IFC_NAND_COL_MS : 0) | column, &ifc->ifc_nand.col0); in set_addr()
158 if (oob) in set_addr()
251 int oob, in fsl_ifc_do_read() argument
279 if (oob) in fsl_ifc_do_read()
385 ifc_nand_ctrl->oob = 0; in fsl_ifc_cmdfunc()
438 ifc_nand_ctrl->oob = 1; in fsl_ifc_cmdfunc()
441 set_addr(mtd, column, page_addr, ifc_nand_ctrl->oob); in fsl_ifc_cmdfunc()
447 if (ifc_nand_ctrl->oob) { in fsl_ifc_cmdfunc()
Dr852.c434 struct sm_oob *oob = (struct sm_oob *)ecc_code; in r852_ecc_calculate() local
446 oob->ecc1[0] = (ecc1) & 0xFF; in r852_ecc_calculate()
447 oob->ecc1[1] = (ecc1 >> 8) & 0xFF; in r852_ecc_calculate()
448 oob->ecc1[2] = (ecc1 >> 16) & 0xFF; in r852_ecc_calculate()
450 oob->ecc2[0] = (ecc2) & 0xFF; in r852_ecc_calculate()
451 oob->ecc2[1] = (ecc2 >> 8) & 0xFF; in r852_ecc_calculate()
452 oob->ecc2[2] = (ecc2 >> 16) & 0xFF; in r852_ecc_calculate()
Dcafe_nand.c387 u8 *oob = chip->oob_poi; in cafe_nand_read_page() local
416 oob[0] ^= pat[i] << 4; in cafe_nand_read_page()
419 oob[3*p/2 - 2048] ^= pat[i] >> 4; in cafe_nand_read_page()
420 oob[3*p/2 - 2047] ^= pat[i] << 4; in cafe_nand_read_page()
422 oob[3*p/2 - 2049] ^= pat[i] >> 8; in cafe_nand_read_page()
423 oob[3*p/2 - 2048] ^= pat[i]; in cafe_nand_read_page()
Dmxc_nand.c128 int (*read_page)(struct nand_chip *chip, void *buf, void *oob, bool ecc,
713 static int mxc_nand_read_page_v1(struct nand_chip *chip, void *buf, void *oob, in mxc_nand_read_page_v1() argument
765 if (oob) in mxc_nand_read_page_v1()
766 copy_spare(mtd, true, oob); in mxc_nand_read_page_v1()
772 void *oob, bool ecc, int page) in mxc_nand_read_page_v2_v3() argument
794 if (oob) in mxc_nand_read_page_v2_v3()
795 copy_spare(mtd, true, oob); in mxc_nand_read_page_v2_v3()
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dreadtest.c83 int pg, oob; in dump_eraseblock() local
101 for (oob = 0; oob < n;) { in dump_eraseblock()
105 for (j = 0; j < 32 && oob < n; j++, oob++, i++) in dump_eraseblock()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c1405 static int read_oob_from_regs(struct brcmnand_controller *ctrl, int i, u8 *oob, in read_oob_from_regs() argument
1417 oob[j] = oob_reg_read(ctrl, j); in read_oob_from_regs()
1429 const u8 *oob, int sas, int sector_1k) in write_oob_to_regs() argument
1441 (oob[j + 0] << 24) | in write_oob_to_regs()
1442 (oob[j + 1] << 16) | in write_oob_to_regs()
1443 (oob[j + 2] << 8) | in write_oob_to_regs()
1444 (oob[j + 3] << 0)); in write_oob_to_regs()
2037 u8 *oob, u64 *err_addr) in brcmnand_read_by_pio() argument
2060 if (oob) in brcmnand_read_by_pio()
2061 oob += read_oob_from_regs(ctrl, i, oob, in brcmnand_read_by_pio()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Dfscache.h331 bool wait, bool oob, s8 event_num),
333 TP_ARGS(object, state, wait, oob, event_num),
340 __field(bool, oob )
348 __entry->oob = oob;
360 __print_symbolic(__entry->oob,
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/ata/
Dnvidia,tegra124-ahci.txt16 - sata-oob
21 - sata-oob
/kernel/linux/linux-5.10/drivers/mtd/devices/
Ddocg3.c1224 const u_char *oob, int autoecc) in doc_write_page() argument
1246 if (oob && autoecc) { in doc_write_page()
1247 doc_write_page_putbytes(docg3, DOC_LAYOUT_OOB_PAGEINFO_SZ, oob); in doc_write_page()
1249 oob += DOC_LAYOUT_OOB_UNUSED_OFS; in doc_write_page()
1261 doc_write_page_putbytes(docg3, DOC_LAYOUT_OOB_UNUSED_SZ, oob); in doc_write_page()
1263 if (oob && !autoecc) in doc_write_page()
1264 doc_write_page_putbytes(docg3, DOC_LAYOUT_OOB_SIZE, oob); in doc_write_page()
1382 u8 oob[DOC_LAYOUT_OOB_SIZE]; in doc_write_oob() local
1430 memset(oob, 0, sizeof(oob)); in doc_write_oob()
1432 memcpy(oob, docg3->oob_write_buf, DOC_LAYOUT_OOB_SIZE); in doc_write_oob()
[all …]
/kernel/linux/linux-5.10/arch/mips/boot/dts/brcm/
Dbcm97xxx-nand-cs1-bch24.dtsi10 brcm,nand-oob-sector-size = <27>;
Dbcm97xxx-nand-cs1-bch4.dtsi10 brcm,nand-oob-sector-size = <16>;
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dbcm963138dvt.dts42 brcm,nand-oob-sectors-size = <16>;
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/
Dmtk-nand.txt68 It is used to store free oob data.
69 O : oob size.
/kernel/linux/linux-5.10/fs/fscache/
Dobject.c172 bool oob; in fscache_object_sm_dispatcher() local
191 oob = true; in fscache_object_sm_dispatcher()
203 oob = false; in fscache_object_sm_dispatcher()
233 trace_fscache_osm(object, state, false, oob, event); in fscache_object_sm_dispatcher()

123