• Home
  • Raw
  • Download

Lines Matching refs:cnt

66 static void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill)  in fill_mem()  argument
77 for (i=0; i<cnt; i++) { in fill_mem()
397 static void read_raw(struct BCState *bcs, u_int *buf, int cnt){ in read_raw() argument
418 for (i=0;i<cnt;i++) { in read_raw()
576 int cnt = NETJET_DMA_RXSIZE/2; in read_tiger() local
595 p = cs->bcs[0].hw.tiger.rec + cnt - 1; in read_tiger()
597 read_raw(cs->bcs, p, cnt); in read_tiger()
600 read_raw(cs->bcs + 1, p, cnt); in read_tiger()
604 static void write_raw(struct BCState *bcs, u_int *buf, int cnt);
609 register int cnt; in netjet_fill_dma() local
638 cnt = p - sp; in netjet_fill_dma()
639 if (cnt <0) { in netjet_fill_dma()
643 cnt++; in netjet_fill_dma()
647 cnt++; in netjet_fill_dma()
650 write_raw(bcs, p, bcs->hw.tiger.free - cnt); in netjet_fill_dma()
654 cnt = bcs->hw.tiger.s_end - p; in netjet_fill_dma()
655 if (cnt < 2) { in netjet_fill_dma()
657 cnt = NETJET_DMA_TXSIZE/2 - 2; in netjet_fill_dma()
661 if (cnt <= (NETJET_DMA_TXSIZE/2)) in netjet_fill_dma()
662 cnt += NETJET_DMA_TXSIZE/2; in netjet_fill_dma()
663 cnt--; in netjet_fill_dma()
664 cnt--; in netjet_fill_dma()
666 write_raw(bcs, p, cnt); in netjet_fill_dma()
673 static void write_raw(struct BCState *bcs, u_int *buf, int cnt) { in write_raw() argument
677 if (cnt <= 0) in write_raw()
680 if (bcs->hw.tiger.sendcnt> cnt) { in write_raw()
681 s_cnt = cnt; in write_raw()
682 bcs->hw.tiger.sendcnt -= cnt; in write_raw()
702 buf, p, s_cnt, cnt, in write_raw()
724 bcs->hw.tiger.free = cnt - s_cnt; in write_raw()
735 if (s_cnt < cnt) { in write_raw()
736 for (i=s_cnt; i<cnt;i++) { in write_raw()
743 cnt - s_cnt); in write_raw()
751 fill_mem(bcs, buf, cnt, bcs->channel, 0xff); in write_raw()
752 bcs->hw.tiger.free += cnt; in write_raw()
757 fill_mem(bcs, buf, cnt, bcs->channel, 0xff); in write_raw()
764 u_int *p, cnt = NETJET_DMA_TXSIZE/2; in write_tiger() local
783 p = cs->bcs[0].hw.tiger.send + cnt - 1; in write_tiger()
785 write_raw(cs->bcs, p, cnt); in write_tiger()
787 write_raw(cs->bcs + 1, p, cnt); in write_tiger()