rds_header
struct rds_header **i_send_hdrs;
struct rds_header **i_recv_hdrs;
struct rds_header *i_ack;
static void rds_dma_hdr_free(struct ib_device *dev, struct rds_header *hdr,
static struct rds_header *rds_dma_hdr_alloc(struct ib_device *dev,
struct rds_header *hdr;
struct rds_header **hdrs, dma_addr_t *dma_addrs, u32 num_hdrs,
static struct rds_header **rds_dma_hdrs_alloc(struct rds_ib_device *dev,
struct rds_header **hdrs;
sge->length = sizeof(struct rds_header);
sge->length = sizeof(struct rds_header);
sge->length = sizeof(struct rds_header);
struct rds_header *hdr = ic->i_ack;
struct rds_header *ihdr, *hdr;
if (data_len < sizeof(struct rds_header)) {
data_len -= sizeof(struct rds_header);
sge->length = sizeof(struct rds_header);
BUG_ON(hdr_off != 0 && hdr_off != sizeof(struct rds_header));
return sizeof(struct rds_header) + ret;
send->s_sge[0].length = sizeof(struct rds_header);
sizeof(struct rds_header),
sizeof(struct rds_header));
struct rds_header *hdr = ic->i_send_hdrs[pos];
sizeof(struct rds_header),
bytes_sent += sizeof(struct rds_header);
int ret = sizeof(struct rds_header) +
void rds_message_populate_header(struct rds_header *hdr, __be16 sport,
static int rds_find_next_ext_space(struct rds_header *hdr, unsigned int len,
int rds_message_add_extension(struct rds_header *hdr,
int rds_message_next_extension(struct rds_header *hdr,
int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset)
struct rds_header i_hdr;
void rds_message_populate_header(struct rds_header *hdr, __be16 sport,
int rds_message_add_extension(struct rds_header *hdr,
int rds_message_next_extension(struct rds_header *hdr,
int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset);
static inline void rds_message_make_checksum(struct rds_header *hdr)
static inline int rds_message_verify_checksum(const struct rds_header *hdr)
struct rds_header *hdr = &inc->i_hdr;
static void rds_recv_hs_exthdrs(struct rds_header *hdr,
if (cp->cp_xmit_hdr_off < sizeof(struct rds_header)) {
sizeof(struct rds_header) -
if (cp->cp_xmit_hdr_off == sizeof(struct rds_header) &&
tc->t_tinc_hdr_rem = sizeof(struct rds_header);
tc->t_tinc_hdr_rem = sizeof(struct rds_header);
tc->t_tinc_hdr_rem = sizeof(struct rds_header);
sizeof(struct rds_header) -
tc->t_tinc_hdr_rem = sizeof(struct rds_header);
if (hdr_off < sizeof(struct rds_header)) {
if (hdr_off + done != sizeof(struct rds_header))
sizeof(struct rds_header) +