Lines Matching refs:cma_hdr
272 struct cma_hdr { struct
328 static inline u8 cma_get_ip_ver(const struct cma_hdr *hdr) in cma_get_ip_ver()
333 static inline void cma_set_ip_ver(struct cma_hdr *hdr, u8 ip_ver) in cma_set_ip_ver()
980 struct cma_hdr *hdr, in cma_save_ip4_info()
1002 struct cma_hdr *hdr, in cma_save_ip6_info()
1032 struct cma_hdr *hdr; in cma_save_ip_info()
1216 const struct cma_hdr *hdr) in cma_match_private_data()
1356 return cma_family(id_priv) == AF_IB ? 0 : sizeof(struct cma_hdr); in cma_user_data_offset()
3025 struct cma_hdr *cma_hdr; in cma_format_hdr() local
3027 cma_hdr = hdr; in cma_format_hdr()
3028 cma_hdr->cma_version = CMA_VERSION; in cma_format_hdr()
3035 cma_set_ip_ver(cma_hdr, 4); in cma_format_hdr()
3036 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
3037 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
3038 cma_hdr->port = src4->sin_port; in cma_format_hdr()
3045 cma_set_ip_ver(cma_hdr, 6); in cma_format_hdr()
3046 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr()
3047 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
3048 cma_hdr->port = src6->sin6_port; in cma_format_hdr()