search for: fail_map

Displaying 3 results from an estimated 3 matches for "fail_map".

2016 Jun 02
0
[RFC v3 19/45] [media] dma-mapping: Use unsigned long for dma_attrs
...sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, - buf->dma_dir, &attrs); + buf->dma_dir, DMA_ATTR_SKIP_CPU_SYNC); if (sgt->nents <= 0) { pr_err("failed to map scatterlist\n"); ret = -EIO; @@ -578,7 +572,7 @@ out: fail_map_sg: dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, - buf->dma_dir, &attrs); + buf->dma_dir, DMA_ATTR_SKIP_CPU_SYNC); fail_sgt_init: sg_free_table(sgt); @@ -730,7 +724,7 @@ const struct vb2_mem_ops vb2_dma_contig_memops = { EXPORT_SYMBOL_GPL(vb2_dma_cont...
2011 Apr 04
0
[PATCH] linux-2.6.18/backends: use xenbus_be.ko interfaces instead of open-coding them
...ef); + if (IS_ERR(area)) + return PTR_ERR(area); + usbif->urb_ring_area = area; + area = xenbus_map_ring_valloc(usbif->xbdev, conn_ring_ref); + if (IS_ERR(area)) { + err = PTR_ERR(area); goto fail_alloc; - - err = map_frontend_pages(usbif, urb_ring_ref, conn_ring_ref); - if (err) - goto fail_map; + } + usbif->conn_ring_area = area; err = bind_interdomain_evtchn_to_irqhandler( usbif->domid, evtchn, usbbk_be_int, 0, @@ -197,11 +140,9 @@ int usbif_map(usbif_t *usbif, unsigned l return 0; fail_evtchn: - unmap_frontend_pages(usbif); -fail_map: - free_vm_area(usbif->conn_ri...
2016 Jun 02
52
[RFC v3 00/45] dma-mapping: Use unsigned long for dma_attrs
Hi, This is third approach (complete this time) for replacing struct dma_attrs with unsigned long. The main patch (2/45) doing the change is split into many subpatches for easier review (3-43). They should be squashed together when applying. *Important:* Patchset is *only* build tested on allyesconfigs: ARM, ARM64, i386, x86_64 and powerpc. Please provide reviewes and tests for other