Lines Matching refs:scratch0
1470 u64 scratch0, all_bits, my_bit; in __acquire_chip_resource() local
1501 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in __acquire_chip_resource()
1502 if (scratch0 & all_bits) { in __acquire_chip_resource()
1505 write_csr(dd, ASIC_CFG_SCRATCH, scratch0 | my_bit); in __acquire_chip_resource()
1546 u64 scratch0, bit; in release_chip_resource() local
1564 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in release_chip_resource()
1565 if ((scratch0 & bit) != 0) { in release_chip_resource()
1566 scratch0 &= ~bit; in release_chip_resource()
1567 write_csr(dd, ASIC_CFG_SCRATCH, scratch0); in release_chip_resource()
1588 u64 scratch0, bit; in check_chip_resource() local
1595 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in check_chip_resource()
1596 if ((scratch0 & bit) == 0) { in check_chip_resource()
1608 u64 scratch0; in clear_chip_resources() local
1619 scratch0 = read_csr(dd, ASIC_CFG_SCRATCH); in clear_chip_resources()
1620 scratch0 &= ~resource_mask(dd->hfi1_id, CR_DYN_MASK); in clear_chip_resources()
1621 write_csr(dd, ASIC_CFG_SCRATCH, scratch0); in clear_chip_resources()