D | spi.c | 97 static int sf_enable_write(struct rtsx_chip *chip, u8 ins) in sf_enable_write() argument 107 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, ins); in sf_enable_write() 122 static int sf_disable_write(struct rtsx_chip *chip, u8 ins) in sf_disable_write() argument 132 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, ins); in sf_disable_write() 147 static void sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr, u16 len) in sf_program() argument 149 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, ins); in sf_program() 164 static int sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr) in sf_erase() argument 170 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, ins); in sf_erase() 490 u8 ins, slow_read; in spi_read_flash() local 497 ins = srb->cmnd[3]; in spi_read_flash() [all …]
|