Lines Matching refs:oob
251 u8 *oob; member
259 u8 *oob, u32 len, u8 dma_cmd);
1437 static int read_oob_from_regs(struct brcmnand_controller *ctrl, int i, u8 *oob, in read_oob_from_regs() argument
1449 oob[j] = oob_reg_read(ctrl, j); in read_oob_from_regs()
1461 const u8 *oob, int sas, int sector_1k) in write_oob_to_regs() argument
1473 (oob[j + 0] << 24) | in write_oob_to_regs()
1474 (oob[j + 1] << 16) | in write_oob_to_regs()
1475 (oob[j + 2] << 8) | in write_oob_to_regs()
1476 (oob[j + 3] << 0)); in write_oob_to_regs()
1514 if (ctrl->oob) { in brcmnand_edu_irq()
1516 ctrl->oob += read_oob_from_regs(ctrl, in brcmnand_edu_irq()
1518 ctrl->oob, ctrl->sas, in brcmnand_edu_irq()
1524 ctrl->oob += write_oob_to_regs(ctrl, in brcmnand_edu_irq()
1526 ctrl->oob, ctrl->sas, in brcmnand_edu_irq()
1902 u8 *oob, u32 len, u8 cmd) in brcmnand_edu_trans() argument
1914 "read" : "write"), buf, oob); in brcmnand_edu_trans()
1928 ctrl->oob = oob; in brcmnand_edu_trans()
1937 if (ctrl->oob && (ctrl->edu_cmd == EDU_CMD_WRITE)) { in brcmnand_edu_trans()
1941 ctrl->oob += write_oob_to_regs(ctrl, in brcmnand_edu_trans()
1943 ctrl->oob, ctrl->sas, in brcmnand_edu_trans()
1962 if (ctrl->oob && (ctrl->edu_cmd == EDU_CMD_READ)) { in brcmnand_edu_trans()
1963 ctrl->oob += read_oob_from_regs(ctrl, in brcmnand_edu_trans()
1965 ctrl->oob, ctrl->sas, in brcmnand_edu_trans()
2078 u8 *oob, u32 len, u8 dma_cmd) in brcmnand_dma_trans() argument
2110 u8 *oob, u64 *err_addr) in brcmnand_read_by_pio() argument
2133 if (oob) in brcmnand_read_by_pio()
2134 oob += read_oob_from_regs(ctrl, i, oob, in brcmnand_read_by_pio()
2209 u64 addr, unsigned int trans, u32 *buf, u8 *oob) in brcmnand_read() argument
2223 if (ctrl->dma_trans && (has_edu(ctrl) || !oob) && in brcmnand_read()
2225 err = ctrl->dma_trans(host, addr, buf, oob, in brcmnand_read()
2240 if (oob) in brcmnand_read()
2241 memset(oob, 0x99, mtd->oobsize); in brcmnand_read()
2244 oob, &err_addr); in brcmnand_read()
2289 oob, &err_addr); in brcmnand_read()
2306 u8 *oob = oob_required ? (u8 *)chip->oob_poi : NULL; in brcmnand_read_page() local
2311 mtd->writesize >> FC_SHIFT, (u32 *)buf, oob); in brcmnand_read_page()
2319 u8 *oob = oob_required ? (u8 *)chip->oob_poi : NULL; in brcmnand_read_page_raw() local
2326 mtd->writesize >> FC_SHIFT, (u32 *)buf, oob); in brcmnand_read_page_raw()
2354 u64 addr, const u32 *buf, u8 *oob) in brcmnand_write() argument
2377 if (use_dma(ctrl) && (has_edu(ctrl) || !oob) && flash_dma_buf_ok(buf)) { in brcmnand_write()
2378 if (ctrl->dma_trans(host, addr, (u32 *)buf, oob, mtd->writesize, in brcmnand_write()
2397 } else if (oob) { in brcmnand_write()
2402 if (oob) { in brcmnand_write()
2403 oob += write_oob_to_regs(ctrl, i, oob, in brcmnand_write()
2429 void *oob = oob_required ? chip->oob_poi : NULL; in brcmnand_write_page() local
2432 brcmnand_write(mtd, chip, host->last_addr, (const u32 *)buf, oob); in brcmnand_write_page()
2442 void *oob = oob_required ? chip->oob_poi : NULL; in brcmnand_write_page_raw() local
2446 brcmnand_write(mtd, chip, host->last_addr, (const u32 *)buf, oob); in brcmnand_write_page_raw()