Lines Matching refs:scratch0
1427 u64 scratch0, all_bits, my_bit; in __acquire_chip_resource() local
1458 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in __acquire_chip_resource()
1459 if (scratch0 & all_bits) { in __acquire_chip_resource()
1462 write_csr(dd, ASIC_CFG_SCRATCH, scratch0 | my_bit); in __acquire_chip_resource()
1503 u64 scratch0, bit; in release_chip_resource() local
1521 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in release_chip_resource()
1522 if ((scratch0 & bit) != 0) { in release_chip_resource()
1523 scratch0 &= ~bit; in release_chip_resource()
1524 write_csr(dd, ASIC_CFG_SCRATCH, scratch0); in release_chip_resource()
1545 u64 scratch0, bit; in check_chip_resource() local
1552 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in check_chip_resource()
1553 if ((scratch0 & bit) == 0) { in check_chip_resource()
1565 u64 scratch0; in clear_chip_resources() local
1576 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in clear_chip_resources()
1577 scratch0 &= ~resource_mask(dd->hfi1_id, CR_DYN_MASK); in clear_chip_resources()
1578 write_csr(dd, ASIC_CFG_SCRATCH, scratch0); in clear_chip_resources()