Home
last modified time | relevance | path

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

12345678910>>...58

/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_prime.c49 virtgpu_gem_map_dma_buf(struct dma_buf_attachment *attach, in virtgpu_gem_map_dma_buf() argument
52 struct drm_gem_object *obj = attach->dmabuf->priv; in virtgpu_gem_map_dma_buf()
56 return virtio_gpu_vram_map_dma_buf(bo, attach->dev, dir); in virtgpu_gem_map_dma_buf()
58 return drm_gem_map_dma_buf(attach, dir); in virtgpu_gem_map_dma_buf()
61 static void virtgpu_gem_unmap_dma_buf(struct dma_buf_attachment *attach, in virtgpu_gem_unmap_dma_buf() argument
65 struct drm_gem_object *obj = attach->dmabuf->priv; in virtgpu_gem_unmap_dma_buf()
69 virtio_gpu_vram_unmap_dma_buf(attach->dev, sgt, dir); in virtgpu_gem_unmap_dma_buf()
73 drm_gem_unmap_dma_buf(attach, sgt, dir); in virtgpu_gem_unmap_dma_buf()
78 .attach = virtio_dma_buf_attach,
149 struct dma_buf_attachment *attach) in virtgpu_dma_buf_import_sgt() argument
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_dma_buf.c26 struct dma_buf_attachment *attach) in xe_dma_buf_attach() argument
28 struct drm_gem_object *obj = attach->dmabuf->priv; in xe_dma_buf_attach()
30 if (attach->peer2peer && in xe_dma_buf_attach()
31 pci_p2pdma_distance(to_pci_dev(obj->dev->dev), attach->dev, false) < 0) in xe_dma_buf_attach()
32 attach->peer2peer = false; in xe_dma_buf_attach()
34 if (!attach->peer2peer && !xe_bo_can_migrate(gem_to_xe_bo(obj), XE_PL_TT)) in xe_dma_buf_attach()
42 struct dma_buf_attachment *attach) in xe_dma_buf_detach() argument
44 struct drm_gem_object *obj = attach->dmabuf->priv; in xe_dma_buf_detach()
49 static int xe_dma_buf_pin(struct dma_buf_attachment *attach) in xe_dma_buf_pin() argument
51 struct drm_gem_object *obj = attach->dmabuf->priv; in xe_dma_buf_pin()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A 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()
86 pci_p2pdma_distance(adev->pdev, attach->dev, false) < 0) in amdgpu_dma_buf_attach()
[all …]
/linux/drivers/dma-buf/
H A Ddma-buf.c849 dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach) in dma_buf_attachment_is_dynamic() argument
851 return !!attach->importer_ops; in dma_buf_attachment_is_dynamic()
855 dma_buf_pin_on_map(struct dma_buf_attachment *attach) in dma_buf_pin_on_map() argument
857 return attach->dmabuf->ops->pin && in dma_buf_pin_on_map()
858 (!dma_buf_attachment_is_dynamic(attach) || in dma_buf_pin_on_map()
903 * - &dma_buf_ops.attach()
928 * @dmabuf: [in] buffer to attach device to.
936 * Optionally this calls &dma_buf_ops.attach to allow device-specific attach
953 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local
962 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach()
[all …]
/linux/drivers/infiniband/core/
H A Dumem_dmabuf.c24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages()
32 sgt = dma_buf_map_attachment(umem_dmabuf->attach, in ib_umem_dmabuf_map_pages()
75 ret = dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, in ib_umem_dmabuf_map_pages()
88 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_unmap_pages()
109 dma_buf_unmap_attachment(umem_dmabuf->attach, umem_dmabuf->sgt, in ib_umem_dmabuf_unmap_pages()
158 umem_dmabuf->attach = dma_buf_dynamic_attach( in ib_umem_dmabuf_get_with_dma_device()
163 if (IS_ERR(umem_dmabuf->attach)) { in ib_umem_dmabuf_get_with_dma_device()
164 ret = ERR_CAST(umem_dmabuf->attach); in ib_umem_dmabuf_get_with_dma_device()
188 ib_umem_dmabuf_unsupported_move_notify(struct dma_buf_attachment *attach) in ib_umem_dmabuf_unsupported_move_notify() argument
190 struct ib_umem_dmabuf *umem_dmabuf = attach->importer_priv; in ib_umem_dmabuf_unsupported_move_notify()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
H A Drecursive_attach.c13 * - Recursive loading of tracing progs, without attaching (attach = false,
19 * - Recursive attach of tracing progs (attach = true, detach = false). The
23 * attach fentry1 -> target
26 * - Recursive attach and detach of tracing progs (attach = true, detach =
32 * attach fentry1 -> target
36 static void test_recursive_fentry_chain(bool attach, bool detach) in test_recursive_fentry_chain() argument
69 /* The first attach should succeed, the second fail */ in test_recursive_fentry_chain()
74 if (attach) { in test_recursive_fentry_chain()
101 if (test__start_subtest("attach")) in test_recursive_fentry()
H A 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 …]
H A 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()
H A 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()
H A Dattach_probe.c10 /* uprobe attach point */
16 /* attach point for byname uprobe */
22 /* attach point for byname sleepable uprobe */
28 /* attach point for ref_ctr */
36 /* manual attach kprobe/kretprobe/uprobe/uretprobe testings */
54 /* manual-attach kprobe/kretprobe */ in test_attach_probe_manual()
72 /* manual-attach uprobe/uretprobe */ in test_attach_probe_manual()
94 /* attach uprobe by function name manually */ in test_attach_probe_manual()
125 /* attach uprobe/uretprobe long event name testings */ in test_attach_probe_auto()
145 /* manual-attach uprob in test_attach_probe_auto()
[all...]
H A Dsock_addr.c554 "bind4: load prog with wrong expected attach type",
570 "bind4: attach prog with wrong attach type",
650 "bind6: load prog with wrong expected attach type",
666 "bind6: attach prog with wrong attach type",
878 "connect4: load prog with wrong expected attach type",
894 "connect4: attach prog with wrong attach type",
974 "connect6: load prog with wrong expected attach type",
990 "connect6: attach prog with wrong attach type",
1038 "connect_unix: attach prog with wrong attach type",
1250 "sendmsg4: load prog with wrong expected attach type",
[all …]
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c215 struct vb2_vmalloc_attachment *attach; in vb2_vmalloc_dmabuf_ops_attach() local
224 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
225 if (!attach) in vb2_vmalloc_dmabuf_ops_attach()
228 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
231 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
239 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
246 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
247 dbuf_attach->priv = attach; in vb2_vmalloc_dmabuf_ops_attach()
254 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach() local
257 if (!attach) in vb2_vmalloc_dmabuf_ops_detach()
[all …]
H A Dvideobuf2-dma-contig.c320 struct vb2_dc_attachment *attach; in vb2_dc_dmabuf_ops_attach() local
327 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
328 if (!attach) in vb2_dc_dmabuf_ops_attach()
331 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_attach()
337 kfree(attach); in vb2_dc_dmabuf_ops_attach()
349 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach()
350 dbuf_attach->priv = attach; in vb2_dc_dmabuf_ops_attach()
358 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach() local
361 if (!attach) in vb2_dc_dmabuf_ops_detach()
364 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_detach()
[all …]
/linux/drivers/xen/
H A 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 …]
/linux/drivers/iommu/iommufd/
H A Ddevice.c304 struct iommufd_attach *attach; in iommufd_group_device_num() local
311 attach = xa_load(&igroup->pasid_attach, pasid); in iommufd_group_device_num()
312 if (attach) in iommufd_group_device_num()
313 xa_for_each(&attach->device_array, index, idev) in iommufd_group_device_num()
387 /* The device attach/detach/replace helpers for attach_handle */
392 struct iommufd_attach *attach; in iommufd_device_is_attached() local
394 attach = xa_load(&idev->igroup->pasid_attach, pasid); in iommufd_device_is_attached()
395 return xa_load(&attach->device_array, idev->obj.id); in iommufd_device_is_attached()
414 struct iommufd_attach *attach; in iommufd_hwpt_pasid_compat() local
419 attach = xa_load(&igroup->pasid_attach, IOMMU_NO_PASID); in iommufd_hwpt_pasid_compat()
[all …]
/linux/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 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 …]
/linux/tools/usb/usbip/doc/
H A 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/tools/bpf/bpftool/Documentation/
H A Dbpftool-cgroup.rst22 { **show** | **list** | **tree** | **attach** | **detach** | **help** }
29 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
55 Output will start with program ID followed by attach type, attach flags and
67 with absolute cgroup path, followed by program ID, attach type, attach
74 bpftool cgroup attach *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
75 Attach program *PROG* to the cgroup *CGROUP* with attach type *ATTACH_TYPE*
83 Only one program is allowed to be attached to a cgroup with no attach flags
85 program and attach the new one.
125 Detach *PROG* from the cgroup *CGROUP* and attach type *ATTACH_TYPE*.
143 | **# bpftool cgroup attach /sys/fs/cgroup/test.slice/ device id 1 allow_multi**
H A Dbpftool-net.rst21 *COMMANDS* := { **show** | **list** | **attach** | **detach** | **help** }
27 | **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ]
61 bpftool net attach *ATTACH_TYPE* *PROG* dev *NAME* [ overwrite ]
62 Attach bpf program *PROG* to network interface *NAME* with type specified
78 for attach must be specified. Currently, only XDP-related modes are
157 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
166 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
167 | **# bpftool net attach xdpdrv id 20 dev enp6s0np0 overwrite**
176 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
185 | **# bpftool net attach tcx_ingress name tc_prog dev lo**
[all …]
/linux/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 …]
/linux/drivers/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c100 struct dma_buf_attachment *attach; in omap_gem_prime_import() local
117 attach = dma_buf_attach(dma_buf, dev->dev); in omap_gem_prime_import()
118 if (IS_ERR(attach)) in omap_gem_prime_import()
119 return ERR_CAST(attach); in omap_gem_prime_import()
123 sgt = dma_buf_map_attachment_unlocked(attach, DMA_TO_DEVICE); in omap_gem_prime_import()
135 obj->import_attach = attach; in omap_gem_prime_import()
140 dma_buf_unmap_attachment_unlocked(attach, sgt, DMA_TO_DEVICE); in omap_gem_prime_import()
142 dma_buf_detach(dma_buf, attach); in omap_gem_prime_import()
/linux/include/linux/
H A Ddma-buf.h38 * @attach:
45 * device), and otherwise need to fail the attach operation.
50 * fail the attach operation.
63 int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
100 int (*pin)(struct dma_buf_attachment *attach);
113 void (*unpin)(struct dma_buf_attachment *attach);
120 * can only be called if @attach has been called successfully.
128 * &device.dma_params from the &dma_buf_attachment. The @attach callback
477 void (*move_notify)(struct dma_buf_attachment *attach);
514 * @ops: Attach allocato
72 int (*attach)(struct dma_buf *, struct dma_buf_attachment *); global() member
595 dma_buf_attachment_is_dynamic(struct dma_buf_attachment * attach) dma_buf_attachment_is_dynamic() argument
[all...]
/linux/drivers/iio/
H A Dindustrialio-buffer.c53 struct dma_buf_attachment *attach; member
1562 struct dma_buf_attachment *attach = priv->attach; in iio_buffer_dmabuf_release() local
1564 struct dma_buf *dmabuf = attach->dmabuf; in iio_buffer_dmabuf_release()
1567 dma_buf_unmap_attachment(attach, priv->sgt, priv->dir); in iio_buffer_dmabuf_release()
1572 dma_buf_detach(attach->dmabuf, attach); in iio_buffer_dmabuf_release()
1577 static void iio_buffer_dmabuf_get(struct dma_buf_attachment *attach) in iio_buffer_dmabuf_get() argument
1579 struct iio_dmabuf_priv *priv = attach->importer_priv; in iio_buffer_dmabuf_get()
1584 static void iio_buffer_dmabuf_put(struct dma_buf_attachment *attach) in iio_buffer_dmabuf_put() argument
1586 struct iio_dmabuf_priv *priv = attach->importer_priv; in iio_buffer_dmabuf_put()
1605 iio_buffer_dmabuf_put(priv->attach); in iio_buffer_chrdev_release()
[all …]
/linux/tools/lib/bpf/
H A Dlibbpf.h55 * @brief **libbpf_bpf_attach_type_str()** converts the provided attach type
57 * @param t The attach type.
58 * @return Pointer to a static string identifying the attach type. NULL is
478 * a BPF program based on auto-detection of program type, attach type,
481 * @param prog BPF program to attach
500 /* don't use BPF link when attach BPF program */
514 * enum probe_attach_mode - the mode to attach kprobe/uprobe
516 * force libbpf to attach kprobe/uprobe in specific mode, -ENOTSUP will
520 /* attach probe in latest supported mode by kernel */
522 /* attach prob
[all...]

12345678910>>...58