Lines Matching refs:sw_index
453 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, in sc_hw_alloc() argument
467 *sw_index = index; in sc_hw_alloc()
481 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) in sc_hw_free() argument
485 sci = &dd->send_contexts[sw_index]; in sc_hw_free()
488 __func__, sw_index, hw_context); in sc_hw_free()
663 u32 sw_index; in sc_alloc() local
686 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context); in sc_alloc()
694 sci = &dd->send_contexts[sw_index]; in sc_alloc()
711 sc->sw_index = sw_index; in sc_alloc()
824 sw_index, in sc_alloc()
840 u32 sw_index; in sc_free() local
850 sw_index = sc->sw_index; in sc_free()
856 dd->send_contexts[sw_index].sc = NULL; in sc_free()
868 sc_hw_free(dd, sw_index, hw_context); in sc_free()
995 __func__, sc->sw_index, in sc_wait_for_packet_egress()
1043 dd_dev_info(dd, "restarting send context %u(%u)\n", sc->sw_index, in sc_restart()
1059 __func__, sc->sw_index, sc->hw_context); in sc_restart()
1086 __func__, sc->sw_index, in sc_restart()
1316 sc->sw_index, sc->hw_context, ret); in sc_enable()
1372 __func__, sc->sw_index, sc->hw_context); in sc_drop()
1580 if (dd->send_contexts[sc->sw_index].type != SC_KERNEL && in sc_piobufavail()
1581 dd->send_contexts[sc->sw_index].type != SC_VL15) in sc_piobufavail()
1722 u32 sw_index; in sc_group_release_update() local
1726 sw_index = dd->hw_to_sw[hw_context]; in sc_group_release_update()
1727 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1729 __func__, hw_context, sw_index); in sc_group_release_update()
1732 sc = dd->send_contexts[sw_index].sc; in sc_group_release_update()
1739 sw_index = dd->hw_to_sw[gc]; in sc_group_release_update()
1740 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1743 __func__, hw_context, sw_index); in sc_group_release_update()
1746 sc_release_update(dd->send_contexts[sw_index].sc); in sc_group_release_update()
2030 dd->vld[15].sc->sw_index, ctxt); in init_pervl_scs()
2131 sc->flags, sc->sw_index, sc->hw_context, sc->group); in seqfile_dump_sci()