/Linux-v4.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 …]
|
/Linux-v4.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 …]
|
D | videobuf2-dma-contig.c | 228 struct vb2_dc_attachment *attach; in vb2_dc_dmabuf_ops_attach() local 235 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dc_dmabuf_ops_attach() 236 if (!attach) in vb2_dc_dmabuf_ops_attach() 239 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_attach() 245 kfree(attach); in vb2_dc_dmabuf_ops_attach() 257 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach() 258 dbuf_attach->priv = attach; in vb2_dc_dmabuf_ops_attach() 266 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach() local 269 if (!attach) in vb2_dc_dmabuf_ops_detach() 272 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_detach() [all …]
|
/Linux-v4.19/drivers/xen/ |
D | gntdev-dmabuf.c | 53 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_sg_attrs(attach->dev, sgt->sgl, 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-v4.19/drivers/gpu/drm/ |
D | drm_prime.c | 198 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument 209 attach->priv = prime_attach; in drm_gem_map_attach() 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() 247 attach->priv = NULL; in drm_gem_map_detach() 292 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() argument 295 struct drm_prime_attachment *prime_attach = attach->priv; in drm_gem_map_dma_buf() 296 struct drm_gem_object *obj = attach->dmabuf->priv; in drm_gem_map_dma_buf() 316 if (!dma_map_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir, in drm_gem_map_dma_buf() [all …]
|
/Linux-v4.19/drivers/dma-buf/ |
D | dma-buf.c | 554 struct dma_buf_attachment *attach; in dma_buf_attach() local 560 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in dma_buf_attach() 561 if (!attach) in dma_buf_attach() 564 attach->dev = dev; in dma_buf_attach() 565 attach->dmabuf = dmabuf; in dma_buf_attach() 569 if (dmabuf->ops->attach) { in dma_buf_attach() 570 ret = dmabuf->ops->attach(dmabuf, attach); in dma_buf_attach() 574 list_add(&attach->node, &dmabuf->attachments); in dma_buf_attach() 577 return attach; in dma_buf_attach() 580 kfree(attach); in dma_buf_attach() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_prime.c | 155 struct dma_buf_attachment *attach, in amdgpu_gem_prime_import_sg_table() argument 158 struct reservation_object *resv = attach->dmabuf->resv; in amdgpu_gem_prime_import_sg_table() 165 bp.size = attach->dmabuf->size; in amdgpu_gem_prime_import_sg_table() 180 if (attach->dmabuf->ops != &amdgpu_dmabuf_ops) in amdgpu_gem_prime_import_sg_table() 204 struct dma_buf_attachment *attach) in amdgpu_gem_map_attach() argument 211 r = drm_gem_map_attach(dma_buf, attach); in amdgpu_gem_map_attach() 220 if (attach->dev->driver != adev->dev->driver) { in amdgpu_gem_map_attach() 239 if (attach->dev->driver != adev->dev->driver) in amdgpu_gem_map_attach() 247 drm_gem_map_detach(dma_buf, attach); in amdgpu_gem_map_attach() 260 struct dma_buf_attachment *attach) in amdgpu_gem_map_detach() argument [all …]
|
/Linux-v4.19/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 159 struct dma_buf_attachment *attach; in omap_gem_prime_import() local 176 attach = dma_buf_attach(dma_buf, dev->dev); in omap_gem_prime_import() 177 if (IS_ERR(attach)) in omap_gem_prime_import() 178 return ERR_CAST(attach); in omap_gem_prime_import() 182 sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in omap_gem_prime_import() 194 obj->import_attach = attach; in omap_gem_prime_import() 199 dma_buf_unmap_attachment(attach, sgt, DMA_TO_DEVICE); in omap_gem_prime_import() 201 dma_buf_detach(dma_buf, attach); in omap_gem_prime_import()
|
/Linux-v4.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 …]
|
/Linux-v4.19/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 94 .attach = vmw_prime_map_attach,
|
/Linux-v4.19/samples/bpf/ |
D | xdp_fwd_user.c | 74 int attach = 1; in main() local 80 attach = 0; in main() 96 if (attach) { in main() 122 if (attach) { in main() 136 if (!attach) { in main()
|
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:
|
/Linux-v4.19/drivers/nvdimm/ |
D | claim.c | 51 bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in __nd_attach_ndns() argument 54 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); in __nd_attach_ndns() 56 if (attach->claim) in __nd_attach_ndns() 60 attach->claim = dev; in __nd_attach_ndns() 61 *_ndns = attach; in __nd_attach_ndns() 62 get_device(&attach->dev); in __nd_attach_ndns() 66 bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, in nd_attach_ndns() argument 71 nvdimm_bus_lock(&attach->dev); in nd_attach_ndns() 72 claimed = __nd_attach_ndns(dev, attach, _ndns); in nd_attach_ndns() 73 nvdimm_bus_unlock(&attach->dev); in nd_attach_ndns()
|
/Linux-v4.19/drivers/gpu/drm/armada/ |
D | armada_gem.c | 373 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_map_dma_buf() argument 376 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_map_dma_buf() 408 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) { in armada_gem_prime_map_dma_buf() 419 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) in armada_gem_prime_map_dma_buf() 442 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_unmap_dma_buf() argument 445 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_unmap_dma_buf() 450 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, dir); in armada_gem_prime_unmap_dma_buf() 504 struct dma_buf_attachment *attach; in armada_gem_prime_import() local 519 attach = dma_buf_attach(buf, dev->dev); in armada_gem_prime_import() 520 if (IS_ERR(attach)) in armada_gem_prime_import() [all …]
|
/Linux-v4.19/include/drm/ |
D | drm_prime.h | 86 struct dma_buf_attachment *attach); 88 struct dma_buf_attachment *attach); 89 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, 91 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
|
/Linux-v4.19/drivers/gpu/drm/tegra/ |
D | gem.c | 336 struct dma_buf_attachment *attach; in tegra_bo_import() local 344 attach = dma_buf_attach(buf, drm->dev); in tegra_bo_import() 345 if (IS_ERR(attach)) { in tegra_bo_import() 346 err = PTR_ERR(attach); in tegra_bo_import() 352 bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in tegra_bo_import() 371 bo->gem.import_attach = attach; in tegra_bo_import() 377 dma_buf_unmap_attachment(attach, bo->sgt, DMA_TO_DEVICE); in tegra_bo_import() 379 dma_buf_detach(buf, attach); in tegra_bo_import() 499 tegra_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in tegra_gem_prime_map_dma_buf() argument 502 struct drm_gem_object *gem = attach->dmabuf->priv; in tegra_gem_prime_map_dma_buf() [all …]
|
/Linux-v4.19/drivers/gpu/drm/tinydrm/core/ |
D | tinydrm-core.c | 59 struct dma_buf_attachment *attach, in tinydrm_gem_cma_prime_import_sg_table() argument 66 vaddr = dma_buf_vmap(attach->dmabuf); in tinydrm_gem_cma_prime_import_sg_table() 72 obj = drm_gem_cma_prime_import_sg_table(drm, attach, sgt); in tinydrm_gem_cma_prime_import_sg_table() 74 dma_buf_vunmap(attach->dmabuf, vaddr); in tinydrm_gem_cma_prime_import_sg_table()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | i915_gem_dmabuf.c | 280 struct dma_buf_attachment *attach; in i915_gem_prime_import() local 298 attach = dma_buf_attach(dma_buf, dev->dev); in i915_gem_prime_import() 299 if (IS_ERR(attach)) in i915_gem_prime_import() 300 return ERR_CAST(attach); in i915_gem_prime_import() 312 obj->base.import_attach = attach; in i915_gem_prime_import() 328 dma_buf_detach(dma_buf, attach); in i915_gem_prime_import()
|
/Linux-v4.19/tools/testing/selftests/drivers/usb/usbip/ |
D | usbip_test.sh | 125 src/usbip attach -r localhost -b $busid; 141 src/usbip attach -r localhost -b $busid; 153 src/usbip attach -r localhost -b $busid;
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_prime.c | 60 struct dma_buf_attachment *attach, in nouveau_gem_prime_import_sg_table() argument 65 struct reservation_object *robj = attach->dmabuf->resv; in nouveau_gem_prime_import_sg_table() 72 ret = nouveau_bo_new(&drm->client, attach->dmabuf->size, 0, flags, 0, 0, in nouveau_gem_prime_import_sg_table()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.h | 31 int (*attach) (struct qlcnic_dcb *); member 66 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach() 67 return dcb->ops->attach(dcb); in qlcnic_dcb_attach()
|
/Linux-v4.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() 221 #define _T(attach, detach) \ in test__event_times() argument 222 err = test_times(attach, detach); \ in test__event_times()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_prime.c | 61 struct dma_buf_attachment *attach, in radeon_gem_prime_import_sg_table() argument 64 struct reservation_object *resv = attach->dmabuf->resv; in radeon_gem_prime_import_sg_table() 70 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false, in radeon_gem_prime_import_sg_table()
|
/Linux-v4.19/Documentation/devicetree/bindings/phy/ |
D | rockchip-usb-phy.txt | 22 "0x320" - for PHY attach to OTG controller 23 "0x334" - for PHY attach to HOST0 controller 24 "0x348" - for PHY attach to HOST1 controller
|