Home
last modified time | relevance | path

Searched refs:psn (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dtrace_rc.h18 TP_PROTO(struct rvt_qp *qp, u32 psn),
19 TP_ARGS(qp, psn),
24 __field(u32, psn)
35 __entry->psn = psn;
47 __entry->psn,
57 TP_PROTO(struct rvt_qp *qp, u32 psn),
58 TP_ARGS(qp, psn)
62 TP_PROTO(struct rvt_qp *qp, u32 psn),
63 TP_ARGS(qp, psn)
67 TP_PROTO(struct rvt_qp *qp, u32 psn),
[all …]
Dtrace_tid.h744 TP_PROTO(struct rvt_qp *qp, u32 psn),
745 TP_ARGS(qp, psn),
751 __field(u32, psn)
772 __entry->psn = psn;
791 __entry->psn,
808 TP_PROTO(struct rvt_qp *qp, u32 psn),
809 TP_ARGS(qp, psn)
814 TP_PROTO(struct rvt_qp *qp, u32 psn),
815 TP_ARGS(qp, psn)
820 TP_PROTO(struct rvt_qp *qp, u32 psn),
[all …]
Drc.c16 struct rvt_ack_entry *find_prev_entry(struct rvt_qp *qp, u32 psn, u8 *prev, in find_prev_entry() argument
40 if (cmp_psn(psn, e->psn) >= 0) { in find_prev_entry()
42 cmp_psn(psn, e->lpsn) <= 0) in find_prev_entry()
120 trace_hfi1_rsp_make_rc_ack(qp, e->psn); in make_rc_ack()
170 qp->s_ack_rdma_psn = e->psn; in make_rc_ack()
185 qp->s_ack_rdma_psn = mask_psn(e->psn + req->cur_seg); in make_rc_ack()
219 bth2 = mask_psn(e->psn); in make_rc_ack()
295 trace_hfi1_tid_req_make_rc_ack_write(qp, 0, e->opcode, e->psn, in make_rc_ack()
533 qp->s_psn = wqe->psn; in hfi1_make_rc_req()
710 req->comp_seg = delta_psn(bth2, wqe->psn); in hfi1_make_rc_req()
[all …]
Drc.h36 u32 psn, u32 pmtu) in restart_sge() argument
40 len = delta_psn(psn, wqe->psn) * pmtu; in restart_sge()
52 struct rvt_ack_entry *find_prev_entry(struct rvt_qp *qp, u32 psn, u8 *prev,
54 int do_rc_ack(struct rvt_qp *qp, u32 aeth, u32 psn, int opcode, u64 val,
Dtid_rdma.c130 struct rvt_qp *qp, u32 psn, int diff, bool fecn);
349 qpriv->flow_state.psn = 0; in hfi1_qp_priv_init()
806 fs->psn = 0; in hfi1_kern_setup_hw_flow()
833 fs->psn = 0; in hfi1_kern_clear_hw_flow()
1522 flow->flow_state.spsn = qpriv->flow_state.psn; in hfi1_kern_exp_rcv_setup()
1526 qpriv->flow_state.psn += flow->npkts; in hfi1_kern_exp_rcv_setup()
1682 u32 psn, u16 *fidx) in find_flow_ib() argument
1692 if (cmp_psn(psn, flow->flow_state.ib_spsn) >= 0 && in find_flow_ib()
1693 cmp_psn(psn, flow->flow_state.ib_lpsn) <= 0) { in find_flow_ib()
1800 trace_hfi1_tid_req_build_read_req(qp, 0, wqe->wr.opcode, wqe->psn, in hfi1_build_tid_rdma_read_req()
[all …]
Dtrace_ibhdrs.h77 u16 *pkey, u32 *psn, u32 *qpn);
84 u32 *psn, u32 *qpn);
100 u8 tver, u16 pkey, u32 psn, u32 qpn,
142 __field(u32, psn)
184 &__entry->psn,
208 &__entry->psn,
255 __entry->psn,
301 __field(u32, psn)
349 &__entry->psn,
376 &__entry->psn,
[all …]
Dverbs.h347 static inline u32 __full_flow_psn(struct flow_state *state, u32 psn) in __full_flow_psn() argument
350 (psn & HFI1_KDETH_BTH_SEQ_MASK)); in __full_flow_psn()
353 static inline u32 full_flow_psn(struct tid_rdma_flow *flow, u32 psn) in full_flow_psn() argument
355 return __full_flow_psn(&flow->flow_state, psn); in full_flow_psn()
390 void hfi1_restart_rc(struct rvt_qp *qp, u32 psn, int wait);
Dtrace.c120 u16 *pkey, u32 *psn, u32 *qpn) in hfi1_trace_parse_9b_bth() argument
131 *psn = mask_psn(ib_bth_get_psn(ohdr)); in hfi1_trace_parse_9b_bth()
138 u32 *psn, u32 *qpn) in hfi1_trace_parse_16b_bth() argument
146 *psn = mask_psn(ib_bth_get_psn(ohdr)); in hfi1_trace_parse_16b_bth()
224 u8 tver, u16 pkey, u32 psn, u32 qpn, in hfi1_trace_fmt_rest() argument
236 se, mig, pad, tver, qpn, ack, psn); in hfi1_trace_fmt_rest()
242 qpn, ack, psn); in hfi1_trace_fmt_rest()
Duc.c111 qp->s_psn = wqe->psn; in hfi1_make_uc_req()
268 u32 psn; in hfi1_uc_rcv() local
281 psn = ib_bth_get_psn(ohdr); in hfi1_uc_rcv()
283 if (unlikely(cmp_psn(psn, qp->r_psn) != 0)) { in hfi1_uc_rcv()
288 qp->r_psn = psn; in hfi1_uc_rcv()
Duser_sdma.c1111 psn = val & mask; in set_pkt_bth_psn() local
1113 psn = (psn & ~HFI1_KDETH_BTH_SEQ_MASK) | in set_pkt_bth_psn()
1114 ((psn + frags) & HFI1_KDETH_BTH_SEQ_MASK); in set_pkt_bth_psn()
1116 psn = psn + frags; in set_pkt_bth_psn()
1117 return psn & mask; in set_pkt_bth_psn()
/linux-6.1.9/drivers/infiniband/sw/rdmavt/
Dtrace_rc.h18 TP_PROTO(struct rvt_qp *qp, u32 psn),
19 TP_ARGS(qp, psn),
24 __field(u32, psn)
35 __entry->psn = psn;
47 __entry->psn,
57 TP_PROTO(struct rvt_qp *qp, u32 psn),
58 TP_ARGS(qp, psn)
Dtrace_tx.h57 __field(u32, psn)
77 __entry->psn = wqe->psn;
99 __entry->psn,
/linux-6.1.9/drivers/infiniband/hw/qib/
Dqib_rc.c43 u32 psn, u32 pmtu) in restart_sge() argument
47 len = ((psn - wqe->psn) & QIB_PSN_MASK) * pmtu; in restart_sge()
134 qp->s_ack_rdma_psn = e->psn; in qib_make_rc_ack()
144 bth2 = e->psn & QIB_PSN_MASK; in qib_make_rc_ack()
303 qp->s_psn = wqe->psn; in qib_make_rc_req()
552 len = ((qp->s_psn - wqe->psn) & QIB_PSN_MASK) * pmtu; in qib_make_rc_req()
570 delta = (((int) bth2 - (int) wqe->psn) << 8) >> 8; in qib_make_rc_req()
736 static void reset_psn(struct rvt_qp *qp, u32 psn) in reset_psn() argument
748 if (qib_cmp24(psn, wqe->psn) <= 0) { in reset_psn()
763 diff = qib_cmp24(psn, wqe->psn); in reset_psn()
[all …]
Dqib_uc.c98 qp->s_psn = wqe->psn; in qib_make_uc_req()
244 u32 psn; in qib_uc_rcv() local
264 psn = be32_to_cpu(ohdr->bth[2]); in qib_uc_rcv()
268 if (unlikely(qib_cmp24(psn, qp->r_psn) != 0)) { in qib_uc_rcv()
273 qp->r_psn = psn; in qib_uc_rcv()
Dqib_driver.c313 u32 psn; in qib_rcv_hdrerr() local
344 psn = be32_to_cpu(ohdr->bth[2]); in qib_rcv_hdrerr()
385 diff = qib_cmp24(psn, qp->r_psn); in qib_rcv_hdrerr()
/linux-6.1.9/drivers/infiniband/sw/rxe/
Drxe_comp.c182 diff = psn_compare(pkt->psn, wqe->last_psn); in check_psn()
196 diff = psn_compare(pkt->psn, qp->comp.psn); in check_psn()
201 if (pkt->psn == wqe->last_psn) in check_psn()
236 if ((pkt->psn == wqe->first_psn && in check_ack()
302 if (psn_compare(pkt->psn, qp->comp.psn) > 0) { in check_ack()
305 qp->comp.psn = pkt->psn; in check_ack()
477 (qp->comp.psn == qp->req.psn)) { in complete_ack()
497 if (psn_compare(pkt->psn, qp->comp.psn) >= 0) in complete_ack()
508 if (psn_compare(wqe->last_psn, qp->comp.psn) >= 0) { in complete_wqe()
509 qp->comp.psn = (wqe->last_psn + 1) & BTH_PSN_MASK; in complete_wqe()
[all …]
Drxe_resp.c125 int diff = psn_compare(pkt->psn, qp->resp.psn); in check_psn()
579 res->first_psn = pkt->psn; in rxe_prepare_res()
580 res->cur_psn = pkt->psn; in rxe_prepare_res()
581 res->last_psn = (pkt->psn + pkts - 1) & BTH_PSN_MASK; in rxe_prepare_res()
586 res->first_psn = pkt->psn; in rxe_prepare_res()
587 res->last_psn = pkt->psn; in rxe_prepare_res()
588 res->cur_psn = pkt->psn; in rxe_prepare_res()
643 qp->resp.psn = (pkt->psn + 1) & BTH_PSN_MASK; in atomic_reply()
644 qp->resp.ack_psn = qp->resp.psn; in atomic_reply()
659 u32 psn, in prepare_ack_packet() argument
[all …]
Drxe_req.c53 qp->req.psn = qp->comp.psn; in req_retry()
83 npsn = (qp->comp.psn - wqe->first_psn) & in req_retry()
420 ack_req, pkt->psn); in init_req_packet()
517 wqe->first_psn = qp->req.psn; in update_wqe_psn()
518 wqe->last_psn = (qp->req.psn + num_pkt - 1) & BTH_PSN_MASK; in update_wqe_psn()
522 qp->req.psn = (wqe->first_psn + num_pkt) & BTH_PSN_MASK; in update_wqe_psn()
524 qp->req.psn = (qp->req.psn + 1) & BTH_PSN_MASK; in update_wqe_psn()
535 *rollback_psn = qp->req.psn; in save_state()
546 qp->req.psn = rollback_psn; in rollback_state()
692 psn_compare(qp->req.psn, (qp->comp.psn + in rxe_requester()
[all …]
Drxe_hdr.h20 u32 psn; /* bth psn of packet */ member
271 static inline void __bth_set_psn(void *arg, u32 psn) in __bth_set_psn() argument
276 bth->apsn = cpu_to_be32((BTH_PSN_MASK & psn) | in __bth_set_psn()
400 static inline void bth_set_psn(struct rxe_pkt_info *pkt, u32 psn) in bth_set_psn() argument
402 __bth_set_psn(pkt->hdr, psn); in bth_set_psn()
407 u32 psn) in bth_init() argument
419 psn &= BTH_PSN_MASK; in bth_init()
421 psn |= BTH_ACK_MASK; in bth_init()
422 bth->apsn = cpu_to_be32(psn); in bth_init()
Drxe_verbs.h119 u32 psn; member
133 u32 psn; member
174 u32 psn; member
Drxe_qp.c660 qp->resp.psn = qp->attr.rq_psn; in rxe_qp_from_attr()
662 qp->resp.psn); in rxe_qp_from_attr()
673 qp->req.psn = qp->attr.sq_psn; in rxe_qp_from_attr()
674 qp->comp.psn = qp->attr.sq_psn; in rxe_qp_from_attr()
675 pr_debug("qp#%d set req psn = 0x%x\n", qp_num(qp), qp->req.psn); in rxe_qp_from_attr()
736 attr->rq_psn = qp->resp.psn; in rxe_qp_to_attr()
737 attr->sq_psn = qp->req.psn; in rxe_qp_to_attr()
/linux-6.1.9/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c275 unsigned int psn) in ipoib_cm_modify_rx_qp() argument
298 qp_attr.rq_psn = psn; in ipoib_cm_modify_rx_qp()
423 unsigned int psn) in ipoib_cm_send_rep() argument
438 rep.starting_psn = psn; in ipoib_cm_send_rep()
448 unsigned int psn; in ipoib_cm_req_handler() local
468 psn = get_random_u32() & 0xffffff; in ipoib_cm_req_handler()
469 ret = ipoib_cm_modify_rx_qp(dev, cm_id, p->qp, psn); in ipoib_cm_req_handler()
489 ret = ipoib_cm_send_rep(dev, cm_id, p->qp, &event->param.req_rcvd, psn); in ipoib_cm_req_handler()
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c1304 req.rq_psn = cpu_to_le32(qp->rq.psn); in bnxt_qplib_modify_qp()
1307 req.sq_psn = cpu_to_le32(qp->sq.psn); in bnxt_qplib_modify_qp()
1400 qp->rq.psn = le32_to_cpu(sb->rq_psn); in bnxt_qplib_query_qp()
1402 qp->sq.psn = le32_to_cpu(sb->sq_psn); in bnxt_qplib_query_qp()
1746 swq->start_psn = sq->psn & BTH_PSN_MASK; in bnxt_qplib_post_send()
1805 sq->psn = (sq->psn + 1) & BTH_PSN_MASK; in bnxt_qplib_post_send()
1816 sq->psn = (sq->psn + pkt_num) & BTH_PSN_MASK; in bnxt_qplib_post_send()
1838 sq->psn = (sq->psn + pkt_num) & BTH_PSN_MASK; in bnxt_qplib_post_send()
1857 sq->psn = (sq->psn + pkt_num) & BTH_PSN_MASK; in bnxt_qplib_post_send()
1923 swq->next_psn = sq->psn & BTH_PSN_MASK; in bnxt_qplib_post_send()
/linux-6.1.9/lib/zstd/common/
Dcpu.h146 D(psn, 18)
/linux-6.1.9/include/rdma/
Dib_pack.h195 __be32 psn; member

12