Home
last modified time | relevance | path

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

123

/linux/drivers/mtd/
A Dsm_ftl.c161 lba_test = *(uint16_t *)oob->lba_copy1 ^ *(uint16_t*)oob->lba_copy2; in sm_read_lba()
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()
255 if (!oob) in sm_read_sector()
256 oob = &tmp_oob; in sm_read_sector()
292 if (oob->reserved != 0xFFFFFFFF && !is_power_of_2(~oob->reserved)) in sm_read_sector()
374 struct sm_oob oob; in sm_write_block() local
438 struct sm_oob oob; in sm_mark_block_bad() local
504 struct sm_oob oob; in sm_check_block() local
662 struct sm_oob oob; in sm_read_cis() local
[all …]
A Dnftlcore.c177 ops.oobbuf = oob; in nftl_write()
241 struct nftl_oob oob; in NFTL_foldchain() local
270 foldmark = oob.u.c.FoldMark | oob.u.c.FoldMark1; in NFTL_foldchain()
281 status = oob.b.Status | oob.b.Status1; in NFTL_foldchain()
421 oob.b.Status = oob.b.Status1 = SECTOR_USED; in NFTL_foldchain()
428 oob.u.a.VirtUnitNum = oob.u.a.SpareVirtUnitNum = cpu_to_le16(thisVUC); in NFTL_foldchain()
429 oob.u.a.ReplUnitNum = oob.u.a.SpareReplUnitNum = BLOCK_NIL; in NFTL_foldchain()
531 struct nftl_oob oob; in NFTL_findwriteunit() local
642 oob.u.a.VirtUnitNum = oob.u.a.SpareVirtUnitNum = cpu_to_le16(thisVUC); in NFTL_findwriteunit()
657 oob.u.a.ReplUnitNum = oob.u.a.SpareReplUnitNum in NFTL_findwriteunit()
[all …]
A Dinftlcore.c185 ops.oobbuf = oob; in inftl_write()
244 struct inftl_oob oob; in INFTL_foldchain() local
277 status = oob.b.Status | oob.b.Status1; in INFTL_foldchain()
348 oob.b.Status = oob.b.Status1 = SECTOR_USED; in INFTL_foldchain()
466 struct inftl_oob oob; in INFTL_findwriteunit() local
590 oob.u.a.ANAC = anac; in INFTL_findwriteunit()
591 oob.u.a.NACs = nacs; in INFTL_findwriteunit()
601 oob.u.b.ANAC = anac; in INFTL_findwriteunit()
602 oob.u.b.NACs = nacs; in INFTL_findwriteunit()
836 oob.b.Status = oob.b.Status1 = SECTOR_USED; in inftl_writeblock()
[all …]
/linux/drivers/mtd/parsers/
A Dsharpslpart.c137 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()
174 if (!oob) in sharpsl_nand_init_ftl()
[all …]
/linux/drivers/mtd/nand/raw/
A 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()
A Dsunxi_nand.c733 oob); in sunxi_nfc_hw_ecc_get_prot_oob_bytes()
741 const u8 *oob, int step, in sunxi_nfc_hw_ecc_set_prot_oob_bytes() argument
751 oob = user_data; in sunxi_nfc_hw_ecc_set_prot_oob_bytes()
796 if (oob) in sunxi_nfc_hw_ecc_correct()
809 u8 *oob, int oob_off, in sunxi_nfc_hw_ecc_read_chunk() argument
865 oob, ecc->bytes + 4, in sunxi_nfc_hw_ecc_read_chunk()
889 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_read_extra_oob() argument
1024 oob, ecc->bytes + 4, in sunxi_nfc_hw_ecc_read_chunks_dma()
1044 const u8 *oob, int oob_off, in sunxi_nfc_hw_ecc_write_chunk() argument
1082 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_write_extra_oob() argument
[all …]
A Dnand_base.c398 return oob + len; in nand_fill_oob()
404 return oob + len; in nand_fill_oob()
2913 oob += eccbytes; in nand_read_page_raw_syndrome()
3215 oob += eccbytes; in nand_read_page_syndrome()
3273 return oob + len; in nand_transfer_oob()
3393 !oob) in nand_do_read_ops()
3427 oob = nand_transfer_oob(chip, oob, ops, in nand_do_read_ops()
3490 if (oob) in nand_do_read_ops()
3896 oob += eccbytes; in nand_write_page_raw_syndrome()
4107 oob += eccbytes; in nand_write_page_syndrome()
[all …]
A 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()
A Dfsl_elbc_nand.c61 unsigned int oob; /* Non zero if operating on OOB data */ member
170 (oob ? FPAR_LP_MS : 0) | column); in set_addr()
180 (oob ? FPAR_SP_MS : 0) | column); in set_addr()
188 if (oob) in set_addr()
275 static void fsl_elbc_do_read(struct nand_chip *chip, int oob) in fsl_elbc_do_read() argument
298 if (oob) in fsl_elbc_do_read()
432 elbc_fcm_ctrl->oob = 1; in fsl_elbc_cmdfunc()
435 elbc_fcm_ctrl->oob = 0; in fsl_elbc_cmdfunc()
462 if (elbc_fcm_ctrl->oob) in fsl_elbc_cmdfunc()
471 set_addr(mtd, column, page_addr, elbc_fcm_ctrl->oob); in fsl_elbc_cmdfunc()
[all …]
A Dcadence-nand-controller.c1453 u8 *oob; in cadence_nand_write_page() local
1456 oob = chip->oob_poi; in cadence_nand_write_page()
1556 const u8 *oob = chip->oob_poi; in cadence_nand_write_page_raw() local
1583 oob += len; in cadence_nand_write_page_raw()
1588 oob += len; in cadence_nand_write_page_raw()
1632 u8 *oob; in cadence_nand_read_page() local
1635 oob = chip->oob_poi; in cadence_nand_read_page()
1642 page, buf, oob, in cadence_nand_read_page()
1757 u8 *oob = chip->oob_poi; in cadence_nand_read_page_raw() local
1785 oob += len; in cadence_nand_read_page_raw()
[all …]
A Dfsl_ifc_nand.c49 unsigned int oob; /* Non zero if operating on OOB data */ member
138 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() argument
149 ifc_out32((oob ? IFC_NAND_COL_MS : 0) | column, &ifc->ifc_nand.col0); in set_addr()
157 if (oob) in set_addr()
250 int oob, in fsl_ifc_do_read() argument
278 if (oob) in fsl_ifc_do_read()
384 ifc_nand_ctrl->oob = 0; in fsl_ifc_cmdfunc()
437 ifc_nand_ctrl->oob = 1; in fsl_ifc_cmdfunc()
440 set_addr(mtd, column, page_addr, ifc_nand_ctrl->oob); in fsl_ifc_cmdfunc()
446 if (ifc_nand_ctrl->oob) { in fsl_ifc_cmdfunc()
A Drockchip-nand-controller.c601 u8 *oob; in rk_nfc_write_page_hwecc() local
640 oob = chip->oob_poi + (i - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_write_page_hwecc()
641 reg = oob[0] | oob[1] << 8 | oob[2] << 16 | in rk_nfc_write_page_hwecc()
642 oob[3] << 24; in rk_nfc_write_page_hwecc()
764 u8 *oob; in rk_nfc_read_page_hwecc() local
815 oob = chip->oob_poi + (i - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_read_page_hwecc()
820 *oob++ = (u8)tmp; in rk_nfc_read_page_hwecc()
821 *oob++ = (u8)(tmp >> 8); in rk_nfc_read_page_hwecc()
822 *oob++ = (u8)(tmp >> 16); in rk_nfc_read_page_hwecc()
823 *oob++ = (u8)(tmp >> 24); in rk_nfc_read_page_hwecc()
A 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()
A 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()
/linux/tools/testing/selftests/net/af_unix/
A Dtest_unix_oob.c182 char oob; in main() local
225 read_oob(pfd, &oob); in main()
229 signal_recvd, len, oob); in main()
246 read_oob(pfd, &oob); in main()
249 signal_recvd, len, oob); in main()
271 read_oob(pfd, &oob); in main()
276 signal_recvd, len, oob, atmark); in main()
285 signal_recvd, len, oob); in main()
309 read_oob(pfd, &oob); in main()
313 signal_recvd, len, oob); in main()
[all …]
/linux/drivers/mtd/nand/raw/brcmnand/
A Dbrcmnand.c247 u8 *oob; member
1444 (oob[j + 0] << 24) | in write_oob_to_regs()
1445 (oob[j + 1] << 16) | in write_oob_to_regs()
1485 if (ctrl->oob) { in brcmnand_edu_irq()
1899 ctrl->oob = oob; in brcmnand_edu_trans()
2104 if (oob) in brcmnand_read_by_pio()
2105 oob += read_oob_from_regs(ctrl, i, oob, in brcmnand_read_by_pio()
2211 if (oob) in brcmnand_read()
2368 } else if (oob) { in brcmnand_write()
2373 if (oob) { in brcmnand_write()
[all …]
/linux/drivers/mtd/tests/
A 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()
/linux/Documentation/devicetree/bindings/ata/
A Dnvidia,tegra-ahci.yaml34 - const: sata-oob
44 - const: sata-oob
170 clock-names = "sata", "sata-oob";
174 reset-names = "sata", "sata-cold", "sata-oob";
/linux/include/trace/events/
A Dfscache.h321 bool wait, bool oob, s8 event_num),
323 TP_ARGS(object, state, wait, oob, event_num),
330 __field(bool, oob )
338 __entry->oob = oob;
350 __print_symbolic(__entry->oob,
/linux/drivers/mtd/devices/
A Ddocg3.c1224 const u_char *oob, int autoecc) in doc_write_page() argument
1246 if (oob && autoecc) { in doc_write_page()
1249 oob += DOC_LAYOUT_OOB_UNUSED_OFS; 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()
1434 doc_fill_autooob(oob, oobbuf); in doc_write_oob()
1436 memcpy(oob, oobbuf, DOC_LAYOUT_OOB_SIZE); in doc_write_oob()
[all …]
/linux/arch/mips/boot/dts/brcm/
A Dbcm97xxx-nand-cs1-bch24.dtsi10 brcm,nand-oob-sector-size = <27>;
A Dbcm97xxx-nand-cs1-bch4.dtsi10 brcm,nand-oob-sector-size = <16>;
/linux/arch/arm/boot/dts/
A Dbcm963138dvt.dts42 brcm,nand-oob-sectors-size = <16>;
/linux/Documentation/devicetree/bindings/mtd/
A Dmtk-nand.txt68 It is used to store free oob data.
69 O : oob size.
/linux/fs/fscache/
A Dobject.c171 bool oob; in fscache_object_sm_dispatcher() local
190 oob = true; in fscache_object_sm_dispatcher()
202 oob = false; in fscache_object_sm_dispatcher()
232 trace_fscache_osm(object, state, false, oob, event); in fscache_object_sm_dispatcher()

Completed in 69 milliseconds

123