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()
1451 struct cma_hdr *hdr, in cma_save_ip4_info()
1473 struct cma_hdr *hdr, in cma_save_ip6_info()
1503 struct cma_hdr *hdr; in cma_save_ip_info()
1720 const struct cma_hdr *hdr) in cma_match_private_data()
1912 return cma_family(id_priv) == AF_IB ? 0 : sizeof(struct cma_hdr); in cma_user_data_offset()
4179 struct cma_hdr *cma_hdr; in cma_format_hdr() local
4181 cma_hdr = hdr; in cma_format_hdr()
4182 cma_hdr->cma_version = CMA_VERSION; in cma_format_hdr()
4189 cma_set_ip_ver(cma_hdr, 4); in cma_format_hdr()
4190 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
4191 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
4192 cma_hdr->port = src4->sin_port; in cma_format_hdr()
4199 cma_set_ip_ver(cma_hdr, 6); in cma_format_hdr()
4200 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr()
4201 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
4202 cma_hdr->port = src6->sin6_port; in cma_format_hdr()