Lines Matching refs:cma_hdr
190 struct cma_hdr { struct
237 static inline u8 cma_get_ip_ver(struct cma_hdr *hdr) in cma_get_ip_ver()
242 static inline void cma_set_ip_ver(struct cma_hdr *hdr, u8 ip_ver) in cma_set_ip_ver()
880 struct cma_hdr *hdr) in cma_save_ip4_info()
896 struct cma_hdr *hdr) in cma_save_ip6_info()
914 struct cma_hdr *hdr; in cma_save_net_info()
943 return cma_family(id_priv) == AF_IB ? 0 : sizeof(struct cma_hdr); in cma_user_data_offset()
1387 struct cma_hdr *cma_data, *cma_mask; in cma_set_compare_data()
2635 struct cma_hdr *cma_hdr; in cma_format_hdr() local
2637 cma_hdr = hdr; in cma_format_hdr()
2638 cma_hdr->cma_version = CMA_VERSION; in cma_format_hdr()
2645 cma_set_ip_ver(cma_hdr, 4); in cma_format_hdr()
2646 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
2647 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
2648 cma_hdr->port = src4->sin_port; in cma_format_hdr()
2655 cma_set_ip_ver(cma_hdr, 6); in cma_format_hdr()
2656 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr()
2657 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
2658 cma_hdr->port = src6->sin6_port; in cma_format_hdr()