Lines Matching refs:cmd
398 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command() argument
404 switch (cmd) { in onenand_command()
429 cmd = ONENAND_CMD_READ; in onenand_command()
454 if (cmd == ONENAND_CMD_BUFFERRAM) { in onenand_command()
484 switch (cmd) { in onenand_command()
496 if (ONENAND_IS_2PLANE(this) && cmd == ONENAND_CMD_PROG) in onenand_command()
497 cmd = ONENAND_CMD_2X_PROG; in onenand_command()
515 this->write_word(cmd, this->base + ONENAND_REG_COMMAND); in onenand_command()
1809 int ret = 0, cmd; in onenand_write_ops_nolock() local
1907 cmd = ONENAND_CMD_PROG; in onenand_write_ops_nolock()
1914 cmd = ONENAND_CMD_2X_CACHE_PROG; in onenand_write_ops_nolock()
1918 this->command(mtd, cmd, to, mtd->writesize); in onenand_write_ops_nolock()
2505 static int onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, size_t len, int cmd) in onenand_do_lock_cmd() argument
2514 if (cmd == ONENAND_CMD_LOCK) in onenand_do_lock_cmd()
2526 this->command(mtd, cmd, 0, 0); in onenand_do_lock_cmd()
2556 this->command(mtd, cmd, 0, 0); in onenand_do_lock_cmd()
2700 static int onenand_otp_command(struct mtd_info *mtd, int cmd, loff_t addr, in onenand_otp_command() argument
2707 switch (cmd) { in onenand_otp_command()
2741 switch (cmd) { in onenand_otp_command()
2743 if (ONENAND_IS_2PLANE(this) && cmd == ONENAND_CMD_PROG) in onenand_otp_command()
2744 cmd = ONENAND_CMD_2X_PROG; in onenand_otp_command()
2763 this->write_word(cmd, this->base + ONENAND_REG_COMMAND); in onenand_otp_command()