/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | file_ops.c | 82 static void init_subctxts(struct hfi1_ctxtdata *uctxt, 85 struct hfi1_ctxtdata *uctxt); 86 static void user_init(struct hfi1_ctxtdata *uctxt); 96 struct hfi1_ctxtdata *uctxt); 97 static int setup_subctxt(struct hfi1_ctxtdata *uctxt); 104 static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt); 107 static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, 109 static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg); 110 static int ctxt_reset(struct hfi1_ctxtdata *uctxt); 111 static int manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt, [all …]
|
D | user_exp_rcv.c | 54 static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt, 88 struct hfi1_ctxtdata *uctxt) in hfi1_user_exp_rcv_init() argument 90 struct hfi1_devdata *dd = uctxt->dd; in hfi1_user_exp_rcv_init() 96 fd->entry_to_rb = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 102 if (!HFI1_CAP_UGET_MASK(uctxt->flags, TID_UNMAP)) { in hfi1_user_exp_rcv_init() 104 fd->invalid_tids = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 142 if (uctxt->subctxt_cnt && fd->handler) { in hfi1_user_exp_rcv_init() 145 fd->tid_limit = uctxt->expected_count / uctxt->subctxt_cnt; in hfi1_user_exp_rcv_init() 146 remainder = uctxt->expected_count % uctxt->subctxt_cnt; in hfi1_user_exp_rcv_init() 150 fd->tid_limit = uctxt->expected_count; in hfi1_user_exp_rcv_init() [all …]
|
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 = uctxt->rcvhdrq_cnt; 84 __entry->rcvhdrq_dma = uctxt->rcvhdrq_dma; 85 __entry->eager_cnt = uctxt->egrbufs.alloced; 86 __entry->rcvegr_dma = uctxt->egrbufs.rcvtids[0].dma; [all …]
|
D | vnic_main.c | 65 static int setup_vnic_ctxt(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt) in setup_vnic_ctxt() argument 70 uctxt->do_interrupt = &handle_receive_interrupt; in setup_vnic_ctxt() 73 ret = hfi1_create_rcvhdrq(dd, uctxt); in setup_vnic_ctxt() 77 ret = hfi1_setup_eagerbufs(uctxt); in setup_vnic_ctxt() 81 if (uctxt->rcvhdrtail_kvaddr) in setup_vnic_ctxt() 82 clear_rcvhdrtail(uctxt); in setup_vnic_ctxt() 87 if (!HFI1_CAP_KGET_MASK(uctxt->flags, MULTI_PKT_EGR)) in setup_vnic_ctxt() 89 if (HFI1_CAP_KGET_MASK(uctxt->flags, NODROP_EGR_FULL)) in setup_vnic_ctxt() 91 if (HFI1_CAP_KGET_MASK(uctxt->flags, NODROP_RHQ_FULL)) in setup_vnic_ctxt() 93 if (HFI1_CAP_KGET_MASK(uctxt->flags, DMA_RTAIL)) in setup_vnic_ctxt() [all …]
|
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() 187 pq->ctxt = uctxt->ctxt; in hfi1_user_sdma_alloc_queues() 212 snprintf(buf, 64, "txreq-kmem-cache-%u-%u-%u", dd->unit, uctxt->ctxt, in hfi1_user_sdma_alloc_queues() 221 uctxt->ctxt); in hfi1_user_sdma_alloc_queues() 265 struct hfi1_ctxtdata *uctxt) in hfi1_user_sdma_free_queues() argument 269 trace_hfi1_sdma_user_free_queues(uctxt->dd, uctxt->ctxt, fd->subctxt); in hfi1_user_sdma_free_queues() 320 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_sdma_process_request() local 339 dd->unit, uctxt->ctxt, fd->subctxt, in hfi1_user_sdma_process_request() [all …]
|
D | user_sdma.h | 254 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, 257 struct hfi1_ctxtdata *uctxt);
|
D | user_exp_rcv.h | 89 struct hfi1_ctxtdata *uctxt);
|
D | hfi.h | 1378 struct hfi1_ctxtdata *uctxt; member 1401 static inline unsigned long uctxt_offset(struct hfi1_ctxtdata *uctxt) in uctxt_offset() argument 1403 return (uctxt->ctxt - uctxt->dd->first_dyn_alloc_ctxt) * in uctxt_offset()
|
/Linux-v4.19/tools/testing/selftests/x86/ |
D | mpx-mini-test.c | 212 static uint64_t read_mpx_status_sig(ucontext_t *uctxt) in read_mpx_status_sig() argument 216 (uint8_t *)uctxt->uc_mcontext.fpregs + XSAVE_OFFSET_IN_FPMEM, in read_mpx_status_sig() 410 ucontext_t *uctxt = vucontext; in handler() local 416 trapno = uctxt->uc_mcontext.gregs[REG_TRAPNO]; in handler() 417 ip = uctxt->uc_mcontext.gregs[REG_IP_IDX]; in handler() 421 uint64_t status = read_mpx_status_sig(uctxt); in handler() 453 uctxt->uc_mcontext.gregs[REG_IP_IDX] = in handler() 465 uctxt->uc_mcontext.gregs[REG_IP_IDX] = in handler() 474 eprintf("REG_ERR: %lx\n", (unsigned long)uctxt->uc_mcontext.gregs[REG_ERR]); in handler() 479 eprintf("REG_ERR: %lx\n", (unsigned long)uctxt->uc_mcontext.gregs[REG_ERR]); in handler()
|
D | protection_keys.c | 262 ucontext_t *uctxt = vucontext; in signal_handler() local 277 trapno = uctxt->uc_mcontext.gregs[REG_TRAPNO]; in signal_handler() 278 ip = uctxt->uc_mcontext.gregs[REG_IP_IDX]; in signal_handler() 279 fpregset = uctxt->uc_mcontext.fpregs; in signal_handler()
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 1656 unsigned uctxt; in qib_do_user_init() local 1668 uctxt = rcd->ctxt - dd->first_user_ctxt; in qib_do_user_init() 1669 if (uctxt < dd->ctxts_extrabuf) { in qib_do_user_init() 1671 rcd->pio_base = rcd->piocnt * uctxt; in qib_do_user_init() 1674 rcd->pio_base = rcd->piocnt * uctxt + in qib_do_user_init()
|