Lines Matching refs:sw_index
453 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index,
467 *sw_index = index;
481 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context)
485 sci = &dd->send_contexts[sw_index];
487 dd_dev_err(dd, "%s: sw_index %u not allocated? hw_context %u\n",
488 __func__, sw_index, hw_context);
663 u32 sw_index;
686 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context);
694 sci = &dd->send_contexts[sw_index];
711 sc->sw_index = sw_index;
824 sw_index,
840 u32 sw_index;
850 sw_index = sc->sw_index;
856 dd->send_contexts[sw_index].sc = NULL;
868 sc_hw_free(dd, sw_index, hw_context);
994 __func__, sc->sw_index,
1042 dd_dev_info(dd, "restarting send context %u(%u)\n", sc->sw_index,
1058 __func__, sc->sw_index, sc->hw_context);
1085 __func__, sc->sw_index,
1315 sc->sw_index, sc->hw_context, ret);
1371 __func__, sc->sw_index, sc->hw_context);
1579 if (dd->send_contexts[sc->sw_index].type != SC_KERNEL &&
1580 dd->send_contexts[sc->sw_index].type != SC_VL15)
1721 u32 sw_index;
1725 sw_index = dd->hw_to_sw[hw_context];
1726 if (unlikely(sw_index >= dd->num_send_contexts)) {
1728 __func__, hw_context, sw_index);
1731 sc = dd->send_contexts[sw_index].sc;
1738 sw_index = dd->hw_to_sw[gc];
1739 if (unlikely(sw_index >= dd->num_send_contexts)) {
1742 __func__, hw_context, sw_index);
1745 sc_release_update(dd->send_contexts[sw_index].sc);
2026 dd->vld[15].sc->sw_index, ctxt);
2131 sc->flags, sc->sw_index, sc->hw_context, sc->group);