Lines Matching refs:font
3976 struct console_font font; in con_font_get() local
3984 font.data = kmalloc(max_font_size, GFP_KERNEL); in con_font_get()
3985 if (!font.data) in con_font_get()
3988 font.data = NULL; in con_font_get()
3992 rc = vc->vc_sw->con_font_get(vc, &font); in con_font_get()
4000 c = (font.width+7)/8 * 32 * font.charcount; in con_font_get()
4002 if (op->data && font.charcount > op->charcount) in con_font_get()
4005 if (font.width > op->width || font.height > op->height) in con_font_get()
4008 if (font.width != 8) in con_font_get()
4010 else if ((op->height && font.height > op->height) || in con_font_get()
4011 font.height > 32) in con_font_get()
4017 op->height = font.height; in con_font_get()
4018 op->width = font.width; in con_font_get()
4019 op->charcount = font.charcount; in con_font_get()
4021 if (op->data && copy_to_user(op->data, font.data, c)) in con_font_get()
4025 kfree(font.data); in con_font_get()
4031 struct console_font font; in con_font_set() local
4066 font.charcount = op->charcount; in con_font_set()
4067 font.height = op->height; in con_font_set()
4068 font.width = op->width; in con_font_set()
4069 font.data = memdup_user(op->data, size); in con_font_set()
4070 if (IS_ERR(font.data)) in con_font_set()
4071 return PTR_ERR(font.data); in con_font_set()
4074 rc = vc->vc_sw->con_font_set(vc, &font, op->flags); in con_font_set()
4078 kfree(font.data); in con_font_set()
4084 struct console_font font = {.width = op->width, .height = op->height}; in con_font_default() local
4101 rc = vc->vc_sw->con_font_default(vc, &font, s); in con_font_default()
4106 op->width = font.width; in con_font_default()
4107 op->height = font.height; in con_font_default()