Searched refs:ifc_nand_ctrl (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/mtd/nand/
H A Dfsl_ifc_nand.c69 static struct fsl_ifc_nand_ctrl *ifc_nand_ctrl; variable in typeref:struct:fsl_ifc_nand_ctrl
239 ifc_nand_ctrl->page = page_addr; set_addr()
246 ifc_nand_ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); set_addr()
247 ifc_nand_ctrl->index = column; set_addr()
251 ifc_nand_ctrl->index += mtd->writesize; set_addr()
298 struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; fsl_ifc_run_command()
418 ifc_nand_ctrl->read_bytes = 0; fsl_ifc_cmdfunc()
420 ifc_nand_ctrl->index = 0; fsl_ifc_cmdfunc()
428 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; fsl_ifc_cmdfunc()
429 ifc_nand_ctrl->index += column; fsl_ifc_cmdfunc()
432 ifc_nand_ctrl->eccread = 1; fsl_ifc_cmdfunc()
443 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; fsl_ifc_cmdfunc()
469 ifc_nand_ctrl->read_bytes = 256; fsl_ifc_cmdfunc()
493 ifc_nand_ctrl->read_bytes = 0; fsl_ifc_cmdfunc()
500 ifc_nand_ctrl->column = column; fsl_ifc_cmdfunc()
501 ifc_nand_ctrl->oob = 0; fsl_ifc_cmdfunc()
556 ifc_nand_ctrl->oob = 1; fsl_ifc_cmdfunc()
559 set_addr(mtd, column, page_addr, ifc_nand_ctrl->oob); fsl_ifc_cmdfunc()
565 if (ifc_nand_ctrl->oob) { fsl_ifc_cmdfunc()
566 iowrite32be(ifc_nand_ctrl->index - fsl_ifc_cmdfunc()
567 ifc_nand_ctrl->column, fsl_ifc_cmdfunc()
585 ifc_nand_ctrl->read_bytes = 1; fsl_ifc_cmdfunc()
594 setbits16(ifc_nand_ctrl->addr, NAND_STATUS_WP); fsl_ifc_cmdfunc()
596 setbits8(ifc_nand_ctrl->addr, NAND_STATUS_WP); fsl_ifc_cmdfunc()
634 if ((unsigned int)len > bufsize - ifc_nand_ctrl->index) { fsl_ifc_write_buf()
637 __func__, len, bufsize - ifc_nand_ctrl->index); fsl_ifc_write_buf()
638 len = bufsize - ifc_nand_ctrl->index; fsl_ifc_write_buf()
641 memcpy_toio(ifc_nand_ctrl->addr + ifc_nand_ctrl->index, buf, len); fsl_ifc_write_buf()
642 ifc_nand_ctrl->index += len; fsl_ifc_write_buf()
659 if (ifc_nand_ctrl->index < ifc_nand_ctrl->read_bytes) { fsl_ifc_read_byte()
660 offset = ifc_nand_ctrl->index++; fsl_ifc_read_byte()
661 return in_8(ifc_nand_ctrl->addr + offset); fsl_ifc_read_byte()
682 if (ifc_nand_ctrl->index < ifc_nand_ctrl->read_bytes) { fsl_ifc_read_byte16()
683 data = in_be16(ifc_nand_ctrl->addr + ifc_nand_ctrl->index); fsl_ifc_read_byte16()
684 ifc_nand_ctrl->index += 2; fsl_ifc_read_byte16()
707 ifc_nand_ctrl->read_bytes - ifc_nand_ctrl->index); fsl_ifc_read_buf()
708 memcpy_fromio(buf, ifc_nand_ctrl->addr + ifc_nand_ctrl->index, avail); fsl_ifc_read_buf()
709 ifc_nand_ctrl->index += avail; fsl_ifc_read_buf()
736 ifc_nand_ctrl->read_bytes = 1; fsl_ifc_wait()
754 struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; fsl_ifc_read_page()
914 chip->controller = &ifc_nand_ctrl->controller; fsl_ifc_chip_init()
1001 ifc_nand_ctrl->chips[priv->bank] = NULL; fsl_ifc_chip_remove()
1063 ifc_nand_ctrl = kzalloc(sizeof(*ifc_nand_ctrl), GFP_KERNEL); fsl_ifc_nand_probe()
1064 if (!ifc_nand_ctrl) { fsl_ifc_nand_probe()
1069 ifc_nand_ctrl->read_bytes = 0; fsl_ifc_nand_probe()
1070 ifc_nand_ctrl->index = 0; fsl_ifc_nand_probe()
1071 ifc_nand_ctrl->addr = NULL; fsl_ifc_nand_probe()
1072 fsl_ifc_ctrl_dev->nand = ifc_nand_ctrl; fsl_ifc_nand_probe()
1074 spin_lock_init(&ifc_nand_ctrl->controller.lock); fsl_ifc_nand_probe()
1075 init_waitqueue_head(&ifc_nand_ctrl->controller.wq); fsl_ifc_nand_probe()
1077 ifc_nand_ctrl = fsl_ifc_ctrl_dev->nand; fsl_ifc_nand_probe()
1081 ifc_nand_ctrl->chips[bank] = priv; fsl_ifc_nand_probe()
1148 ifc_nand_ctrl->counter--; fsl_ifc_nand_remove()
1149 if (!ifc_nand_ctrl->counter) { fsl_ifc_nand_remove()
1151 kfree(ifc_nand_ctrl); fsl_ifc_nand_remove()

Completed in 66 milliseconds