Lines Matching refs:sw_index
495 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index,
509 *sw_index = index;
523 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context)
527 sci = &dd->send_contexts[sw_index];
529 dd_dev_err(dd, "%s: sw_index %u not allocated? hw_context %u\n",
530 __func__, sw_index, hw_context);
705 u32 sw_index;
728 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context);
736 sci = &dd->send_contexts[sw_index];
753 sc->sw_index = sw_index;
866 sw_index,
882 u32 sw_index;
892 sw_index = sc->sw_index;
898 dd->send_contexts[sw_index].sc = NULL;
910 sc_hw_free(dd, sw_index, hw_context);
1036 __func__, sc->sw_index,
1084 dd_dev_info(dd, "restarting send context %u(%u)\n", sc->sw_index,
1100 __func__, sc->sw_index, sc->hw_context);
1127 __func__, sc->sw_index,
1357 sc->sw_index, sc->hw_context, ret);
1413 __func__, sc->sw_index, sc->hw_context);
1621 if (dd->send_contexts[sc->sw_index].type != SC_KERNEL &&
1622 dd->send_contexts[sc->sw_index].type != SC_VL15)
1763 u32 sw_index;
1767 sw_index = dd->hw_to_sw[hw_context];
1768 if (unlikely(sw_index >= dd->num_send_contexts)) {
1770 __func__, hw_context, sw_index);
1773 sc = dd->send_contexts[sw_index].sc;
1780 sw_index = dd->hw_to_sw[gc];
1781 if (unlikely(sw_index >= dd->num_send_contexts)) {
1784 __func__, hw_context, sw_index);
1787 sc_release_update(dd->send_contexts[sw_index].sc);
2071 dd->vld[15].sc->sw_index, ctxt);
2172 sc->flags, sc->sw_index, sc->hw_context, sc->group);