Searched refs:uctxt (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | file_ops.c | 42 static void init_subctxts(struct hfi1_ctxtdata *uctxt, 45 struct hfi1_ctxtdata *uctxt); 46 static void user_init(struct hfi1_ctxtdata *uctxt); 56 struct hfi1_ctxtdata *uctxt); 57 static int setup_subctxt(struct hfi1_ctxtdata *uctxt); 64 static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt); 67 static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, 69 static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg); 70 static int ctxt_reset(struct hfi1_ctxtdata *uctxt); 71 static int manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt, [all …]
|
H A D | user_exp_rcv.c | 13 static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt, 51 struct hfi1_ctxtdata *uctxt) in hfi1_user_exp_rcv_init() argument 55 fd->entry_to_rb = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 61 if (!HFI1_CAP_UGET_MASK(uctxt->flags, TID_UNMAP)) { in hfi1_user_exp_rcv_init() 63 fd->invalid_tids = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 88 if (uctxt->subctxt_cnt && fd->use_mn) { in hfi1_user_exp_rcv_init() 91 fd->tid_limit = uctxt->expected_count / uctxt->subctxt_cnt; in hfi1_user_exp_rcv_init() 92 remainder = uctxt->expected_count % uctxt->subctxt_cnt; in hfi1_user_exp_rcv_init() 96 fd->tid_limit = uctxt->expected_count; in hfi1_user_exp_rcv_init() 105 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_exp_rcv_free() local [all …]
|
H A D | netdev_rx.c | 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() [all …]
|
H A D | trace_ctxts.h | 21 TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt, 23 TP_ARGS(dd, uctxt, subctxt), 37 __entry->ctxt = uctxt->ctxt; 39 __entry->credits = uctxt->sc->credits; 40 __entry->hw_free = le64_to_cpu(*uctxt->sc->hw_free); 41 __entry->piobase = uctxt->sc->base_addr; 42 __entry->rcvhdrq_cnt = get_hdrq_cnt(uctxt); 43 __entry->rcvhdrq_dma = uctxt->rcvhdrq_dma; 44 __entry->eager_cnt = uctxt->egrbufs.alloced; 45 __entry->rcvegr_dma = uctxt->egrbufs.rcvtids[0].dma; [all …]
|
H A D | user_sdma.c | 106 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, in hfi1_user_sdma_alloc_queues() argument 115 if (!uctxt || !fd) in hfi1_user_sdma_alloc_queues() 121 dd = uctxt->dd; in hfi1_user_sdma_alloc_queues() 127 pq->ctxt = uctxt->ctxt; in hfi1_user_sdma_alloc_queues() 148 snprintf(buf, 64, "txreq-kmem-cache-%u-%u-%u", dd->unit, uctxt->ctxt, in hfi1_user_sdma_alloc_queues() 157 uctxt->ctxt); in hfi1_user_sdma_alloc_queues() 213 struct hfi1_ctxtdata *uctxt) in hfi1_user_sdma_free_queues() argument 217 trace_hfi1_sdma_user_free_queues(uctxt->dd, uctxt->ctxt, fd->subctxt); in hfi1_user_sdma_free_queues() 282 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_sdma_process_request() local 301 dd->unit, uctxt->ctxt, fd->subctxt, in hfi1_user_sdma_process_request() [all …]
|
H A D | user_sdma.h | 194 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, 197 struct hfi1_ctxtdata *uctxt);
|
H A D | user_exp_rcv.h | 52 struct hfi1_ctxtdata *uctxt);
|
H A D | hfi.h | 1386 struct hfi1_ctxtdata *uctxt; member 1409 static inline unsigned long uctxt_offset(struct hfi1_ctxtdata *uctxt) in uctxt_offset() argument 1411 return (uctxt->ctxt - uctxt->dd->first_dyn_alloc_ctxt) * in uctxt_offset()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | protection_keys.c | 314 ucontext_t *uctxt = vucontext; in signal_handler() local 331 trapno = uctxt->uc_mcontext.gregs[REG_TRAPNO]; in signal_handler() 332 ip = uctxt->uc_mcontext.gregs[REG_IP_IDX]; in signal_handler() 333 fpregs = (char *) uctxt->uc_mcontext.fpregs; in signal_handler()
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_file_ops.c | 1654 unsigned uctxt; in qib_do_user_init() local 1666 uctxt = rcd->ctxt - dd->first_user_ctxt; in qib_do_user_init() 1667 if (uctxt < dd->ctxts_extrabuf) { in qib_do_user_init() 1669 rcd->pio_base = rcd->piocnt * uctxt; in qib_do_user_init() 1672 rcd->pio_base = rcd->piocnt * uctxt + in qib_do_user_init()
|