Lines Matching +full:dma +full:- +full:info
1 /*-
60 struct drm_sysctl_info *info; in drm_sysctl_init() local
65 info = malloc(sizeof *info, DRM_MEM_DRIVER, M_WAITOK | M_ZERO); in drm_sysctl_init()
66 dev->sysctl = info; in drm_sysctl_init()
69 drioid = SYSCTL_ADD_NODE(&info->ctx, SYSCTL_CHILDREN(&sysctl___hw), OID_AUTO, in drm_sysctl_init()
72 free(dev->sysctl, DRM_MEM_DRIVER); in drm_sysctl_init()
73 dev->sysctl = NULL; in drm_sysctl_init()
74 return (-ENOMEM); in drm_sysctl_init()
80 if (i <= oid->oid_arg2) in drm_sysctl_init()
81 i = oid->oid_arg2 + 1; in drm_sysctl_init()
85 return (-ENOSPC); in drm_sysctl_init()
88 dev->sysctl_node_idx = i; in drm_sysctl_init()
90 info->name[0] = '0' + i; in drm_sysctl_init()
91 info->name[1] = 0; in drm_sysctl_init()
92 top = SYSCTL_ADD_NODE(&info->ctx, SYSCTL_CHILDREN(drioid), in drm_sysctl_init()
93 OID_AUTO, info->name, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, NULL); in drm_sysctl_init()
96 return (-ENOMEM); in drm_sysctl_init()
100 oid = SYSCTL_ADD_OID(&info->ctx, SYSCTL_CHILDREN(top), in drm_sysctl_init()
106 return (-ENOMEM); in drm_sysctl_init()
109 SYSCTL_ADD_INT(&info->ctx, SYSCTL_CHILDREN(drioid), OID_AUTO, "debug", in drm_sysctl_init()
112 SYSCTL_ADD_INT(&info->ctx, SYSCTL_CHILDREN(drioid), OID_AUTO, "notyet", in drm_sysctl_init()
116 if (dev->driver->sysctl_init != NULL) in drm_sysctl_init()
117 dev->driver->sysctl_init(dev, &info->ctx, top); in drm_sysctl_init()
119 SYSCTL_ADD_INT(&info->ctx, SYSCTL_CHILDREN(drioid), OID_AUTO, in drm_sysctl_init()
123 SYSCTL_ADD_INT(&info->ctx, SYSCTL_CHILDREN(drioid), OID_AUTO, in drm_sysctl_init()
135 if (dev->sysctl == NULL) in drm_sysctl_cleanup()
138 error = sysctl_ctx_free(&dev->sysctl->ctx); in drm_sysctl_cleanup()
139 free(dev->sysctl, DRM_MEM_DRIVER); in drm_sysctl_cleanup()
140 dev->sysctl = NULL; in drm_sysctl_cleanup()
141 if (dev->driver->sysctl_cleanup != NULL) in drm_sysctl_cleanup()
142 dev->driver->sysctl_cleanup(dev); in drm_sysctl_cleanup()
144 return (-error); in drm_sysctl_cleanup()
165 minor = dev->primary;
166 DRM_SYSCTL_PRINT("%s 0x%jx", dev->driver->name,
167 (uintmax_t)dev2udev(minor->device));
170 master = minor->master;
171 if (master != NULL && master->unique) {
172 snprintf(buf, sizeof(buf), " %s", master->unique);
211 list_for_each_entry(entry, &dev->maplist, head) {
212 if (entry->map != NULL)
224 list_for_each_entry(entry, &dev->maplist, head) {
225 if (entry->map != NULL)
226 tempmaps[i++] = *entry->map;
237 switch(map->type) {
248 type = types[map->type];
252 if (map->mtrr < 0)
259 i, (unsigned long long)map->offset, map->size, type,
260 map->flags, (unsigned long)map->handle, yesno);
272 struct drm_device_dma *dma = dev->dma; variable
283 if (dma == NULL) {
287 DRM_SPINLOCK(&dev->dma_lock);
288 tempdma = *dma;
289 templists = malloc(sizeof(int) * dma->buf_count, DRM_MEM_DRIVER,
291 for (i = 0; i < dma->buf_count; i++)
292 templists[i] = dma->buflist[i]->list;
293 dma = &tempdma;
294 DRM_SPINUNLOCK(&dev->dma_lock);
299 if (dma->bufs[i].buf_count)
302 dma->bufs[i].buf_size,
303 dma->bufs[i].buf_count,
304 atomic_read(&dma->bufs[i]
306 dma->bufs[i].seg_count,
307 dma->bufs[i].seg_count
308 *(1 << dma->bufs[i].page_order),
309 (dma->bufs[i].seg_count
310 * (1 << dma->bufs[i].page_order))
314 for (i = 0; i < dma->buf_count; i++) {
337 list_for_each_entry(priv, &dev->filelist, lhead)
347 list_for_each_entry(priv, &dev->filelist, lhead)
356 DRM_SYSCTL_PRINT("%c %-12s %5d %5d %10u %10lu\n",
357 priv->authenticated ? 'y' : 'n',
358 devtoname(priv->minor->device),
359 priv->pid,
360 priv->uid,
361 priv->magic,
362 priv->ioctl_count);
380 if (dev->_vblank_count == NULL)
382 for (i = 0 ; i < dev->num_crtcs ; i++) {
384 i, dev->vblank_refcount[i],
385 dev->_vblank_count[i],
386 dev->last_vblank[i],
387 dev->vblank_enabled[i],
388 dev->vblank_inmodeset[i]);
393 SYSCTL_OUT(req, "", -1);