Searched defs:attach (Results 1 - 25 of 33) sorted by relevance

12

/drivers/gpu/drm/msm/
H A Dmsm_gem_prime.c41 struct dma_buf_attachment *attach, struct sg_table *sg)
43 return msm_gem_import(dev, attach->dmabuf->size, sg);
40 msm_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
H A Dmsm_mmu.h24 int (*attach)(struct msm_mmu *mmu, const char **names, int cnt); member in struct:msm_mmu_funcs
/drivers/gpu/drm/qxl/
H A Dqxl_prime.c49 struct drm_device *dev, struct dma_buf_attachment *attach,
48 qxl_gem_prime_import_sg_table( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *table) argument
/drivers/gpu/drm/nouveau/
H A Dnouveau_prime.c60 struct dma_buf_attachment *attach,
64 struct reservation_object *robj = attach->dmabuf->resv;
71 ret = nouveau_bo_new(dev, attach->dmabuf->size, 0, flags, 0, 0,
59 nouveau_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
/drivers/gpu/drm/radeon/
H A Dradeon_prime.c61 struct dma_buf_attachment *attach,
64 struct reservation_object *resv = attach->dmabuf->resv;
70 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false,
60 radeon_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
/drivers/gpu/drm/
H A Ddrm_gem_cma_helper.c320 struct dma_buf_attachment *attach,
329 cma_obj = __drm_gem_cma_create(dev, attach->dmabuf->size);
336 DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, attach->dmabuf->size);
319 drm_gem_cma_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt) argument
H A Ddrm_prime.c120 struct dma_buf_attachment *attach)
131 attach->priv = prime_attach;
140 struct dma_buf_attachment *attach)
142 struct drm_prime_attachment *prime_attach = attach->priv;
156 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents,
163 attach->priv = NULL;
180 static struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, argument
183 struct drm_prime_attachment *prime_attach = attach->priv;
184 struct drm_gem_object *obj = attach->dmabuf->priv;
204 if (!dma_map_sg(attach
118 drm_gem_map_attach(struct dma_buf *dma_buf, struct device *target_dev, struct dma_buf_attachment *attach) argument
139 drm_gem_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument
217 drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument
496 struct dma_buf_attachment *attach; local
748 struct dma_buf_attachment *attach; local
[all...]
/drivers/gpu/drm/exynos/
H A Dexynos_drm_dmabuf.c33 struct dma_buf_attachment *attach)
42 attach->priv = exynos_attach;
48 struct dma_buf_attachment *attach)
50 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv;
59 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents,
64 attach->priv = NULL;
68 exynos_gem_map_dma_buf(struct dma_buf_attachment *attach, argument
71 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv;
72 struct exynos_drm_gem_obj *gem_obj = dma_buf_to_obj(attach->dmabuf);
109 nents = dma_map_sg(attach
31 exynos_gem_attach_dma_buf(struct dma_buf *dmabuf, struct device *dev, struct dma_buf_attachment *attach) argument
47 exynos_gem_detach_dma_buf(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument
129 exynos_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument
196 struct dma_buf_attachment *attach; local
[all...]
/drivers/gpu/drm/udl/
H A Dudl_gem.c255 struct dma_buf_attachment *attach; local
260 /* need to attach */
262 attach = dma_buf_attach(dma_buf, dev->dev);
263 if (IS_ERR(attach)) {
265 return ERR_CAST(attach);
270 sg = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL);
281 uobj->base.import_attach = attach;
286 dma_buf_unmap_attachment(attach, sg, DMA_BIDIRECTIONAL);
288 dma_buf_detach(dma_buf, attach);
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_prime.c38 * DMA-BUF attach- and mapping methods. No need to implement
44 struct dma_buf_attachment *attach)
50 struct dma_buf_attachment *attach)
54 static struct sg_table *vmw_prime_map_dma_buf(struct dma_buf_attachment *attach, argument
60 static void vmw_prime_unmap_dma_buf(struct dma_buf_attachment *attach, argument
106 .attach = vmw_prime_map_attach,
42 vmw_prime_map_attach(struct dma_buf *dma_buf, struct device *target_dev, struct dma_buf_attachment *attach) argument
49 vmw_prime_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument
/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_dcb.h31 int (*attach) (struct qlcnic_dcb *); member in struct:qlcnic_dcb_ops
67 if (dcb && dcb->ops->attach)
68 return dcb->ops->attach(dcb);
/drivers/video/adf/
H A Dadf_memblock.c24 static struct sg_table *adf_memblock_map(struct dma_buf_attachment *attach, argument
27 struct adf_memblock_pdata *pdata = attach->dmabuf->priv;
41 sg_set_page(table->sgl, page, attach->dmabuf->size, 0);
43 nents = dma_map_sg(attach->dev, table->sgl, 1, direction);
58 static void adf_memblock_unmap(struct dma_buf_attachment *attach, argument
61 dma_unmap_sg(attach->dev, table->sgl, 1, direction);
H A Dadf_fops.c450 struct adf_attachment *attach = NULL; local
465 attach = kzalloc(data.n_attachments * sizeof(attach[0]),
467 if (!attach)
470 n_attach = adf_device_attachments(dev, attach, data.n_attachments);
492 data.n_attachments, attach, n_attach);
510 kfree(attach);
515 struct adf_attachment_config __user *arg, bool attach)
538 if (attach)
514 adf_device_handle_attachment(struct adf_device *dev, struct adf_attachment_config __user *arg, bool attach) argument
/drivers/gpu/drm/armada/
H A Darmada_gem.c421 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, argument
424 struct drm_gem_object *obj = attach->dmabuf->priv;
456 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) {
467 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0)
490 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, argument
493 struct drm_gem_object *obj = attach->dmabuf->priv;
498 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, dir);
548 struct dma_buf_attachment *attach; local
563 attach = dma_buf_attach(buf, dev->dev);
564 if (IS_ERR(attach))
[all...]
/drivers/gpu/drm/i915/
H A Di915_gem_dmabuf.c272 struct dma_buf_attachment *attach; local
290 /* need to attach */
291 attach = dma_buf_attach(dma_buf, dev->dev);
292 if (IS_ERR(attach))
293 return ERR_CAST(attach);
305 obj->base.import_attach = attach;
310 dma_buf_detach(dma_buf, attach);
/drivers/gpu/drm/nouveau/core/engine/disp/
H A Dnv50.h113 int (*attach)(struct nouveau_object *, struct nouveau_object *, u32); member in struct:nv50_disp_chan_impl
/drivers/gpu/drm/tegra/
H A Dgem.c176 struct dma_buf_attachment *attach; local
196 attach = dma_buf_attach(buf, drm->dev);
197 if (IS_ERR(attach)) {
198 err = PTR_ERR(attach);
204 bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE);
221 bo->gem.import_attach = attach;
227 dma_buf_unmap_attachment(attach, bo->sgt, DMA_TO_DEVICE);
229 dma_buf_detach(buf, attach);
334 tegra_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, argument
337 struct drm_gem_object *gem = attach
356 tegra_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument
[all...]
/drivers/net/wireless/prism54/
H A Doid_mgt.c331 struct obj_attachment *attach = data; local
332 attach->id = le16_to_cpu(attach->id);
333 attach->size = le16_to_cpu(attach->size);
400 struct obj_attachment *attach = data; local
401 attach->id = cpu_to_le16(attach->id);
402 attach->size = cpu_to_le16(attach
857 struct obj_attachment *attach = r->ptr; local
[all...]
/drivers/scsi/bfa/
H A Dbfa_modules.h101 void (*attach) (struct bfa_s *bfa, void *bfad, member in struct:bfa_module_s
/drivers/staging/android/ion/
H A Dion_test.c48 struct dma_buf_attachment *attach; local
55 attach = dma_buf_attach(dma_buf, dev);
56 if (IS_ERR(attach))
57 return PTR_ERR(attach);
59 table = dma_buf_map_attachment(attach, dir);
95 dma_buf_unmap_attachment(attach, table, dir);
96 dma_buf_detach(dma_buf, attach);
/drivers/media/common/b2c2/
H A Dflexcop-fe-tuner.c624 int (*attach)(struct flexcop_device *, struct i2c_adapter *); member in struct:__anon1987
642 if (!flexcop_frontends[i].attach)
647 if (flexcop_frontends[i].attach(fc, &fc->fc_i2c_adap[0].i2c_adap))
/drivers/dma-buf/
H A Ddma-buf.c414 * calls attach() of dma_buf_ops to allow device-specific attach functionality
415 * @dmabuf: [in] buffer to attach device to.
424 struct dma_buf_attachment *attach; local
430 attach = kzalloc(sizeof(struct dma_buf_attachment), GFP_KERNEL);
431 if (attach == NULL)
434 attach->dev = dev;
435 attach->dmabuf = dmabuf;
439 if (dmabuf->ops->attach) {
440 ret = dmabuf->ops->attach(dmabu
463 dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument
488 dma_buf_map_attachment(struct dma_buf_attachment *attach, enum dma_data_direction direction) argument
515 dma_buf_unmap_attachment(struct dma_buf_attachment *attach, struct sg_table *sg_table, enum dma_data_direction direction) argument
[all...]
/drivers/media/v4l2-core/
H A Dvideobuf2-dma-contig.c238 struct vb2_dc_attachment *attach; local
245 attach = kzalloc(sizeof(*attach), GFP_KERNEL);
246 if (!attach)
249 sgt = &attach->sgt;
255 kfree(attach);
267 attach->dir = DMA_NONE;
268 dbuf_attach->priv = attach;
276 struct vb2_dc_attachment *attach = db_attach->priv; local
279 if (!attach)
296 struct vb2_dc_attachment *attach = db_attach->priv; local
[all...]
/drivers/staging/media/omap24xx/
H A Dv4l2-int-device.h48 int (*attach)(struct v4l2_int_device *slave); member in struct:v4l2_int_master
/drivers/md/bcache/
H A Dsysfs.c30 write_attribute(attach); variable
275 pr_err("Can't attach %s: cache set not found", buf);

Completed in 423 milliseconds

12