ifc_nand_ctrl 56 drivers/mtd/nand/raw/fsl_ifc_nand.c static struct fsl_ifc_nand_ctrl *ifc_nand_ctrl; ifc_nand_ctrl 147 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->page = page_addr; ifc_nand_ctrl 154 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); ifc_nand_ctrl 155 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index = column; ifc_nand_ctrl 159 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index += mtd->writesize; ifc_nand_ctrl 177 drivers/mtd/nand/raw/fsl_ifc_nand.c struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; ifc_nand_ctrl 299 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = 0; ifc_nand_ctrl 301 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index = 0; ifc_nand_ctrl 309 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; ifc_nand_ctrl 310 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index += column; ifc_nand_ctrl 313 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->eccread = 1; ifc_nand_ctrl 324 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; ifc_nand_ctrl 353 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = len; ifc_nand_ctrl 377 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = 0; ifc_nand_ctrl 384 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->column = column; ifc_nand_ctrl 385 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->oob = 0; ifc_nand_ctrl 438 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->oob = 1; ifc_nand_ctrl 441 drivers/mtd/nand/raw/fsl_ifc_nand.c set_addr(mtd, column, page_addr, ifc_nand_ctrl->oob); ifc_nand_ctrl 447 drivers/mtd/nand/raw/fsl_ifc_nand.c if (ifc_nand_ctrl->oob) { ifc_nand_ctrl 448 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_out32(ifc_nand_ctrl->index - ifc_nand_ctrl 449 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->column, ifc_nand_ctrl 469 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = 1; ifc_nand_ctrl 477 drivers/mtd/nand/raw/fsl_ifc_nand.c addr = ifc_nand_ctrl->addr; ifc_nand_ctrl 520 drivers/mtd/nand/raw/fsl_ifc_nand.c if ((unsigned int)len > bufsize - ifc_nand_ctrl->index) { ifc_nand_ctrl 523 drivers/mtd/nand/raw/fsl_ifc_nand.c __func__, len, bufsize - ifc_nand_ctrl->index); ifc_nand_ctrl 524 drivers/mtd/nand/raw/fsl_ifc_nand.c len = bufsize - ifc_nand_ctrl->index; ifc_nand_ctrl 527 drivers/mtd/nand/raw/fsl_ifc_nand.c memcpy_toio(ifc_nand_ctrl->addr + ifc_nand_ctrl->index, buf, len); ifc_nand_ctrl 528 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index += len; ifc_nand_ctrl 544 drivers/mtd/nand/raw/fsl_ifc_nand.c if (ifc_nand_ctrl->index < ifc_nand_ctrl->read_bytes) { ifc_nand_ctrl 545 drivers/mtd/nand/raw/fsl_ifc_nand.c offset = ifc_nand_ctrl->index++; ifc_nand_ctrl 546 drivers/mtd/nand/raw/fsl_ifc_nand.c return ifc_in8(ifc_nand_ctrl->addr + offset); ifc_nand_ctrl 566 drivers/mtd/nand/raw/fsl_ifc_nand.c if (ifc_nand_ctrl->index < ifc_nand_ctrl->read_bytes) { ifc_nand_ctrl 567 drivers/mtd/nand/raw/fsl_ifc_nand.c data = ifc_in16(ifc_nand_ctrl->addr + ifc_nand_ctrl->index); ifc_nand_ctrl 568 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index += 2; ifc_nand_ctrl 590 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes - ifc_nand_ctrl->index); ifc_nand_ctrl 591 drivers/mtd/nand/raw/fsl_ifc_nand.c memcpy_fromio(buf, ifc_nand_ctrl->addr + ifc_nand_ctrl->index, avail); ifc_nand_ctrl 592 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index += avail; ifc_nand_ctrl 621 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = 1; ifc_nand_ctrl 673 drivers/mtd/nand/raw/fsl_ifc_nand.c struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; ifc_nand_ctrl 877 drivers/mtd/nand/raw/fsl_ifc_nand.c chip->controller = &ifc_nand_ctrl->controller; ifc_nand_ctrl 955 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->chips[priv->bank] = NULL; ifc_nand_ctrl 1016 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl = kzalloc(sizeof(*ifc_nand_ctrl), GFP_KERNEL); ifc_nand_ctrl 1017 drivers/mtd/nand/raw/fsl_ifc_nand.c if (!ifc_nand_ctrl) { ifc_nand_ctrl 1022 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->read_bytes = 0; ifc_nand_ctrl 1023 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index = 0; ifc_nand_ctrl 1024 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->addr = NULL; ifc_nand_ctrl 1025 drivers/mtd/nand/raw/fsl_ifc_nand.c fsl_ifc_ctrl_dev->nand = ifc_nand_ctrl; ifc_nand_ctrl 1027 drivers/mtd/nand/raw/fsl_ifc_nand.c nand_controller_init(&ifc_nand_ctrl->controller); ifc_nand_ctrl 1029 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl = fsl_ifc_ctrl_dev->nand; ifc_nand_ctrl 1033 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->chips[bank] = priv; ifc_nand_ctrl 1101 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->counter--; ifc_nand_ctrl 1102 drivers/mtd/nand/raw/fsl_ifc_nand.c if (!ifc_nand_ctrl->counter) { ifc_nand_ctrl 1104 drivers/mtd/nand/raw/fsl_ifc_nand.c kfree(ifc_nand_ctrl);