Lines Matching refs:fr
113 frameptr fr; /* ptr to output pdu buffer */ in llc_sendpdu() local
123 fr = (frameptr) skb_put(skb, fl); in llc_sendpdu()
124 memset(fr, 0, fl); in llc_sendpdu()
129 fr->pdu_hdr.dsap = 0; in llc_sendpdu()
131 fr->pdu_hdr.dsap = lp->remote_sap; in llc_sendpdu()
132 fr->pdu_hdr.ssap = lp->local_sap + cr_bit_encode[(int)type]; in llc_sendpdu()
133 fr->pdu_cntl.byte1 = cntl_byte_encode[(int)type]; in llc_sendpdu()
137 if (IS_SFRAME(fr)) in llc_sendpdu()
141 fr->i_hdr.i_pflag = 1; in llc_sendpdu()
142 fr->i_hdr.nr = lp->vr; in llc_sendpdu()
148 fr->u_hdr.u_pflag = 1; in llc_sendpdu()
153 if (IS_UFRAME(fr)) in llc_sendpdu()
155 memcpy(fr->u_hdr.u_info, pdu_data, data_len); in llc_sendpdu()
159 memcpy(fr->i_hdr.is_info, pdu_data, data_len); in llc_sendpdu()
197 frameptr fr; /* ptr to output pdu buffer */ in llc_sendipdu() local
200 fr = (frameptr) skb->data; in llc_sendipdu()
202 fr->pdu_hdr.dsap = lp->remote_sap; in llc_sendipdu()
203 fr->pdu_hdr.ssap = lp->local_sap + cr_bit_encode[(int)type]; in llc_sendipdu()
204 fr->pdu_cntl.byte1 = cntl_byte_encode[(int)type]; in llc_sendipdu()
207 fr->i_hdr.i_pflag = 1; /* p/f and seq numbers */ in llc_sendipdu()
208 fr->i_hdr.nr = lp->vr; in llc_sendipdu()
209 fr->i_hdr.ns = lp->vs; in llc_sendipdu()
238 frameptr fr; in llc_resend_ipdu() local
251 fr = (frameptr) (skb->data + lp->dev->hard_header_len); in llc_resend_ipdu()
259 fr->i_hdr.i_pflag = 1; in llc_resend_ipdu()
261 fr->i_hdr.i_pflag = 0; in llc_resend_ipdu()
264 fr->pdu_hdr.ssap = fr->pdu_hdr.ssap & 0xfe; in llc_resend_ipdu()
266 fr->pdu_hdr.ssap = fr->pdu_hdr.ssap | 0x01; in llc_resend_ipdu()
274 fr->pdu_hdr.ssap = fr->pdu_hdr.ssap & 0xfe; in llc_resend_ipdu()
275 fr->i_hdr.i_pflag = 0; in llc_resend_ipdu()
277 fr->i_hdr.nr = lp->vr; in llc_resend_ipdu()
278 fr->i_hdr.ns = lp->vs; in llc_resend_ipdu()
318 frameptr fr; in llc_free_acknowledged_skbs() local
344 fr = (frameptr) (pp->data + lp->dev->hard_header_len); in llc_free_acknowledged_skbs()
345 ns_save = fr->i_hdr.ns; in llc_free_acknowledged_skbs()