Lines Matching refs:desc

96 void omni_sg_dma_start(struct cobalt_stream *s, struct sg_dma_desc_info *desc)  in omni_sg_dma_start()  argument
100 iowrite32((u32)((u64)desc->bus >> 32), DESCRIPTOR(s->dma_channel) + 4); in omni_sg_dma_start()
101 iowrite32((u32)desc->bus & NEXT_ADRS_MSK, DESCRIPTOR(s->dma_channel)); in omni_sg_dma_start()
152 struct sg_dma_desc_info *desc) in descriptor_list_create() argument
154 struct sg_dma_descriptor *d = (struct sg_dma_descriptor *)desc->virt; in descriptor_list_create()
155 dma_addr_t next = desc->bus; in descriptor_list_create()
256 d->next_h = (u32)((u64)desc->bus >> 32); in descriptor_list_create()
257 d->next_l = (u32)desc->bus | in descriptor_list_create()
261 desc->last_desc_virt = d; in descriptor_list_create()
286 void *descriptor_list_allocate(struct sg_dma_desc_info *desc, size_t bytes) in descriptor_list_allocate() argument
288 desc->size = bytes; in descriptor_list_allocate()
289 desc->virt = dma_alloc_coherent(desc->dev, bytes, in descriptor_list_allocate()
290 &desc->bus, GFP_KERNEL); in descriptor_list_allocate()
291 return desc->virt; in descriptor_list_allocate()
294 void descriptor_list_free(struct sg_dma_desc_info *desc) in descriptor_list_free() argument
296 if (desc->virt) in descriptor_list_free()
297 dma_free_coherent(desc->dev, desc->size, in descriptor_list_free()
298 desc->virt, desc->bus); in descriptor_list_free()
299 desc->virt = NULL; in descriptor_list_free()
302 void descriptor_list_interrupt_enable(struct sg_dma_desc_info *desc) in descriptor_list_interrupt_enable() argument
304 struct sg_dma_descriptor *d = desc->last_desc_virt; in descriptor_list_interrupt_enable()
309 void descriptor_list_interrupt_disable(struct sg_dma_desc_info *desc) in descriptor_list_interrupt_disable() argument
311 struct sg_dma_descriptor *d = desc->last_desc_virt; in descriptor_list_interrupt_disable()
316 void descriptor_list_loopback(struct sg_dma_desc_info *desc) in descriptor_list_loopback() argument
318 struct sg_dma_descriptor *d = desc->last_desc_virt; in descriptor_list_loopback()
320 d->next_h = (u32)((u64)desc->bus >> 32); in descriptor_list_loopback()
321 d->next_l = (u32)desc->bus | (d->next_l & DESCRIPTOR_FLAG_MSK); in descriptor_list_loopback()
324 void descriptor_list_end_of_chain(struct sg_dma_desc_info *desc) in descriptor_list_end_of_chain() argument
326 struct sg_dma_descriptor *d = desc->last_desc_virt; in descriptor_list_end_of_chain()