Searched refs:uctxt (Results 1 – 10 of 10) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/ |
| H A D | file_ops.c | 83 static void init_subctxts(struct hfi1_ctxtdata *uctxt, 86 struct hfi1_ctxtdata *uctxt); 87 static void user_init(struct hfi1_ctxtdata *uctxt); 97 struct hfi1_ctxtdata *uctxt); 98 static int setup_subctxt(struct hfi1_ctxtdata *uctxt); 105 static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt); 108 static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, 110 static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg); 111 static int ctxt_reset(struct hfi1_ctxtdata *uctxt); 112 static int manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt, [all …]
|
| H A D | user_exp_rcv.c | 55 static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt, 87 struct hfi1_ctxtdata *uctxt) in hfi1_user_exp_rcv_init() argument 91 fd->entry_to_rb = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 97 if (!HFI1_CAP_UGET_MASK(uctxt->flags, TID_UNMAP)) { in hfi1_user_exp_rcv_init() 99 fd->invalid_tids = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 124 if (uctxt->subctxt_cnt && fd->use_mn) { in hfi1_user_exp_rcv_init() 127 fd->tid_limit = uctxt->expected_count / uctxt->subctxt_cnt; in hfi1_user_exp_rcv_init() 128 remainder = uctxt->expected_count % uctxt->subctxt_cnt; in hfi1_user_exp_rcv_init() 132 fd->tid_limit = uctxt->expected_count; in hfi1_user_exp_rcv_init() 141 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 | 62 TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt, 64 TP_ARGS(dd, uctxt, subctxt), 78 __entry->ctxt = uctxt->ctxt; 80 __entry->credits = uctxt->sc->credits; 81 __entry->hw_free = le64_to_cpu(*uctxt->sc->hw_free); 82 __entry->piobase = uctxt->sc->base_addr; 83 __entry->rcvhdrq_cnt = get_hdrq_cnt(uctxt); 84 __entry->rcvhdrq_dma = uctxt->rcvhdrq_dma; 85 __entry->eager_cnt = uctxt->egrbufs.alloced; 86 __entry->rcvegr_dma = uctxt->egrbufs.rcvtids[0].dma; [all …]
|
| H A D | user_sdma.c | 165 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, in hfi1_user_sdma_alloc_queues() argument 174 if (!uctxt || !fd) in hfi1_user_sdma_alloc_queues() 180 dd = uctxt->dd; in hfi1_user_sdma_alloc_queues() 186 pq->ctxt = uctxt->ctxt; in hfi1_user_sdma_alloc_queues() 209 snprintf(buf, 64, "txreq-kmem-cache-%u-%u-%u", dd->unit, uctxt->ctxt, in hfi1_user_sdma_alloc_queues() 218 uctxt->ctxt); in hfi1_user_sdma_alloc_queues() 277 struct hfi1_ctxtdata *uctxt) in hfi1_user_sdma_free_queues() argument 281 trace_hfi1_sdma_user_free_queues(uctxt->dd, uctxt->ctxt, fd->subctxt); in hfi1_user_sdma_free_queues() 347 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_sdma_process_request() local 366 dd->unit, uctxt->ctxt, fd->subctxt, in hfi1_user_sdma_process_request() [all …]
|
| H A D | user_sdma.h | 245 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, 248 struct hfi1_ctxtdata *uctxt);
|
| H A D | user_exp_rcv.h | 90 struct hfi1_ctxtdata *uctxt);
|
| H A D | hfi.h | 1438 struct hfi1_ctxtdata *uctxt; member 1461 static inline unsigned long uctxt_offset(struct hfi1_ctxtdata *uctxt) in uctxt_offset() argument 1463 return (uctxt->ctxt - uctxt->dd->first_dyn_alloc_ctxt) * in uctxt_offset()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/vm/ |
| H A D | protection_keys.c | 322 ucontext_t *uctxt = vucontext; in signal_handler() local 339 trapno = uctxt->uc_mcontext.gregs[REG_TRAPNO]; in signal_handler() 340 ip = uctxt->uc_mcontext.gregs[REG_IP_IDX]; in signal_handler() 341 fpregs = (char *) uctxt->uc_mcontext.fpregs; in signal_handler()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/qib/ |
| H A D | qib_file_ops.c | 1655 unsigned uctxt; in qib_do_user_init() local 1667 uctxt = rcd->ctxt - dd->first_user_ctxt; in qib_do_user_init() 1668 if (uctxt < dd->ctxts_extrabuf) { in qib_do_user_init() 1670 rcd->pio_base = rcd->piocnt * uctxt; in qib_do_user_init() 1673 rcd->pio_base = rcd->piocnt * uctxt + in qib_do_user_init()
|