Lines Matching refs:scratch0
528 static void check_dyn_flag(u64 scratch0, char *p, int size, int *used, in check_dyn_flag() argument
534 if (scratch0 & mask) { in check_dyn_flag()
547 u64 scratch0; in asic_flags_read() local
562 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in asic_flags_read()
564 "Resource flags: 0x%016llx\n", scratch0); in asic_flags_read()
567 if (scratch0 & CR_THERM_INIT) { in asic_flags_read()
575 check_dyn_flag(scratch0, tmp, size, &used, dd->hfi1_id, i, in asic_flags_read()
577 check_dyn_flag(scratch0, tmp, size, &used, dd->hfi1_id, i, in asic_flags_read()
579 check_dyn_flag(scratch0, tmp, size, &used, dd->hfi1_id, i, in asic_flags_read()
581 check_dyn_flag(scratch0, tmp, size, &used, dd->hfi1_id, i, in asic_flags_read()
599 u64 scratch0; in asic_flags_write() local
619 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in asic_flags_write()
620 scratch0 &= ~clear; in asic_flags_write()
621 write_csr(dd, ASIC_CFG_SCRATCH, scratch0); in asic_flags_write()