Lines Matching refs:ph
151 struct phonethdr *ph; in pn_send() local
170 ph = pn_hdr(skb); in pn_send()
171 ph->pn_rdev = pn_dev(dst); in pn_send()
172 ph->pn_sdev = pn_dev(src); in pn_send()
173 ph->pn_res = res; in pn_send()
174 ph->pn_length = __cpu_to_be16(skb->len + 2 - sizeof(*ph)); in pn_send()
175 ph->pn_robj = pn_obj(dst); in pn_send()
176 ph->pn_sobj = pn_obj(src); in pn_send()
286 const struct phonethdr *ph; in can_respond() local
293 ph = pn_hdr(skb); in can_respond()
294 if (ph->pn_res == PN_PREFIX && !pskb_may_pull(skb, 5)) in can_respond()
296 if (ph->pn_res == PN_COMMGR) /* indications */ in can_respond()
299 ph = pn_hdr(skb); /* re-acquires the pointer */ in can_respond()
303 submsg_id = (ph->pn_res == PN_PREFIX) in can_respond()
362 struct phonethdr *ph; in phonet_rcv() local
375 ph = pn_hdr(skb); in phonet_rcv()
376 len = get_unaligned_be16(&ph->pn_length); in phonet_rcv()