Lines Matching refs:uctxt
21 struct hfi1_ctxtdata *uctxt) in hfi1_netdev_setup_ctxt() argument
27 uctxt->rhf_rcv_function_map = netdev_rhf_rcv_functions; in hfi1_netdev_setup_ctxt()
28 uctxt->do_interrupt = &handle_receive_interrupt_napi_sp; in hfi1_netdev_setup_ctxt()
31 ret = hfi1_create_rcvhdrq(dd, uctxt); in hfi1_netdev_setup_ctxt()
35 ret = hfi1_setup_eagerbufs(uctxt); in hfi1_netdev_setup_ctxt()
39 clear_rcvhdrtail(uctxt); in hfi1_netdev_setup_ctxt()
44 if (!HFI1_CAP_KGET_MASK(uctxt->flags, MULTI_PKT_EGR)) in hfi1_netdev_setup_ctxt()
46 if (HFI1_CAP_KGET_MASK(uctxt->flags, NODROP_EGR_FULL)) in hfi1_netdev_setup_ctxt()
48 if (HFI1_CAP_KGET_MASK(uctxt->flags, NODROP_RHQ_FULL)) in hfi1_netdev_setup_ctxt()
50 if (HFI1_CAP_KGET_MASK(uctxt->flags, DMA_RTAIL)) in hfi1_netdev_setup_ctxt()
53 hfi1_rcvctrl(uctxt->dd, rcvctrl_ops, uctxt); in hfi1_netdev_setup_ctxt()
61 struct hfi1_ctxtdata *uctxt; in hfi1_netdev_allocate_ctxt() local
67 ret = hfi1_create_ctxtdata(dd->pport, dd->node, &uctxt); in hfi1_netdev_allocate_ctxt()
73 uctxt->flags = HFI1_CAP_KGET(MULTI_PKT_EGR) | in hfi1_netdev_allocate_ctxt()
78 uctxt->fast_handler = handle_receive_interrupt_napi_fp; in hfi1_netdev_allocate_ctxt()
79 uctxt->slow_handler = handle_receive_interrupt_napi_sp; in hfi1_netdev_allocate_ctxt()
80 hfi1_set_seq_cnt(uctxt, 1); in hfi1_netdev_allocate_ctxt()
81 uctxt->is_vnic = true; in hfi1_netdev_allocate_ctxt()
85 dd_dev_info(dd, "created netdev context %d\n", uctxt->ctxt); in hfi1_netdev_allocate_ctxt()
86 *ctxt = uctxt; in hfi1_netdev_allocate_ctxt()
92 struct hfi1_ctxtdata *uctxt) in hfi1_netdev_deallocate_ctxt() argument
105 HFI1_RCVCTRL_NO_EGR_DROP_DIS, uctxt); in hfi1_netdev_deallocate_ctxt()
107 if (uctxt->msix_intr != CCE_NUM_MSIX_VECTORS) in hfi1_netdev_deallocate_ctxt()
108 msix_free_irq(dd, uctxt->msix_intr); in hfi1_netdev_deallocate_ctxt()
110 uctxt->msix_intr = CCE_NUM_MSIX_VECTORS; in hfi1_netdev_deallocate_ctxt()
111 uctxt->event_flags = 0; in hfi1_netdev_deallocate_ctxt()
113 hfi1_clear_tids(uctxt); in hfi1_netdev_deallocate_ctxt()
114 hfi1_clear_ctxt_pkey(dd, uctxt); in hfi1_netdev_deallocate_ctxt()
118 hfi1_free_ctxt(uctxt); in hfi1_netdev_deallocate_ctxt()