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()
713 u32 sw_index; in sc_alloc() local
736 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context); in sc_alloc()
744 sci = &dd->send_contexts[sw_index]; in sc_alloc()
760 sc->sw_index = sw_index; in sc_alloc()
873 sw_index, in sc_alloc()
889 u32 sw_index; in sc_free() local
899 sw_index = sc->sw_index; in sc_free()
905 dd->send_contexts[sw_index].sc = NULL; in sc_free()
917 sc_hw_free(dd, sw_index, hw_context); in sc_free()
1025 __func__, sc->sw_index, in sc_wait_for_packet_egress()
1073 dd_dev_info(dd, "restarting send context %u(%u)\n", sc->sw_index, in sc_restart()
1089 __func__, sc->sw_index, sc->hw_context); in sc_restart()
1116 __func__, sc->sw_index, in sc_restart()
1346 sc->sw_index, sc->hw_context, ret); in sc_enable()
1402 __func__, sc->sw_index, sc->hw_context); in sc_drop()
1613 if (dd->send_contexts[sc->sw_index].type != SC_KERNEL && in sc_piobufavail()
1614 dd->send_contexts[sc->sw_index].type != SC_VL15) in sc_piobufavail()
1748 u32 sw_index; in sc_group_release_update() local
1752 sw_index = dd->hw_to_sw[hw_context]; in sc_group_release_update()
1753 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1755 __func__, hw_context, sw_index); in sc_group_release_update()
1758 sc = dd->send_contexts[sw_index].sc; in sc_group_release_update()
1765 sw_index = dd->hw_to_sw[gc]; in sc_group_release_update()
1766 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1769 __func__, hw_context, sw_index); in sc_group_release_update()
1772 sc_release_update(dd->send_contexts[sw_index].sc); in sc_group_release_update()
2056 dd->vld[15].sc->sw_index, ctxt); in init_pervl_scs()