Lines Matching defs:sc
5786 struct send_context *sc;
5795 sc = sci->sc;
5796 if (!sc)
5798 if (dd->vld[15].sc == sc)
5801 if (dd->vld[i].sc == sc)
5950 struct send_context *sc;
5966 sc = sci->sc;
5967 if (!sc) {
5968 dd_dev_err(dd, "%s: context %u(%u): no sc?\n", __func__,
5975 sc_stop(sc, SCF_HALTED);
5990 if (sc->type != SC_USER)
5991 queue_work(dd->pport->hfi1_wq, &sc->halt_work);
6742 struct send_context *sc;
6759 sc = dd->send_contexts[i].sc;
6760 if (sc && (sc->flags & SCF_ENABLED))
6761 sc_stop(sc, sc_flags);
10145 thres = min(sc_percent_to_threshold(dd->vld[i].sc, 50),
10146 sc_mtu_to_threshold(dd->vld[i].sc,
10154 thres = min(sc_percent_to_threshold(dd->vld[15].sc, 50),
10155 sc_mtu_to_threshold(dd->vld[15].sc,
10158 sc_set_cr_threshold(dd->vld[15].sc, thres);
13128 void hfi1_init_ctxt(struct send_context *sc)
13130 if (sc) {
13131 struct hfi1_devdata *dd = sc->dd;
13133 u8 set = (sc->type == SC_USER ?
13136 reg = read_kctxt_csr(dd, sc->hw_context,
13142 write_kctxt_csr(dd, sc->hw_context,
14772 if (!rcd || !rcd->sc)
14775 hw_ctxt = rcd->sc->hw_context;
14806 if (!rcd || !rcd->sc)
14809 hw_ctxt = rcd->sc->hw_context;
14833 if (!rcd || !rcd->sc)
14836 hw_ctxt = rcd->sc->hw_context;
14853 if (!ctxt || !ctxt->sc)
14856 hw_ctxt = ctxt->sc->hw_context;