Lines Matching refs:decode_sz_arr
1551 void aspeed_g6_adjust_decode_sz(u32 decode_sz_arr[], int len) in aspeed_g6_adjust_decode_sz() argument
1559 sz += decode_sz_arr[j]; in aspeed_g6_adjust_decode_sz()
1561 if (sz % decode_sz_arr[cs] != 0) in aspeed_g6_adjust_decode_sz()
1562 decode_sz_arr[0] += (sz % decode_sz_arr[cs]); in aspeed_g6_adjust_decode_sz()
1579 u32 decode_sz_arr[ASPEED_SPI_MAX_CS]; in aspeed_spi_flash_set_segment() local
1593 decode_sz_arr[cs] = in aspeed_spi_flash_set_segment()
1596 decode_sz_arr[cs] = 0; in aspeed_spi_flash_set_segment()
1600 decode_sz_arr[flash->cs] = flash->ahb_size; in aspeed_spi_flash_set_segment()
1601 aspeed_g6_adjust_decode_sz(decode_sz_arr, flash->cs + 1); in aspeed_spi_flash_set_segment()
1604 total_decode_sz += decode_sz_arr[cs]; in aspeed_spi_flash_set_segment()
1616 if (decode_sz_arr[cs] != 0) { in aspeed_spi_flash_set_segment()
1618 (u32)flash->ahb_base + decode_sz_arr[cs]); in aspeed_spi_flash_set_segment()
1624 flash->ahb_size = decode_sz_arr[cs]; in aspeed_spi_flash_set_segment()
1625 cur_offset += decode_sz_arr[cs]; in aspeed_spi_flash_set_segment()