Lines Matching refs:cma_hdr
401 struct cma_hdr { struct
459 static inline u8 cma_get_ip_ver(const struct cma_hdr *hdr) in cma_get_ip_ver()
464 static inline void cma_set_ip_ver(struct cma_hdr *hdr, u8 ip_ver) in cma_set_ip_ver()
1273 struct cma_hdr *hdr, in cma_save_ip4_info()
1295 struct cma_hdr *hdr, in cma_save_ip6_info()
1325 struct cma_hdr *hdr; in cma_save_ip_info()
1542 const struct cma_hdr *hdr) in cma_match_private_data()
1730 return cma_family(id_priv) == AF_IB ? 0 : sizeof(struct cma_hdr); in cma_user_data_offset()
3633 struct cma_hdr *cma_hdr; in cma_format_hdr() local
3635 cma_hdr = hdr; in cma_format_hdr()
3636 cma_hdr->cma_version = CMA_VERSION; in cma_format_hdr()
3643 cma_set_ip_ver(cma_hdr, 4); in cma_format_hdr()
3644 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
3645 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
3646 cma_hdr->port = src4->sin_port; in cma_format_hdr()
3653 cma_set_ip_ver(cma_hdr, 6); in cma_format_hdr()
3654 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr()
3655 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
3656 cma_hdr->port = src6->sin6_port; in cma_format_hdr()