Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/hw/hfi1/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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,
H A 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 …]
H A 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);
H A 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()
H A 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()
H A Duser_sdma.c904 psn = val & mask; in set_pkt_bth_psn() local
906 psn = (psn & ~HFI1_KDETH_BTH_SEQ_MASK) | in set_pkt_bth_psn()
907 ((psn + frags) & HFI1_KDETH_BTH_SEQ_MASK); in set_pkt_bth_psn()
909 psn = psn + frags; in set_pkt_bth_psn()
910 return psn & mask; in set_pkt_bth_psn()
H A Dtid_rdma.h79 u32 psn; member
/linux/drivers/infiniband/sw/rdmavt/
H A 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)
H A Dtrace_tx.h57 __field(u32, psn)
77 __entry->psn = wqe->psn;
99 __entry->psn,
/linux/drivers/infiniband/hw/qib/
H A 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 …]
H A 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()
H A Dqib_verbs.h277 void qib_restart_rc(struct rvt_qp *qp, u32 psn, int wait);
/linux/drivers/infiniband/sw/rxe/
H A Drxe_comp.c181 diff = psn_compare(pkt->psn, wqe->last_psn); in check_psn()
195 diff = psn_compare(pkt->psn, qp->comp.psn); in check_psn()
200 if (pkt->psn == wqe->last_psn) in check_psn()
243 if ((pkt->psn == wqe->first_psn && in check_ack()
313 if (psn_compare(pkt->psn, qp->comp.psn) > 0) { in check_ack()
316 qp->comp.psn = pkt->psn; in check_ack()
480 if (qp->attr.sq_draining && qp->comp.psn == qp->req.psn) { in comp_check_sq_drain_done()
517 if (psn_compare(pkt->psn, qp->comp.psn) >= 0) in complete_ack()
528 if (psn_compare(wqe->last_psn, qp->comp.psn) >= 0) { in complete_wqe()
529 qp->comp.psn = (wqe->last_psn + 1) & BTH_PSN_MASK; in complete_wqe()
[all …]
H A Drxe_resp.c73 int diff = psn_compare(pkt->psn, qp->resp.psn); in check_psn()
623 res->first_psn = pkt->psn; in rxe_prepare_res()
624 res->cur_psn = pkt->psn; in rxe_prepare_res()
625 res->last_psn = (pkt->psn + pkts - 1) & BTH_PSN_MASK; in rxe_prepare_res()
631 res->first_psn = pkt->psn; in rxe_prepare_res()
632 res->last_psn = pkt->psn; in rxe_prepare_res()
633 res->cur_psn = pkt->psn; in rxe_prepare_res()
681 qp->resp.psn = (pkt->psn + 1) & BTH_PSN_MASK; in process_flush()
682 qp->resp.ack_psn = qp->resp.psn; in process_flush()
715 qp->resp.psn = (pkt->psn + 1) & BTH_PSN_MASK; in atomic_reply()
[all …]
H A 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()
H A Drxe_verbs.h107 u32 psn; member
120 u32 psn; member
165 u32 psn; member
H A Drxe_recv.c329 pkt->psn = bth_psn(pkt); in rxe_rcv()
/linux/drivers/infiniband/ulp/ipoib/
H A 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/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c1420 req.rq_psn = cpu_to_le32(qp->rq.psn); in bnxt_qplib_modify_qp()
1423 req.sq_psn = cpu_to_le32(qp->sq.psn); in bnxt_qplib_modify_qp()
1529 qp->rq.psn = le32_to_cpu(sb->rq_psn); in bnxt_qplib_query_qp()
1531 qp->sq.psn = le32_to_cpu(sb->sq_psn); in bnxt_qplib_query_qp()
1920 swq->start_psn = sq->psn & BTH_PSN_MASK; in bnxt_qplib_post_send()
1981 sq->psn = (sq->psn + 1) & BTH_PSN_MASK; in bnxt_qplib_post_send()
1993 sq->psn = (sq->psn + pkt_num) & BTH_PSN_MASK; in bnxt_qplib_post_send()
2015 sq->psn = (sq->psn + pkt_num) & BTH_PSN_MASK; in bnxt_qplib_post_send()
2034 sq->psn = (sq->psn + pkt_num) & BTH_PSN_MASK; in bnxt_qplib_post_send()
2103 swq->next_psn = sq->psn & BTH_PSN_MASK; in bnxt_qplib_post_send()
/linux/lib/zstd/common/
H A Dcpu.h146 D(psn, 18)
/linux/include/rdma/
H A Drdmavt_qp.h175 u32 psn; /* first packet sequence number */
293 u32 psn;
424 u32 s_ahgpsn; /* set to the psn in the copy of the header */
174 u32 psn; /* first packet sequence number */ global() member
292 u32 psn; global() member
H A Dib_pack.h200 __be32 psn; member

12