Lines Matching refs:rings
167 struct hci_rings_data *rings = hci->io_data; in hci_dma_cleanup() local
171 if (!rings) in hci_dma_cleanup()
174 for (i = 0; i < rings->total; i++) { in hci_dma_cleanup()
175 rh = &rings->headers[i]; in hci_dma_cleanup()
204 kfree(rings); in hci_dma_cleanup()
210 struct hci_rings_data *rings; in hci_dma_init() local
226 rings = kzalloc(sizeof(*rings) + nr_rings * sizeof(*rh), GFP_KERNEL); in hci_dma_init()
227 if (!rings) in hci_dma_init()
229 hci->io_data = rings; in hci_dma_init()
230 rings->total = nr_rings; in hci_dma_init()
232 for (i = 0; i < rings->total; i++) { in hci_dma_init()
239 rh = &rings->headers[i]; in hci_dma_init()
331 regval = FIELD_PREP(MAX_HEADER_COUNT, rings->total); in hci_dma_init()
357 struct hci_rings_data *rings = hci->io_data; in hci_dma_queue_xfer() local
364 rh = &rings->headers[ring]; in hci_dma_queue_xfer()
442 struct hci_rings_data *rings = hci->io_data; in hci_dma_dequeue_xfer() local
443 struct hci_rh_data *rh = &rings->headers[xfer_list[0].ring_number]; in hci_dma_dequeue_xfer()
733 struct hci_rings_data *rings = hci->io_data; in hci_dma_irq_handler() local
745 rh = &rings->headers[i]; in hci_dma_irq_handler()