Lines Matching refs:words

136  * xxPMOK operating on a circular buffer of "c" words
185 eni_dev->tx[i].send,eni_dev->tx[i].words*4);
191 ENI_VCC(eni_dev->rx_map[i])->words*4);
322 printk(KERN_ALERT " VCI %d, rxing %d, words %ld\n",vcc->vci,
323 eni_vcc->rxing,eni_vcc->words);
368 here = (eni_vcc->descr+skip) & (eni_vcc->words-1);
373 here = (eni_vcc->descr+size+skip) & (eni_vcc->words-1);
376 unsigned long words;
383 words = eff;
388 if (init > words) init = words;
393 words -= init;
396 if (words & ~15) {
397 dma[j++] = MID_DT_16W | ((words >> 4) <<
401 paddr += (words & ~15) << 2;
402 words &= 15;
406 if (words & ~7) {
407 dma[j++] = MID_DT_8W | ((words >> 3) <<
411 paddr += (words & ~7) << 2;
412 words &= 7;
416 if (words & ~3) {
417 dma[j++] = MID_DT_4W | ((words >> 2) <<
421 paddr += (words & ~3) << 2;
422 words &= 3;
426 if (words & ~1) {
427 dma[j++] = MID_DT_2W | ((words >> 1) <<
431 paddr += (words & ~1) << 2;
432 words &= 1;
435 if (words) {
436 dma[j++] = MID_DT_WORD | (words << MID_DMA_COUNT_SHIFT)
497 else eni_vcc->rx_pos = (eni_vcc->rx_pos+size+1) & (eni_vcc->words-1);
585 (eni_vcc->words-1)))*4) & 0xffff;
750 eni_vcc->words)) {
756 eni_vcc->rx_pos = ENI_PRV_POS(skb) & (eni_vcc->words-1);
792 eni_vcc->words = size >> 2;
819 size = eni_vcc->words >> 8;
894 eni_free_mem(eni_dev,eni_vcc->recv,eni_vcc->words << 2);
931 u32 init,words;
952 words = size >> 2;
954 if (words && (paddr & 31)) {
956 if (init > words) init = words;
957 DPRINTK("put_dma: %lx DMA: %d/%d words\n",
958 (unsigned long) paddr,init,words);
963 words -= init;
966 if (words & ~15) {
967 DPRINTK("put_dma: %lx DMA: %d*16/%d words\n",
968 (unsigned long) paddr,words >> 4,words);
969 dma[(*j)++] = MID_DT_16W | ((words >> 4) << MID_DMA_COUNT_SHIFT)
972 paddr += (words & ~15) << 2;
973 words &= 15;
977 if (words & ~7) {
978 DPRINTK("put_dma: %lx DMA: %d*8/%d words\n",
979 (unsigned long) paddr,words >> 3,words);
980 dma[(*j)++] = MID_DT_8W | ((words >> 3) << MID_DMA_COUNT_SHIFT)
983 paddr += (words & ~7) << 2;
984 words &= 7;
988 if (words & ~3) {
989 DPRINTK("put_dma: %lx DMA: %d*4/%d words\n",
990 (unsigned long) paddr,words >> 2,words);
991 dma[(*j)++] = MID_DT_4W | ((words >> 2) << MID_DMA_COUNT_SHIFT)
994 paddr += (words & ~3) << 2;
995 words &= 3;
999 if (words & ~1) {
1000 DPRINTK("put_dma: %lx DMA: %d*2/%d words\n",
1001 (unsigned long) paddr,words >> 1,words);
1002 dma[(*j)++] = MID_DT_2W | ((words >> 1) << MID_DMA_COUNT_SHIFT)
1005 paddr += (words & ~1) << 2;
1006 words &= 1;
1009 if (words) {
1010 DPRINTK("put_dma: %lx DMA: %d words\n",(unsigned long) paddr,
1011 words);
1012 dma[(*j)++] = MID_DT_WORD | (words << MID_DMA_COUNT_SHIFT) |
1015 paddr += words << 2;
1035 u32 size; /* in words */
1088 eni_in(MID_TX_RDPTR(tx->index)),tx->words)) {
1120 eni_dev->dma[j++] = (((tx->tx_pos+TX_DESCR_SIZE) & (tx->words-1)) <<
1145 eni_dev->dma[j++] = (((tx->tx_pos+size) & (tx->words-1)) <<
1159 tx->send+((tx->tx_pos+1) & (tx->words-1))*4);
1163 ((tx->tx_pos+size-AAL5_TRAILER) & (tx->words-1))*4);
1173 tx->tx_pos = (tx->tx_pos+size) & (tx->words-1);
1223 if (ENI_VCC(vcc)->txing < tx->words && ENI_PRV_POS(skb) ==
1331 tx->words = size >> 2;
1425 eni_free_mem(eni_dev,eni_vcc->tx->send,eni_vcc->tx->words << 2);
2150 tx->send-eni_dev->ram+tx->words*4-1,tx->words*4,
2176 eni_vcc->recv-eni_dev->ram+eni_vcc->words*4-1,
2177 eni_vcc->words*4);