/linux/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 54 u32 aeth = qp->r_msn & IB_MSN_MASK; in rvt_compute_aeth() local 61 aeth |= IB_AETH_CREDIT_INVAL << IB_AETH_CREDIT_SHIFT; in rvt_compute_aeth() 108 aeth |= x << IB_AETH_CREDIT_SHIFT; in rvt_compute_aeth() 110 return cpu_to_be32(aeth); in rvt_compute_aeth() 121 void rvt_get_credit(struct rvt_qp *qp, u32 aeth) in rvt_get_credit() argument 124 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() 142 credit = (aeth + credit_table[credit]) & IB_MSN_MASK; in rvt_get_credit()
|
H A D | qp.c | 2495 static inline unsigned long rvt_aeth_to_usec(u32 aeth) in rvt_aeth_to_usec() argument 2497 return ib_rvt_rnr_table[(aeth >> IB_AETH_CREDIT_SHIFT) & in rvt_aeth_to_usec() 2526 void rvt_add_rnr_timer(struct rvt_qp *qp, u32 aeth) in rvt_add_rnr_timer() argument 2532 to = rvt_aeth_to_usec(aeth); in rvt_add_rnr_timer()
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | trace_rc.h | 79 TP_PROTO(struct rvt_qp *qp, u32 aeth, u32 psn, 81 TP_ARGS(qp, aeth, psn, wqe), 85 __field(u32, aeth) 94 __entry->aeth = aeth; 104 __entry->aeth, 114 TP_PROTO(struct rvt_qp *qp, u32 aeth, u32 psn, 116 TP_ARGS(qp, aeth, psn, wqe)
|
H A D | trace.c | 296 trace_seq_printf(p, AETH_PRN, be32_to_cpu(eh->aeth) >> 24, in parse_everbs_hdrs() 297 parse_syndrome(be32_to_cpu(eh->aeth) >> 24), in parse_everbs_hdrs() 298 be32_to_cpu(eh->aeth) & IB_MSN_MASK); in parse_everbs_hdrs() 315 be32_to_cpu(eh->tid_rdma.w_rsp.aeth) >> 24, in parse_everbs_hdrs() 317 be32_to_cpu(eh->tid_rdma.w_rsp.aeth) in parse_everbs_hdrs() 319 (be32_to_cpu(eh->tid_rdma.w_rsp.aeth) & in parse_everbs_hdrs() 363 be32_to_cpu(eh->tid_rdma.r_rsp.aeth) >> 24, in parse_everbs_hdrs() 365 be32_to_cpu(eh->tid_rdma.r_rsp.aeth) in parse_everbs_hdrs() 367 (be32_to_cpu(eh->tid_rdma.r_rsp.aeth) & in parse_everbs_hdrs() 376 be32_to_cpu(eh->tid_rdma.ack.aeth) >> 24, in parse_everbs_hdrs() [all …]
|
H A D | rc.c | 168 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack() 216 ohdr->u.at.aeth = rvt_compute_aeth(qp); in make_rc_ack() 239 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack() 338 ohdr->u.aeth = in make_rc_ack() 343 ohdr->u.aeth = rvt_compute_aeth(qp); in make_rc_ack() 1185 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IB_MSN_MASK) | in hfi1_make_bth_aeth() 1189 ohdr->u.aeth = rvt_compute_aeth(qp); in hfi1_make_bth_aeth() 1964 int do_rc_ack(struct rvt_qp *qp, u32 aeth, u32 psn, int opcode, in do_rc_ack() argument 1984 if (aeth >> IB_AETH_NAK_SHIFT) in do_rc_ack() 2069 trace_hfi1_rc_ack_do(qp, aeth, psn, wqe); in do_rc_ack() [all …]
|
H A D | rc.h | 54 int do_rc_ack(struct rvt_qp *qp, u32 aeth, u32 psn, int opcode, u64 val,
|
H A D | tid_rdma.c | 2385 resp->aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_read_resp() 2457 u32 opcode, aeth; in hfi1_rc_rcv_tid_rdma_read_resp() local 2465 aeth = be32_to_cpu(ohdr->u.tid_rdma.r_rsp.aeth); in hfi1_rc_rcv_tid_rdma_read_resp() 2536 if (!do_rc_ack(qp, aeth, ipsn, opcode, 0, rcd)) in hfi1_rc_rcv_tid_rdma_read_resp() 3918 ohdr->u.tid_rdma.w_rsp.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_resp() 4048 u32 opcode, aeth, psn, flow_psn, i, tidlen = 0, pktlen; in hfi1_rc_rcv_tid_rdma_write_resp() local 4054 aeth = be32_to_cpu(ohdr->u.tid_rdma.w_rsp.aeth); in hfi1_rc_rcv_tid_rdma_write_resp() 4101 if (!do_rc_ack(qp, aeth, psn, opcode, 0, rcd)) in hfi1_rc_rcv_tid_rdma_write_resp() 4446 ohdr->u.tid_rdma.ack.aeth = rvt_compute_aeth(qp); in hfi1_build_tid_rdma_write_ack() 4449 ohdr->u.tid_rdma.ack.aeth = in hfi1_build_tid_rdma_write_ack() [all …]
|
/linux/include/rdma/ |
H A D | tid_rdma_defs.h | 24 __be32 aeth; member 41 __be32 aeth; member 65 __be32 aeth; member
|
H A D | ib_hdrs.h | 73 __be32 aeth; member 77 __be32 aeth; member
|
H A D | rdmavt_qp.h | 650 void rvt_get_credit(struct rvt_qp *qp, u32 aeth); 876 void rvt_add_rnr_timer(struct rvt_qp *qp, u32 aeth);
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_rc.c | 132 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 141 ohdr->u.at.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 162 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 184 ohdr->u.aeth = in qib_make_rc_ack() 189 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_make_rc_ack() 641 ohdr->u.aeth = cpu_to_be32((qp->r_msn & IB_MSN_MASK) | in qib_send_rc_ack() 645 ohdr->u.aeth = rvt_compute_aeth(qp); in qib_send_rc_ack() 1007 static int do_rc_ack(struct rvt_qp *qp, u32 aeth, u32 psn, int opcode, in do_rc_ack() argument 1024 if (aeth >> IB_AETH_NAK_SHIFT) in do_rc_ack() 1104 switch (aeth >> IB_AETH_NAK_SHIFT) { in do_rc_ack() [all …]
|
/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_hdr.h | 795 struct rxe_aeth *aeth = arg; in __aeth_syn() local 797 return (AETH_SYN_MASK & be32_to_cpu(aeth->smsn)) >> 24; in __aeth_syn() 802 struct rxe_aeth *aeth = arg; in __aeth_set_syn() local 803 u32 smsn = be32_to_cpu(aeth->smsn); in __aeth_set_syn() 805 aeth->smsn = cpu_to_be32((AETH_SYN_MASK & (syn << 24)) | in __aeth_set_syn() 811 struct rxe_aeth *aeth = arg; in __aeth_msn() local 813 return AETH_MSN_MASK & be32_to_cpu(aeth->smsn); in __aeth_msn() 818 struct rxe_aeth *aeth = arg; in __aeth_set_msn() local 819 u32 smsn = be32_to_cpu(aeth->smsn); in __aeth_set_msn() 821 aeth->smsn = cpu_to_be32((AETH_MSN_MASK & msn) | in __aeth_set_msn()
|