Home
last modified time | relevance | path

Searched refs:fd_device (Results 1 – 25 of 43) sorted by relevance

12

/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_drmif.h41 struct fd_device;
122 struct fd_device *fd_device_new(int fd);
123 struct fd_device *fd_device_new_dup(int fd);
124 struct fd_device *fd_device_open(void);
125 struct fd_device *fd_device_ref(struct fd_device *dev);
126 void fd_device_purge(struct fd_device *dev);
127 void fd_device_del(struct fd_device *dev);
128 int fd_device_fd(struct fd_device *dev);
143 enum fd_version fd_device_version(struct fd_device *dev);
145 bool fd_has_syncobj(struct fd_device *dev);
[all …]
Dfreedreno_device.c36 struct fd_device *msm_device_new(int fd, drmVersionPtr version);
38 struct fd_device *virtio_device_new(int fd, drmVersionPtr version);
41 struct fd_device *
44 struct fd_device *dev = NULL; in fd_device_new()
105 struct fd_device *
109 struct fd_device *dev = fd_device_new(dup_fd); in fd_device_new_dup()
119 struct fd_device *
135 struct fd_device *
136 fd_device_ref(struct fd_device *dev) in fd_device_ref()
143 fd_device_purge(struct fd_device *dev) in fd_device_purge()
[all …]
Dfreedreno_priv.h95 struct fd_bo *(*bo_new)(struct fd_device *dev, uint32_t size, uint32_t flags);
100 struct fd_bo *(*bo_from_handle)(struct fd_device *dev, uint32_t size,
103 struct fd_pipe *(*pipe_new)(struct fd_device *dev, enum fd_pipe_id id,
105 void (*destroy)(struct fd_device *dev);
119 struct fd_device { struct
194 void fd_device_del_locked(struct fd_device *dev); argument
224 struct fd_device *dev;
289 fd_dev_count_deferred_cmds(struct fd_device *dev) in fd_dev_count_deferred_cmds()
328 struct fd_device *dev;
383 void fd_bo_init_common(struct fd_bo *bo, struct fd_device *dev);
[all …]
Dfreedreno_bo.c61 fd_bo_init_common(struct fd_bo *bo, struct fd_device *dev) in fd_bo_init_common()
77 bo_from_handle(struct fd_device *dev, uint32_t size, uint32_t handle) in bo_from_handle()
99 bo_new(struct fd_device *dev, uint32_t size, uint32_t flags, in bo_new()
131 _fd_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags) in _fd_bo_new()
151 fd_bo_new_ring(struct fd_device *dev, uint32_t size) in fd_bo_new_ring()
164 fd_bo_from_handle(struct fd_device *dev, uint32_t handle, uint32_t size) in fd_bo_from_handle()
185 fd_bo_from_dmabuf(struct fd_device *dev, int fd) in fd_bo_from_dmabuf()
217 fd_bo_from_name(struct fd_device *dev, uint32_t name) in fd_bo_from_name()
276 struct fd_device *dev = bo->dev; in bo_del_or_recycle()
349 struct fd_device *dev = bo->dev; in bo_del()
Dfreedreno_pipe.c35 fd_pipe_new2(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) in fd_pipe_new2()
89 fd_pipe_new(struct fd_device *dev, enum fd_pipe_id id) in fd_pipe_new()
137 struct fd_device *dev = pipe->dev; in fd_pipe_purge()
/third_party/libdrm/freedreno/
Dfreedreno_drmif.h46 struct fd_device;
87 struct fd_device * fd_device_new(int fd);
88 struct fd_device * fd_device_new_dup(int fd);
89 struct fd_device * fd_device_ref(struct fd_device *dev);
90 void fd_device_del(struct fd_device *dev);
91 int fd_device_fd(struct fd_device *dev);
100 enum fd_version fd_device_version(struct fd_device *dev);
105 struct fd_pipe * fd_pipe_new(struct fd_device *dev, enum fd_pipe_id id);
106 struct fd_pipe * fd_pipe_new2(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio);
120 struct fd_bo * fd_bo_new(struct fd_device *dev,
[all …]
Dfreedreno_device.c38 struct fd_device * kgsl_device_new(int fd);
39 struct fd_device * msm_device_new(int fd);
41 drm_public struct fd_device * fd_device_new(int fd) in fd_device_new()
43 struct fd_device *dev; in fd_device_new()
93 drm_public struct fd_device * fd_device_new_dup(int fd) in fd_device_new_dup()
96 struct fd_device *dev = fd_device_new(dup_fd); in fd_device_new_dup()
104 drm_public struct fd_device * fd_device_ref(struct fd_device *dev) in fd_device_ref()
110 static void fd_device_del_impl(struct fd_device *dev) in fd_device_del_impl()
121 drm_private void fd_device_del_locked(struct fd_device *dev) in fd_device_del_locked()
128 drm_public void fd_device_del(struct fd_device *dev) in fd_device_del()
[all …]
Dfreedreno_priv.h62 int (*bo_new_handle)(struct fd_device *dev, uint32_t size,
64 struct fd_bo * (*bo_from_handle)(struct fd_device *dev,
66 struct fd_pipe * (*pipe_new)(struct fd_device *dev, enum fd_pipe_id id,
68 void (*destroy)(struct fd_device *dev);
82 struct fd_device { struct
116 drm_private void fd_device_del_locked(struct fd_device *dev); argument
127 struct fd_device *dev;
158 struct fd_device *dev;
176 drm_private struct fd_bo *fd_bo_new_ring(struct fd_device *dev,
Dfreedreno_bo.c58 static struct fd_bo * bo_from_handle(struct fd_device *dev, in bo_from_handle()
79 bo_new(struct fd_device *dev, uint32_t size, uint32_t flags, in bo_new()
104 fd_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags) in fd_bo_new()
118 fd_bo_new_ring(struct fd_device *dev, uint32_t size, uint32_t flags) in fd_bo_new_ring()
127 fd_bo_from_handle(struct fd_device *dev, uint32_t handle, uint32_t size) in fd_bo_from_handle()
148 fd_bo_from_dmabuf(struct fd_device *dev, int fd) in fd_bo_from_dmabuf()
179 drm_public struct fd_bo * fd_bo_from_name(struct fd_device *dev, uint32_t name) in fd_bo_from_name()
232 struct fd_device *dev = bo->dev; in fd_bo_del()
Dfreedreno_pipe.c37 fd_pipe_new2(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) in fd_pipe_new2()
69 fd_pipe_new(struct fd_device *dev, enum fd_pipe_id id) in fd_pipe_new()
/third_party/mesa3d/src/freedreno/drm/virtio/
Dvirtio_priv.h47 struct fd_device base;
87 FD_DEFINE_CAST(fd_device, virtio_device);
89 struct fd_device *virtio_device_new(int fd, drmVersionPtr version);
92 virtio_dev_free_iova(struct fd_device *dev, uint64_t iova, uint32_t size) in virtio_dev_free_iova()
102 virtio_dev_alloc_iova(struct fd_device *dev, uint32_t size) in virtio_dev_alloc_iova()
158 struct fd_pipe *virtio_pipe_new(struct fd_device *dev, enum fd_pipe_id id,
171 struct fd_bo *virtio_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags);
172 struct fd_bo *virtio_bo_from_handle(struct fd_device *dev, uint32_t size,
178 void *virtio_alloc_rsp(struct fd_device *dev, struct msm_ccmd_req *hdr, uint32_t sz);
179 int virtio_execbuf_fenced(struct fd_device *dev, struct msm_ccmd_req *req,
[all …]
Dvirtio_device.c34 virtio_device_destroy(struct fd_device *dev) in virtio_device_destroy()
80 set_debuginfo(struct fd_device *dev) in set_debuginfo()
122 struct fd_device *
127 struct fd_device *dev; in virtio_device_new()
216 virtio_alloc_rsp(struct fd_device *dev, struct msm_ccmd_req *req, uint32_t sz) in virtio_alloc_rsp()
241 static int execbuf_flush_locked(struct fd_device *dev, int *out_fence_fd);
244 execbuf_locked(struct fd_device *dev, void *cmd, uint32_t cmd_size, in execbuf_locked()
282 virtio_execbuf_fenced(struct fd_device *dev, struct msm_ccmd_req *req, in virtio_execbuf_fenced()
302 execbuf_flush_locked(struct fd_device *dev, int *out_fence_fd) in execbuf_flush_locked()
322 virtio_execbuf_flush(struct fd_device *dev) in virtio_execbuf_flush()
[all …]
/third_party/libdrm/freedreno/kgsl/
Dkgsl_priv.h37 struct fd_device base;
40 static inline struct kgsl_device * to_kgsl_device(struct fd_device *x) in to_kgsl_device()
94 drm_private struct fd_device * kgsl_device_new(int fd);
105 drm_private struct fd_pipe * kgsl_pipe_new(struct fd_device *dev,
111 drm_private int kgsl_bo_new_handle(struct fd_device *dev,
113 drm_private struct fd_bo * kgsl_bo_from_handle(struct fd_device *dev,
Dkgsl_device.c35 static void kgsl_device_destroy(struct fd_device *dev) in kgsl_device_destroy()
48 drm_private struct fd_device * kgsl_device_new(int fd) in kgsl_device_new()
51 struct fd_device *dev; in kgsl_device_new()
Dkgsl_bo.c33 static int set_memtype(struct fd_device *dev, uint32_t handle, uint32_t flags) in set_memtype()
136 drm_private int kgsl_bo_new_handle(struct fd_device *dev, in kgsl_bo_new_handle()
160 drm_private struct fd_bo * kgsl_bo_from_handle(struct fd_device *dev, in kgsl_bo_from_handle()
/third_party/libdrm/freedreno/msm/
Dmsm_priv.h41 struct fd_device base;
46 static inline struct msm_device * to_msm_device(struct fd_device *x) in to_msm_device()
51 drm_private struct fd_device * msm_device_new(int fd);
78 drm_private struct fd_pipe * msm_pipe_new(struct fd_device *dev,
101 drm_private int msm_bo_new_handle(struct fd_device *dev,
103 drm_private struct fd_bo * msm_bo_from_handle(struct fd_device *dev,
Dmsm_device.c35 static void msm_device_destroy(struct fd_device *dev) in msm_device_destroy()
48 drm_private struct fd_device * msm_device_new(int fd) in msm_device_new()
51 struct fd_device *dev; in msm_device_new()
Dmsm_bo.c136 drm_private int msm_bo_new_handle(struct fd_device *dev, in msm_bo_new_handle()
156 drm_private struct fd_bo * msm_bo_from_handle(struct fd_device *dev, in msm_bo_from_handle()
/third_party/mesa3d/src/freedreno/drm/msm/
Dmsm_priv.h43 struct fd_device base;
45 FD_DEFINE_CAST(fd_device, msm_device);
47 struct fd_device *msm_device_new(int fd, drmVersionPtr version);
66 struct fd_pipe *msm_pipe_new(struct fd_device *dev, enum fd_pipe_id id,
81 struct fd_bo *msm_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags);
82 struct fd_bo *msm_bo_from_handle(struct fd_device *dev, uint32_t size,
Dmsm_device.c34 msm_device_destroy(struct fd_device *dev) in msm_device_destroy()
45 struct fd_device *
49 struct fd_device *dev; in msm_device_new()
Dmsm_bo.c168 new_handle(struct fd_device *dev, uint32_t size, uint32_t flags, uint32_t *handle) in new_handle()
197 msm_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags) in msm_bo_new()
211 msm_bo_from_handle(struct fd_device *dev, uint32_t size, uint32_t handle) in msm_bo_from_handle()
/third_party/mesa3d/src/vulkan/wsi/
Dwsi_common_drm.c273 drmDevicePtr fd_device; in wsi_device_matches_drm_fd() local
274 int ret = drmGetDevice2(drm_fd, 0, &fd_device); in wsi_device_matches_drm_fd()
279 switch (fd_device->bustype) { in wsi_device_matches_drm_fd()
281 match = wsi->pci_bus_info.pciDomain == fd_device->businfo.pci->domain && in wsi_device_matches_drm_fd()
282 wsi->pci_bus_info.pciBus == fd_device->businfo.pci->bus && in wsi_device_matches_drm_fd()
283 wsi->pci_bus_info.pciDevice == fd_device->businfo.pci->dev && in wsi_device_matches_drm_fd()
284 wsi->pci_bus_info.pciFunction == fd_device->businfo.pci->func; in wsi_device_matches_drm_fd()
291 drmFreeDevice(&fd_device); in wsi_device_matches_drm_fd()
/third_party/mesa3d/src/freedreno/computerator/
Dmain.h83 struct backend *a4xx_init(struct fd_device *dev, const struct fd_dev_id *dev_id);
84 struct backend *a6xx_init(struct fd_device *dev, const struct fd_dev_id *dev_id);
/third_party/mesa3d/src/freedreno/ir3/
Dir3_compiler.h42 struct fd_device *dev;
224 struct ir3_compiler *ir3_compiler_create(struct fd_device *dev,
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_screen.h115 struct fd_device *dev;
200 struct pipe_screen *fd_screen_create(struct fd_device *dev,

12