Lines Matching refs:hwctrl
1265 void (*hwctrl)(struct mtd_info *mtd, int cmd, in nand_command() local
1276 hwctrl(mtd, cmd, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in nand_command()
1281 hwctrl(mtd, offs & 0xff, NAND_CTRL_ALE | NAND_CTRL_CHANGE); in nand_command()
1282 hwctrl(mtd, (offs >> 8) & 0xff, NAND_CTRL_ALE); in nand_command()
1283 hwctrl(mtd, (page_addr & 0xff), NAND_CTRL_ALE); in nand_command()
1284 hwctrl(mtd, ((page_addr >> 8) & 0xff), NAND_CTRL_ALE); in nand_command()
1286 hwctrl(mtd, (page_addr >> 16) & 0x0f, NAND_CTRL_ALE); in nand_command()
1288 hwctrl(mtd, NAND_CMD_NONE, NAND_NCE | NAND_CTRL_CHANGE); in nand_command()
1290 hwctrl(mtd, NAND_CMD_READSTART, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in nand_command()
1291 hwctrl(mtd, NAND_CMD_NONE, NAND_NCE | NAND_CTRL_CHANGE); in nand_command()
1358 void (*hwctrl)(struct mtd_info *mtd, int cmd, in spl_nand_erase_one() local
1366 hwctrl(mtd, NAND_CMD_ERASE1, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in spl_nand_erase_one()
1368 hwctrl(mtd, (page_addr & 0xff), NAND_CTRL_ALE | NAND_CTRL_CHANGE); in spl_nand_erase_one()
1369 hwctrl(mtd, ((page_addr >> 8) & 0xff), in spl_nand_erase_one()
1373 hwctrl(mtd, (page_addr >> 16) & 0x0f, in spl_nand_erase_one()
1376 hwctrl(mtd, NAND_CMD_ERASE2, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in spl_nand_erase_one()