Lines Matching defs:dm
84 #define vm_mode(dm) (((struct falcon_hwregs*)(dm->data))->fal_mode)
85 #define vm_regs(dm) (((struct falcon_hwregs*)(dm->data))->fal_regs)
184 dmode_t *dm;
195 for (i = 0; (dm = &vid_modes[i])->name != NULL; i++) {
196 dm->data = (void *)&fal_hwregs[i];
197 if (vm_mode(dm) == RES_FALAUTO) {
198 vm_regs(dm) = falcon_getreg(RES_FALAUTO);
199 falcon_detect(dm);
200 LIST_INSERT_HEAD(modelp, dm, link);
202 vregs = falcon_getreg(vm_mode(dm) | mon_type);
204 vm_regs(dm) = vregs;
205 LIST_INSERT_HEAD(modelp, dm, link);
231 falcon_detect(dmode_t *dm)
234 struct videl *vregs = vm_regs(dm);
270 dm->depth = 1;
272 dm->depth = 16;
274 dm->depth = 8;
276 dm->depth = 4;
278 dm->depth = 2;
280 dm->depth = 1; /* 2 color */
286 dm->size.height = vregs->vd_v_dis_end - vregs->vd_v_dis_beg;
288 dm->size.height >>=1;
290 dm->size.height >>=1;
296 dm->size.width = vregs->vd_vert_wrap * 16 / dm->depth;
306 dmode_t *dm = v->mode;
311 if (dm->current_view) {
315 dm->current_view->flags &= ~VF_DISPLAY;
317 dm->current_view = v;
331 if (dm->depth == 1) {
438 dmode_t *dm;
448 dm = v->mode;
462 if (dm->depth == 16) /* direct color, no colormap;
467 ncreg = 1 << dm->depth;
601 alloc_colormap(dmode_t *dm)
607 if (dm->depth == 16) /* direct color, no colormap;
611 nentries = 1 << dm->depth;