Home
last modified time | relevance | path

Searched refs:hfi1_ctxtdata (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dfile_ops.c82 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);
103 struct hfi1_ctxtdata **cd);
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);
[all …]
Dexp_rcv.h192 hfi1_tid_group_to_idx(struct hfi1_ctxtdata *rcd, struct tid_group *grp) in hfi1_tid_group_to_idx()
203 hfi1_idx_to_tid_group(struct hfi1_ctxtdata *rcd, u16 idx) in hfi1_idx_to_tid_group()
208 int hfi1_alloc_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd);
209 void hfi1_free_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd);
210 void hfi1_exp_tid_group_init(struct hfi1_ctxtdata *rcd);
Daspm.c129 void __aspm_ctx_disable(struct hfi1_ctxtdata *rcd) in __aspm_ctx_disable()
172 struct hfi1_ctxtdata *rcd = from_timer(rcd, t, aspm_timer); in aspm_ctx_timer_function()
187 struct hfi1_ctxtdata *rcd; in aspm_disable_all()
209 struct hfi1_ctxtdata *rcd; in aspm_enable_all()
230 static void aspm_ctx_init(struct hfi1_ctxtdata *rcd) in aspm_ctx_init()
241 struct hfi1_ctxtdata *rcd; in aspm_init()
Dexp_rcv.c65 void hfi1_exp_tid_group_init(struct hfi1_ctxtdata *rcd) in hfi1_exp_tid_group_init()
76 int hfi1_alloc_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd) in hfi1_alloc_ctxt_rcv_groups()
113 void hfi1_free_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd) in hfi1_free_ctxt_rcv_groups()
Ddriver.c199 static inline void *get_egrbuf(const struct hfi1_ctxtdata *rcd, u64 rhf, in get_egrbuf()
209 static inline void *hfi1_get_header(struct hfi1_ctxtdata *rcd, in hfi1_get_header()
217 static inline struct ib_header *hfi1_get_msgheader(struct hfi1_ctxtdata *rcd, in hfi1_get_msgheader()
224 *hfi1_get_16B_header(struct hfi1_ctxtdata *rcd, in hfi1_get_16B_header()
250 static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd, in rcv_hdrerr()
411 static inline void init_packet(struct hfi1_ctxtdata *rcd, in init_packet()
536 struct hfi1_ctxtdata *rcd;
547 struct hfi1_ctxtdata *rcd = packet->rcd; in init_ps_mdata()
567 struct hfi1_ctxtdata *rcd) in ps_done()
575 struct hfi1_ctxtdata *rcd) in ps_skip()
[all …]
Dhfi.h209 struct hfi1_ctxtdata { struct
229 int (*do_interrupt)(struct hfi1_ctxtdata *rcd, int threaded); argument
352 static inline u32 rcvhdrq_size(struct hfi1_ctxtdata *rcd) in rcvhdrq_size() argument
369 struct hfi1_ctxtdata *rcd;
1053 struct hfi1_ctxtdata *ctxt[HFI1_NUM_VNIC_CTXT];
1361 struct hfi1_ctxtdata **rcd;
1440 struct hfi1_ctxtdata *uctxt;
1462 static inline unsigned long uctxt_offset(struct hfi1_ctxtdata *uctxt) in uctxt_offset()
1475 void handle_user_interrupt(struct hfi1_ctxtdata *rcd);
1477 int hfi1_create_rcvhdrq(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd);
[all …]
Dtid_rdma.h99 struct hfi1_ctxtdata *rcd;
209 int hfi1_kern_exp_rcv_init(struct hfi1_ctxtdata *rcd, int reinit);
236 int hfi1_kern_setup_hw_flow(struct hfi1_ctxtdata *rcd, struct rvt_qp *qp);
237 void hfi1_kern_clear_hw_flow(struct hfi1_ctxtdata *rcd, struct rvt_qp *qp);
238 void hfi1_kern_init_ctxt_generations(struct hfi1_ctxtdata *rcd);
255 bool hfi1_handle_kdeth_eflags(struct hfi1_ctxtdata *rcd,
Daspm.h63 void __aspm_ctx_disable(struct hfi1_ctxtdata *rcd);
67 static inline void aspm_ctx_disable(struct hfi1_ctxtdata *rcd) in aspm_ctx_disable()
Duser_exp_rcv.c54 static void unlock_exp_tids(struct hfi1_ctxtdata *uctxt,
88 struct hfi1_ctxtdata *uctxt) in hfi1_user_exp_rcv_init()
159 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_exp_rcv_free()
320 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_exp_rcv_setup()
511 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_exp_rcv_clear()
545 struct hfi1_ctxtdata *uctxt = fd->uctxt; in hfi1_user_exp_rcv_invalid()
687 struct hfi1_ctxtdata *uctxt = fd->uctxt; in program_rcvarray()
755 struct hfi1_ctxtdata *uctxt = fd->uctxt; in set_rcvarray_entry()
812 struct hfi1_ctxtdata *uctxt = fd->uctxt; in unprogram_rcvarray()
846 struct hfi1_ctxtdata *uctxt = fd->uctxt; in clear_tid_node()
[all …]
Dinit.c132 struct hfi1_ctxtdata *rcd; in hfi1_create_kctxt()
202 static void hfi1_rcd_init(struct hfi1_ctxtdata *rcd) in hfi1_rcd_init()
215 struct hfi1_ctxtdata *rcd = in hfi1_rcd_free()
216 container_of(kref, struct hfi1_ctxtdata, kref); in hfi1_rcd_free()
233 int hfi1_rcd_put(struct hfi1_ctxtdata *rcd) in hfi1_rcd_put()
250 int hfi1_rcd_get(struct hfi1_ctxtdata *rcd) in hfi1_rcd_get()
266 struct hfi1_ctxtdata *rcd, u16 *index) in allocate_rcd_index()
303 struct hfi1_ctxtdata *hfi1_rcd_get_by_index_safe(struct hfi1_devdata *dd, in hfi1_rcd_get_by_index_safe()
324 struct hfi1_ctxtdata *hfi1_rcd_get_by_index(struct hfi1_devdata *dd, u16 ctxt) in hfi1_rcd_get_by_index()
327 struct hfi1_ctxtdata *rcd = NULL; in hfi1_rcd_get_by_index()
[all …]
Drc.h25 static inline void rc_defered_ack(struct hfi1_ctxtdata *rcd, in rc_defered_ack()
55 struct hfi1_ctxtdata *rcd);
Dchip.h795 void update_usrhead(struct hfi1_ctxtdata *rcd, u32 hd, u32 updegr, u32 egrhd,
804 u32 hdrqempty(struct hfi1_ctxtdata *rcd);
807 bool is_urg_masked(struct hfi1_ctxtdata *rcd);
832 void force_recv_intr(struct hfi1_ctxtdata *rcd);
1417 void hfi1_clear_tids(struct hfi1_ctxtdata *rcd);
1423 struct hfi1_ctxtdata *rcd);
1428 int hfi1_set_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd,
1430 int hfi1_clear_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt);
1431 int hfi1_set_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt,
1433 int hfi1_clear_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt);
Duser_sdma.h245 int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt,
248 struct hfi1_ctxtdata *uctxt);
Dmsix.c203 int msix_request_rcd_irq(struct hfi1_ctxtdata *rcd) in msix_request_rcd_irq()
284 struct hfi1_ctxtdata *rcd = hfi1_rcd_get_by_index_safe(dd, i); in msix_request_irqs()
356 struct hfi1_ctxtdata *rcd = dd->vnic.ctxt[i]; in msix_vnic_synchronize_irq()
Dmsix.h57 int msix_request_rcd_irq(struct hfi1_ctxtdata *rcd);
Dverbs.h68 struct hfi1_ctxtdata;
161 struct hfi1_ctxtdata *rcd; /* QP's receive context */
413 struct hfi1_ctxtdata *rcd,
Duser_exp_rcv.h88 struct hfi1_ctxtdata *uctxt);
Dtid_rdma.c133 struct hfi1_ctxtdata *rcd,
298 int hfi1_kern_exp_rcv_init(struct hfi1_ctxtdata *rcd, int reinit) in hfi1_kern_exp_rcv_init()
319 static struct hfi1_ctxtdata *qp_to_rcd(struct rvt_dev_info *rdi, in qp_to_rcd()
468 static struct rvt_qp *first_qp(struct hfi1_ctxtdata *rcd, in first_qp()
502 static bool kernel_tid_waiters(struct hfi1_ctxtdata *rcd, in kernel_tid_waiters()
533 static void dequeue_tid_waiter(struct hfi1_ctxtdata *rcd, in dequeue_tid_waiter()
559 static void queue_qp_for_tid_wait(struct hfi1_ctxtdata *rcd, in queue_qp_for_tid_wait()
711 static int kern_reserve_flow(struct hfi1_ctxtdata *rcd, int last) in kern_reserve_flow()
730 static void kern_set_hw_flow(struct hfi1_ctxtdata *rcd, u32 generation, in kern_set_hw_flow()
749 static u32 kern_setup_hw_flow(struct hfi1_ctxtdata *rcd, u32 flow_idx) in kern_setup_hw_flow()
[all …]
Dvnic_main.c65 static int setup_vnic_ctxt(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt) in setup_vnic_ctxt()
102 struct hfi1_ctxtdata **vnic_ctxt) in allocate_vnic_ctxt()
104 struct hfi1_ctxtdata *uctxt; in allocate_vnic_ctxt()
133 struct hfi1_ctxtdata *uctxt) in deallocate_vnic_ctxt()
664 struct hfi1_ctxtdata **vnic_ctxt) in hfi1_vnic_allot_ctxt()
Dtrace_ctxts.h62 TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt,
Daffinity.c890 struct hfi1_ctxtdata *rcd = NULL; in get_irq_affinity()
909 rcd = (struct hfi1_ctxtdata *)msix->arg; in get_irq_affinity()
968 struct hfi1_ctxtdata *rcd; in hfi1_put_irq_affinity()
983 rcd = (struct hfi1_ctxtdata *)msix->arg; in hfi1_put_irq_affinity()
Dtrace_rx.h100 TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd),
Dintr.c244 void handle_user_interrupt(struct hfi1_ctxtdata *rcd) in handle_user_interrupt()
Dverbs.c370 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_kdeth_eager_rcv()
424 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_kdeth_expected_rcv()
478 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_do_pkey_check()
498 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_handle_packet()
576 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_ib_rcv()
584 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_16B_rcv()
Drc.c1389 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_send_rc_ack()
1948 static void set_restart_qp(struct rvt_qp *qp, struct hfi1_ctxtdata *rcd) in set_restart_qp()
2008 u64 val, struct hfi1_ctxtdata *rcd) in do_rc_ack()
2307 struct hfi1_ctxtdata *rcd) in rdma_seq_err()
2347 struct hfi1_ctxtdata *rcd = packet->rcd; in rc_rcv_resp()
2554 int diff, struct hfi1_ctxtdata *rcd) in rc_rcv_error()
2807 struct hfi1_ctxtdata *rcd = packet->rcd; in hfi1_rc_rcv()
3252 struct hfi1_ctxtdata *rcd, in hfi1_rc_hdrerr()

12