/Linux-v6.1/drivers/dma-buf/ |
D | dma-buf.c | 784 static struct sg_table * __map_dma_buf(struct dma_buf_attachment *attach, in __map_dma_buf() argument 790 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in __map_dma_buf() 794 if (!dma_buf_attachment_is_dynamic(attach)) { in __map_dma_buf() 795 ret = dma_resv_wait_timeout(attach->dmabuf->resv, in __map_dma_buf() 799 attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, in __map_dma_buf() 836 struct dma_buf_attachment *attach; in dma_buf_dynamic_attach() local 845 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_dynamic_attach() 846 if (!attach) in dma_buf_dynamic_attach() 849 attach->dev = dev; in dma_buf_dynamic_attach() 850 attach->dmabuf = dmabuf; in dma_buf_dynamic_attach() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | DENYLIST.s390x | 2 atomics # attach(add): actual -524 <= expected 0 … 10 d_path # failed to auto-attach program 'prog_stat': -524 … 12 fentry_fexit # fentry attach failed: -524 … 16 fexit_stress # fexit attach failed prog 0 failed: -524 … 21 kfree_skb # attach fentry unexpected error: -524 … 26 modify_return # modify_return attach failed: -524 … 27 module_attach # skel_attach skeleton attach failed: -524 … 37 skc_to_unix_sock # could not attach BPF object unexpected error: -524 … 41 task_local_storage # failed to auto-attach program 'trace_exit_creds': -524 … 43 test_bprm_opts # failed to auto-attach program 'secure_exec': -524 … [all …]
|
D | flow_dissector_load.c | 62 bool attach = false; in parse_opts() local 71 attach = true; in parse_opts() 74 if (attach) in parse_opts()
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dma_buf.c | 54 struct dma_buf_attachment *attach) in amdgpu_dma_buf_attach() argument 61 if (pci_p2pdma_distance(adev->pdev, attach->dev, false) < 0) in amdgpu_dma_buf_attach() 62 attach->peer2peer = false; in amdgpu_dma_buf_attach() 84 struct dma_buf_attachment *attach) in amdgpu_dma_buf_detach() argument 101 static int amdgpu_dma_buf_pin(struct dma_buf_attachment *attach) in amdgpu_dma_buf_pin() argument 103 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_pin() 117 static void amdgpu_dma_buf_unpin(struct dma_buf_attachment *attach) in amdgpu_dma_buf_unpin() argument 119 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_unpin() 138 static struct sg_table *amdgpu_dma_buf_map(struct dma_buf_attachment *attach, in amdgpu_dma_buf_map() argument 141 struct dma_buf *dma_buf = attach->dmabuf; in amdgpu_dma_buf_map() [all …]
|
/Linux-v6.1/drivers/infiniband/core/ |
D | umem_dmabuf.c | 24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages() 29 sgt = dma_buf_map_attachment(umem_dmabuf->attach, DMA_BIDIRECTIONAL); in ib_umem_dmabuf_map_pages() 71 ret = dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, in ib_umem_dmabuf_map_pages() 84 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_unmap_pages() 105 dma_buf_unmap_attachment(umem_dmabuf->attach, umem_dmabuf->sgt, in ib_umem_dmabuf_unmap_pages() 152 umem_dmabuf->attach = dma_buf_dynamic_attach( in ib_umem_dmabuf_get() 157 if (IS_ERR(umem_dmabuf->attach)) { in ib_umem_dmabuf_get() 158 ret = ERR_CAST(umem_dmabuf->attach); in ib_umem_dmabuf_get() 173 ib_umem_dmabuf_unsupported_move_notify(struct dma_buf_attachment *attach) in ib_umem_dmabuf_unsupported_move_notify() argument 175 struct ib_umem_dmabuf *umem_dmabuf = attach->importer_priv; in ib_umem_dmabuf_unsupported_move_notify() [all …]
|
/Linux-v6.1/drivers/media/common/videobuf2/ |
D | videobuf2-vmalloc.c | 211 struct vb2_vmalloc_attachment *attach; in vb2_vmalloc_dmabuf_ops_attach() local 220 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach() 221 if (!attach) in vb2_vmalloc_dmabuf_ops_attach() 224 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach() 227 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach() 235 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach() 242 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach() 243 dbuf_attach->priv = attach; in vb2_vmalloc_dmabuf_ops_attach() 250 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach() local 253 if (!attach) in vb2_vmalloc_dmabuf_ops_detach() [all …]
|
D | videobuf2-dma-sg.c | 369 struct vb2_dma_sg_attachment *attach; in vb2_dma_sg_dmabuf_ops_attach() local 376 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach() 377 if (!attach) in vb2_dma_sg_dmabuf_ops_attach() 380 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_attach() 386 kfree(attach); in vb2_dma_sg_dmabuf_ops_attach() 398 attach->dma_dir = DMA_NONE; in vb2_dma_sg_dmabuf_ops_attach() 399 dbuf_attach->priv = attach; in vb2_dma_sg_dmabuf_ops_attach() 407 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach() local 410 if (!attach) in vb2_dma_sg_dmabuf_ops_detach() 413 sgt = &attach->sgt; in vb2_dma_sg_dmabuf_ops_detach() [all …]
|
D | videobuf2-dma-contig.c | 320 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-v6.1/drivers/gpu/drm/virtio/ |
D | virtgpu_prime.c | 47 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
|
/Linux-v6.1/drivers/xen/ |
D | gntdev-dmabuf.c | 47 struct dma_buf_attachment *attach; member 220 struct dma_buf_attachment *attach) in dmabuf_exp_ops_attach() argument 230 attach->priv = gntdev_dmabuf_attach; in dmabuf_exp_ops_attach() 235 struct dma_buf_attachment *attach) in dmabuf_exp_ops_detach() argument 237 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_detach() 244 dma_unmap_sgtable(attach->dev, sgt, in dmabuf_exp_ops_detach() 252 attach->priv = NULL; in dmabuf_exp_ops_detach() 257 dmabuf_exp_ops_map_dma_buf(struct dma_buf_attachment *attach, in dmabuf_exp_ops_map_dma_buf() argument 260 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_map_dma_buf() 261 struct gntdev_dmabuf *gntdev_dmabuf = attach->dmabuf->priv; in dmabuf_exp_ops_map_dma_buf() [all …]
|
/Linux-v6.1/include/linux/ |
D | dma-buf.h | 72 int (*attach)(struct dma_buf *, struct dma_buf_attachment *); member 109 int (*pin)(struct dma_buf_attachment *attach); 122 void (*unpin)(struct dma_buf_attachment *attach); 492 void (*move_notify)(struct dma_buf_attachment *attach); 599 dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach) in dma_buf_attachment_is_dynamic() argument 601 return !!attach->importer_ops; in dma_buf_attachment_is_dynamic() 611 struct dma_buf_attachment *attach); 612 int dma_buf_pin(struct dma_buf_attachment *attach); 613 void dma_buf_unpin(struct dma_buf_attachment *attach);
|
/Linux-v6.1/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 105 struct dma_buf_attachment *attach; in omap_gem_prime_import() local 122 attach = dma_buf_attach(dma_buf, dev->dev); in omap_gem_prime_import() 123 if (IS_ERR(attach)) in omap_gem_prime_import() 124 return ERR_CAST(attach); in omap_gem_prime_import() 128 sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in omap_gem_prime_import() 140 obj->import_attach = attach; in omap_gem_prime_import() 145 dma_buf_unmap_attachment(attach, sgt, DMA_TO_DEVICE); in omap_gem_prime_import() 147 dma_buf_detach(dma_buf, attach); in omap_gem_prime_import()
|
/Linux-v6.1/drivers/gpu/drm/ |
D | drm_prime.c | 582 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument 600 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument 620 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() argument 623 struct drm_gem_object *obj = attach->dmabuf->priv; in drm_gem_map_dma_buf() 637 ret = dma_map_sgtable(attach->dev, sgt, dir, in drm_gem_map_dma_buf() 657 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, in drm_gem_unmap_dma_buf() argument 664 dma_unmap_sgtable(attach->dev, sgt, dir, DMA_ATTR_SKIP_CPU_SYNC); in drm_gem_unmap_dma_buf() 793 .attach = drm_gem_map_attach, 917 struct dma_buf_attachment *attach; in drm_gem_prime_import_dev() local 937 attach = dma_buf_attach(dma_buf, attach_dev); in drm_gem_prime_import_dev() [all …]
|
D | drm_gem_dma_helper.c | 463 struct dma_buf_attachment *attach, in drm_gem_dma_prime_import_sg_table() argument 469 if (drm_prime_get_contiguous_size(sgt) < attach->dmabuf->size) in drm_gem_dma_prime_import_sg_table() 473 dma_obj = __drm_gem_dma_create(dev, attach->dmabuf->size, true); in drm_gem_dma_prime_import_sg_table() 481 attach->dmabuf->size); in drm_gem_dma_prime_import_sg_table() 576 struct dma_buf_attachment *attach, in drm_gem_dma_prime_import_sg_table_vmap() argument 584 ret = dma_buf_vmap(attach->dmabuf, &map); in drm_gem_dma_prime_import_sg_table_vmap() 590 obj = drm_gem_dma_prime_import_sg_table(dev, attach, sgt); in drm_gem_dma_prime_import_sg_table_vmap() 592 dma_buf_vunmap(attach->dmabuf, &map); in drm_gem_dma_prime_import_sg_table_vmap()
|
/Linux-v6.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_prime.c | 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-v6.1/drivers/gpu/drm/tegra/ |
D | gem.c | 81 map->attach = dma_buf_attach(buf, dev); in tegra_bo_pin() 82 if (IS_ERR(map->attach)) { in tegra_bo_pin() 83 err = PTR_ERR(map->attach); in tegra_bo_pin() 87 map->sgt = dma_buf_map_attachment(map->attach, direction); in tegra_bo_pin() 89 dma_buf_detach(buf, map->attach); in tegra_bo_pin() 162 if (map->attach) { in tegra_bo_unpin() 163 dma_buf_unmap_attachment(map->attach, map->sgt, map->direction); in tegra_bo_unpin() 164 dma_buf_detach(map->attach->dmabuf, map->attach); in tegra_bo_unpin() 448 struct dma_buf_attachment *attach; in tegra_bo_import() local 456 attach = dma_buf_attach(buf, drm->dev); in tegra_bo_import() [all …]
|
/Linux-v6.1/tools/bpf/bpftool/Documentation/ |
D | bpftool-cgroup.rst | 22 { **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 …]
|
D | bpftool-net.rst | 22 { **show** | **list** | **attach** | **detach** | **help** } 28 | **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ] 59 **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ] 74 *ATTACH_TYPE* previously used for attach must be specified. 153 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0** 162 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0** 163 | **# bpftool net attach xdpdrv id 20 dev enp6s0np0 overwrite** 172 | **# bpftool net attach xdpdrv id 16 dev enp6s0np0**
|
/Linux-v6.1/drivers/nvdimm/ |
D | claim.c | 44 bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in __nd_attach_ndns() argument 47 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); in __nd_attach_ndns() 49 if (attach->claim) in __nd_attach_ndns() 53 attach->claim = dev; in __nd_attach_ndns() 54 *_ndns = attach; in __nd_attach_ndns() 55 get_device(&attach->dev); in __nd_attach_ndns() 59 bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in nd_attach_ndns() argument 64 nvdimm_bus_lock(&attach->dev); in nd_attach_ndns() 65 claimed = __nd_attach_ndns(dev, attach, _ndns); in nd_attach_ndns() 66 nvdimm_bus_unlock(&attach->dev); in nd_attach_ndns()
|
/Linux-v6.1/drivers/virtio/ |
D | virtio_dma_buf.c | 28 exp_info->ops->attach != &virtio_dma_buf_attach || in virtio_dma_buf_export() 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-v6.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 167 struct dma_buf_attachment *attach) in i915_gem_dmabuf_attach() argument 196 struct dma_buf_attachment *attach) in i915_gem_dmabuf_detach() argument 204 .attach = i915_gem_dmabuf_attach, 287 struct dma_buf_attachment *attach; in i915_gem_prime_import() local 309 attach = dma_buf_attach(dma_buf, dev->dev); in i915_gem_prime_import() 310 if (IS_ERR(attach)) in i915_gem_prime_import() 311 return ERR_CAST(attach); in i915_gem_prime_import() 324 obj->base.import_attach = attach; in i915_gem_prime_import() 340 dma_buf_detach(dma_buf, attach); in i915_gem_prime_import()
|
/Linux-v6.1/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 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-v6.1/drivers/gpu/drm/armada/ |
D | armada_gem.c | 386 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_map_dma_buf() argument 389 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_map_dma_buf() 419 if (dma_map_sgtable(attach->dev, sgt, dir, 0)) in armada_gem_prime_map_dma_buf() 428 if (dma_map_sgtable(attach->dev, sgt, dir, 0)) in armada_gem_prime_map_dma_buf() 452 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_unmap_dma_buf() argument 455 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_unmap_dma_buf() 460 dma_unmap_sgtable(attach->dev, sgt, dir, 0); in armada_gem_prime_unmap_dma_buf() 502 struct dma_buf_attachment *attach; in armada_gem_prime_import() local 517 attach = dma_buf_attach(buf, dev->dev); in armada_gem_prime_import() 518 if (IS_ERR(attach)) in armada_gem_prime_import() [all …]
|
/Linux-v6.1/include/drm/ |
D | drm_prime.h | 78 struct dma_buf_attachment *attach); 80 struct dma_buf_attachment *attach); 81 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, 83 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
|
/Linux-v6.1/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
|