Lines Matching refs:a
525 static int olaps_cmp(const void *a, const void *b) in olaps_cmp() argument
527 struct fastrpc_buf_overlap *pa = (struct fastrpc_buf_overlap *)a; in olaps_cmp()
654 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_map_dma_buf() local
658 table = &a->sgt; in fastrpc_map_dma_buf()
683 struct fastrpc_dma_buf_attachment *a; in fastrpc_dma_buf_attach() local
687 a = kzalloc(sizeof(*a), GFP_KERNEL); in fastrpc_dma_buf_attach()
688 if (!a) in fastrpc_dma_buf_attach()
691 ret = dma_get_sgtable(buffer->dev, &a->sgt, buffer->virt, in fastrpc_dma_buf_attach()
695 kfree(a); in fastrpc_dma_buf_attach()
699 a->dev = attachment->dev; in fastrpc_dma_buf_attach()
700 INIT_LIST_HEAD(&a->node); in fastrpc_dma_buf_attach()
701 attachment->priv = a; in fastrpc_dma_buf_attach()
704 list_add(&a->node, &buffer->attachments); in fastrpc_dma_buf_attach()
713 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_dma_buf_detatch() local
717 list_del(&a->node); in fastrpc_dma_buf_detatch()
719 sg_free_table(&a->sgt); in fastrpc_dma_buf_detatch()
720 kfree(a); in fastrpc_dma_buf_detatch()