Home
last modified time | relevance | path

Searched refs:attach (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/Linux-v5.4/drivers/gpu/drm/udl/
Dudl_dmabuf.c22 struct dma_buf_attachment *attach) in udl_attach_dma_buf() argument
26 DRM_DEBUG_PRIME("[DEV:%s] size:%zd\n", dev_name(attach->dev), in udl_attach_dma_buf()
27 attach->dmabuf->size); in udl_attach_dma_buf()
34 attach->priv = udl_attach; in udl_attach_dma_buf()
40 struct dma_buf_attachment *attach) in udl_detach_dma_buf() argument
42 struct udl_drm_dmabuf_attachment *udl_attach = attach->priv; in udl_detach_dma_buf()
48 DRM_DEBUG_PRIME("[DEV:%s] size:%zd\n", dev_name(attach->dev), in udl_detach_dma_buf()
49 attach->dmabuf->size); in udl_detach_dma_buf()
54 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, in udl_detach_dma_buf()
59 attach->priv = NULL; in udl_detach_dma_buf()
[all …]
/Linux-v5.4/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c214 struct vb2_vmalloc_attachment *attach; in vb2_vmalloc_dmabuf_ops_attach() local
223 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
224 if (!attach) in vb2_vmalloc_dmabuf_ops_attach()
227 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
230 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
238 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
245 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
246 dbuf_attach->priv = attach; in vb2_vmalloc_dmabuf_ops_attach()
253 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach() local
256 if (!attach) in vb2_vmalloc_dmabuf_ops_detach()
[all …]
Dvideobuf2-dma-sg.c366 struct vb2_dma_sg_attachment *attach; in vb2_dma_sg_dmabuf_ops_attach() local
373 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
374 if (!attach) in vb2_dma_sg_dmabuf_ops_attach()
377 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_attach()
383 kfree(attach); in vb2_dma_sg_dmabuf_ops_attach()
395 attach->dma_dir = DMA_NONE; in vb2_dma_sg_dmabuf_ops_attach()
396 dbuf_attach->priv = attach; in vb2_dma_sg_dmabuf_ops_attach()
404 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach() local
407 if (!attach) in vb2_dma_sg_dmabuf_ops_detach()
410 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_detach()
[all …]
Dvideobuf2-dma-contig.c222 struct vb2_dc_attachment *attach; in vb2_dc_dmabuf_ops_attach() local
229 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
230 if (!attach) in vb2_dc_dmabuf_ops_attach()
233 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_attach()
239 kfree(attach); in vb2_dc_dmabuf_ops_attach()
251 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach()
252 dbuf_attach->priv = attach; in vb2_dc_dmabuf_ops_attach()
260 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach() local
263 if (!attach) in vb2_dc_dmabuf_ops_detach()
266 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_detach()
[all …]
/Linux-v5.4/drivers/dma-buf/
Ddma-buf.c668 struct dma_buf_attachment *attach; in dma_buf_attach() local
674 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_attach()
675 if (!attach) in dma_buf_attach()
678 attach->dev = dev; in dma_buf_attach()
679 attach->dmabuf = dmabuf; in dma_buf_attach()
683 if (dmabuf->ops->attach) { in dma_buf_attach()
684 ret = dmabuf->ops->attach(dmabuf, attach); in dma_buf_attach()
688 list_add(&attach->node, &dmabuf->attachments); in dma_buf_attach()
692 return attach; in dma_buf_attach()
695 kfree(attach); in dma_buf_attach()
[all …]
/Linux-v5.4/drivers/xen/
Dgntdev-dmabuf.c53 struct dma_buf_attachment *attach; member
226 struct dma_buf_attachment *attach) in dmabuf_exp_ops_attach() argument
236 attach->priv = gntdev_dmabuf_attach; in dmabuf_exp_ops_attach()
241 struct dma_buf_attachment *attach) in dmabuf_exp_ops_detach() argument
243 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_detach()
250 dma_unmap_sg_attrs(attach->dev, sgt->sgl, in dmabuf_exp_ops_detach()
259 attach->priv = NULL; in dmabuf_exp_ops_detach()
264 dmabuf_exp_ops_map_dma_buf(struct dma_buf_attachment *attach, in dmabuf_exp_ops_map_dma_buf() argument
267 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_map_dma_buf()
268 struct gntdev_dmabuf *gntdev_dmabuf = attach->dmabuf->priv; in dmabuf_exp_ops_map_dma_buf()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_prime.c575 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument
593 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument
613 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() argument
616 struct drm_gem_object *obj = attach->dmabuf->priv; in drm_gem_map_dma_buf()
627 if (!dma_map_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir, in drm_gem_map_dma_buf()
646 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, in drm_gem_unmap_dma_buf() argument
653 dma_unmap_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir, in drm_gem_unmap_dma_buf()
772 .attach = drm_gem_map_attach,
861 struct dma_buf_attachment *attach; in drm_gem_prime_import_dev() local
881 attach = dma_buf_attach(dma_buf, attach_dev); in drm_gem_prime_import_dev()
[all …]
Ddrm_gem_cma_helper.c469 struct dma_buf_attachment *attach, in drm_gem_cma_prime_import_sg_table() argument
496 cma_obj = __drm_gem_cma_create(dev, attach->dmabuf->size); in drm_gem_cma_prime_import_sg_table()
503 DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, attach->dmabuf->size); in drm_gem_cma_prime_import_sg_table()
632 struct dma_buf_attachment *attach, in drm_gem_cma_prime_import_sg_table_vmap() argument
639 vaddr = dma_buf_vmap(attach->dmabuf); in drm_gem_cma_prime_import_sg_table_vmap()
645 obj = drm_gem_cma_prime_import_sg_table(dev, attach, sgt); in drm_gem_cma_prime_import_sg_table_vmap()
647 dma_buf_vunmap(attach->dmabuf, vaddr); in drm_gem_cma_prime_import_sg_table_vmap()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c194 struct dma_buf_attachment *attach) in amdgpu_dma_buf_map_attach() argument
201 r = drm_gem_map_attach(dma_buf, attach); in amdgpu_dma_buf_map_attach()
210 if (attach->dev->driver != adev->dev->driver) { in amdgpu_dma_buf_map_attach()
229 if (attach->dev->driver != adev->dev->driver) in amdgpu_dma_buf_map_attach()
237 drm_gem_map_detach(dma_buf, attach); in amdgpu_dma_buf_map_attach()
250 struct dma_buf_attachment *attach) in amdgpu_dma_buf_map_detach() argument
262 if (attach->dev->driver != adev->dev->driver && bo->prime_shared_count) in amdgpu_dma_buf_map_detach()
267 drm_gem_map_detach(dma_buf, attach); in amdgpu_dma_buf_map_detach()
311 .attach = amdgpu_dma_buf_map_attach,
367 struct dma_buf_attachment *attach, in amdgpu_gem_prime_import_sg_table() argument
[all …]
/Linux-v5.4/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c150 struct dma_buf_attachment *attach; in omap_gem_prime_import() local
167 attach = dma_buf_attach(dma_buf, dev->dev); in omap_gem_prime_import()
168 if (IS_ERR(attach)) in omap_gem_prime_import()
169 return ERR_CAST(attach); in omap_gem_prime_import()
173 sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in omap_gem_prime_import()
185 obj->import_attach = attach; in omap_gem_prime_import()
190 dma_buf_unmap_attachment(attach, sgt, DMA_TO_DEVICE); in omap_gem_prime_import()
192 dma_buf_detach(dma_buf, attach); in omap_gem_prime_import()
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c43 struct dma_buf_attachment *attach) in vmw_prime_map_attach() argument
49 struct dma_buf_attachment *attach) in vmw_prime_map_detach() argument
53 static struct sg_table *vmw_prime_map_dma_buf(struct dma_buf_attachment *attach, in vmw_prime_map_dma_buf() argument
59 static void vmw_prime_unmap_dma_buf(struct dma_buf_attachment *attach, in vmw_prime_unmap_dma_buf() argument
94 .attach = vmw_prime_map_attach,
/Linux-v5.4/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst18 { **show** | **list** | **tree** | **attach** | **detach** | **help** }
25 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
41 Output will start with program ID followed by attach type,
42 attach flags and program name.
55 program ID, attach type, attach flags and program name.
61 **bpftool cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
62 Attach program *PROG* to the cgroup *CGROUP* with attach type
72 no attach flags or the **override** flag. Attaching another
73 program will release old program and attach the new one.
107 Detach *PROG* from the cgroup *CGROUP* and attach type
[all …]
Dbpftool-net.rst18 { **show** | **list** | **attach** | **detach** | **help** }
24 | **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ]
55 **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ]
70 *ATTACH_TYPE* previously used for attach must be specified.
164 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
173 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
174 | **# bpftool net attach xdpdrv id 20 dev enp6s0np0 overwrite**
183 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
/Linux-v5.4/drivers/nvdimm/
Dclaim.c43 bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in __nd_attach_ndns() argument
46 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); in __nd_attach_ndns()
48 if (attach->claim) in __nd_attach_ndns()
52 attach->claim = dev; in __nd_attach_ndns()
53 *_ndns = attach; in __nd_attach_ndns()
54 get_device(&attach->dev); in __nd_attach_ndns()
58 bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in nd_attach_ndns() argument
63 nvdimm_bus_lock(&attach->dev); in nd_attach_ndns()
64 claimed = __nd_attach_ndns(dev, attach, _ndns); in nd_attach_ndns()
65 nvdimm_bus_unlock(&attach->dev); in nd_attach_ndns()
/Linux-v5.4/drivers/gpu/drm/armada/
Darmada_gem.c375 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_map_dma_buf() argument
378 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_map_dma_buf()
410 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) { in armada_gem_prime_map_dma_buf()
421 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) in armada_gem_prime_map_dma_buf()
444 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_unmap_dma_buf() argument
447 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_unmap_dma_buf()
452 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, dir); in armada_gem_prime_unmap_dma_buf()
505 struct dma_buf_attachment *attach; in armada_gem_prime_import() local
520 attach = dma_buf_attach(buf, dev->dev); in armada_gem_prime_import()
521 if (IS_ERR(attach)) in armada_gem_prime_import()
[all …]
/Linux-v5.4/include/drm/
Ddrm_prime.h79 struct dma_buf_attachment *attach);
81 struct dma_buf_attachment *attach);
82 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
84 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
/Linux-v5.4/drivers/gpu/drm/tegra/
Dgem.c336 struct dma_buf_attachment *attach; in tegra_bo_import() local
344 attach = dma_buf_attach(buf, drm->dev); in tegra_bo_import()
345 if (IS_ERR(attach)) { in tegra_bo_import()
346 err = PTR_ERR(attach); in tegra_bo_import()
352 bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in tegra_bo_import()
371 bo->gem.import_attach = attach; in tegra_bo_import()
377 dma_buf_unmap_attachment(attach, bo->sgt, DMA_TO_DEVICE); in tegra_bo_import()
379 dma_buf_detach(buf, attach); in tegra_bo_import()
499 tegra_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in tegra_gem_prime_map_dma_buf() argument
502 struct drm_gem_object *gem = attach->dmabuf->priv; in tegra_gem_prime_map_dma_buf()
[all …]
/Linux-v5.4/samples/bpf/
Dxdp_fwd_user.c83 int attach = 1; in main() local
89 attach = 0; in main()
105 if (attach) { in main()
147 if (!attach) { in main()
Dtcp_bpf.readme2 programs. These programs attach to a cgroupv2. The following commands create
3 a cgroupv2 and attach a bash shell to the group.
12 (attach) one of the tcp_*_kern.o programs:
15 bpftool cgroup attach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog
/Linux-v5.4/tools/testing/selftests/bpf/
Dflow_dissector_load.c60 bool attach = false; in parse_opts() local
69 attach = true; in parse_opts()
72 if (attach) in parse_opts()
/Linux-v5.4/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c259 struct dma_buf_attachment *attach; in i915_gem_prime_import() local
277 attach = dma_buf_attach(dma_buf, dev->dev); in i915_gem_prime_import()
278 if (IS_ERR(attach)) in i915_gem_prime_import()
279 return ERR_CAST(attach); in i915_gem_prime_import()
291 obj->base.import_attach = attach; in i915_gem_prime_import()
307 dma_buf_detach(dma_buf, attach); in i915_gem_prime_import()
/Linux-v5.4/tools/testing/selftests/drivers/usb/usbip/
Dusbip_test.sh125 src/usbip attach -r localhost -b $busid;
141 src/usbip attach -r localhost -b $busid;
153 src/usbip attach -r localhost -b $busid;
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_dcb.h31 int (*attach) (struct qlcnic_dcb *); member
66 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach()
67 return dcb->ops->attach(dcb); in qlcnic_dcb_attach()
/Linux-v5.4/drivers/gpu/drm/nouveau/
Dnouveau_prime.c59 struct dma_buf_attachment *attach, in nouveau_gem_prime_import_sg_table() argument
65 struct dma_resv *robj = attach->dmabuf->resv; in nouveau_gem_prime_import_sg_table()
66 u64 size = attach->dmabuf->size; in nouveau_gem_prime_import_sg_table()
/Linux-v5.4/tools/perf/tests/
Devent-times.c163 static int test_times(int (attach)(struct evlist *), in test_times()
188 err = attach(evlist); in test_times()
223 #define _T(attach, detach) \ in test__event_times() argument
224 err = test_times(attach, detach); \ in test__event_times()

12345678910>>...18