Lines Matching defs:sc
209 sc_return_credits(uctxt->sc);
359 (uctxt->sc->hw_context * BIT(16))) +
367 memlen = PAGE_ALIGN(uctxt->sc->credits * PIO_BLOCK_SIZE);
384 cr_page_offset = ((u64)uctxt->sc->hw_free -
693 if (uctxt->sc) {
694 sc_disable(uctxt->sc);
695 set_pio_integrity(uctxt->sc);
853 if (uctxt->sc && (uctxt->sc->type == SC_KERNEL))
973 uctxt->sc = sc_alloc(dd, SC_USER, uctxt->rcvhdrqentsize, dd->node);
974 if (!uctxt->sc) {
978 hfi1_cdbg(PROC, "allocated send context %u(%u)", uctxt->sc->sw_index,
979 uctxt->sc->hw_context);
980 ret = sc_enable(uctxt->sc);
1151 cinfo.credits = uctxt->sc->credits;
1154 cinfo.send_ctxt = uctxt->sc->hw_context;
1191 hfi1_init_ctxt(uctxt->sc);
1267 offset = ((u64)uctxt->sc->hw_free -
1273 uctxt->sc->base_addr);
1277 uctxt->sc->base_addr);
1621 struct send_context *sc;
1625 if (!uctxt || !uctxt->dd || !uctxt->sc)
1635 sc = uctxt->sc;
1642 sc->halt_wait, (sc->flags & SCF_HALTED),
1644 if (!(sc->flags & SCF_HALTED))
1651 if (sc->flags & SCF_FROZEN) {
1666 sc_disable(sc);
1667 ret = sc_enable(sc);
1670 ret = sc_restart(sc);
1673 sc_return_credits(sc);