Lines Matching refs:bank_select
2025 uint16_t bank_select; in qla2x00_read_flash_byte() local
2028 bank_select = rd_reg_word(®->ctrl_status); in qla2x00_read_flash_byte()
2033 bank_select &= ~0xf8; in qla2x00_read_flash_byte()
2034 bank_select |= addr >> 12 & 0xf0; in qla2x00_read_flash_byte()
2035 bank_select |= CSR_FLASH_64K_BANK; in qla2x00_read_flash_byte()
2036 wrt_reg_word(®->ctrl_status, bank_select); in qla2x00_read_flash_byte()
2046 if ((addr & BIT_16) && ((bank_select & CSR_FLASH_64K_BANK) == 0)) { in qla2x00_read_flash_byte()
2047 bank_select |= CSR_FLASH_64K_BANK; in qla2x00_read_flash_byte()
2048 wrt_reg_word(®->ctrl_status, bank_select); in qla2x00_read_flash_byte()
2051 (bank_select & CSR_FLASH_64K_BANK)) { in qla2x00_read_flash_byte()
2052 bank_select &= ~(CSR_FLASH_64K_BANK); in qla2x00_read_flash_byte()
2053 wrt_reg_word(®->ctrl_status, bank_select); in qla2x00_read_flash_byte()
2085 uint16_t bank_select; in qla2x00_write_flash_byte() local
2088 bank_select = rd_reg_word(®->ctrl_status); in qla2x00_write_flash_byte()
2092 bank_select &= ~0xf8; in qla2x00_write_flash_byte()
2093 bank_select |= addr >> 12 & 0xf0; in qla2x00_write_flash_byte()
2094 bank_select |= CSR_FLASH_64K_BANK; in qla2x00_write_flash_byte()
2095 wrt_reg_word(®->ctrl_status, bank_select); in qla2x00_write_flash_byte()
2107 if ((addr & BIT_16) && ((bank_select & CSR_FLASH_64K_BANK) == 0)) { in qla2x00_write_flash_byte()
2108 bank_select |= CSR_FLASH_64K_BANK; in qla2x00_write_flash_byte()
2109 wrt_reg_word(®->ctrl_status, bank_select); in qla2x00_write_flash_byte()
2112 (bank_select & CSR_FLASH_64K_BANK)) { in qla2x00_write_flash_byte()
2113 bank_select &= ~(CSR_FLASH_64K_BANK); in qla2x00_write_flash_byte()
2114 wrt_reg_word(®->ctrl_status, bank_select); in qla2x00_write_flash_byte()