Home
last modified time | relevance | path

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

12345678910>>...124

/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-buf.c688 * calls attach() of dma_buf_ops to allow device-specific attach functionality
689 * @dmabuf: [in] buffer to attach device to.
711 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()
[all …]
/kernel/linux/linux-6.6/drivers/dma-buf/
Ddma-buf.c778 static struct sg_table * __map_dma_buf(struct dma_buf_attachment *attach, in __map_dma_buf() argument
784 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in __map_dma_buf()
788 if (!dma_buf_attachment_is_dynamic(attach)) { in __map_dma_buf()
789 ret = dma_resv_wait_timeout(attach->dmabuf->resv, in __map_dma_buf()
793 attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, in __map_dma_buf()
844 * - &dma_buf_ops.attach()
869 * @dmabuf: [in] buffer to attach device to.
877 * Optionally this calls &dma_buf_ops.attach to allow device-specific attach
894 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local
903 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c51 * @attach: attachment
57 static struct amdgpu_device *dma_buf_attach_adev(struct dma_buf_attachment *attach) in dma_buf_attach_adev() argument
59 if (attach->importer_ops == &amdgpu_dma_buf_attach_ops) { in dma_buf_attach_adev()
60 struct drm_gem_object *obj = attach->importer_priv; in dma_buf_attach_adev()
70 * amdgpu_dma_buf_attach - &dma_buf_ops.attach implementation
72 * @dmabuf: DMA-buf where we attach to
73 * @attach: attachment to add
78 struct dma_buf_attachment *attach) in amdgpu_dma_buf_attach() argument
80 struct amdgpu_device *attach_adev = dma_buf_attach_adev(attach); in amdgpu_dma_buf_attach()
87 pci_p2pdma_distance(adev->pdev, attach->dev, false) < 0) in amdgpu_dma_buf_attach()
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/core/
Dumem_dmabuf.c24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages()
29 sgt = dma_buf_map_attachment(umem_dmabuf->attach, in ib_umem_dmabuf_map_pages()
72 ret = dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, in ib_umem_dmabuf_map_pages()
85 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_unmap_pages()
106 dma_buf_unmap_attachment(umem_dmabuf->attach, umem_dmabuf->sgt, in ib_umem_dmabuf_unmap_pages()
153 umem_dmabuf->attach = dma_buf_dynamic_attach( in ib_umem_dmabuf_get()
158 if (IS_ERR(umem_dmabuf->attach)) { in ib_umem_dmabuf_get()
159 ret = ERR_CAST(umem_dmabuf->attach); in ib_umem_dmabuf_get()
174 ib_umem_dmabuf_unsupported_move_notify(struct dma_buf_attachment *attach) in ib_umem_dmabuf_unsupported_move_notify() argument
176 struct ib_umem_dmabuf *umem_dmabuf = attach->importer_priv; in ib_umem_dmabuf_unsupported_move_notify()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c169 * amdgpu_dma_buf_attach - &dma_buf_ops.attach implementation
171 * @dmabuf: DMA-buf where we attach to
172 * @attach: attachment to add
177 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()
215 * @attach: the attachment to remove
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()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
Dcgroup_getset_retval.c30 /* Attach setsockopt that sets EUNATCH, assert that in test_setsockopt_set()
35 if (!ASSERT_OK_PTR(link_set_eunatch, "cg-attach-set_eunatch")) in test_setsockopt_set()
66 /* Attach setsockopt that sets EUNATCH, and one that gets the in test_setsockopt_set_and_get()
71 if (!ASSERT_OK_PTR(link_set_eunatch, "cg-attach-set_eunatch")) in test_setsockopt_set_and_get()
75 if (!ASSERT_OK_PTR(link_get_retval, "cg-attach-get_retval")) in test_setsockopt_set_and_get()
109 /* Attach setsockopt that gets the previously set errno. in test_setsockopt_default_zero()
114 if (!ASSERT_OK_PTR(link_get_retval, "cg-attach-get_retval")) in test_setsockopt_default_zero()
145 /* Attach setsockopt that gets the previously set errno, and then in test_setsockopt_default_zero_and_set()
151 if (!ASSERT_OK_PTR(link_get_retval, "cg-attach-get_retval")) in test_setsockopt_default_zero_and_set()
155 if (!ASSERT_OK_PTR(link_set_eunatch, "cg-attach-set_eunatch")) in test_setsockopt_default_zero_and_set()
[all …]
Dtrace_ext.c33 /* open/load/attach test_pkt_md_access */ in test_trace_ext()
39 if (CHECK(err, "setup", "classifier/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext()
50 /* set extension's attach target - test_pkt_md_access */ in test_trace_ext()
54 /* load/attach extension */ in test_trace_ext()
63 if (CHECK(err, "setup", "freplace/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext()
74 /* set tracing's attach target - fentry */ in test_trace_ext()
78 /* set tracing's attach target - fexit */ in test_trace_ext()
82 /* load/attach tracing */ in test_trace_ext()
91 if (!ASSERT_OK(err, "tracing/test_pkt_md_access_new attach")) in test_trace_ext()
Dcg_storage_multi.c102 /* Attach to parent cgroup, trigger packet from child. in test_egress_only()
109 if (!ASSERT_OK_PTR(parent_link, "parent-cg-attach")) in test_egress_only()
126 /* Attach to parent and child cgroup, trigger packet from child. in test_egress_only()
132 if (!ASSERT_OK_PTR(child_link, "child-cg-attach")) in test_egress_only()
172 /* Attach to parent cgroup, trigger packet from child. in test_isolated()
179 if (!ASSERT_OK_PTR(parent_egress1_link, "parent-egress1-cg-attach")) in test_isolated()
183 if (!ASSERT_OK_PTR(parent_egress2_link, "parent-egress2-cg-attach")) in test_isolated()
187 if (!ASSERT_OK_PTR(parent_ingress_link, "parent-ingress-cg-attach")) in test_isolated()
214 /* Attach to parent and child cgroup, trigger packet from child. in test_isolated()
221 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 serial_test_cgroup_attach_override()
66 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override()
84 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override()
98 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override()
103 "attach prog to %s unexpectedly succeeded\n", BAR)) in serial_test_cgroup_attach_override()
118 "attach prog to %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override()
123 "attach prog to %s unexpectedly succeeded\n", BAR)) in serial_test_cgroup_attach_override()
129 "attach prog to %s unexpectedly succeeded\n", BAR)) in serial_test_cgroup_attach_override()
135 "attach prog to %s unexpectedly succeeded\n", FOO)) in serial_test_cgroup_attach_override()
140 "attach prog to %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override()
/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/drivers/xen/
Dgntdev-dmabuf.c48 struct dma_buf_attachment *attach; member
221 struct dma_buf_attachment *attach) in dmabuf_exp_ops_attach() argument
231 attach->priv = gntdev_dmabuf_attach; in dmabuf_exp_ops_attach()
236 struct dma_buf_attachment *attach) in dmabuf_exp_ops_detach() argument
238 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_detach()
245 dma_unmap_sgtable(attach->dev, sgt, in dmabuf_exp_ops_detach()
253 attach->priv = NULL; in dmabuf_exp_ops_detach()
258 dmabuf_exp_ops_map_dma_buf(struct dma_buf_attachment *attach, in dmabuf_exp_ops_map_dma_buf() argument
261 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_map_dma_buf()
262 struct gntdev_dmabuf *gntdev_dmabuf = attach->dmabuf->priv; in dmabuf_exp_ops_map_dma_buf()
[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-6.6/Documentation/bpf/
Dmap_cgroup_storage.rst10 attach to cgroups; the programs are made available by the same Kconfig. The
34 ``attach_type`` is 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 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/drivers/xen/
Dgntdev-dmabuf.c54 struct dma_buf_attachment *attach; member
227 struct dma_buf_attachment *attach) in dmabuf_exp_ops_attach() argument
237 attach->priv = gntdev_dmabuf_attach; in dmabuf_exp_ops_attach()
242 struct dma_buf_attachment *attach) in dmabuf_exp_ops_detach() argument
244 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_detach()
251 dma_unmap_sgtable(attach->dev, sgt, 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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
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()
Dcg_storage_multi.c102 /* Attach to parent cgroup, trigger packet from child. in test_egress_only()
109 if (CHECK(IS_ERR(parent_link), "parent-cg-attach", in test_egress_only()
127 /* Attach to parent and child cgroup, trigger packet from child. in test_egress_only()
133 if (CHECK(IS_ERR(child_link), "child-cg-attach", in test_egress_only()
176 /* Attach to parent cgroup, trigger packet from child. in test_isolated()
183 if (CHECK(IS_ERR(parent_egress1_link), "parent-egress1-cg-attach", in test_isolated()
188 if (CHECK(IS_ERR(parent_egress2_link), "parent-egress2-cg-attach", in test_isolated()
193 if (CHECK(IS_ERR(parent_ingress_link), "parent-ingress-cg-attach", in test_isolated()
221 /* Attach to parent and child cgroup, trigger packet from child. in test_isolated()
228 if (CHECK(IS_ERR(child_egress1_link), "child-egress1-cg-attach", in test_isolated()
[all …]
Dtest_overhead.c108 /* attach kprobe */ in test_test_overhead()
116 /* attach kretprobe */ in test_test_overhead()
119 if (CHECK(IS_ERR(link), "attach kretprobe", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
124 /* attach raw_tp */ in test_test_overhead()
126 if (CHECK(IS_ERR(link), "attach fentry", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
131 /* attach fentry */ in test_test_overhead()
133 if (CHECK(IS_ERR(link), "attach fentry", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
138 /* attach fexit */ in test_test_overhead()
140 if (CHECK(IS_ERR(link), "attach fexit", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
/kernel/linux/linux-6.6/drivers/gpu/drm/virtio/
Dvirtgpu_prime.c47 virtgpu_gem_map_dma_buf(struct dma_buf_attachment *attach, in virtgpu_gem_map_dma_buf() argument
50 struct drm_gem_object *obj = attach->dmabuf->priv; in virtgpu_gem_map_dma_buf()
54 return virtio_gpu_vram_map_dma_buf(bo, attach->dev, dir); in virtgpu_gem_map_dma_buf()
56 return drm_gem_map_dma_buf(attach, dir); in virtgpu_gem_map_dma_buf()
59 static void virtgpu_gem_unmap_dma_buf(struct dma_buf_attachment *attach, in virtgpu_gem_unmap_dma_buf() argument
63 struct drm_gem_object *obj = attach->dmabuf->priv; in virtgpu_gem_unmap_dma_buf()
67 virtio_gpu_vram_unmap_dma_buf(attach->dev, sgt, dir); in virtgpu_gem_unmap_dma_buf()
71 drm_gem_unmap_dma_buf(attach, sgt, dir); in virtgpu_gem_unmap_dma_buf()
77 .attach = virtio_dma_buf_attach,
166 struct drm_device *dev, struct dma_buf_attachment *attach, in virtgpu_gem_prime_import_sg_table() argument
/kernel/linux/linux-6.6/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
/kernel/linux/linux-6.6/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst22 { **show** | **list** | **tree** | **attach** | **detach** | **help** }
29 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
52 Output will start with program ID followed by attach type,
53 attach flags and program name.
66 program ID, attach type, attach flags and program name.
72 **bpftool cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
73 Attach program *PROG* to the cgroup *CGROUP* with attach type
83 no attach flags or the **override** flag. Attaching another
84 program will release old program and attach the new one.
123 Detach *PROG* from the cgroup *CGROUP* and attach type
[all …]
/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 …]
/kernel/linux/linux-5.10/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()

12345678910>>...124