Lines Matching refs:mh

44 	struct mctp_hdr *mh;  in mctp_lookup_bind()  local
51 mh = mctp_hdr(skb); in mctp_lookup_bind()
67 if (!mctp_address_matches(msk->bind_addr, mh->dest)) in mctp_lookup_bind()
101 struct mctp_hdr *mh; in mctp_lookup_key() local
104 mh = mctp_hdr(skb); in mctp_lookup_key()
105 tag = mh->flags_seq_tag & (MCTP_HDR_TAG_MASK | MCTP_HDR_FLAG_TO); in mctp_lookup_key()
111 if (!mctp_key_match(key, mh->dest, peer, tag)) in mctp_lookup_key()
329 struct mctp_hdr *mh; in mctp_route_input() local
347 mh = mctp_hdr(skb); in mctp_route_input()
350 if (mh->ver != 1) in mctp_route_input()
353 flags = mh->flags_seq_tag & (MCTP_HDR_FLAG_SOM | MCTP_HDR_FLAG_EOM); in mctp_route_input()
354 tag = mh->flags_seq_tag & (MCTP_HDR_TAG_MASK | MCTP_HDR_FLAG_TO); in mctp_route_input()
361 key = mctp_lookup_key(net, skb, mh->src, &f); in mctp_route_input()
409 key = mctp_key_alloc(msk, mh->dest, mh->src, in mctp_route_input()
1105 struct mctp_hdr *mh; in mctp_pkttype_receive() local
1122 mh = mctp_hdr(skb); in mctp_pkttype_receive()
1123 if (mh->ver < MCTP_VER_MIN || mh->ver > MCTP_VER_MAX) in mctp_pkttype_receive()
1129 if (!(mctp_address_unicast(mh->src) || mctp_address_null(mh->src))) in mctp_pkttype_receive()
1133 if (!(mctp_address_unicast(mh->dest) || mctp_address_null(mh->dest) || in mctp_pkttype_receive()
1134 mctp_address_broadcast(mh->dest))) in mctp_pkttype_receive()
1147 rt = mctp_route_lookup(net, cb->net, mh->dest); in mctp_pkttype_receive()
1150 if (!rt && mh->dest == MCTP_ADDR_NULL && skb->pkt_type == PACKET_HOST) in mctp_pkttype_receive()