Lines Matching refs:words
185 eni_dev->tx[i].send,eni_dev->tx[i].words*4); in dump()
191 ENI_VCC(eni_dev->rx_map[i])->words*4); in dump()
323 eni_vcc->rxing,eni_vcc->words); in rx_ident_err()
368 here = (eni_vcc->descr+skip) & (eni_vcc->words-1); in do_rx_dma()
373 here = (eni_vcc->descr+size+skip) & (eni_vcc->words-1); in do_rx_dma()
376 unsigned long words; in do_rx_dma() local
383 words = eff; in do_rx_dma()
388 if (init > words) init = words; in do_rx_dma()
393 words -= init; in do_rx_dma()
396 if (words & ~15) { in do_rx_dma()
397 dma[j++] = MID_DT_16W | ((words >> 4) << in do_rx_dma()
401 paddr += (words & ~15) << 2; in do_rx_dma()
402 words &= 15; in do_rx_dma()
406 if (words & ~7) { in do_rx_dma()
407 dma[j++] = MID_DT_8W | ((words >> 3) << in do_rx_dma()
411 paddr += (words & ~7) << 2; in do_rx_dma()
412 words &= 7; in do_rx_dma()
416 if (words & ~3) { in do_rx_dma()
417 dma[j++] = MID_DT_4W | ((words >> 2) << in do_rx_dma()
421 paddr += (words & ~3) << 2; in do_rx_dma()
422 words &= 3; in do_rx_dma()
426 if (words & ~1) { in do_rx_dma()
427 dma[j++] = MID_DT_2W | ((words >> 1) << in do_rx_dma()
431 paddr += (words & ~1) << 2; in do_rx_dma()
432 words &= 1; in do_rx_dma()
435 if (words) { in do_rx_dma()
436 dma[j++] = MID_DT_WORD | (words << MID_DMA_COUNT_SHIFT) in do_rx_dma()
497 else eni_vcc->rx_pos = (eni_vcc->rx_pos+size+1) & (eni_vcc->words-1); in discard()
585 (eni_vcc->words-1)))*4) & 0xffff; in rx_aal5()
750 eni_vcc->words)) { in dequeue_rx()
756 eni_vcc->rx_pos = ENI_PRV_POS(skb) & (eni_vcc->words-1); in dequeue_rx()
792 eni_vcc->words = size >> 2; in open_rx_first()
819 size = eni_vcc->words >> 8; in open_rx_second()
894 eni_free_mem(eni_dev,eni_vcc->recv,eni_vcc->words << 2); in close_rx()
931 u32 init,words; in put_dma() local
952 words = size >> 2; in put_dma()
954 if (words && (paddr & 31)) { in put_dma()
956 if (init > words) init = words; in put_dma()
958 (unsigned long) paddr,init,words); in put_dma()
963 words -= init; in put_dma()
966 if (words & ~15) { in put_dma()
968 (unsigned long) paddr,words >> 4,words); in put_dma()
969 dma[(*j)++] = MID_DT_16W | ((words >> 4) << MID_DMA_COUNT_SHIFT) in put_dma()
972 paddr += (words & ~15) << 2; in put_dma()
973 words &= 15; in put_dma()
977 if (words & ~7) { in put_dma()
979 (unsigned long) paddr,words >> 3,words); in put_dma()
980 dma[(*j)++] = MID_DT_8W | ((words >> 3) << MID_DMA_COUNT_SHIFT) in put_dma()
983 paddr += (words & ~7) << 2; in put_dma()
984 words &= 7; in put_dma()
988 if (words & ~3) { in put_dma()
990 (unsigned long) paddr,words >> 2,words); in put_dma()
991 dma[(*j)++] = MID_DT_4W | ((words >> 2) << MID_DMA_COUNT_SHIFT) in put_dma()
994 paddr += (words & ~3) << 2; in put_dma()
995 words &= 3; in put_dma()
999 if (words & ~1) { in put_dma()
1001 (unsigned long) paddr,words >> 1,words); in put_dma()
1002 dma[(*j)++] = MID_DT_2W | ((words >> 1) << MID_DMA_COUNT_SHIFT) in put_dma()
1005 paddr += (words & ~1) << 2; in put_dma()
1006 words &= 1; in put_dma()
1009 if (words) { in put_dma()
1011 words); in put_dma()
1012 dma[(*j)++] = MID_DT_WORD | (words << MID_DMA_COUNT_SHIFT) | in put_dma()
1015 paddr += words << 2; in put_dma()
1088 eni_in(MID_TX_RDPTR(tx->index)),tx->words)) { in do_tx()
1118 eni_dev->dma[j++] = (((tx->tx_pos+TX_DESCR_SIZE) & (tx->words-1)) << in do_tx()
1143 eni_dev->dma[j++] = (((tx->tx_pos+size) & (tx->words-1)) << in do_tx()
1157 tx->send+((tx->tx_pos+1) & (tx->words-1))*4); in do_tx()
1161 ((tx->tx_pos+size-AAL5_TRAILER) & (tx->words-1))*4); in do_tx()
1171 tx->tx_pos = (tx->tx_pos+size) & (tx->words-1); in do_tx()
1221 if (ENI_VCC(vcc)->txing < tx->words && ENI_PRV_POS(skb) == in dequeue_tx()
1329 tx->words = size >> 2; in reserve_or_set_tx()
1423 eni_free_mem(eni_dev,eni_vcc->tx->send,eni_vcc->tx->words << 2); in close_tx()
2148 tx->send-eni_dev->ram+tx->words*4-1,tx->words*4, in eni_proc_read()
2174 eni_vcc->recv-eni_dev->ram+eni_vcc->words*4-1, in eni_proc_read()
2175 eni_vcc->words*4); in eni_proc_read()