Lines Matching refs:dm
80 #define vm_reg(dm) (((struct tt_hwregs*)(dm->data))->tt_reg) argument
113 dmode_t *dm; in tt_probe_video() local
125 for (i = 0; (dm = &vid_modes[i])->name != NULL; i++) { in tt_probe_video()
126 dm->data = (void *)&tt_hwregs[i]; in tt_probe_video()
127 if (has_mono && (vm_reg(dm) != RES_TTHIGH)) in tt_probe_video()
129 if (!has_mono && (vm_reg(dm) == RES_TTHIGH)) in tt_probe_video()
131 LIST_INSERT_HEAD(modelp, dm, link); in tt_probe_video()
141 dmode_t *dm = v->mode; in tt_display_view() local
144 if (dm->current_view) { in tt_display_view()
148 dm->current_view->flags &= ~VF_DISPLAY; in tt_display_view()
150 dm->current_view = v; in tt_display_view()
156 VIDEO->vd_tt_res = vm_reg(dm); in tt_display_view()
199 dmode_t *dm; in tt_use_colormap() local
207 dm = v->mode; in tt_use_colormap()
221 switch (vm_reg(dm)) { in tt_use_colormap()
373 alloc_colormap(dmode_t *dm) in alloc_colormap() argument
379 switch (vm_reg(dm)) { in alloc_colormap()