Lines Matching refs:selected_bank
221 if (nor_dev.selected_bank == 0U) { in spi_nor_clean_bar()
225 nor_dev.selected_bank = 0U; in spi_nor_clean_bar()
232 return spi_nor_reg(nor_dev.bank_write_cmd, &nor_dev.selected_bank, in spi_nor_clean_bar()
238 uint8_t selected_bank = offset / BANK_SIZE; in spi_nor_write_bar() local
241 if (selected_bank == nor_dev.selected_bank) { in spi_nor_write_bar()
250 ret = spi_nor_reg(nor_dev.bank_write_cmd, &selected_bank, in spi_nor_write_bar()
256 nor_dev.selected_bank = selected_bank; in spi_nor_write_bar()
263 uint8_t selected_bank = 0U; in spi_nor_read_bar() local
266 ret = spi_nor_reg(nor_dev.bank_read_cmd, &selected_bank, in spi_nor_read_bar()
272 nor_dev.selected_bank = selected_bank; in spi_nor_read_bar()
296 remain_len = (BANK_SIZE * (nor_dev.selected_bank + 1)) - in spi_nor_read()