Lines Matching refs:sw_index
503 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, in sc_hw_alloc() argument
517 *sw_index = index; in sc_hw_alloc()
531 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) in sc_hw_free() argument
535 sci = &dd->send_contexts[sw_index]; in sc_hw_free()
538 __func__, sw_index, hw_context); in sc_hw_free()
714 u32 sw_index; in sc_alloc() local
744 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context); in sc_alloc()
757 dd->send_contexts[sw_index].type = SC_KERNEL; in sc_alloc()
761 sci = &dd->send_contexts[sw_index]; in sc_alloc()
777 sc->sw_index = sw_index; in sc_alloc()
889 sw_index, in sc_alloc()
905 u32 sw_index; in sc_free() local
915 sw_index = sc->sw_index; in sc_free()
921 dd->send_contexts[sw_index].sc = NULL; in sc_free()
933 sc_hw_free(dd, sw_index, hw_context); in sc_free()
1041 __func__, sc->sw_index, in sc_wait_for_packet_egress()
1089 dd_dev_info(dd, "restarting send context %u(%u)\n", sc->sw_index, in sc_restart()
1105 __func__, sc->sw_index, sc->hw_context); in sc_restart()
1132 __func__, sc->sw_index, in sc_restart()
1362 sc->sw_index, sc->hw_context, ret); in sc_enable()
1418 __func__, sc->sw_index, sc->hw_context); in sc_drop()
1629 if (dd->send_contexts[sc->sw_index].type != SC_KERNEL && in sc_piobufavail()
1630 dd->send_contexts[sc->sw_index].type != SC_VL15) in sc_piobufavail()
1764 u32 sw_index; in sc_group_release_update() local
1768 sw_index = dd->hw_to_sw[hw_context]; in sc_group_release_update()
1769 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1771 __func__, hw_context, sw_index); in sc_group_release_update()
1774 sc = dd->send_contexts[sw_index].sc; in sc_group_release_update()
1781 sw_index = dd->hw_to_sw[gc]; in sc_group_release_update()
1782 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1785 __func__, hw_context, sw_index); in sc_group_release_update()
1788 sc_release_update(dd->send_contexts[sw_index].sc); in sc_group_release_update()
2072 dd->vld[15].sc->sw_index, ctxt); in init_pervl_scs()