Lines Matching refs:SC

11 #define SC(name) SEND_CTXT_##name  macro
593 SC(CREDIT_CTRL_THRESHOLD_SHIFT)) in sc_set_cr_threshold()
594 & SC(CREDIT_CTRL_THRESHOLD_MASK); in sc_set_cr_threshold()
599 & ~SC(CREDIT_CTRL_THRESHOLD_SMASK)) in sc_set_cr_threshold()
601 & SC(CREDIT_CTRL_THRESHOLD_MASK)) in sc_set_cr_threshold()
602 << SC(CREDIT_CTRL_THRESHOLD_SHIFT)); in sc_set_cr_threshold()
604 SC(CREDIT_CTRL), sc->credit_ctrl); in sc_set_cr_threshold()
628 SC(CHECK_ENABLE), in set_pio_integrity()
724 reg = ((sci->credits & SC(CTRL_CTXT_DEPTH_MASK)) in sc_alloc()
725 << SC(CTRL_CTXT_DEPTH_SHIFT)) in sc_alloc()
726 | ((sci->base & SC(CTRL_CTXT_BASE_MASK)) in sc_alloc()
727 << SC(CTRL_CTXT_BASE_SHIFT)); in sc_alloc()
728 write_kctxt_csr(dd, hw_context, SC(CTRL), reg); in sc_alloc()
733 write_kctxt_csr(dd, hw_context, SC(ERR_MASK), (u64)-1); in sc_alloc()
736 write_kctxt_csr(dd, hw_context, SC(CHECK_PARTITION_KEY), in sc_alloc()
737 (SC(CHECK_PARTITION_KEY_VALUE_MASK) & in sc_alloc()
739 SC(CHECK_PARTITION_KEY_VALUE_SHIFT)); in sc_alloc()
751 write_kctxt_csr(dd, hw_context, SC(CHECK_OPCODE), in sc_alloc()
752 ((u64)opmask << SC(CHECK_OPCODE_MASK_SHIFT)) | in sc_alloc()
753 ((u64)opval << SC(CHECK_OPCODE_VALUE_SHIFT))); in sc_alloc()
756 reg = dma & SC(CREDIT_RETURN_ADDR_ADDRESS_SMASK); in sc_alloc()
757 write_kctxt_csr(dd, hw_context, SC(CREDIT_RETURN_ADDR), reg); in sc_alloc()
780 reg = thresh << SC(CREDIT_CTRL_THRESHOLD_SHIFT); in sc_alloc()
783 reg |= SC(CREDIT_CTRL_EARLY_RETURN_SMASK); in sc_alloc()
785 reg |= SC(CREDIT_CTRL_EARLY_RETURN_SMASK); in sc_alloc()
789 write_kctxt_csr(dd, hw_context, SC(CREDIT_CTRL), reg); in sc_alloc()
794 write_kctxt_csr(dd, hw_context, SC(CHECK_VL), reg); in sc_alloc()
859 write_kctxt_csr(dd, hw_context, SC(CTRL), 0); in sc_free()
860 write_kctxt_csr(dd, hw_context, SC(CHECK_ENABLE), 0); in sc_free()
861 write_kctxt_csr(dd, hw_context, SC(ERR_MASK), 0); in sc_free()
862 write_kctxt_csr(dd, hw_context, SC(CHECK_PARTITION_KEY), 0); in sc_free()
863 write_kctxt_csr(dd, hw_context, SC(CHECK_OPCODE), 0); in sc_free()
864 write_kctxt_csr(dd, hw_context, SC(CREDIT_RETURN_ADDR), 0); in sc_free()
865 write_kctxt_csr(dd, hw_context, SC(CREDIT_CTRL), 0); in sc_free()
888 reg = read_kctxt_csr(sc->dd, sc->hw_context, SC(CTRL)); in sc_disable()
889 reg &= ~SC(CTRL_CTXT_ENABLE_SMASK); in sc_disable()
892 write_kctxt_csr(sc->dd, sc->hw_context, SC(CTRL), reg); in sc_disable()
951 return !!(read_kctxt_csr(dd, hw_context, SC(STATUS)) & in is_sc_halted()
952 SC(STATUS_CTXT_HALTED_SMASK)); in is_sc_halted()
1053 reg = read_kctxt_csr(dd, sc->hw_context, SC(STATUS)); in sc_restart()
1054 if (reg & SC(STATUS_CTXT_HALTED_SMASK)) in sc_restart()
1262 sc_ctrl = read_kctxt_csr(dd, sc->hw_context, SC(CTRL)); in sc_enable()
1263 if ((sc_ctrl & SC(CTRL_CTXT_ENABLE_SMASK))) in sc_enable()
1285 reg = read_kctxt_csr(dd, sc->hw_context, SC(ERR_STATUS)); in sc_enable()
1287 write_kctxt_csr(dd, sc->hw_context, SC(ERR_CLEAR), reg); in sc_enable()
1322 sc_ctrl |= SC(CTRL_CTXT_ENABLE_SMASK); in sc_enable()
1323 write_kctxt_csr(dd, sc->hw_context, SC(CTRL), sc_ctrl); in sc_enable()
1328 read_kctxt_csr(dd, sc->hw_context, SC(CTRL)); in sc_enable()
1344 write_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE), in sc_return_credits()
1345 SC(CREDIT_FORCE_FORCE_RETURN_SMASK)); in sc_return_credits()
1350 read_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE)); in sc_return_credits()
1352 write_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE), 0); in sc_return_credits()
1517 sc->credit_ctrl |= SC(CREDIT_CTRL_CREDIT_INTR_SMASK); in sc_add_credit_return_intr()
1519 SC(CREDIT_CTRL), sc->credit_ctrl); in sc_add_credit_return_intr()
1539 sc->credit_ctrl &= ~SC(CREDIT_CTRL_CREDIT_INTR_SMASK); in sc_del_credit_return_intr()
1541 SC(CREDIT_CTRL), sc->credit_ctrl); in sc_del_credit_return_intr()
2026 write_kctxt_csr(dd, ctxt, SC(CHECK_VL), mask); in init_pervl_scs()
2035 write_kctxt_csr(dd, ctxt, SC(CHECK_VL), mask); in init_pervl_scs()
2041 write_kctxt_csr(dd, ctxt, SC(CHECK_VL), mask); in init_pervl_scs()
2137 reg = read_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_STATUS)); in seqfile_dump_sci()
2141 (reg >> SC(CREDIT_STATUS_CURRENT_FREE_COUNTER_SHIFT)) & in seqfile_dump_sci()
2142 SC(CREDIT_STATUS_CURRENT_FREE_COUNTER_MASK), in seqfile_dump_sci()
2143 reg & SC(CREDIT_STATUS_LAST_RETURNED_COUNTER_SMASK)); in seqfile_dump_sci()