Lines Matching refs:sw_index
495 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, in sc_hw_alloc() argument
509 *sw_index = index; in sc_hw_alloc()
523 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) in sc_hw_free() argument
527 sci = &dd->send_contexts[sw_index]; in sc_hw_free()
530 __func__, sw_index, hw_context); in sc_hw_free()
705 u32 sw_index; in sc_alloc() local
728 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context); in sc_alloc()
736 sci = &dd->send_contexts[sw_index]; in sc_alloc()
753 sc->sw_index = sw_index; in sc_alloc()
866 sw_index, in sc_alloc()
882 u32 sw_index; in sc_free() local
892 sw_index = sc->sw_index; in sc_free()
898 dd->send_contexts[sw_index].sc = NULL; in sc_free()
910 sc_hw_free(dd, sw_index, hw_context); in sc_free()
1034 __func__, sc->sw_index, in sc_wait_for_packet_egress()
1082 dd_dev_info(dd, "restarting send context %u(%u)\n", sc->sw_index, in sc_restart()
1098 __func__, sc->sw_index, sc->hw_context); in sc_restart()
1125 __func__, sc->sw_index, in sc_restart()
1355 sc->sw_index, sc->hw_context, ret); in sc_enable()
1411 __func__, sc->sw_index, sc->hw_context); in sc_drop()
1619 if (dd->send_contexts[sc->sw_index].type != SC_KERNEL && in sc_piobufavail()
1620 dd->send_contexts[sc->sw_index].type != SC_VL15) in sc_piobufavail()
1761 u32 sw_index; in sc_group_release_update() local
1765 sw_index = dd->hw_to_sw[hw_context]; in sc_group_release_update()
1766 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1768 __func__, hw_context, sw_index); in sc_group_release_update()
1771 sc = dd->send_contexts[sw_index].sc; in sc_group_release_update()
1778 sw_index = dd->hw_to_sw[gc]; in sc_group_release_update()
1779 if (unlikely(sw_index >= dd->num_send_contexts)) { in sc_group_release_update()
1782 __func__, hw_context, sw_index); in sc_group_release_update()
1785 sc_release_update(dd->send_contexts[sw_index].sc); in sc_group_release_update()
2069 dd->vld[15].sc->sw_index, ctxt); in init_pervl_scs()
2170 sc->flags, sc->sw_index, sc->hw_context, sc->group); in seqfile_dump_sci()