oxnas 39 drivers/mtd/nand/raw/oxnas_nand.c struct oxnas_nand_ctrl *oxnas = nand_get_controller_data(chip); oxnas 41 drivers/mtd/nand/raw/oxnas_nand.c return readb(oxnas->io_base); oxnas 46 drivers/mtd/nand/raw/oxnas_nand.c struct oxnas_nand_ctrl *oxnas = nand_get_controller_data(chip); oxnas 48 drivers/mtd/nand/raw/oxnas_nand.c ioread8_rep(oxnas->io_base, buf, len); oxnas 54 drivers/mtd/nand/raw/oxnas_nand.c struct oxnas_nand_ctrl *oxnas = nand_get_controller_data(chip); oxnas 56 drivers/mtd/nand/raw/oxnas_nand.c iowrite8_rep(oxnas->io_base, buf, len); oxnas 63 drivers/mtd/nand/raw/oxnas_nand.c struct oxnas_nand_ctrl *oxnas = nand_get_controller_data(chip); oxnas 66 drivers/mtd/nand/raw/oxnas_nand.c writeb(cmd, oxnas->io_base + OXNAS_NAND_CMD_CLE); oxnas 68 drivers/mtd/nand/raw/oxnas_nand.c writeb(cmd, oxnas->io_base + OXNAS_NAND_CMD_ALE); oxnas 78 drivers/mtd/nand/raw/oxnas_nand.c struct oxnas_nand_ctrl *oxnas; oxnas 87 drivers/mtd/nand/raw/oxnas_nand.c oxnas = devm_kzalloc(&pdev->dev, sizeof(*oxnas), oxnas 89 drivers/mtd/nand/raw/oxnas_nand.c if (!oxnas) oxnas 92 drivers/mtd/nand/raw/oxnas_nand.c nand_controller_init(&oxnas->base); oxnas 95 drivers/mtd/nand/raw/oxnas_nand.c oxnas->io_base = devm_ioremap_resource(&pdev->dev, res); oxnas 96 drivers/mtd/nand/raw/oxnas_nand.c if (IS_ERR(oxnas->io_base)) oxnas 97 drivers/mtd/nand/raw/oxnas_nand.c return PTR_ERR(oxnas->io_base); oxnas 99 drivers/mtd/nand/raw/oxnas_nand.c oxnas->clk = devm_clk_get(&pdev->dev, NULL); oxnas 100 drivers/mtd/nand/raw/oxnas_nand.c if (IS_ERR(oxnas->clk)) oxnas 101 drivers/mtd/nand/raw/oxnas_nand.c oxnas->clk = NULL; oxnas 108 drivers/mtd/nand/raw/oxnas_nand.c err = clk_prepare_enable(oxnas->clk); oxnas 122 drivers/mtd/nand/raw/oxnas_nand.c chip->controller = &oxnas->base; oxnas 125 drivers/mtd/nand/raw/oxnas_nand.c nand_set_controller_data(chip, oxnas); oxnas 148 drivers/mtd/nand/raw/oxnas_nand.c oxnas->chips[nchips] = chip; oxnas 158 drivers/mtd/nand/raw/oxnas_nand.c platform_set_drvdata(pdev, oxnas); oxnas 165 drivers/mtd/nand/raw/oxnas_nand.c clk_disable_unprepare(oxnas->clk); oxnas 171 drivers/mtd/nand/raw/oxnas_nand.c struct oxnas_nand_ctrl *oxnas = platform_get_drvdata(pdev); oxnas 173 drivers/mtd/nand/raw/oxnas_nand.c if (oxnas->chips[0]) oxnas 174 drivers/mtd/nand/raw/oxnas_nand.c nand_release(oxnas->chips[0]); oxnas 176 drivers/mtd/nand/raw/oxnas_nand.c clk_disable_unprepare(oxnas->clk);