Lines Matching refs:ch_rx

415 	struct xrx200_chan *ch_rx = &priv->chan_rx;  in xrx200_change_mtu()  local
431 napi_disable(&ch_rx->napi); in xrx200_change_mtu()
432 ltq_dma_close(&ch_rx->dma); in xrx200_change_mtu()
435 xrx200_poll_rx(&ch_rx->napi, LTQ_DESC_NUM); in xrx200_change_mtu()
436 curr_desc = ch_rx->dma.desc; in xrx200_change_mtu()
438 for (ch_rx->dma.desc = 0; ch_rx->dma.desc < LTQ_DESC_NUM; in xrx200_change_mtu()
439 ch_rx->dma.desc++) { in xrx200_change_mtu()
440 buff = ch_rx->rx_buff[ch_rx->dma.desc]; in xrx200_change_mtu()
441 ret = xrx200_alloc_buf(ch_rx, netdev_alloc_frag); in xrx200_change_mtu()
451 ch_rx->dma.desc = curr_desc; in xrx200_change_mtu()
453 napi_enable(&ch_rx->napi); in xrx200_change_mtu()
454 ltq_dma_open(&ch_rx->dma); in xrx200_change_mtu()
455 ltq_dma_enable_irq(&ch_rx->dma); in xrx200_change_mtu()
486 struct xrx200_chan *ch_rx = &priv->chan_rx; in xrx200_dma_init() local
494 ch_rx->dma.nr = XRX200_DMA_RX; in xrx200_dma_init()
495 ch_rx->dma.dev = priv->dev; in xrx200_dma_init()
496 ch_rx->priv = priv; in xrx200_dma_init()
498 ltq_dma_alloc_rx(&ch_rx->dma); in xrx200_dma_init()
499 for (ch_rx->dma.desc = 0; ch_rx->dma.desc < LTQ_DESC_NUM; in xrx200_dma_init()
500 ch_rx->dma.desc++) { in xrx200_dma_init()
501 ret = xrx200_alloc_buf(ch_rx, netdev_alloc_frag); in xrx200_dma_init()
505 ch_rx->dma.desc = 0; in xrx200_dma_init()
506 ret = devm_request_irq(priv->dev, ch_rx->dma.irq, xrx200_dma_irq, 0, in xrx200_dma_init()
510 ch_rx->dma.irq); in xrx200_dma_init()
540 ltq_dma_free(&ch_rx->dma); in xrx200_dma_init()