Lines Matching refs:cma_hdr
385 struct cma_hdr { struct
428 static inline u8 cma_get_ip_ver(const struct cma_hdr *hdr) in cma_get_ip_ver()
433 static void cma_set_ip_ver(struct cma_hdr *hdr, u8 ip_ver) in cma_set_ip_ver()
1433 struct cma_hdr *hdr, in cma_save_ip4_info()
1455 struct cma_hdr *hdr, in cma_save_ip6_info()
1485 struct cma_hdr *hdr; in cma_save_ip_info()
1702 const struct cma_hdr *hdr) in cma_match_private_data()
1894 return cma_family(id_priv) == AF_IB ? 0 : sizeof(struct cma_hdr); in cma_user_data_offset()
4161 struct cma_hdr *cma_hdr; in cma_format_hdr() local
4163 cma_hdr = hdr; in cma_format_hdr()
4164 cma_hdr->cma_version = CMA_VERSION; in cma_format_hdr()
4171 cma_set_ip_ver(cma_hdr, 4); in cma_format_hdr()
4172 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
4173 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
4174 cma_hdr->port = src4->sin_port; in cma_format_hdr()
4181 cma_set_ip_ver(cma_hdr, 6); in cma_format_hdr()
4182 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr()
4183 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
4184 cma_hdr->port = src6->sin6_port; in cma_format_hdr()