Lines Matching refs:t
94 if (task->t.buf_len < utask->buf_len || in uvesafb_cn_callback()
103 memcpy(&task->t, utask, sizeof(*utask)); in uvesafb_cn_callback()
105 if (task->t.buf_len && task->buf) in uvesafb_cn_callback()
106 memcpy(task->buf, utask + 1, task->t.buf_len); in uvesafb_cn_callback()
149 int len = sizeof(task->t) + task->t.buf_len; in uvesafb_exec()
173 memcpy(m + 1, &task->t, sizeof(task->t)); in uvesafb_exec()
176 memcpy((u8 *)(m + 1) + sizeof(task->t), task->buf, task->t.buf_len); in uvesafb_exec()
216 if (!err && !(task->t.flags & TF_EXIT)) in uvesafb_exec()
371 task->t.regs.eax = 0x4f04; in uvesafb_vbe_state_save()
372 task->t.regs.ecx = 0x000f; in uvesafb_vbe_state_save()
373 task->t.regs.edx = 0x0001; in uvesafb_vbe_state_save()
374 task->t.flags = TF_BUF_RET | TF_BUF_ESBX; in uvesafb_vbe_state_save()
375 task->t.buf_len = par->vbe_state_size; in uvesafb_vbe_state_save()
379 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_state_save()
381 task->t.regs.eax, err); in uvesafb_vbe_state_save()
402 task->t.regs.eax = 0x4f04; in uvesafb_vbe_state_restore()
403 task->t.regs.ecx = 0x000f; in uvesafb_vbe_state_restore()
404 task->t.regs.edx = 0x0002; in uvesafb_vbe_state_restore()
405 task->t.buf_len = par->vbe_state_size; in uvesafb_vbe_state_restore()
406 task->t.flags = TF_BUF_ESBX; in uvesafb_vbe_state_restore()
410 if (err || (task->t.regs.eax & 0xffff) != 0x004f) in uvesafb_vbe_state_restore()
412 task->t.regs.eax, err); in uvesafb_vbe_state_restore()
422 task->t.regs.eax = 0x4f00; in uvesafb_vbe_getinfo()
423 task->t.flags = TF_VBEIB; in uvesafb_vbe_getinfo()
424 task->t.buf_len = sizeof(struct vbe_ib); in uvesafb_vbe_getinfo()
429 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_getinfo()
431 (u32)task->t.regs.eax, err); in uvesafb_vbe_getinfo()
502 task->t.regs.eax = 0x4f01; in uvesafb_vbe_getmodes()
503 task->t.regs.ecx = (u32) *mode; in uvesafb_vbe_getmodes()
504 task->t.flags = TF_BUF_RET | TF_BUF_ESDI; in uvesafb_vbe_getmodes()
505 task->t.buf_len = sizeof(struct vbe_mode_ib); in uvesafb_vbe_getmodes()
509 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_getmodes()
511 *mode, (u32)task->t.regs.eax, err); in uvesafb_vbe_getmodes()
560 task->t.regs.eax = 0x4f0a; in uvesafb_vbe_getpmi()
561 task->t.regs.ebx = 0x0; in uvesafb_vbe_getpmi()
566 if ((task->t.regs.eax & 0xffff) != 0x4f || task->t.regs.es < 0xc000) { in uvesafb_vbe_getpmi()
569 par->pmi_base = (u16 *)phys_to_virt(((u32)task->t.regs.es << 4) in uvesafb_vbe_getpmi()
570 + task->t.regs.edi); in uvesafb_vbe_getpmi()
574 (u16)task->t.regs.es, (u16)task->t.regs.edi); in uvesafb_vbe_getpmi()
623 task->t.regs.eax = 0x4f15; in uvesafb_vbe_getedid()
624 task->t.regs.ebx = 0; in uvesafb_vbe_getedid()
625 task->t.regs.ecx = 0; in uvesafb_vbe_getedid()
626 task->t.buf_len = 0; in uvesafb_vbe_getedid()
627 task->t.flags = 0; in uvesafb_vbe_getedid()
631 if ((task->t.regs.eax & 0xffff) != 0x004f || err) in uvesafb_vbe_getedid()
634 if ((task->t.regs.ebx & 0x3) == 3) { in uvesafb_vbe_getedid()
636 } else if ((task->t.regs.ebx & 0x3) == 2) { in uvesafb_vbe_getedid()
638 } else if ((task->t.regs.ebx & 0x3) == 1) { in uvesafb_vbe_getedid()
645 task->t.regs.eax = 0x4f15; in uvesafb_vbe_getedid()
646 task->t.regs.ebx = 1; in uvesafb_vbe_getedid()
647 task->t.regs.ecx = task->t.regs.edx = 0; in uvesafb_vbe_getedid()
648 task->t.flags = TF_BUF_RET | TF_BUF_ESDI; in uvesafb_vbe_getedid()
649 task->t.buf_len = EDID_LENGTH; in uvesafb_vbe_getedid()
656 if ((task->t.regs.eax & 0xffff) == 0x004f && !err) { in uvesafb_vbe_getedid()
766 task->t.regs.eax = 0x4f04; in uvesafb_vbe_getstatesize()
767 task->t.regs.ecx = 0x000f; in uvesafb_vbe_getstatesize()
768 task->t.regs.edx = 0x0000; in uvesafb_vbe_getstatesize()
769 task->t.flags = 0; in uvesafb_vbe_getstatesize()
773 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_getstatesize()
775 task->t.regs.eax, err); in uvesafb_vbe_getstatesize()
780 par->vbe_state_size = 64 * (task->t.regs.ebx & 0xffff); in uvesafb_vbe_getstatesize()
972 task->t.regs.eax = 0x4f09; in uvesafb_setpalette()
973 task->t.regs.ebx = 0x0; in uvesafb_setpalette()
974 task->t.regs.ecx = count; in uvesafb_setpalette()
975 task->t.regs.edx = start; in uvesafb_setpalette()
976 task->t.flags = TF_BUF_ESDI; in uvesafb_setpalette()
977 task->t.buf_len = sizeof(struct uvesafb_pal_entry) * count; in uvesafb_setpalette()
981 if ((task->t.regs.eax & 0xffff) != 0x004f) in uvesafb_setpalette()
1142 task->t.regs.eax = 0x4f10; in uvesafb_blank()
1145 task->t.regs.ebx = 0x0001; in uvesafb_blank()
1148 task->t.regs.ebx = 0x0101; /* standby */ in uvesafb_blank()
1151 task->t.regs.ebx = 0x0401; /* powerdown */ in uvesafb_blank()
1158 if (err || (task->t.regs.eax & 0xffff) != 0x004f) in uvesafb_blank()
1202 task->t.regs.eax = 0x0003; in uvesafb_release()
1239 task->t.regs.eax = 0x4f02; in uvesafb_set_par()
1240 task->t.regs.ebx = mode->mode_id | 0x4000; /* use LFB */ in uvesafb_set_par()
1244 task->t.regs.ebx |= 0x0800; /* use CRTC data */ in uvesafb_set_par()
1245 task->t.flags = TF_BUF_ESDI; in uvesafb_set_par()
1276 task->t.buf_len = sizeof(struct vbe_crtc_ib); in uvesafb_set_par()
1280 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_set_par()
1287 task->t.regs.eax, err); in uvesafb_set_par()
1295 task->t.regs.eax, err); in uvesafb_set_par()
1306 task->t.regs.eax = 0x4f08; in uvesafb_set_par()
1307 task->t.regs.ebx = 0x0800; in uvesafb_set_par()
1310 if (err || (task->t.regs.eax & 0xffff) != 0x004f || in uvesafb_set_par()
1311 ((task->t.regs.ebx & 0xff00) >> 8) != 8) { in uvesafb_set_par()
1925 task->t.flags = TF_EXIT; in uvesafb_exit()