Lines Matching refs:y_nr
183 static void llc_shdlc_reset_t2(struct llc_shdlc *shdlc, int y_nr) in llc_shdlc_reset_t2() argument
188 pr_debug("release ack pending up to frame %d excluded\n", y_nr); in llc_shdlc_reset_t2()
190 while (dnr != y_nr) { in llc_shdlc_reset_t2()
225 int y_nr = nr; in llc_shdlc_rcv_i_frame() local
251 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_i_frame()
252 llc_shdlc_reset_t2(shdlc, y_nr); in llc_shdlc_rcv_i_frame()
254 shdlc->dnr = y_nr; in llc_shdlc_rcv_i_frame()
261 static void llc_shdlc_rcv_ack(struct llc_shdlc *shdlc, int y_nr) in llc_shdlc_rcv_ack() argument
263 pr_debug("remote acked up to frame %d excluded\n", y_nr); in llc_shdlc_rcv_ack()
265 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_ack()
266 llc_shdlc_reset_t2(shdlc, y_nr); in llc_shdlc_rcv_ack()
267 shdlc->dnr = y_nr; in llc_shdlc_rcv_ack()
284 static void llc_shdlc_rcv_rej(struct llc_shdlc *shdlc, int y_nr) in llc_shdlc_rcv_rej() argument
288 pr_debug("remote asks retransmission from frame %d\n", y_nr); in llc_shdlc_rcv_rej()
290 if (llc_shdlc_x_lteq_y_lt_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_rej()
297 if (shdlc->dnr != y_nr) { in llc_shdlc_rcv_rej()
298 while ((shdlc->dnr = ((shdlc->dnr + 1) % 8)) != y_nr) { in llc_shdlc_rcv_rej()