Lines Matching defs:vc
287 unsigned short *set_translate(enum translation_map m, struct vc_data *vc)
289 inv_translate[vc->vc_num] = m;
450 void con_free_unimap(struct vc_data *vc)
454 p = *vc->uni_pagedict_loc;
457 *vc->uni_pagedict_loc = NULL;
536 static int con_allocate_new(struct vc_data *vc)
538 struct uni_pagedict *new, *old = *vc->uni_pagedict_loc;
545 *vc->uni_pagedict_loc = new;
554 static int con_do_clear_unimap(struct vc_data *vc)
556 struct uni_pagedict *old = *vc->uni_pagedict_loc;
559 return con_allocate_new(vc);
567 int con_clear_unimap(struct vc_data *vc)
570 return con_do_clear_unimap(vc);
573 static struct uni_pagedict *con_unshare_unimap(struct vc_data *vc,
581 ret = con_allocate_new(vc);
585 new = *vc->uni_pagedict_loc;
618 *vc->uni_pagedict_loc = old;
630 int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list)
646 dict = *vc->uni_pagedict_loc;
651 dict = con_unshare_unimap(vc, dict);
670 if (con_unify_unimap(vc, dict))
674 set_inverse_transl(vc, dict, m);
682 * @vc: the console we are updating
691 int con_set_default_unimap(struct vc_data *vc)
699 dict = *vc->uni_pagedict_loc;
704 *vc->uni_pagedict_loc = dflt;
714 err = con_do_clear_unimap(vc);
718 dict = *vc->uni_pagedict_loc;
728 if (con_unify_unimap(vc, dict)) {
729 dflt = *vc->uni_pagedict_loc;
734 set_inverse_transl(vc, dict, m);
770 int con_get_unimap(struct vc_data *vc, ushort ct, ushort __user *uct,
783 dict = *vc->uni_pagedict_loc;