/external/u-boot/fs/yaffs2/ |
D | yaffs_mtdif.c | 28 static inline void translate_spare2oob(const struct yaffs_spare *spare, u8 *oob) in translate_spare2oob() argument 30 oob[0] = spare->tb0; in translate_spare2oob() 31 oob[1] = spare->tb1; in translate_spare2oob() 32 oob[2] = spare->tb2; in translate_spare2oob() 33 oob[3] = spare->tb3; in translate_spare2oob() 34 oob[4] = spare->tb4; in translate_spare2oob() 35 oob[5] = spare->tb5 & 0x3f; in translate_spare2oob() 36 oob[5] |= spare->block_status == 'Y' ? 0 : 0x80; in translate_spare2oob() 37 oob[5] |= spare->page_status == 0 ? 0 : 0x40; in translate_spare2oob() 38 oob[6] = spare->tb6; in translate_spare2oob() [all …]
|
/external/u-boot/drivers/mtd/nand/ |
D | lpc32xx_nand_mlc.c | 234 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_read_page_hwecc() local 259 memcpy(&oob->free[i], lpc32xx_nand_mlc_registers->buff, 6); in lpc32xx_read_page_hwecc() 261 memcpy(&oob->ecc[i], lpc32xx_nand_mlc_registers->buff, 10); in lpc32xx_read_page_hwecc() 282 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_read_page_raw() local 301 memcpy(&oob->free[i], lpc32xx_nand_mlc_registers->data, 6); in lpc32xx_read_page_raw() 303 memcpy(&oob->ecc[i], lpc32xx_nand_mlc_registers->data, 10); in lpc32xx_read_page_raw() 330 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_read_oob() local 359 memcpy(&oob->free[i], lpc32xx_nand_mlc_registers->buff, 6); in lpc32xx_read_oob() 361 memcpy(&oob->ecc[i], lpc32xx_nand_mlc_registers->buff, 10); in lpc32xx_read_oob() 384 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_write_page_hwecc() local [all …]
|
D | mxc_nand.c | 445 uint8_t *oob = chip->oob_poi; local 459 chip->read_buf(mtd, oob, chip->ecc.prepad); 460 oob += chip->ecc.prepad; 463 chip->read_buf(mtd, oob, eccbytes); 464 oob += eccbytes; 467 chip->read_buf(mtd, oob, chip->ecc.postpad); 468 oob += chip->ecc.postpad; 472 size = mtd->oobsize - (oob - chip->oob_poi); 474 chip->read_buf(mtd, oob, size); 492 uint8_t *oob = chip->oob_poi; local [all …]
|
D | nand_base.c | 1243 uint8_t *oob = chip->oob_poi; in nand_read_page_raw_syndrome() local 1251 chip->read_buf(mtd, oob, chip->ecc.prepad); in nand_read_page_raw_syndrome() 1252 oob += chip->ecc.prepad; in nand_read_page_raw_syndrome() 1255 chip->read_buf(mtd, oob, eccbytes); in nand_read_page_raw_syndrome() 1256 oob += eccbytes; in nand_read_page_raw_syndrome() 1259 chip->read_buf(mtd, oob, chip->ecc.postpad); in nand_read_page_raw_syndrome() 1260 oob += chip->ecc.postpad; in nand_read_page_raw_syndrome() 1264 size = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_raw_syndrome() 1266 chip->read_buf(mtd, oob, size); in nand_read_page_raw_syndrome() 1557 uint8_t *oob = chip->oob_poi; in nand_read_page_syndrome() local [all …]
|
D | sunxi_nand.c | 807 u8 *oob, int oob_off, in sunxi_nfc_hw_ecc_read_chunk() argument 850 memset(oob, pattern, ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_chunk() 860 sunxi_nfc_randomizer_read_buf(mtd, oob, ecc->bytes + 4, true, page); in sunxi_nfc_hw_ecc_read_chunk() 871 nand->read_buf(mtd, oob, ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_chunk() 875 oob, ecc->bytes + 4, in sunxi_nfc_hw_ecc_read_chunk() 886 oob); in sunxi_nfc_hw_ecc_read_chunk() 890 sunxi_nfc_randomize_bbm(mtd, page, oob); in sunxi_nfc_hw_ecc_read_chunk() 904 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_read_extra_oob() argument 920 sunxi_nfc_read_buf(mtd, oob + offset, len); in sunxi_nfc_hw_ecc_read_extra_oob() 922 sunxi_nfc_randomizer_read_buf(mtd, oob + offset, len, in sunxi_nfc_hw_ecc_read_extra_oob() [all …]
|
D | fsl_elbc_nand.c | 73 unsigned int oob; /* Non zero if operating on OOB data */ member 154 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() argument 168 (oob ? FPAR_LP_MS : 0) | column); in set_addr() 174 (oob ? FPAR_SP_MS : 0) | column); in set_addr() 182 if (oob) in set_addr() 246 static void fsl_elbc_do_read(struct nand_chip *chip, int oob) in fsl_elbc_do_read() argument 269 if (oob) in fsl_elbc_do_read() 383 ctrl->oob = 0; in fsl_elbc_cmdfunc() 411 ctrl->oob = 1; in fsl_elbc_cmdfunc() 422 set_addr(mtd, column, page_addr, ctrl->oob); in fsl_elbc_cmdfunc() [all …]
|
D | denali.c | 728 uint8_t *oob = chip->oob_poi; in denali_read_page_raw() local 731 memcpy(oob, tmp_buf + writesize, oob_skip); in denali_read_page_raw() 732 oob += oob_skip; in denali_read_page_raw() 744 memcpy(oob, tmp_buf + pos, len); in denali_read_page_raw() 745 oob += len; in denali_read_page_raw() 748 memcpy(oob, tmp_buf + writesize + oob_skip, in denali_read_page_raw() 750 oob += len; in denali_read_page_raw() 755 len = oobsize - (oob - chip->oob_poi); in denali_read_page_raw() 756 memcpy(oob, tmp_buf + size - len, len); in denali_read_page_raw() 862 const uint8_t *oob = chip->oob_poi; in denali_write_page_raw() local [all …]
|
D | fsl_ifc_nand.c | 55 unsigned int oob; /* Non zero if operating on OOB data */ member 221 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() argument 233 ifc_out32(&ifc->ifc_nand.col0, (oob ? IFC_NAND_COL_MS : 0) | column); in set_addr() 241 if (oob) in set_addr() 252 u8 __iomem *oob = addr + mtd->writesize; in is_blank() local 263 if (__raw_readb(&oob[pos]) != 0xff) in is_blank() 357 int oob, in fsl_ifc_do_read() argument 384 if (oob) in fsl_ifc_do_read() 488 ctrl->oob = 0; in fsl_ifc_cmdfunc() 540 ctrl->oob = 1; in fsl_ifc_cmdfunc() [all …]
|
D | am335x_spl_bch.c | 161 uint8_t *oob = &oob_data[0] + nand_ecc_pos[0]; in nand_read_page() local 174 this->read_buf(mtd, oob, eccbytes); in nand_read_page() 179 oob += eccbytes; in nand_read_page()
|
D | vf610_nfc.c | 548 uint8_t *oob, int page) in vf610_nfc_correct_data() argument 565 vf610_nfc_read_buf(mtd, oob, mtd->oobsize); in vf610_nfc_correct_data() 572 flips += count_written_bits(oob, mtd->oobsize, flips_threshold); in vf610_nfc_correct_data() 579 memset(oob, 0xff, mtd->oobsize); in vf610_nfc_correct_data()
|
D | fsmc_nand.c | 347 uint8_t oob[13] __attribute__ ((aligned (2))); in fsmc_read_page_hwecc() local 374 chip->read_buf(mtd, oob + j, len); in fsmc_read_page_hwecc() 378 memcpy(&ecc_code[i], oob, 13); in fsmc_read_page_hwecc()
|
D | atmel_nand.c | 533 uint8_t *oob = chip->oob_poi; in atmel_nand_pmecc_read_page() local 547 chip->read_buf(mtd, oob, mtd->oobsize); in atmel_nand_pmecc_read_page() 563 if (pmecc_correction(mtd, stat, buf, &oob[eccpos[0]]) != 0) in atmel_nand_pmecc_read_page() 1027 uint8_t *oob = chip->oob_poi; in atmel_nand_read_page() local 1047 ecc_pos = oob + eccpos[0]; in atmel_nand_read_page() 1051 stat = chip->ecc.correct(mtd, p, oob, NULL); in atmel_nand_read_page() 1062 chip->read_buf(mtd, oob, mtd->oobsize); in atmel_nand_read_page()
|
D | omap_gpmc.c | 593 uint8_t *oob = chip->oob_poi; in omap_read_page_bch() local 600 oob += chip->ecc.layout->eccpos[0]; in omap_read_page_bch() 603 oob += eccbytes) { in omap_read_page_bch() 611 chip->read_buf(mtd, oob, eccbytes); in omap_read_page_bch()
|
/external/strace/tests-mx32/ |
D | ioctl_mtd.c | 145 TAIL_ALLOC_OBJECT_CONST_PTR(struct mtd_oob_buf, oob); in main() 146 fill_memory(oob, sizeof(*oob)); in main() 148 ioctl(-1, MEMWRITEOOB, oob); in main() 150 " = -1 EBADF (%m)\n", oob->start, oob->length, oob->ptr); in main() 152 ioctl(-1, MEMREADOOB, oob); in main() 154 " = -1 EBADF (%m)\n", oob->start, oob->length, oob->ptr); in main()
|
/external/strace/tests/ |
D | ioctl_mtd.c | 145 TAIL_ALLOC_OBJECT_CONST_PTR(struct mtd_oob_buf, oob); in main() 146 fill_memory(oob, sizeof(*oob)); in main() 148 ioctl(-1, MEMWRITEOOB, oob); in main() 150 " = -1 EBADF (%m)\n", oob->start, oob->length, oob->ptr); in main() 152 ioctl(-1, MEMREADOOB, oob); in main() 154 " = -1 EBADF (%m)\n", oob->start, oob->length, oob->ptr); in main()
|
/external/strace/tests-m32/ |
D | ioctl_mtd.c | 145 TAIL_ALLOC_OBJECT_CONST_PTR(struct mtd_oob_buf, oob); in main() 146 fill_memory(oob, sizeof(*oob)); in main() 148 ioctl(-1, MEMWRITEOOB, oob); in main() 150 " = -1 EBADF (%m)\n", oob->start, oob->length, oob->ptr); in main() 152 ioctl(-1, MEMREADOOB, oob); in main() 154 " = -1 EBADF (%m)\n", oob->start, oob->length, oob->ptr); in main()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/IndVarSimplify/ |
D | sharpen-range.ll | 22 %oob.pred = icmp slt i32 %idx, %length 23 br i1 %oob.pred, label %loop.next, label %oob 24 ; CHECK: br i1 true, label %loop.next, label %oob 38 oob: 56 %oob.pred = icmp sle i32 %idx, %length 57 br i1 %oob.pred, label %loop.next, label %oob 58 ; CHECK: br i1 true, label %loop.next, label %oob 72 oob:
|
D | use-range-metadata.ll | 17 %oob.pred = icmp slt i32 %idx, %length 18 br i1 %oob.pred, label %loop.next, label %oob 19 ; CHECK: br i1 true, label %loop.next, label %oob 32 oob:
|
/external/llvm/test/Transforms/IndVarSimplify/ |
D | sharpen-range.ll | 22 %oob.pred = icmp slt i32 %idx, %length 23 br i1 %oob.pred, label %loop.next, label %oob 24 ; CHECK: br i1 true, label %loop.next, label %oob 38 oob: 56 %oob.pred = icmp sle i32 %idx, %length 57 br i1 %oob.pred, label %loop.next, label %oob 58 ; CHECK: br i1 true, label %loop.next, label %oob 72 oob:
|
D | use-range-metadata.ll | 17 %oob.pred = icmp slt i32 %idx, %length 18 br i1 %oob.pred, label %loop.next, label %oob 19 ; CHECK: br i1 true, label %loop.next, label %oob 32 oob:
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
D | syscall_bsd.go | 330 func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err erro… 341 if len(oob) > 0 { 347 msg.Control = (*byte)(unsafe.Pointer(&oob[0])) 348 msg.SetControllen(len(oob)) 366 func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { 367 _, err = SendmsgN(fd, p, oob, to, flags) 371 func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { 389 if len(oob) > 0 { 395 msg.Control = (*byte)(unsafe.Pointer(&oob[0])) 396 msg.SetControllen(len(oob)) [all …]
|
D | syscall_solaris.go | 420 func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err erro… 431 if len(oob) > 0 { 437 msg.Accrightslen = int32(len(oob)) 452 func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { 453 _, err = SendmsgN(fd, p, oob, to, flags) 459 func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { 477 if len(oob) > 0 { 483 msg.Accrightslen = int32(len(oob)) 490 if len(oob) > 0 && len(p) == 0 {
|
D | syscall_linux.go | 927 func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err erro… 938 if len(oob) > 0 { 951 msg.Control = &oob[0] 952 msg.SetControllen(len(oob)) 968 func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { 969 _, err = SendmsgN(fd, p, oob, to, flags) 973 func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { 992 if len(oob) > 0 { 1005 msg.Control = &oob[0] 1006 msg.SetControllen(len(oob)) [all …]
|
/external/strace/ |
D | dirent.c | 122 int oob = d->d_reclen < sizeof(kernel_dirent) || in SYS_FUNC() local 124 int d_name_len = oob ? len - i : d->d_reclen; in SYS_FUNC() 138 if (oob) in SYS_FUNC()
|
/external/u-boot/cmd/ |
D | onenand.c | 62 size_t *retlen, u_char *buf, int oob) in onenand_block_read() argument 73 if (oob) in onenand_block_read() 87 if (oob) in onenand_block_read() 385 int oob = 0; in do_onenand_read() local 396 oob = 1; in do_onenand_read() 404 ret = onenand_block_read(ofs, len, &retlen, (u8 *)addr, oob); in do_onenand_read()
|