Lines Matching refs:rcvidx
522 if ((bcs->hw.isar.rcvidx + ireg->clsb) > HSCX_BUFMAX) { in isar_rcv_frame()
526 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
537 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
541 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
542 ptr = bcs->hw.isar.rcvbuf + bcs->hw.isar.rcvidx; in isar_rcv_frame()
543 bcs->hw.isar.rcvidx += ireg->clsb; in isar_rcv_frame()
546 if (bcs->hw.isar.rcvidx < 3) { /* last 2 bytes are the FCS */ in isar_rcv_frame()
549 bcs->hw.isar.rcvidx); in isar_rcv_frame()
550 } else if (!(skb = dev_alloc_skb(bcs->hw.isar.rcvidx - 2))) { in isar_rcv_frame()
553 memcpy(skb_put(skb, bcs->hw.isar.rcvidx - 2), in isar_rcv_frame()
554 bcs->hw.isar.rcvbuf, bcs->hw.isar.rcvidx - 2); in isar_rcv_frame()
558 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
567 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
572 bcs->hw.isar.rcvidx = ireg->clsb + in isar_rcv_frame()
576 ireg->clsb, bcs->hw.isar.rcvidx); in isar_rcv_frame()
577 if ((skb = dev_alloc_skb(bcs->hw.isar.rcvidx))) { in isar_rcv_frame()
578 insert_dle((u_char *)skb_put(skb, bcs->hw.isar.rcvidx), in isar_rcv_frame()
585 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
603 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
607 if ((bcs->hw.isar.rcvidx + ireg->clsb) > HSCX_BUFMAX) { in isar_rcv_frame()
611 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
616 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
620 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
622 ptr = bcs->hw.isar.rcvbuf + bcs->hw.isar.rcvidx; in isar_rcv_frame()
623 bcs->hw.isar.rcvidx += ireg->clsb; in isar_rcv_frame()
626 int len = bcs->hw.isar.rcvidx + in isar_rcv_frame()
627 dle_count(bcs->hw.isar.rcvbuf, bcs->hw.isar.rcvidx); in isar_rcv_frame()
628 if (bcs->hw.isar.rcvidx < 3) { /* last 2 bytes are the FCS */ in isar_rcv_frame()
631 bcs->hw.isar.rcvidx); in isar_rcv_frame()
633 bcs->hw.isar.rcvidx); in isar_rcv_frame()
639 bcs->hw.isar.rcvidx); in isar_rcv_frame()
646 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
652 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame()
1726 bcs->hw.isar.rcvidx = 0; in open_isarstate()