/linux-master/drivers/gpu/drm/ |
H A D | drm_prime.c | 542 * Optional pinning of buffers is handled at dma-buf attach and detach time in 570 * drm_gem_map_attach - dma_buf attach implementation for GEM 571 * @dma_buf: buffer to attach device to 572 * @attach: buffer attachment data 575 * used as the &dma_buf_ops.attach callback. Must be used together with 581 struct dma_buf_attachment *attach) 600 * @attach: attachment to be detached 607 struct dma_buf_attachment *attach) 617 * @attach: attachment whose scatterlist is to be returned 627 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, argument 580 drm_gem_map_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument 606 drm_gem_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument 664 drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 914 struct dma_buf_attachment *attach; local 1051 struct dma_buf_attachment *attach; local [all...] |
H A D | drm_gem_dma_helper.c | 448 * @attach: DMA-BUF attachment 463 struct dma_buf_attachment *attach, 469 if (drm_prime_get_contiguous_size(sgt) < attach->dmabuf->size) 473 dma_obj = __drm_gem_dma_create(dev, attach->dmabuf->size, true); 481 attach->dmabuf->size); 557 * @attach: DMA-BUF attachment 575 struct dma_buf_attachment *attach, 583 ret = dma_buf_vmap_unlocked(attach->dmabuf, &map); 589 obj = drm_gem_dma_prime_import_sg_table(dev, attach, sgt); 591 dma_buf_vunmap_unlocked(attach 462 drm_gem_dma_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt) argument 574 drm_gem_dma_prime_import_sg_table_vmap(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt) argument [all...] |
/linux-master/drivers/media/common/videobuf2/ |
H A D | videobuf2-dma-contig.c | 320 struct vb2_dc_attachment *attach; local 327 attach = kzalloc(sizeof(*attach), GFP_KERNEL); 328 if (!attach) 331 sgt = &attach->sgt; 337 kfree(attach); 349 attach->dma_dir = DMA_NONE; 350 dbuf_attach->priv = attach; 358 struct vb2_dc_attachment *attach = db_attach->priv; local 361 if (!attach) 384 struct vb2_dc_attachment *attach = db_attach->priv; local [all...] |
H A D | videobuf2-dma-sg.c | 371 struct vb2_dma_sg_attachment *attach; local 378 attach = kzalloc(sizeof(*attach), GFP_KERNEL); 379 if (!attach) 382 sgt = &attach->sgt; 388 kfree(attach); 400 attach->dma_dir = DMA_NONE; 401 dbuf_attach->priv = attach; 409 struct vb2_dma_sg_attachment *attach = db_attach->priv; local 412 if (!attach) 428 struct vb2_dma_sg_attachment *attach = db_attach->priv; local [all...] |
/linux-master/drivers/xen/ |
H A D | gntdev-dmabuf.c | 48 struct dma_buf_attachment *attach; member in struct:gntdev_dmabuf::__anon522::__anon524 221 struct dma_buf_attachment *attach) 231 attach->priv = gntdev_dmabuf_attach; 236 struct dma_buf_attachment *attach) 238 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; 245 dma_unmap_sgtable(attach->dev, sgt, 253 attach->priv = NULL; 258 dmabuf_exp_ops_map_dma_buf(struct dma_buf_attachment *attach, argument 261 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; 262 struct gntdev_dmabuf *gntdev_dmabuf = attach 220 dmabuf_exp_ops_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument 235 dmabuf_exp_ops_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument 300 dmabuf_exp_ops_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 571 struct dma_buf_attachment *attach; local 696 struct dma_buf_attachment *attach; local [all...] |
/linux-master/drivers/mtd/ubi/ |
H A D | Makefile | 4 ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o attach.o
|
/linux-master/drivers/nvdimm/ |
H A D | claim.c | 44 bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, argument 47 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); 49 if (attach->claim) 53 attach->claim = dev; 54 *_ndns = attach; 55 get_device(&attach->dev); 59 bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, argument 64 nvdimm_bus_lock(&attach->dev); 65 claimed = __nd_attach_ndns(dev, attach, _ndns); 66 nvdimm_bus_unlock(&attach [all...] |
/linux-master/drivers/vfio/ |
H A D | device_cdev.c | 159 struct vfio_device_attach_iommufd_pt attach; local 165 if (copy_from_user(&attach, arg, minsz)) 168 if (attach.argsz < minsz || attach.flags) 172 ret = device->ops->attach_ioas(device, &attach.pt_id); 176 if (copy_to_user(&arg->pt_id, &attach.pt_id, sizeof(attach.pt_id))) {
|
/linux-master/tools/testing/selftests/drivers/usb/usbip/ |
H A 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-master/tools/testing/selftests/bpf/ |
H A D | test_cpp.cpp | 39 int attach() { return T::attach(skel); } function in class:Skeleton 79 err = skel.attach(); 81 fprintf(stderr, "Skeleton attach failed: %d\n", err);
|
/linux-master/include/drm/bridge/ |
H A D | analogix_dp.h | 35 int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *, member in struct:analogix_dp_plat_data
|
/linux-master/drivers/comedi/drivers/ |
H A D | amplc_pc236.c | 64 .attach = pc236_attach,
|
/linux-master/drivers/gpu/drm/mediatek/ |
H A D | mtk_drm_gem.h | 44 struct dma_buf_attachment *attach, struct sg_table *sg);
|
/linux-master/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_gem.h | 32 struct dma_buf_attachment *attach,
|
/linux-master/tools/perf/tests/ |
H A D | event-times.c | 163 static int test_times(int (attach)(struct evlist *), 188 err = attach(evlist); 194 TEST_ASSERT_VAL("failed to attach", !err); 223 #define _T(attach, detach) \ 224 err = test_times(attach, detach); \ 228 /* attach on newly spawned process after exec */ 230 /* attach on current process as enabled */ 232 /* attach on current process as disabled */ 234 /* attach on cpu as disabled */ 236 /* attach o [all...] |
/linux-master/drivers/gpu/drm/qxl/ |
H A D | qxl_prime.c | 51 struct drm_device *dev, struct dma_buf_attachment *attach, 50 qxl_gem_prime_import_sg_table( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *table) argument
|
/linux-master/samples/bpf/ |
H A D | xdp_fwd_user.c | 38 printf("ERROR: failed to attach program to %s\n", name); 129 int attach = 1; local 135 attach = 0; 160 if (attach) { 214 if (!attach) {
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | recursive_attach.c | 13 * - 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) argument 69 /* The first attach should succeed, the second fail */ 74 if (attach) { [all...] |
/linux-master/drivers/gpu/drm/tegra/ |
H A D | gem.c | 82 map->attach = dma_buf_attach(buf, dev); 83 if (IS_ERR(map->attach)) { 84 err = PTR_ERR(map->attach); 88 map->sgt = dma_buf_map_attachment_unlocked(map->attach, direction); 90 dma_buf_detach(buf, map->attach); 163 if (map->attach) { 164 dma_buf_unmap_attachment_unlocked(map->attach, map->sgt, 166 dma_buf_detach(map->attach->dmabuf, map->attach); 460 struct dma_buf_attachment *attach; local 625 tegra_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, enum dma_data_direction dir) argument 657 tegra_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument [all...] |
/linux-master/drivers/gpu/drm/armada/ |
H A D | armada_gem.c | 386 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, argument 389 struct drm_gem_object *obj = attach->dmabuf->priv; 419 if (dma_map_sgtable(attach->dev, sgt, dir, 0)) 428 if (dma_map_sgtable(attach->dev, sgt, dir, 0)) 452 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, argument 455 struct drm_gem_object *obj = attach->dmabuf->priv; 460 dma_unmap_sgtable(attach->dev, sgt, dir, 0); 502 struct dma_buf_attachment *attach; local 517 attach = dma_buf_attach(buf, dev->dev); 518 if (IS_ERR(attach)) [all...] |
/linux-master/sound/aoa/core/ |
H A D | core.c | 93 goto attach; 106 attach:
|
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | Makefile | 12 ath5k-y += attach.o
|
/linux-master/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem_prime.c | 113 struct dma_buf_attachment *attach, struct sg_table *sgt) 116 size_t size = PAGE_ALIGN(attach->dmabuf->size); 112 etnaviv_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt) argument
|
/linux-master/include/drm/ |
H A D | drm_gem_dma_helper.h | 152 struct dma_buf_attachment *attach, 227 struct dma_buf_attachment *attach,
|
/linux-master/security/apparmor/ |
H A D | domain.c | 312 struct aa_attachment *attach = &profile->attach; local 313 int size, value_size = 0, ret = attach->xattr_count; 315 if (!bprm || !attach->xattr_count) 320 state = aa_dfa_outofband_transition(attach->xmatch->dfa, state); 323 for (i = 0; i < attach->xattr_count; i++) { 324 size = vfs_getxattr_alloc(&nop_mnt_idmap, d, attach->xattrs[i], 334 state = aa_dfa_null_transition(attach->xmatch->dfa, 337 state = aa_dfa_match_len(attach->xmatch->dfa, state, 339 index = ACCEPT_TABLE(attach 399 struct aa_attachment *attach = &profile->attach; local [all...] |