Lines Matching refs:xmep
871 struct xid_map_entry *xmep; in xid_map_enter() local
886 xmep = &xid_map[xid_map_next]; in xid_map_enter()
891 UNALIGNED_MEMCPY(&xmep->xid, &rp->rm_xid, sizeof(xmep->xid)); in xid_map_enter()
893 xmep->ipver = 4; in xid_map_enter()
894 UNALIGNED_MEMCPY(&xmep->client, &ip->ip_src, sizeof(ip->ip_src)); in xid_map_enter()
895 UNALIGNED_MEMCPY(&xmep->server, &ip->ip_dst, sizeof(ip->ip_dst)); in xid_map_enter()
898 xmep->ipver = 6; in xid_map_enter()
899 UNALIGNED_MEMCPY(&xmep->client, &ip6->ip6_src, sizeof(ip6->ip6_src)); in xid_map_enter()
900 UNALIGNED_MEMCPY(&xmep->server, &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in xid_map_enter()
902 xmep->proc = EXTRACT_32BITS(&rp->rm_call.cb_proc); in xid_map_enter()
903 xmep->vers = EXTRACT_32BITS(&rp->rm_call.cb_vers); in xid_map_enter()
916 struct xid_map_entry *xmep; in xid_map_find() local
922 UNALIGNED_MEMCPY(&xid, &rp->rm_xid, sizeof(xmep->xid)); in xid_map_find()
926 xmep = &xid_map[i]; in xid_map_find()
928 if (xmep->ipver != IP_V(ip) || xmep->xid != xid) in xid_map_find()
930 switch (xmep->ipver) { in xid_map_find()
932 if (UNALIGNED_MEMCMP(&ip->ip_src, &xmep->server, in xid_map_find()
934 UNALIGNED_MEMCMP(&ip->ip_dst, &xmep->client, in xid_map_find()
940 if (UNALIGNED_MEMCMP(&ip6->ip6_src, &xmep->server, in xid_map_find()
942 UNALIGNED_MEMCMP(&ip6->ip6_dst, &xmep->client, in xid_map_find()
954 *proc = xmep->proc; in xid_map_find()
955 *vers = xmep->vers; in xid_map_find()