Lines Matching refs:temp_scratch
16 u64 checksum = 0, temp_scratch = 0; in validate_scratch_checksum() local
19 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH); in validate_scratch_checksum()
20 version = (temp_scratch & BITMAP_VERSION_SMASK) >> BITMAP_VERSION_SHIFT; in validate_scratch_checksum()
38 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH + (8 * i)); in validate_scratch_checksum()
40 checksum += (temp_scratch & 0xFFFF); in validate_scratch_checksum()
41 temp_scratch >>= 16; in validate_scratch_checksum()
48 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH); in validate_scratch_checksum()
49 temp_scratch &= CHECKSUM_SMASK; in validate_scratch_checksum()
50 temp_scratch >>= CHECKSUM_SHIFT; in validate_scratch_checksum()
52 if (checksum + temp_scratch == 0xFFFF) in validate_scratch_checksum()
62 u64 temp_scratch = 0, temp_dest = 0; in save_platform_config_fields() local
64 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH_1); in save_platform_config_fields()
66 temp_dest = temp_scratch & in save_platform_config_fields()
73 temp_dest = temp_scratch & in save_platform_config_fields()
80 temp_dest = temp_scratch & in save_platform_config_fields()
87 temp_dest = temp_scratch & in save_platform_config_fields()
94 temp_scratch = read_csr(dd, dd->hfi1_id ? ASIC_CFG_SCRATCH_3 : in save_platform_config_fields()
97 ppd->tx_preset_eq = (temp_scratch & TX_EQ_SMASK) >> TX_EQ_SHIFT; in save_platform_config_fields()
98 ppd->tx_preset_noeq = (temp_scratch & TX_NO_EQ_SMASK) >> TX_NO_EQ_SHIFT; in save_platform_config_fields()
99 ppd->rx_preset = (temp_scratch & RX_SMASK) >> RX_SHIFT; in save_platform_config_fields()
101 ppd->max_power_class = (temp_scratch & QSFP_MAX_POWER_SMASK) >> in save_platform_config_fields()