| /kernel/linux/linux-4.19/drivers/gpu/drm/udl/ |
| D | udl_dmabuf.c | 32 struct dma_buf_attachment *attach) in udl_attach_dma_buf() argument 36 DRM_DEBUG_PRIME("[DEV:%s] size:%zd\n", dev_name(attach->dev), in udl_attach_dma_buf() 37 attach->dmabuf->size); in udl_attach_dma_buf() 44 attach->priv = udl_attach; in udl_attach_dma_buf() 50 struct dma_buf_attachment *attach) in udl_detach_dma_buf() argument 52 struct udl_drm_dmabuf_attachment *udl_attach = attach->priv; in udl_detach_dma_buf() 58 DRM_DEBUG_PRIME("[DEV:%s] size:%zd\n", dev_name(attach->dev), in udl_detach_dma_buf() 59 attach->dmabuf->size); in udl_detach_dma_buf() 64 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, in udl_detach_dma_buf() 69 attach->priv = NULL; in udl_detach_dma_buf() [all …]
|
| /kernel/linux/linux-5.10/drivers/dma-buf/ |
| D | dma-buf.c | 670 * calls attach() of dma_buf_ops to allow device-specific attach functionality 671 * @dmabuf: [in] buffer to attach device to. 693 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local 702 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach() 703 if (!attach) in dma_buf_dynamic_attach() 706 attach->dev = dev; in dma_buf_dynamic_attach() 707 attach->dmabuf = dmabuf; in dma_buf_dynamic_attach() 709 attach->peer2peer = importer_ops->allow_peer2peer; in dma_buf_dynamic_attach() 710 attach->importer_ops = importer_ops; in dma_buf_dynamic_attach() 711 attach->importer_priv = importer_priv; in dma_buf_dynamic_attach() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_dma_buf.c | 169 * 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-4.19/drivers/media/common/videobuf2/ |
| D | videobuf2-vmalloc.c | 215 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 …]
|
| D | videobuf2-dma-sg.c | 377 struct vb2_dma_sg_attachment *attach; in vb2_dma_sg_dmabuf_ops_attach() local 384 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach() 385 if (!attach) in vb2_dma_sg_dmabuf_ops_attach() 388 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_attach() 394 kfree(attach); in vb2_dma_sg_dmabuf_ops_attach() 406 attach->dma_dir = DMA_NONE; in vb2_dma_sg_dmabuf_ops_attach() 407 dbuf_attach->priv = attach; in vb2_dma_sg_dmabuf_ops_attach() 415 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach() local 418 if (!attach) in vb2_dma_sg_dmabuf_ops_detach() 421 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_detach() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
| D | videobuf2-vmalloc.c | 213 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 …]
|
| D | videobuf2-dma-sg.c | 358 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-5.10/Documentation/bpf/ |
| D | map_cgroup_storage.rst | 10 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/drivers/xen/ |
| D | gntdev-dmabuf.c | 53 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-4.19/drivers/xen/ |
| D | gntdev-dmabuf.c | 53 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_sg_attrs(attach->dev, sgt->sgl, 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/ |
| D | cgroup_attach_override.c | 48 "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()
|
| D | trace_ext.c | 29 /* 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()
|
| D | cg_storage_multi.c | 98 /* 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 …]
|
| D | test_overhead.c | 108 /* 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-4.19/tools/bpf/bpftool/Documentation/ |
| D | bpftool-cgroup.rst | 18 { **show** | **list** | **tree** | **attach** | **detach** | **help** } 25 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*] 40 Output will start with program ID followed by attach type, 41 attach flags and program name. 50 program ID, attach type, attach flags and program name. 52 **bpftool cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*] 53 Attach program *PROG* to the cgroup *CGROUP* with attach type 63 no attach flags or the **override** flag. Attaching another 64 program will release old program and attach the new one. 91 Detach *PROG* from the cgroup *CGROUP* and attach type [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/ |
| D | drm_prime.c | 187 * drm_gem_map_attach - dma_buf attach implementation for GEM 188 * @dma_buf: buffer to attach device to 189 * @attach: buffer attachment data 192 * device specific attachment. This can be used as the &dma_buf_ops.attach 198 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument 209 attach->priv = prime_attach; in drm_gem_map_attach() 221 * @attach: attachment to be detached 227 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument 229 struct drm_prime_attachment *prime_attach = attach->priv; in drm_gem_map_detach() 238 dma_unmap_sg_attrs(attach->dev, sgt->sgl, in drm_gem_map_detach() [all …]
|
| /kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/ |
| D | bpftool-cgroup.rst | 18 { **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-4.19/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_prime.c | 145 * @attach: DMA-buf attachment 156 struct dma_buf_attachment *attach, in amdgpu_gem_prime_import_sg_table() argument 159 struct reservation_object *resv = attach->dmabuf->resv; in amdgpu_gem_prime_import_sg_table() 166 bp.size = attach->dmabuf->size; in amdgpu_gem_prime_import_sg_table() 181 if (attach->dmabuf->ops != &amdgpu_dmabuf_ops) in amdgpu_gem_prime_import_sg_table() 235 * amdgpu_gem_map_attach - &dma_buf_ops.attach implementation 237 * @attach: DMA-buf attachment 247 struct dma_buf_attachment *attach) in amdgpu_gem_map_attach() argument 254 r = drm_gem_map_attach(dma_buf, attach); in amdgpu_gem_map_attach() 263 if (attach->dev->driver != adev->dev->driver) { in amdgpu_gem_map_attach() [all …]
|
| /kernel/linux/linux-4.19/tools/perf/tests/ |
| D | event-times.c | 161 static int test_times(int (attach)(struct perf_evlist *), in test_times() 186 err = attach(evlist); in test_times() 192 TEST_ASSERT_VAL("failed to attach", !err); in test_times() 221 #define _T(attach, detach) \ in test__event_times() argument 222 err = test_times(attach, detach); \ in test__event_times() 226 /* attach on newly spawned process after exec */ in test__event_times() 228 /* attach on current process as enabled */ in test__event_times() 230 /* attach on current process as disabled */ in test__event_times() 232 /* attach on cpu as disabled */ in test__event_times() 234 /* attach on cpu as enabled */ in test__event_times()
|
| /kernel/linux/linux-5.10/tools/perf/tests/ |
| D | event-times.c | 163 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()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_prime.c | 539 * Optional pinning of buffers is handled at dma-buf attach and detach time in 566 * drm_gem_map_attach - dma_buf attach implementation for GEM 567 * @dma_buf: buffer to attach device to 568 * @attach: buffer attachment data 571 * used as the &dma_buf_ops.attach callback. Must be used together with 577 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument 588 * @attach: attachment to be detached 595 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument 605 * @attach: attachment whose scatterlist is to be returned 615 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/cx231xx/ |
| D | cx231xx-dvb.c | 381 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
| D | omap_gem_dmabuf.c | 129 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/include/linux/ |
| D | dma-buf.h | 46 * @attach: 53 * device), and otherwise need to fail the attach operation. 58 * fail the attach operation. 71 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); 120 * can only be called if @attach has been called successfully. 128 * &device.dma_params from the &dma_buf_attachment. The @attach callback 279 * @lock: used internally to serialize list manipulation, attach/detach and 364 void (*move_notify)(struct dma_buf_attachment *attach); [all …]
|
| /kernel/linux/linux-4.19/drivers/media/usb/cx231xx/ |
| D | cx231xx-dvb.c | 393 dev_err(dev->dev, "%s/2: dvb frontend not attached. Can't attach xc5000\n", 400 dev_err(dev->dev, "%s/2: xc5000 attach failed\n", dev->name); 669 "Failed to attach s5h1432 front end\n"); in dvb_init() 694 "Failed to attach s5h1411 front end\n"); in dvb_init() 717 "Failed to attach s5h1432 front end\n"); in dvb_init() 741 "Failed to attach s5h1411 front end\n"); in dvb_init() 768 "Failed to attach LG3305 front end\n"); in dvb_init() 785 /* attach demod */ in dvb_init() 790 /* perform probe/init/attach */ in dvb_init() 817 /* attach demod */ in dvb_init() [all …]
|