Home
last modified time | relevance | path

Searched refs:uctxt (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
H A Dfile_ops.c83 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, u1
225 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_file_ioctl() local
353 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_file_mmap() local
621 struct hfi1_ctxtdata *uctxt; hfi1_poll() local
640 struct hfi1_ctxtdata *uctxt = fdata->uctxt; hfi1_file_close() local
789 struct hfi1_ctxtdata *uctxt = NULL; assign_ctxt() local
854 match_ctxt(struct hfi1_filedata *fd, const struct hfi1_user_info *uinfo, struct hfi1_ctxtdata *uctxt) match_ctxt() argument
919 struct hfi1_ctxtdata *uctxt; find_sub_ctxt() local
945 struct hfi1_ctxtdata *uctxt; allocate_ctxt() local
1029 deallocate_ctxt(struct hfi1_ctxtdata *uctxt) deallocate_ctxt() argument
1040 init_subctxts(struct hfi1_ctxtdata *uctxt, const struct hfi1_user_info *uinfo) init_subctxts() argument
1048 setup_subctxt(struct hfi1_ctxtdata *uctxt) setup_subctxt() argument
1084 user_init(struct hfi1_ctxtdata *uctxt) user_init() argument
1140 struct hfi1_ctxtdata *uctxt = fd->uctxt; get_ctxt_info() local
1179 init_user_ctxt(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) init_user_ctxt() argument
1195 setup_base_ctxt(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) setup_base_ctxt() argument
1257 struct hfi1_ctxtdata *uctxt = fd->uctxt; get_base_info() local
1451 struct hfi1_ctxtdata *uctxt = fd->uctxt; poll_urgent() local
1474 struct hfi1_ctxtdata *uctxt = fd->uctxt; poll_next() local
1500 struct hfi1_ctxtdata *uctxt; hfi1_set_uevent_bits() local
1538 manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt, unsigned long arg) manage_rcvq() argument
1578 user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, unsigned long arg) user_event_ack() argument
1602 set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg) set_ctxt_pkey() argument
1629 ctxt_reset(struct hfi1_ctxtdata *uctxt) ctxt_reset() argument
[all...]
H A Duser_exp_rcv.c55 static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt,
94 struct hfi1_ctxtdata *uctxt) in hfi1_user_exp_rcv_init()
98 fd->entry_to_rb = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init()
104 if (!HFI1_CAP_UGET_MASK(uctxt->flags, TID_UNMAP)) { in hfi1_user_exp_rcv_init()
106 fd->invalid_tids = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init()
131 if (uctxt->subctxt_cnt && fd->use_mn) { in hfi1_user_exp_rcv_init()
134 fd->tid_limit = uctxt->expected_count / uctxt->subctxt_cnt; in hfi1_user_exp_rcv_init()
135 remainder = uctxt->expected_count % uctxt in hfi1_user_exp_rcv_init()
93 hfi1_user_exp_rcv_init(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) hfi1_user_exp_rcv_init() argument
148 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_free() local
293 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_setup() local
532 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_clear() local
566 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_invalid() local
708 struct hfi1_ctxtdata *uctxt = fd->uctxt; program_rcvarray() local
776 struct hfi1_ctxtdata *uctxt = fd->uctxt; set_rcvarray_entry() local
839 struct hfi1_ctxtdata *uctxt = fd->uctxt; unprogram_rcvarray() local
869 struct hfi1_ctxtdata *uctxt = fd->uctxt; __clear_tid_node() local
892 struct hfi1_ctxtdata *uctxt = fd->uctxt; clear_tid_node() local
912 unlock_exp_tids(struct hfi1_ctxtdata *uctxt, struct exp_tid_set *set, struct hfi1_filedata *fd) unlock_exp_tids() argument
948 struct hfi1_ctxtdata *uctxt = fdata->uctxt; tid_rb_invalidate() local
[all...]
H A Dnetdev_rx.c21 struct hfi1_ctxtdata *uctxt) in hfi1_netdev_setup_ctxt()
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 in hfi1_netdev_setup_ctxt()
20 hfi1_netdev_setup_ctxt(struct hfi1_netdev_priv *priv, struct hfi1_ctxtdata *uctxt) hfi1_netdev_setup_ctxt() argument
61 struct hfi1_ctxtdata *uctxt; hfi1_netdev_allocate_ctxt() local
91 hfi1_netdev_deallocate_ctxt(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt) hfi1_netdev_deallocate_ctxt() argument
[all...]
H A Dtrace_ctxts.h62 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
[all...]
H A Duser_sdma.c163 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, in hfi1_user_sdma_alloc_queues() argument
172 if (!uctxt || !fd) in hfi1_user_sdma_alloc_queues()
178 dd = uctxt->dd; in hfi1_user_sdma_alloc_queues()
184 pq->ctxt = uctxt->ctxt; in hfi1_user_sdma_alloc_queues()
205 snprintf(buf, 64, "txreq-kmem-cache-%u-%u-%u", dd->unit, uctxt->ctxt, in hfi1_user_sdma_alloc_queues()
214 uctxt->ctxt); in hfi1_user_sdma_alloc_queues()
273 struct hfi1_ctxtdata *uctxt) in hfi1_user_sdma_free_queues()
277 trace_hfi1_sdma_user_free_queues(uctxt->dd, uctxt->ctxt, fd->subctxt); in hfi1_user_sdma_free_queues()
343 struct hfi1_ctxtdata *uctxt in hfi1_user_sdma_process_request() local
272 hfi1_user_sdma_free_queues(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) hfi1_user_sdma_free_queues() argument
[all...]
H A Duser_sdma.h240 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt,
243 struct hfi1_ctxtdata *uctxt);
H A Duser_exp_rcv.h93 struct hfi1_ctxtdata *uctxt);
H A Dhfi.h1438 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()
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
H A Dfile_ops.c42 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, u1
184 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_file_ioctl() local
321 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_file_mmap() local
611 struct hfi1_ctxtdata *uctxt; hfi1_poll() local
630 struct hfi1_ctxtdata *uctxt = fdata->uctxt; hfi1_file_close() local
779 struct hfi1_ctxtdata *uctxt = NULL; assign_ctxt() local
844 match_ctxt(struct hfi1_filedata *fd, const struct hfi1_user_info *uinfo, struct hfi1_ctxtdata *uctxt) match_ctxt() argument
909 struct hfi1_ctxtdata *uctxt; find_sub_ctxt() local
935 struct hfi1_ctxtdata *uctxt; allocate_ctxt() local
1019 deallocate_ctxt(struct hfi1_ctxtdata *uctxt) deallocate_ctxt() argument
1030 init_subctxts(struct hfi1_ctxtdata *uctxt, const struct hfi1_user_info *uinfo) init_subctxts() argument
1038 setup_subctxt(struct hfi1_ctxtdata *uctxt) setup_subctxt() argument
1074 user_init(struct hfi1_ctxtdata *uctxt) user_init() argument
1130 struct hfi1_ctxtdata *uctxt = fd->uctxt; get_ctxt_info() local
1169 init_user_ctxt(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) init_user_ctxt() argument
1185 setup_base_ctxt(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) setup_base_ctxt() argument
1247 struct hfi1_ctxtdata *uctxt = fd->uctxt; get_base_info() local
1441 struct hfi1_ctxtdata *uctxt = fd->uctxt; poll_urgent() local
1464 struct hfi1_ctxtdata *uctxt = fd->uctxt; poll_next() local
1490 struct hfi1_ctxtdata *uctxt; hfi1_set_uevent_bits() local
1528 manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt, unsigned long arg) manage_rcvq() argument
1568 user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, unsigned long arg) user_event_ack() argument
1592 set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg) set_ctxt_pkey() argument
1619 ctxt_reset(struct hfi1_ctxtdata *uctxt) ctxt_reset() argument
[all...]
H A Duser_exp_rcv.c13 static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt,
51 struct hfi1_ctxtdata *uctxt) in hfi1_user_exp_rcv_init()
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 in hfi1_user_exp_rcv_init()
50 hfi1_user_exp_rcv_init(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) hfi1_user_exp_rcv_init() argument
105 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_free() local
250 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_setup() local
487 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_clear() local
521 struct hfi1_ctxtdata *uctxt = fd->uctxt; hfi1_user_exp_rcv_invalid() local
661 struct hfi1_ctxtdata *uctxt = fd->uctxt; program_rcvarray() local
729 struct hfi1_ctxtdata *uctxt = fd->uctxt; set_rcvarray_entry() local
790 struct hfi1_ctxtdata *uctxt = fd->uctxt; unprogram_rcvarray() local
820 struct hfi1_ctxtdata *uctxt = fd->uctxt; __clear_tid_node() local
843 struct hfi1_ctxtdata *uctxt = fd->uctxt; clear_tid_node() local
863 unlock_exp_tids(struct hfi1_ctxtdata *uctxt, struct exp_tid_set *set, struct hfi1_filedata *fd) unlock_exp_tids() argument
899 struct hfi1_ctxtdata *uctxt = fdata->uctxt; tid_rb_invalidate() local
[all...]
H A Dnetdev_rx.c21 struct hfi1_ctxtdata *uctxt) in hfi1_netdev_setup_ctxt()
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 in hfi1_netdev_setup_ctxt()
20 hfi1_netdev_setup_ctxt(struct hfi1_netdev_rx *rx, struct hfi1_ctxtdata *uctxt) hfi1_netdev_setup_ctxt() argument
61 struct hfi1_ctxtdata *uctxt; hfi1_netdev_allocate_ctxt() local
91 hfi1_netdev_deallocate_ctxt(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt) hfi1_netdev_deallocate_ctxt() argument
[all...]
H A Dtrace_ctxts.h21 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
[all...]
H A Duser_sdma.c106 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()
217 trace_hfi1_sdma_user_free_queues(uctxt->dd, uctxt->ctxt, fd->subctxt); in hfi1_user_sdma_free_queues()
282 struct hfi1_ctxtdata *uctxt in hfi1_user_sdma_process_request() local
212 hfi1_user_sdma_free_queues(struct hfi1_filedata *fd, struct hfi1_ctxtdata *uctxt) hfi1_user_sdma_free_queues() argument
[all...]
H A Duser_sdma.h194 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt,
197 struct hfi1_ctxtdata *uctxt);
H A Duser_exp_rcv.h52 struct hfi1_ctxtdata *uctxt);
H A Dhfi.h1386 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()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dprotection_keys.c322 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()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dprotection_keys.c314 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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c1655 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()
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c1654 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()

Completed in 26 milliseconds