Home
last modified time | relevance | path

Searched full:attach (Results 1 – 25 of 1589) sorted by relevance

12345678910>>...64

/Linux-v5.15/drivers/dma-buf/
Ddma-buf.c699 static struct sg_table * __map_dma_buf(struct dma_buf_attachment *attach, in __map_dma_buf() argument
704 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in __map_dma_buf()
714 * @dmabuf: [in] buffer to attach device to.
722 * Optionally this calls &dma_buf_ops.attach to allow device-specific attach
739 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local
748 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach()
749 if (!attach) in dma_buf_dynamic_attach()
752 attach->dev = dev; in dma_buf_dynamic_attach()
753 attach->dmabuf = dmabuf; in dma_buf_dynamic_attach()
755 attach->peer2peer = importer_ops->allow_peer2peer; in dma_buf_dynamic_attach()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c46 * amdgpu_dma_buf_attach - &dma_buf_ops.attach implementation
48 * @dmabuf: DMA-buf where we attach to
49 * @attach: attachment to add
54 struct dma_buf_attachment *attach) in amdgpu_dma_buf_attach() argument
61 if (pci_p2pdma_distance_many(adev->pdev, &attach->dev, 1, true) < 0) in amdgpu_dma_buf_attach()
62 attach->peer2peer = false; in amdgpu_dma_buf_attach()
64 if (attach->dev->driver == adev->dev->driver) in amdgpu_dma_buf_attach()
82 * @attach: the attachment to remove
87 struct dma_buf_attachment *attach) in amdgpu_dma_buf_detach() argument
100 * @attach: attachment to pin down
[all …]
/Linux-v5.15/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.c362 struct vb2_dma_sg_attachment *attach; in vb2_dma_sg_dmabuf_ops_attach() local
369 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
370 if (!attach) in vb2_dma_sg_dmabuf_ops_attach()
373 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_attach()
379 kfree(attach); in vb2_dma_sg_dmabuf_ops_attach()
391 attach->dma_dir = DMA_NONE; in vb2_dma_sg_dmabuf_ops_attach()
392 dbuf_attach->priv = attach; in vb2_dma_sg_dmabuf_ops_attach()
400 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach() local
403 if (!attach) in vb2_dma_sg_dmabuf_ops_detach()
406 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.15/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 …]
/Linux-v5.15/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 …]
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dcg_storage_multi.c98 /* Attach to parent cgroup, trigger packet from child. in test_egress_only()
105 if (!ASSERT_OK_PTR(parent_link, "parent-cg-attach")) in test_egress_only()
122 /* Attach to parent and child cgroup, trigger packet from child. in test_egress_only()
128 if (!ASSERT_OK_PTR(child_link, "child-cg-attach")) in test_egress_only()
168 /* Attach to parent cgroup, trigger packet from child. in test_isolated()
175 if (!ASSERT_OK_PTR(parent_egress1_link, "parent-egress1-cg-attach")) in test_isolated()
179 if (!ASSERT_OK_PTR(parent_egress2_link, "parent-egress2-cg-attach")) in test_isolated()
183 if (!ASSERT_OK_PTR(parent_ingress_link, "parent-ingress-cg-attach")) in test_isolated()
210 /* Attach to parent and child cgroup, trigger packet from child. in test_isolated()
217 if (!ASSERT_OK_PTR(child_egress1_link, "child-egress1-cg-attach")) in test_isolated()
[all …]
Dcgroup_attach_override.c48 "attach prog to %s failed, errno=%d\n", FOO, errno)) in test_cgroup_attach_override()
66 "attach prog to %s failed, errno=%d\n", BAR, errno)) in test_cgroup_attach_override()
84 "attach prog to %s failed, errno=%d\n", BAR, errno)) in test_cgroup_attach_override()
98 "attach prog to %s failed, errno=%d\n", BAR, errno)) in test_cgroup_attach_override()
103 "attach prog to %s unexpectedly succeeded\n", BAR)) in test_cgroup_attach_override()
118 "attach prog to %s failed, errno=%d\n", FOO, errno)) in test_cgroup_attach_override()
123 "attach prog to %s unexpectedly succeeded\n", BAR)) in test_cgroup_attach_override()
129 "attach prog to %s unexpectedly succeeded\n", BAR)) in test_cgroup_attach_override()
135 "attach prog to %s unexpectedly succeeded\n", FOO)) in test_cgroup_attach_override()
140 "attach prog to %s failed, errno=%d\n", FOO, errno)) in test_cgroup_attach_override()
Dtrace_ext.c29 /* open/load/attach test_pkt_md_access */ in test_trace_ext()
35 if (CHECK(err, "setup", "classifier/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext()
46 /* set extension's attach target - test_pkt_md_access */ in test_trace_ext()
50 /* load/attach extension */ in test_trace_ext()
59 if (CHECK(err, "setup", "freplace/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext()
70 /* set tracing's attach target - fentry */ in test_trace_ext()
74 /* set tracing's attach target - fexit */ in test_trace_ext()
78 /* load/attach tracing */ in test_trace_ext()
87 if (CHECK(err, "setup", "tracing/test_pkt_md_access_new attach failed: %d\n", err)) in test_trace_ext()
/Linux-v5.15/tools/usb/usbip/doc/
Dusbip.829 Connect to PORT on remote host (used for attach and list --remote).
47 \fBattach\fR \-\-remote=<\fIhost\fR> \-\-busid=<\fIbus_id\fR>
49 Attach a remote USB device.
53 \fBattach\fR \-\-remote=<\fIhost\fR> \-\-device=<\fIdev_id\fR>
55 Attach a remote USB gadget.
111 client:# usbip attach --remote=server --busid=1-2
127 client:# usbip attach --remote=server --device=usbip-vudc.0
/Linux-v5.15/drivers/infiniband/core/
Dumem_dmabuf.c21 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages()
26 sgt = dma_buf_map_attachment(umem_dmabuf->attach, DMA_BIDIRECTIONAL); in ib_umem_dmabuf_map_pages()
68 fence = dma_resv_excl_fence(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages()
78 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_unmap_pages()
99 dma_buf_unmap_attachment(umem_dmabuf->attach, umem_dmabuf->sgt, in ib_umem_dmabuf_unmap_pages()
146 umem_dmabuf->attach = dma_buf_dynamic_attach( in ib_umem_dmabuf_get()
151 if (IS_ERR(umem_dmabuf->attach)) { in ib_umem_dmabuf_get()
152 ret = ERR_CAST(umem_dmabuf->attach); in ib_umem_dmabuf_get()
168 struct dma_buf *dmabuf = umem_dmabuf->attach->dmabuf; in ib_umem_dmabuf_release()
174 dma_buf_detach(dmabuf, umem_dmabuf->attach); in ib_umem_dmabuf_release()
/Linux-v5.15/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst19 { **show** | **list** | **tree** | **attach** | **detach** | **help** }
26 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
43 Output will start with program ID followed by attach type,
44 attach flags and program name.
57 program ID, attach type, attach flags and program name.
63 **bpftool cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
64 Attach program *PROG* to the cgroup *CGROUP* with attach type
74 no attach flags or the **override** flag. Attaching another
75 program will release old program and attach the new one.
114 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** ]
56 Attach bpf program *PROG* to network interface *NAME* with
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**
/Linux-v5.15/tools/perf/tests/
Devent-times.c163 static int test_times(int (attach)(struct evlist *), in test_times()
188 err = attach(evlist); in test_times()
194 TEST_ASSERT_VAL("failed to attach", !err); in test_times()
223 #define _T(attach, detach) \ in test__event_times() argument
224 err = test_times(attach, detach); \ in test__event_times()
228 /* attach on newly spawned process after exec */ in test__event_times()
230 /* attach on current process as enabled */ in test__event_times()
232 /* attach on current process as disabled */ in test__event_times()
234 /* attach on cpu as disabled */ in test__event_times()
236 /* attach on cpu as enabled */ in test__event_times()
/Linux-v5.15/drivers/gpu/drm/
Ddrm_prime.c537 * Optional pinning of buffers is handled at dma-buf attach and detach time in
564 * drm_gem_map_attach - dma_buf attach implementation for GEM
565 * @dma_buf: buffer to attach device to
566 * @attach: buffer attachment data
569 * used as the &dma_buf_ops.attach callback. Must be used together with
575 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument
586 * @attach: attachment to be detached
593 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument
603 * @attach: attachment whose scatterlist is to be returned
613 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() argument
[all …]
/Linux-v5.15/drivers/media/usb/cx231xx/
Dcx231xx-dvb.c381 dev_err(dev->dev, "%s/2: dvb frontend not attached. Can't attach xc5000\n",
388 dev_err(dev->dev, "%s/2: xc5000 attach failed\n", dev->name);
657 "Failed to attach s5h1432 front end\n"); in dvb_init()
682 "Failed to attach s5h1411 front end\n"); in dvb_init()
705 "Failed to attach s5h1432 front end\n"); in dvb_init()
729 "Failed to attach s5h1411 front end\n"); in dvb_init()
756 "Failed to attach LG3305 front end\n"); in dvb_init()
773 /* attach demod */ in dvb_init()
778 /* perform probe/init/attach */ in dvb_init()
805 /* attach demod */ in dvb_init()
[all …]
/Linux-v5.15/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()
/Linux-v5.15/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c164 struct dma_buf_attachment *attach) in i915_gem_dmabuf_attach() argument
193 struct dma_buf_attachment *attach) in i915_gem_dmabuf_detach() argument
201 .attach = i915_gem_dmabuf_attach,
269 struct dma_buf_attachment *attach; in i915_gem_prime_import() local
290 /* need to attach */ in i915_gem_prime_import()
291 attach = dma_buf_attach(dma_buf, dev->dev); in i915_gem_prime_import()
292 if (IS_ERR(attach)) in i915_gem_prime_import()
293 return ERR_CAST(attach); in i915_gem_prime_import()
305 obj->base.import_attach = attach; in i915_gem_prime_import()
321 dma_buf_detach(dma_buf, attach); in i915_gem_prime_import()
/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c38 * DMA-BUF attach- and mapping methods. No need to implement
43 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,
/Linux-v5.15/drivers/virtio/
Dvirtio_dma_buf.c28 exp_info->ops->attach != &virtio_dma_buf_attach || in virtio_dma_buf_export()
38 * virtio_dma_buf_attach - mandatory attach callback for virtio dma-bufs
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()
/Linux-v5.15/include/linux/
Ddma-buf.h47 * @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
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
332 * Used internally to serialize list manipulation, attach/detach and
483 void (*move_notify)(struct dma_buf_attachment *attach);
[all …]
Dvirtio_dma_buf.h17 * @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);
/Linux-v5.15/drivers/nvdimm/
Dclaim.c44 bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in __nd_attach_ndns() argument
47 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); in __nd_attach_ndns()
49 if (attach->claim) in __nd_attach_ndns()
53 attach->claim = dev; in __nd_attach_ndns()
54 *_ndns = attach; in __nd_attach_ndns()
55 get_device(&attach->dev); in __nd_attach_ndns()
59 bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in nd_attach_ndns() argument
64 nvdimm_bus_lock(&attach->dev); in nd_attach_ndns()
65 claimed = __nd_attach_ndns(dev, attach, _ndns); in nd_attach_ndns()
66 nvdimm_bus_unlock(&attach->dev); in nd_attach_ndns()
/Linux-v5.15/samples/bpf/
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

12345678910>>...64