Home
last modified time | relevance | path

Searched refs:rds_header (Results 1 – 18 of 18) sorted by relevance

/linux-4.1.27/net/rds/
Diw_recv.c104 sge->addr = ic->i_recv_hdrs_dma + (i * sizeof(struct rds_header)); in rds_iw_recv_init_ring()
105 sge->length = sizeof(struct rds_header); in rds_iw_recv_init_ring()
198 sge->addr = ic->i_recv_hdrs_dma + (recv - ic->i_recvs) * sizeof(struct rds_header); in rds_iw_recv_refill_one()
199 sge->length = sizeof(struct rds_header); in rds_iw_recv_refill_one()
353 sge->length = sizeof(struct rds_header); in rds_iw_recv_init_ack()
434 struct rds_header *hdr = ic->i_ack; in rds_iw_send_ack()
640 struct rds_header *ihdr, *hdr; in rds_iw_process_recv()
647 if (byte_len < sizeof(struct rds_header)) { in rds_iw_process_recv()
655 byte_len -= sizeof(struct rds_header); in rds_iw_process_recv()
Drds.h143 struct rds_header { struct
203 struct rds_header i_hdr;
662 void rds_message_populate_header(struct rds_header *hdr, __be16 sport,
664 int rds_message_add_extension(struct rds_header *hdr,
666 int rds_message_next_extension(struct rds_header *hdr,
668 int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset);
676 static inline void rds_message_make_checksum(struct rds_header *hdr) in rds_message_make_checksum()
682 static inline int rds_message_verify_checksum(const struct rds_header *hdr) in rds_message_verify_checksum()
Dtcp_send.c94 sizeof(struct rds_header) + in rds_tcp_xmit()
105 if (hdr_off < sizeof(struct rds_header)) { in rds_tcp_xmit()
115 if (hdr_off + done != sizeof(struct rds_header)) in rds_tcp_xmit()
Dib_recv.c63 sge->addr = ic->i_recv_hdrs_dma + (i * sizeof(struct rds_header)); in rds_ib_recv_init_ring()
64 sge->length = sizeof(struct rds_header); in rds_ib_recv_init_ring()
338 sge->addr = ic->i_recv_hdrs_dma + (recv - ic->i_recvs) * sizeof(struct rds_header); in rds_ib_recv_refill_one()
339 sge->length = sizeof(struct rds_header); in rds_ib_recv_refill_one()
522 sge->length = sizeof(struct rds_header); in rds_ib_recv_init_ack()
603 struct rds_header *hdr = ic->i_ack; in rds_ib_send_ack()
809 struct rds_header *ihdr, *hdr; in rds_ib_process_recv()
816 if (data_len < sizeof(struct rds_header)) { in rds_ib_process_recv()
824 data_len -= sizeof(struct rds_header); in rds_ib_process_recv()
Dmessage.c96 void rds_message_populate_header(struct rds_header *hdr, __be16 sport, in rds_message_populate_header()
107 int rds_message_add_extension(struct rds_header *hdr, unsigned int type, in rds_message_add_extension()
146 int rds_message_next_extension(struct rds_header *hdr, in rds_message_next_extension()
178 int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset) in rds_message_add_rdma_dest_extension()
Diw_send.c152 sge->addr = ic->i_send_hdrs_dma + (i * sizeof(struct rds_header)); in rds_iw_send_init_ring()
153 sge->length = sizeof(struct rds_header); in rds_iw_send_init_ring()
478 sge->addr = ic->i_send_hdrs_dma + (pos * sizeof(struct rds_header)); in rds_iw_xmit_populate_wr()
479 sge->length = sizeof(struct rds_header); in rds_iw_xmit_populate_wr()
518 BUG_ON(hdr_off != 0 && hdr_off != sizeof(struct rds_header)); in rds_iw_xmit()
699 memcpy(&ic->i_send_hdrs[pos], &rm->m_inc.i_hdr, sizeof(struct rds_header)); in rds_iw_xmit()
702 struct rds_header *hdr = &ic->i_send_hdrs[pos]; in rds_iw_xmit()
710 struct rds_header *hdr = &ic->i_send_hdrs[pos]; in rds_iw_xmit()
729 sent += sizeof(struct rds_header); in rds_iw_xmit()
Dib_send.c237 sge->addr = ic->i_send_hdrs_dma + (i * sizeof(struct rds_header)); in rds_ib_send_init_ring()
238 sge->length = sizeof(struct rds_header); in rds_ib_send_init_ring()
548 BUG_ON(hdr_off != 0 && hdr_off != sizeof(struct rds_header)); in rds_ib_xmit()
556 return sizeof(struct rds_header) + ret; in rds_ib_xmit()
675 + (pos * sizeof(struct rds_header)); in rds_ib_xmit()
676 send->s_sge[0].length = sizeof(struct rds_header); in rds_ib_xmit()
678 memcpy(&ic->i_send_hdrs[pos], &rm->m_inc.i_hdr, sizeof(struct rds_header)); in rds_ib_xmit()
712 struct rds_header *hdr = &ic->i_send_hdrs[pos]; in rds_ib_xmit()
735 bytes_sent += sizeof(struct rds_header); in rds_ib_xmit()
Dib_cm.c361 sizeof(struct rds_header), in rds_ib_setup_qp()
371 sizeof(struct rds_header), in rds_ib_setup_qp()
379 ic->i_ack = ib_dma_alloc_coherent(dev, sizeof(struct rds_header), in rds_ib_setup_qp()
672 sizeof(struct rds_header), in rds_ib_conn_shutdown()
679 sizeof(struct rds_header), in rds_ib_conn_shutdown()
684 ib_dma_free_coherent(dev, sizeof(struct rds_header), in rds_ib_conn_shutdown()
Diw_cm.c293 sizeof(struct rds_header), in rds_iw_setup_qp()
303 sizeof(struct rds_header), in rds_iw_setup_qp()
311 ic->i_ack = ib_dma_alloc_coherent(dev, sizeof(struct rds_header), in rds_iw_setup_qp()
609 sizeof(struct rds_header), in rds_iw_conn_shutdown()
616 sizeof(struct rds_header), in rds_iw_conn_shutdown()
621 ib_dma_free_coherent(dev, sizeof(struct rds_header), in rds_iw_conn_shutdown()
Dib.h110 struct rds_header *i_send_hdrs;
121 struct rds_header *i_recv_hdrs;
136 struct rds_header *i_ack;
Diw.h118 struct rds_header *i_send_hdrs;
128 struct rds_header *i_recv_hdrs;
142 struct rds_header *i_ack;
Dtcp_recv.c195 sizeof(struct rds_header) - in rds_tcp_data_recv()
246 tc->t_tinc_hdr_rem = sizeof(struct rds_header); in rds_tcp_data_recv()
Dtcp_connect.c154 tc->t_tinc_hdr_rem = sizeof(struct rds_header); in rds_tcp_conn_shutdown()
Dloop.c65 int ret = sizeof(struct rds_header) + in rds_loop_xmit()
Dsend.c338 if (conn->c_xmit_hdr_off < sizeof(struct rds_header)) { in rds_send_xmit()
340 sizeof(struct rds_header) - in rds_send_xmit()
361 if (conn->c_xmit_hdr_off == sizeof(struct rds_header) && in rds_send_xmit()
Dtcp.c209 tc->t_tinc_hdr_rem = sizeof(struct rds_header); in rds_tcp_conn_alloc()
Drecv.c110 struct rds_header *hdr = &inc->i_hdr; in rds_recv_incoming_exthdrs()
/linux-4.1.27/Documentation/networking/
Drds.txt169 The message header is a 'struct rds_header' (see rds.h):