/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_dma_buf.c | 25 struct dma_buf_attachment *attach) 27 struct drm_gem_object *obj = attach->dmabuf->priv; 29 if (attach->peer2peer && 30 pci_p2pdma_distance(to_pci_dev(obj->dev->dev), attach->dev, false) < 0) 31 attach->peer2peer = false; 33 if (!attach->peer2peer && !xe_bo_can_migrate(gem_to_xe_bo(obj), XE_PL_TT)) 41 struct dma_buf_attachment *attach) 43 struct drm_gem_object *obj = attach->dmabuf->priv; 48 static int xe_dma_buf_pin(struct dma_buf_attachment *attach) argument 50 struct drm_gem_object *obj = attach 24 xe_dma_buf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 40 xe_dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 80 xe_dma_buf_unpin(struct dma_buf_attachment *attach) argument 88 xe_dma_buf_map(struct dma_buf_attachment *attach, enum dma_data_direction dir) argument 143 xe_dma_buf_unmap(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 233 xe_dma_buf_move_notify(struct dma_buf_attachment *attach) argument 266 struct dma_buf_attachment *attach; local [all...] |
/linux-master/drivers/dma-buf/ |
H A D | dma-buf.c | 777 static struct sg_table * __map_dma_buf(struct dma_buf_attachment *attach, argument 783 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); 787 if (!dma_buf_attachment_is_dynamic(attach)) { 788 ret = dma_resv_wait_timeout(attach->dmabuf->resv, 792 attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, 843 * - &dma_buf_ops.attach() 868 * @dmabuf: [in] buffer to attach device to. 876 * Optionally this calls &dma_buf_ops.attach t 893 struct dma_buf_attachment *attach; local 982 __unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sg_table, enum dma_data_direction direction) argument 1001 dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 1040 dma_buf_pin(struct dma_buf_attachment *attach) argument 1064 dma_buf_unpin(struct dma_buf_attachment *attach) argument 1098 dma_buf_map_attachment(struct dma_buf_attachment *attach, enum dma_data_direction direction) argument 1175 dma_buf_map_attachment_unlocked(struct dma_buf_attachment *attach, enum dma_data_direction direction) argument 1203 dma_buf_unmap_attachment(struct dma_buf_attachment *attach, struct sg_table *sg_table, enum dma_data_direction direction) argument 1235 dma_buf_unmap_attachment_unlocked(struct dma_buf_attachment *attach, struct sg_table *sg_table, enum dma_data_direction direction) argument 1260 struct dma_buf_attachment *attach; local [all...] |
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_prime.c | 38 * DMA-BUF attach- and mapping methods. No need to implement 43 struct dma_buf_attachment *attach) 49 struct dma_buf_attachment *attach) 53 static struct sg_table *vmw_prime_map_dma_buf(struct dma_buf_attachment *attach, argument 59 static void vmw_prime_unmap_dma_buf(struct dma_buf_attachment *attach, argument 66 .attach = vmw_prime_map_attach, 42 vmw_prime_map_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument 48 vmw_prime_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_dma_buf.c | 48 * amdgpu_dma_buf_attach - &dma_buf_ops.attach implementation 50 * @dmabuf: DMA-buf where we attach to 51 * @attach: attachment to add 56 struct dma_buf_attachment *attach) 63 if (pci_p2pdma_distance(adev->pdev, attach->dev, false) < 0) 64 attach->peer2peer = false; 83 * @attach: the attachment to remove 88 struct dma_buf_attachment *attach) 102 * @attach: attachment to pin down 106 static int amdgpu_dma_buf_pin(struct dma_buf_attachment *attach) argument 55 amdgpu_dma_buf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 87 amdgpu_dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 122 amdgpu_dma_buf_unpin(struct dma_buf_attachment *attach) argument 143 amdgpu_dma_buf_map(struct dma_buf_attachment *attach, enum dma_data_direction dir) argument 214 amdgpu_dma_buf_unmap(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 369 amdgpu_dma_buf_move_notify(struct dma_buf_attachment *attach) argument 448 struct dma_buf_attachment *attach; local [all...] |
/linux-master/include/linux/ |
H A D | virtio_dma_buf.h | 17 * @ops: the base dma_buf_ops. ops.attach MUST be virtio_dma_buf_attach. 19 * all attach operations. 25 struct dma_buf_attachment *attach); 30 struct dma_buf_attachment *attach);
|
H A D | dma-buf.h | 47 * @attach: 54 * device), and otherwise need to fail the attach operation. 59 * fail the attach operation. 72 int (*attach)(struct dma_buf *, struct dma_buf_attachment *); member in struct:dma_buf_ops 109 int (*pin)(struct dma_buf_attachment *attach); 122 void (*unpin)(struct dma_buf_attachment *attach); 129 * can only be called if @attach has been called successfully. 137 * &device.dma_params from the &dma_buf_attachment. The @attach callback 486 void (*move_notify)(struct dma_buf_attachment *attach); 587 * @attach 593 dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach) argument [all...] |
H A D | atm_tcp.h | 16 int (*attach)(struct atm_vcc *vcc,int itf); member in struct:atm_tcp_ops
|
/linux-master/drivers/infiniband/core/ |
H A D | umem_dmabuf.c | 24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); 29 sgt = dma_buf_map_attachment(umem_dmabuf->attach, 72 ret = dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, 85 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); 106 dma_buf_unmap_attachment(umem_dmabuf->attach, umem_dmabuf->sgt, 153 umem_dmabuf->attach = dma_buf_dynamic_attach( 158 if (IS_ERR(umem_dmabuf->attach)) { 159 ret = ERR_CAST(umem_dmabuf->attach); 174 ib_umem_dmabuf_unsupported_move_notify(struct dma_buf_attachment *attach) argument 176 struct ib_umem_dmabuf *umem_dmabuf = attach [all...] |
/linux-master/drivers/gpu/drm/omapdrm/ |
H A D | omap_gem_dmabuf.c | 100 struct dma_buf_attachment *attach; local 117 attach = dma_buf_attach(dma_buf, dev->dev); 118 if (IS_ERR(attach)) 119 return ERR_CAST(attach); 123 sgt = dma_buf_map_attachment_unlocked(attach, DMA_TO_DEVICE); 135 obj->import_attach = attach; 140 dma_buf_unmap_attachment_unlocked(attach, sgt, DMA_TO_DEVICE); 142 dma_buf_detach(dma_buf, attach);
|
/linux-master/drivers/virtio/ |
H A D | virtio_dma_buf.c | 28 exp_info->ops->attach != &virtio_dma_buf_attach || 38 * virtio_dma_buf_attach - mandatory attach callback for virtio dma-bufs 41 struct dma_buf_attachment *attach) 49 ret = ops->device_attach(dma_buf, attach); 63 return dma_buf->ops->attach == &virtio_dma_buf_attach; 40 virtio_dma_buf_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument
|
/linux-master/drivers/gpu/drm/virtio/ |
H A D | virtgpu_prime.c | 47 virtgpu_gem_map_dma_buf(struct dma_buf_attachment *attach, argument 50 struct drm_gem_object *obj = attach->dmabuf->priv; 54 return virtio_gpu_vram_map_dma_buf(bo, attach->dev, dir); 56 return drm_gem_map_dma_buf(attach, dir); 59 static void virtgpu_gem_unmap_dma_buf(struct dma_buf_attachment *attach, argument 63 struct drm_gem_object *obj = attach->dmabuf->priv; 67 virtio_gpu_vram_unmap_dma_buf(attach->dev, sgt, dir); 71 drm_gem_unmap_dma_buf(attach, sgt, dir); 77 .attach = virtio_dma_buf_attach, 166 struct drm_device *dev, struct dma_buf_attachment *attach, 165 virtgpu_gem_prime_import_sg_table( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *table) argument [all...] |
/linux-master/drivers/media/common/videobuf2/ |
H A D | videobuf2-vmalloc.c | 215 struct vb2_vmalloc_attachment *attach; local 224 attach = kzalloc(sizeof(*attach), GFP_KERNEL); 225 if (!attach) 228 sgt = &attach->sgt; 231 kfree(attach); 239 kfree(attach); 246 attach->dma_dir = DMA_NONE; 247 dbuf_attach->priv = attach; 254 struct vb2_vmalloc_attachment *attach local 273 struct vb2_vmalloc_attachment *attach = db_attach->priv; local [all...] |
/linux-master/drivers/gpu/drm/msm/ |
H A D | msm_gem_prime.c | 43 struct dma_buf_attachment *attach, struct sg_table *sg) 45 return msm_gem_import(dev, attach->dmabuf, sg); 42 msm_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
|
/linux-master/drivers/acpi/dptf/ |
H A D | int340x_thermal.c | 69 .attach = int340x_thermal_handler_attach,
|
/linux-master/include/drm/ |
H A D | drm_prime.h | 78 struct dma_buf_attachment *attach); 80 struct dma_buf_attachment *attach); 81 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, 83 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | flow_dissector_load.c | 62 bool attach = false; local 70 error(1, 0, "attach/detach are exclusive"); 71 attach = true; 74 if (attach) 75 error(1, 0, "attach/detach are exclusive");
|
/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_dcb.h | 30 int (*attach) (struct qlcnic_dcb *); member in struct:qlcnic_dcb_ops 60 if (dcb && dcb->ops->attach) 61 return dcb->ops->attach(dcb);
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_prime.c | 46 struct dma_buf_attachment *attach, 49 struct dma_resv *resv = attach->dmabuf->resv; 55 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false, 45 radeon_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
|
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_dmabuf.c | 28 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attach, argument 31 struct drm_i915_gem_object *obj = dma_buf_to_obj(attach->dmabuf); 56 ret = dma_map_sgtable(attach->dev, sgt, dir, DMA_ATTR_SKIP_CPU_SYNC); 168 struct dma_buf_attachment *attach) 197 struct dma_buf_attachment *attach) 205 .attach = i915_gem_dmabuf_attach, 286 struct dma_buf_attachment *attach; local 307 /* need to attach */ 308 attach = dma_buf_attach(dma_buf, dev->dev); 309 if (IS_ERR(attach)) 167 i915_gem_dmabuf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 196 i915_gem_dmabuf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_prime.c | 40 struct dma_buf_attachment *attach, 46 struct dma_resv *robj = attach->dmabuf->resv; 47 u64 size = attach->dmabuf->size; 39 nouveau_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
|
/linux-master/drivers/gpu/drm/xen/ |
H A D | xen_drm_front_gem.h | 25 struct dma_buf_attachment *attach,
|
/linux-master/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_kms.h | 41 struct dma_buf_attachment *attach,
|
/linux-master/include/net/ |
H A D | rsi_91x.h | 50 int (*attach)(void *priv, struct rsi_proto_ops *ops); member in struct:rsi_mod_ops
|
/linux-master/drivers/gpu/drm/loongson/ |
H A D | lsdc_gem.h | 14 struct dma_buf_attachment *attach,
|
/linux-master/drivers/gpu/drm/renesas/rz-du/ |
H A D | rzg2l_du_kms.h | 40 struct dma_buf_attachment *attach,
|