Lines Matching refs:cma_hdr
400 struct cma_hdr { struct
458 static inline u8 cma_get_ip_ver(const struct cma_hdr *hdr) in cma_get_ip_ver()
463 static inline void cma_set_ip_ver(struct cma_hdr *hdr, u8 ip_ver) in cma_set_ip_ver()
1161 struct cma_hdr *hdr, in cma_save_ip4_info()
1183 struct cma_hdr *hdr, in cma_save_ip6_info()
1213 struct cma_hdr *hdr; in cma_save_ip_info()
1422 const struct cma_hdr *hdr) in cma_match_private_data()
1592 return cma_family(id_priv) == AF_IB ? 0 : sizeof(struct cma_hdr); in cma_user_data_offset()
3454 struct cma_hdr *cma_hdr; in cma_format_hdr() local
3456 cma_hdr = hdr; in cma_format_hdr()
3457 cma_hdr->cma_version = CMA_VERSION; in cma_format_hdr()
3464 cma_set_ip_ver(cma_hdr, 4); in cma_format_hdr()
3465 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
3466 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
3467 cma_hdr->port = src4->sin_port; in cma_format_hdr()
3474 cma_set_ip_ver(cma_hdr, 6); in cma_format_hdr()
3475 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr()
3476 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
3477 cma_hdr->port = src6->sin6_port; in cma_format_hdr()