Lines Matching refs:hwctrl
1249 void (*hwctrl)(struct mtd_info *mtd, int cmd, in nand_command() local
1260 hwctrl(mtd, cmd, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in nand_command()
1265 hwctrl(mtd, offs & 0xff, NAND_CTRL_ALE | NAND_CTRL_CHANGE); in nand_command()
1266 hwctrl(mtd, (offs >> 8) & 0xff, NAND_CTRL_ALE); in nand_command()
1267 hwctrl(mtd, (page_addr & 0xff), NAND_CTRL_ALE); in nand_command()
1268 hwctrl(mtd, ((page_addr >> 8) & 0xff), NAND_CTRL_ALE); in nand_command()
1270 hwctrl(mtd, (page_addr >> 16) & 0x0f, NAND_CTRL_ALE); in nand_command()
1272 hwctrl(mtd, NAND_CMD_NONE, NAND_NCE | NAND_CTRL_CHANGE); in nand_command()
1274 hwctrl(mtd, NAND_CMD_READSTART, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in nand_command()
1275 hwctrl(mtd, NAND_CMD_NONE, NAND_NCE | NAND_CTRL_CHANGE); in nand_command()
1342 void (*hwctrl)(struct mtd_info *mtd, int cmd, in spl_nand_erase_one() local
1350 hwctrl(mtd, NAND_CMD_ERASE1, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in spl_nand_erase_one()
1352 hwctrl(mtd, (page_addr & 0xff), NAND_CTRL_ALE | NAND_CTRL_CHANGE); in spl_nand_erase_one()
1353 hwctrl(mtd, ((page_addr >> 8) & 0xff), in spl_nand_erase_one()
1357 hwctrl(mtd, (page_addr >> 16) & 0x0f, in spl_nand_erase_one()
1360 hwctrl(mtd, NAND_CMD_ERASE2, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in spl_nand_erase_one()