/linux-5.10/drivers/dma-buf/ |
D | dma-buf.c | 657 * calls attach() of dma_buf_ops to allow device-specific attach functionality 658 * @dmabuf: [in] buffer to attach device to. 680 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local 689 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach() 690 if (!attach) in dma_buf_dynamic_attach() 693 attach->dev = dev; in dma_buf_dynamic_attach() 694 attach->dmabuf = dmabuf; in dma_buf_dynamic_attach() 696 attach->peer2peer = importer_ops->allow_peer2peer; in dma_buf_dynamic_attach() 697 attach->importer_ops = importer_ops; in dma_buf_dynamic_attach() 698 attach->importer_priv = importer_priv; in dma_buf_dynamic_attach() [all …]
|
/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 …]
|
/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 …]
|
D | videobuf2-dma-contig.c | 218 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 …]
|
/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 …]
|
/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 …]
|
/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()
|
D | xdp_devmap_attach.c | 29 /* can not attach program with DEVMAPs that allow programs in test_xdp_with_devmap_helpers() 34 CHECK(err == 0, "Generic attach of program with 8-byte devmap", in test_xdp_with_devmap_helpers() 53 /* can not attach BPF_XDP_DEVMAP program to a device */ in test_xdp_with_devmap_helpers() 55 CHECK(err == 0, "Attach of BPF_XDP_DEVMAP program", in test_xdp_with_devmap_helpers() 75 "Load of XDP program accessing egress ifindex without attach type", in test_neg_xdp_devmap_helpers()
|
/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*] 41 Output will start with program ID followed by attach type, 42 attach flags and program name. 55 program ID, attach type, attach flags and program name. 61 **bpftool cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*] 62 Attach program *PROG* to the cgroup *CGROUP* with attach type 72 no attach flags or the **override** flag. Attaching another 73 program will release old program and attach the new one. 111 Detach *PROG* from the cgroup *CGROUP* and attach type [all …]
|
D | bpftool-net.rst | 18 { **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-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()
|
/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 …]
|
/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 …]
|
/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()
|
/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 …]
|
D | virtio_dma_buf.h | 17 * @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-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_prime.c | 38 * 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-5.10/drivers/virtio/ |
D | virtio_dma_buf.c | 28 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-5.10/drivers/nvdimm/ |
D | claim.c | 43 bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in __nd_attach_ndns() argument 46 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); in __nd_attach_ndns() 48 if (attach->claim) in __nd_attach_ndns() 52 attach->claim = dev; in __nd_attach_ndns() 53 *_ndns = attach; in __nd_attach_ndns() 54 get_device(&attach->dev); in __nd_attach_ndns() 58 bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in nd_attach_ndns() argument 63 nvdimm_bus_lock(&attach->dev); in nd_attach_ndns() 64 claimed = __nd_attach_ndns(dev, attach, _ndns); in nd_attach_ndns() 65 nvdimm_bus_unlock(&attach->dev); in nd_attach_ndns()
|
/linux-5.10/samples/bpf/ |
D | tcp_bpf.readme | 2 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
|
/linux-5.10/tools/usb/usbip/doc/ |
D | usbip.8 | 29 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. 90 client:# usbip attach --remote=server --busid=1-2
|