Lines Matching refs:send
76 struct tiger_dma send; member
181 bc->bch.nr, fill, cnt, idx, card->send.idx); in fill_mem()
188 val = card->send.start[idx]; in fill_mem()
191 card->send.start[idx++] = val; in fill_mem()
192 if (idx >= card->send.size) in fill_mem()
208 fill_mem(bc, 0, card->send.size, 0xff); in mode_tiger()
227 bc->free = card->send.size / 2; in mode_tiger()
241 bc->free = card->send.size / 2; in mode_tiger()
258 card->send.dmacur = inl(card->base + NJ_DMA_READ_ADR); in mode_tiger()
260 card->send.idx = (card->send.dmacur - card->send.dmastart) >> 2; in mode_tiger()
267 card->send.idx, in mode_tiger()
324 card->send.start = card->dma_p; in inittiger()
325 card->send.dmastart = (u32)card->dma; in inittiger()
326 card->send.dmaend = card->send.dmastart + in inittiger()
328 card->send.dmairq = card->send.dmastart + in inittiger()
330 card->send.size = NJ_DMA_TXSIZE; in inittiger()
335 card->send.dmastart, card->send.dmairq, in inittiger()
336 card->send.dmaend, card->send.start, card->send.size); in inittiger()
338 outl(card->send.dmastart, card->base + NJ_DMA_READ_START); in inittiger()
339 outl(card->send.dmairq, card->base + NJ_DMA_READ_IRQ); in inittiger()
340 outl(card->send.dmaend, card->base + NJ_DMA_READ_END); in inittiger()
467 card->send.dmacur = inl(card->base | NJ_DMA_READ_ADR); in resync()
468 card->send.idx = (card->send.dmacur - card->send.dmastart) >> 2; in resync()
469 if (bc->free > card->send.size / 2) in resync()
470 bc->free = card->send.size / 2; in resync()
475 if (card->send.idx < ((card->send.size / 2) - 1)) in resync()
481 __func__, bc->bch.nr, bc->free, bc->idx, card->send.idx); in resync()
498 bc->idx, card->send.idx); in fill_hdlc_flag()
509 if (bc->idx >= card->send.size) in fill_hdlc_flag()
511 v = card->send.start[bc->idx]; in fill_hdlc_flag()
514 card->send.start[bc->idx++] = v; in fill_hdlc_flag()
537 count = card->send.size >> 1; in fill_dma()
546 bc->idx, card->send.idx); in fill_dma()
572 if (bc->idx >= card->send.size) in fill_dma()
574 v = card->send.start[bc->idx]; in fill_dma()
577 card->send.start[bc->idx++] = v; in fill_dma()
581 if (bc->idx >= card->send.size) in fill_dma()
583 v = card->send.start[bc->idx]; in fill_dma()
587 card->send.start[bc->idx++] = v; in fill_dma()
629 bc->free += card->send.size / 2; in send_tiger_bc()
630 if (bc->free >= card->send.size) { in send_tiger_bc()
636 bc->free = card->send.size; in send_tiger_bc()
645 bc->bch.nr, bc->free, bc->idx, card->send.idx); in send_tiger_bc()
648 if (bc->free == card->send.size) in send_tiger_bc()
710 card->send.dmacur = inl(card->base | NJ_DMA_READ_ADR); in nj_irq()
711 card->send.idx = (card->send.dmacur - card->send.dmastart) >> 2; in nj_irq()
712 if (card->send.dmacur < card->send.dmairq) in nj_irq()
719 card->recv.idx, card->send.idx); in nj_irq()
1023 card->bc[i].bch.ch.send = nj_l2l1B; in setup_instance()