Lines Matching defs:packet

99  * make_rc_ack - construct a response packet (ACK, NAK, or RDMA read)
103 * @ps: the xmit packet state
306 * 5.2 Build TID RDMA WRITE RESP packet
422 * hfi1_make_rc_req - construct a request packet (SEND, RDMA r/w, ATOMIC)
940 * last packet constructed for new requests and therefore
985 * last packet constructed for new requests and therefore
1025 * last packet constructed for new requests and therefore
1237 static inline void hfi1_queue_rc_ack(struct hfi1_packet *packet, bool is_fecn)
1239 struct rvt_qp *qp = packet->qp;
1246 ibp = rcd_to_iport(packet->rcd);
1260 static inline void hfi1_make_rc_ack_9B(struct hfi1_packet *packet,
1266 struct rvt_qp *qp = packet->qp;
1267 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
1313 static inline void hfi1_make_rc_ack_16B(struct hfi1_packet *packet,
1319 struct rvt_qp *qp = packet->qp;
1320 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
1366 typedef void (*hfi1_make_rc_ack)(struct hfi1_packet *packet,
1379 * hfi1_send_rc_ack - Construct an ACK packet and send it
1386 void hfi1_send_rc_ack(struct hfi1_packet *packet, bool is_fecn)
1388 struct hfi1_ctxtdata *rcd = packet->rcd;
1389 struct rvt_qp *qp = packet->qp;
1406 hfi1_queue_rc_ack(packet, is_fecn);
1412 hfi1_queue_rc_ack(packet, is_fecn);
1421 hfi1_make_rc_ack_tbl[priv->hdr_type](packet, &opa_hdr, sc5, is_fecn,
1435 hfi1_queue_rc_ack(packet, is_fecn);
1452 * @psn: the packet sequence number to restart at
1494 * @psn: the packet sequence number to restart at
1711 * send a single packet in the likely case the
1796 * Start timer after a packet requesting an ACK has been sent and
1819 * The TID RDMA ACK packet could be received before this
1964 * @psn: the packet sequence number of the TID RDMA WRITE RESP.
1979 * If this is the first TID RDMA WRITE RESP packet for the current
1982 * packet, change the s_state and advance the s_cur.
1998 * @psn: the packet sequence number of the ACK
2101 * ACK packet handler (see tid_rdma.c).
2171 * and continue with the next packet the
2194 * response is not a TID RDMA WRITE RESP packet, s_last_psn
2302 * We have seen an out of sequence RDMA read middle or last packet.
2337 * rc_rcv_resp - process an incoming RC response packet
2338 * @packet: data packet information
2341 * packet for the given QP.
2344 static void rc_rcv_resp(struct hfi1_packet *packet)
2346 struct hfi1_ctxtdata *rcd = packet->rcd;
2347 void *data = packet->payload;
2348 u32 tlen = packet->tlen;
2349 struct rvt_qp *qp = packet->qp;
2351 struct ib_other_headers *ohdr = packet->ohdr;
2358 u32 psn = ib_bth_get_psn(packet->ohdr);
2360 u16 hdrsize = packet->hlen;
2361 u8 opcode = packet->opcode;
2362 u8 pad = packet->pad;
2363 u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
2537 * rc_rcv_error - process an incoming duplicate or error RC packet
2538 * @ohdr: the other headers for this packet
2539 * @data: the packet data
2540 * @qp: the QP for this packet
2541 * @opcode: the opcode for this packet
2542 * @psn: the packet sequence number for this packet
2546 * incoming RC packet for the given QP.
2797 * hfi1_rc_rcv - process an incoming RC packet
2798 * @packet: data packet information
2800 * This is called from qp_rcv() to process an incoming RC packet
2804 void hfi1_rc_rcv(struct hfi1_packet *packet)
2806 struct hfi1_ctxtdata *rcd = packet->rcd;
2807 void *data = packet->payload;
2808 u32 tlen = packet->tlen;
2809 struct rvt_qp *qp = packet->qp;
2812 struct ib_other_headers *ohdr = packet->ohdr;
2813 u32 opcode = packet->opcode;
2814 u32 hdrsize = packet->hlen;
2815 u32 psn = ib_bth_get_psn(packet->ohdr);
2816 u32 pad = packet->pad;
2825 u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
2829 if (hfi1_ruc_check_hdr(ibp, packet))
2832 fecn = process_ecn(qp, packet);
2837 * packet sequence number will be for something in the send work
2838 * queue rather than the expected receive packet sequence number.
2843 rc_rcv_resp(packet);
2894 /* OK, process the packet. */
2909 * There will be no padding for 9B packet but 16B packets
3205 if (packet->numpkt == 0 || fecn ||
3247 hfi1_send_rc_ack(packet, fecn);
3252 struct hfi1_packet *packet,
3260 if (hfi1_ruc_check_hdr(ibp, packet))
3263 psn = ib_bth_get_psn(packet->ohdr);
3264 opcode = ib_bth_get_opcode(packet->ohdr);