Home
last modified time | relevance | path

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

12345678910>>...20

/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-buf.c711 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local
720 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach()
721 if (!attach) in dma_buf_dynamic_attach()
724 attach->dev = dev; in dma_buf_dynamic_attach()
725 attach->dmabuf = dmabuf; in dma_buf_dynamic_attach()
727 attach->peer2peer = importer_ops->allow_peer2peer; in dma_buf_dynamic_attach()
728 attach->importer_ops = importer_ops; in dma_buf_dynamic_attach()
729 attach->importer_priv = importer_priv; in dma_buf_dynamic_attach()
731 if (dmabuf->ops->attach) { in dma_buf_dynamic_attach()
732 ret = dmabuf->ops->attach(dmabuf, attach); in dma_buf_dynamic_attach()
[all …]
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c213 struct vb2_vmalloc_attachment *attach; in vb2_vmalloc_dmabuf_ops_attach() local
222 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
223 if (!attach) in vb2_vmalloc_dmabuf_ops_attach()
226 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
229 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
237 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
244 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
245 dbuf_attach->priv = attach; in vb2_vmalloc_dmabuf_ops_attach()
252 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach() local
255 if (!attach) in vb2_vmalloc_dmabuf_ops_detach()
[all …]
Dvideobuf2-dma-sg.c358 struct vb2_dma_sg_attachment *attach; in vb2_dma_sg_dmabuf_ops_attach() local
365 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
366 if (!attach) in vb2_dma_sg_dmabuf_ops_attach()
369 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_attach()
375 kfree(attach); in vb2_dma_sg_dmabuf_ops_attach()
387 attach->dma_dir = DMA_NONE; in vb2_dma_sg_dmabuf_ops_attach()
388 dbuf_attach->priv = attach; in vb2_dma_sg_dmabuf_ops_attach()
396 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach() local
399 if (!attach) in vb2_dma_sg_dmabuf_ops_detach()
402 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_detach()
[all …]
Dvideobuf2-dma-contig.c218 struct vb2_dc_attachment *attach; in vb2_dc_dmabuf_ops_attach() local
225 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
226 if (!attach) in vb2_dc_dmabuf_ops_attach()
229 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_attach()
235 kfree(attach); in vb2_dc_dmabuf_ops_attach()
247 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach()
248 dbuf_attach->priv = attach; in vb2_dc_dmabuf_ops_attach()
256 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach() local
259 if (!attach) in vb2_dc_dmabuf_ops_detach()
262 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_detach()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c177 struct dma_buf_attachment *attach) in amdgpu_dma_buf_attach() argument
184 if (pci_p2pdma_distance_many(adev->pdev, &attach->dev, 1, true) < 0) in amdgpu_dma_buf_attach()
185 attach->peer2peer = false; in amdgpu_dma_buf_attach()
187 if (attach->dev->driver == adev->dev->driver) in amdgpu_dma_buf_attach()
220 struct dma_buf_attachment *attach) in amdgpu_dma_buf_detach() argument
226 if (attach->dev->driver != adev->dev->driver && bo->prime_shared_count) in amdgpu_dma_buf_detach()
237 static int amdgpu_dma_buf_pin(struct dma_buf_attachment *attach) in amdgpu_dma_buf_pin() argument
239 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_pin()
265 static void amdgpu_dma_buf_unpin(struct dma_buf_attachment *attach) in amdgpu_dma_buf_unpin() argument
267 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_unpin()
[all …]
/kernel/linux/linux-5.10/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_sgtable(attach->dev, sgt, in dmabuf_exp_ops_detach()
258 attach->priv = NULL; in dmabuf_exp_ops_detach()
263 dmabuf_exp_ops_map_dma_buf(struct dma_buf_attachment *attach, in dmabuf_exp_ops_map_dma_buf() argument
266 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_map_dma_buf()
267 struct gntdev_dmabuf *gntdev_dmabuf = attach->dmabuf->priv; in dmabuf_exp_ops_map_dma_buf()
[all …]
/kernel/linux/linux-5.10/include/linux/
Ddma-buf.h71 int (*attach)(struct dma_buf *, struct dma_buf_attachment *); member
100 int (*pin)(struct dma_buf_attachment *attach);
113 void (*unpin)(struct dma_buf_attachment *attach);
380 void (*move_notify)(struct dma_buf_attachment *attach);
487 dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach) in dma_buf_attachment_is_dynamic() argument
489 return !!attach->importer_ops; in dma_buf_attachment_is_dynamic()
499 struct dma_buf_attachment *attach);
500 int dma_buf_pin(struct dma_buf_attachment *attach);
501 void dma_buf_unpin(struct dma_buf_attachment *attach);
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_prime.c581 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument
599 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument
619 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() argument
622 struct drm_gem_object *obj = attach->dmabuf->priv; in drm_gem_map_dma_buf()
634 ret = dma_map_sgtable(attach->dev, sgt, dir, in drm_gem_map_dma_buf()
654 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, in drm_gem_unmap_dma_buf() argument
661 dma_unmap_sgtable(attach->dev, sgt, dir, DMA_ATTR_SKIP_CPU_SYNC); in drm_gem_unmap_dma_buf()
789 .attach = drm_gem_map_attach,
914 struct dma_buf_attachment *attach; in drm_gem_prime_import_dev() local
934 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
475 if (drm_prime_get_contiguous_size(sgt) < attach->dmabuf->size) in drm_gem_cma_prime_import_sg_table()
479 cma_obj = __drm_gem_cma_create(dev, attach->dmabuf->size); in drm_gem_cma_prime_import_sg_table()
486 DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, attach->dmabuf->size); in drm_gem_cma_prime_import_sg_table()
615 struct dma_buf_attachment *attach, in drm_gem_cma_prime_import_sg_table_vmap() argument
622 vaddr = dma_buf_vmap(attach->dmabuf); in drm_gem_cma_prime_import_sg_table_vmap()
628 obj = drm_gem_cma_prime_import_sg_table(dev, attach, sgt); in drm_gem_cma_prime_import_sg_table_vmap()
630 dma_buf_vunmap(attach->dmabuf, vaddr); in drm_gem_cma_prime_import_sg_table_vmap()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c129 struct dma_buf_attachment *attach; in omap_gem_prime_import() local
146 attach = dma_buf_attach(dma_buf, dev->dev); in omap_gem_prime_import()
147 if (IS_ERR(attach)) in omap_gem_prime_import()
148 return ERR_CAST(attach); in omap_gem_prime_import()
152 sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in omap_gem_prime_import()
164 obj->import_attach = attach; in omap_gem_prime_import()
169 dma_buf_unmap_attachment(attach, sgt, DMA_TO_DEVICE); in omap_gem_prime_import()
171 dma_buf_detach(dma_buf, attach); in omap_gem_prime_import()
/kernel/linux/linux-5.10/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
66 .attach = vmw_prime_map_attach,
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst18 { **show** | **list** | **tree** | **attach** | **detach** | **help** }
25 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
42 Output will start with program ID followed by attach type,
43 attach flags and program name.
56 program ID, attach type, attach flags and program name.
62 **bpftool cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
63 Attach program *PROG* to the cgroup *CGROUP* with attach type
73 no attach flags or the **override** flag. Attaching another
74 program will release old program and attach the new one.
113 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.
149 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
158 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
159 | **# bpftool net attach xdpdrv id 20 dev enp6s0np0 overwrite**
168 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio_dma_buf.c28 exp_info->ops->attach != &virtio_dma_buf_attach || in virtio_dma_buf_export()
41 struct dma_buf_attachment *attach) in virtio_dma_buf_attach() argument
49 ret = ops->device_attach(dma_buf, attach); in virtio_dma_buf_attach()
63 return dma_buf->ops->attach == &virtio_dma_buf_attach; in is_virtio_dma_buf()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
408 if (dma_map_sgtable(attach->dev, sgt, dir, 0)) in armada_gem_prime_map_dma_buf()
417 if (dma_map_sgtable(attach->dev, sgt, dir, 0)) in armada_gem_prime_map_dma_buf()
441 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_unmap_dma_buf() argument
444 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_unmap_dma_buf()
449 dma_unmap_sgtable(attach->dev, sgt, dir, 0); in armada_gem_prime_unmap_dma_buf()
491 struct dma_buf_attachment *attach; in armada_gem_prime_import() local
506 attach = dma_buf_attach(buf, dev->dev); in armada_gem_prime_import()
507 if (IS_ERR(attach)) in armada_gem_prime_import()
[all …]
/kernel/linux/linux-5.10/Documentation/bpf/
Dmap_cgroup_storage.rst10 attach to cgroups; the programs are made available by the same Kconfig. The
34 ``attach_type`` is the the program's attach type.
37 When this key type is used, then all attach types of the particular cgroup and
39 ``struct bpf_cgroup_storage_key``, then programs of different attach types
133 multiple attach types, and each attach creates a fresh zeroed storage. The
145 does not already contain an entry for the cgroup and attach type pair, or else
146 the old storage is reused for the new attachment. If the map is attach type
147 shared, then attach type is simply ignored during comparison. Storage is freed
158 In all versions, userspace may use the the attach parameters of cgroup and
159 attach type pair in ``struct bpf_cgroup_storage_key`` as the key to the BPF map
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_prime.h77 struct dma_buf_attachment *attach);
79 struct dma_buf_attachment *attach);
80 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
82 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
Dgem.c392 struct dma_buf_attachment *attach; in tegra_bo_import() local
400 attach = dma_buf_attach(buf, drm->dev); in tegra_bo_import()
401 if (IS_ERR(attach)) { in tegra_bo_import()
402 err = PTR_ERR(attach); in tegra_bo_import()
408 bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in tegra_bo_import()
420 bo->gem.import_attach = attach; in tegra_bo_import()
426 dma_buf_unmap_attachment(attach, bo->sgt, DMA_TO_DEVICE); in tegra_bo_import()
428 dma_buf_detach(buf, attach); in tegra_bo_import()
548 tegra_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in tegra_gem_prime_map_dma_buf() argument
551 struct drm_gem_object *gem = attach->dmabuf->priv; in tegra_gem_prime_map_dma_buf()
[all …]
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_fwd_user.c85 int attach = 1; in main() local
91 attach = 0; in main()
116 if (attach) { in main()
158 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
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c224 struct dma_buf_attachment *attach; in i915_gem_prime_import() local
242 attach = dma_buf_attach(dma_buf, dev->dev); in i915_gem_prime_import()
243 if (IS_ERR(attach)) in i915_gem_prime_import()
244 return ERR_CAST(attach); in i915_gem_prime_import()
256 obj->base.import_attach = attach; in i915_gem_prime_import()
272 dma_buf_detach(dma_buf, attach); in i915_gem_prime_import()
/kernel/linux/linux-5.10/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;
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_dcb.h30 int (*attach) (struct qlcnic_dcb *); member
60 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach()
61 return dcb->ops->attach(dcb); in qlcnic_dcb_attach()

12345678910>>...20