Lines Matching refs:ph

52 	} *ph, h;  in pep_get_sb()  local
55 ph = skb_header_pointer(skb, 0, 2, &h); in pep_get_sb()
56 if (ph == NULL || ph->sb_len < 2 || !pskb_may_pull(skb, ph->sb_len)) in pep_get_sb()
58 ph->sb_len -= 2; in pep_get_sb()
59 *ptype = ph->sb_type; in pep_get_sb()
60 *plen = ph->sb_len; in pep_get_sb()
62 if (buflen > ph->sb_len) in pep_get_sb()
63 buflen = ph->sb_len; in pep_get_sb()
65 __skb_pull(skb, 2 + ph->sb_len); in pep_get_sb()
89 struct pnpipehdr *ph; in pep_reply() local
97 ph = pnp_hdr(skb); in pep_reply()
98 ph->utid = oph->utid; in pep_reply()
99 ph->message_id = oph->message_id + 1; /* REQ -> RESP */ in pep_reply()
100 ph->pipe_handle = oph->pipe_handle; in pep_reply()
101 ph->error_code = code; in pep_reply()
111 struct pnpipehdr *ph; in pep_indicate() local
118 ph = pnp_hdr(skb); in pep_indicate()
119 ph->utid = 0; in pep_indicate()
120 ph->message_id = id; in pep_indicate()
121 ph->pipe_handle = pn->pipe_handle; in pep_indicate()
122 ph->error_code = code; in pep_indicate()
132 struct pnpipehdr *ph; in pipe_handler_request() local
139 ph = pnp_hdr(skb); in pipe_handler_request()
140 ph->utid = id; /* whatever */ in pipe_handler_request()
141 ph->message_id = id; in pipe_handler_request()
142 ph->pipe_handle = pn->pipe_handle; in pipe_handler_request()
143 ph->error_code = code; in pipe_handler_request()
195 struct pnpipehdr *ph; in pep_ctrlreq_error() local
207 ph = pnp_hdr(skb); in pep_ctrlreq_error()
208 ph->utid = oph->utid; in pep_ctrlreq_error()
209 ph->message_id = PNS_PEP_CTRL_RESP; in pep_ctrlreq_error()
210 ph->pipe_handle = oph->pipe_handle; in pep_ctrlreq_error()
211 ph->data0 = oph->data[0]; /* CTRL id */ in pep_ctrlreq_error()
718 struct pnpipehdr *ph; in pipe_do_remove() local
725 ph = pnp_hdr(skb); in pipe_do_remove()
726 ph->utid = 0; in pipe_do_remove()
727 ph->message_id = PNS_PIPE_REMOVE_REQ; in pipe_do_remove()
728 ph->pipe_handle = pn->pipe_handle; in pipe_do_remove()
729 ph->data0 = PAD; in pipe_do_remove()
1087 struct pnpipehdr *ph; in pipe_skb_send() local
1098 ph = pnp_hdr(skb); in pipe_skb_send()
1099 ph->utid = 0; in pipe_skb_send()
1101 ph->message_id = PNS_PIPE_ALIGNED_DATA; in pipe_skb_send()
1102 ph->data0 = 0; /* padding */ in pipe_skb_send()
1104 ph->message_id = PNS_PIPE_DATA; in pipe_skb_send()
1105 ph->pipe_handle = pn->pipe_handle; in pipe_skb_send()