Lines Matching refs:rt2x00dev
24 int rt2x00mmio_regbusy_read(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_regbusy_read() argument
31 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00mmio_regbusy_read()
35 *reg = rt2x00mmio_register_read(rt2x00dev, offset); in rt2x00mmio_regbusy_read()
49 bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev) in rt2x00mmio_rxdone() argument
51 struct data_queue *queue = rt2x00dev->rx; in rt2x00mmio_rxdone()
61 if (rt2x00dev->ops->lib->get_entry_state(entry)) in rt2x00mmio_rxdone()
100 static int rt2x00mmio_alloc_queue_dma(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_alloc_queue_dma() argument
111 addr = dma_alloc_coherent(rt2x00dev->dev, in rt2x00mmio_alloc_queue_dma()
129 static void rt2x00mmio_free_queue_dma(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_free_queue_dma() argument
136 dma_free_coherent(rt2x00dev->dev, in rt2x00mmio_free_queue_dma()
142 int rt2x00mmio_initialize(struct rt2x00_dev *rt2x00dev) in rt2x00mmio_initialize() argument
150 queue_for_each(rt2x00dev, queue) { in rt2x00mmio_initialize()
151 status = rt2x00mmio_alloc_queue_dma(rt2x00dev, queue); in rt2x00mmio_initialize()
159 status = request_irq(rt2x00dev->irq, in rt2x00mmio_initialize()
160 rt2x00dev->ops->lib->irq_handler, in rt2x00mmio_initialize()
161 IRQF_SHARED, rt2x00dev->name, rt2x00dev); in rt2x00mmio_initialize()
163 rt2x00_err(rt2x00dev, "IRQ %d allocation failed (error %d)\n", in rt2x00mmio_initialize()
164 rt2x00dev->irq, status); in rt2x00mmio_initialize()
171 queue_for_each(rt2x00dev, queue) in rt2x00mmio_initialize()
172 rt2x00mmio_free_queue_dma(rt2x00dev, queue); in rt2x00mmio_initialize()
178 void rt2x00mmio_uninitialize(struct rt2x00_dev *rt2x00dev) in rt2x00mmio_uninitialize() argument
185 free_irq(rt2x00dev->irq, rt2x00dev); in rt2x00mmio_uninitialize()
190 queue_for_each(rt2x00dev, queue) in rt2x00mmio_uninitialize()
191 rt2x00mmio_free_queue_dma(rt2x00dev, queue); in rt2x00mmio_uninitialize()