Lines Matching refs:font
4601 struct console_font font; in con_font_get() local
4606 font.data = kmalloc(max_font_size, GFP_KERNEL); in con_font_get()
4607 if (!font.data) in con_font_get()
4610 font.data = NULL; in con_font_get()
4616 rc = vc->vc_sw->con_font_get(vc, &font); in con_font_get()
4624 c = (font.width+7)/8 * 32 * font.charcount; in con_font_get()
4626 if (op->data && font.charcount > op->charcount) in con_font_get()
4628 if (font.width > op->width || font.height > op->height) in con_font_get()
4633 op->height = font.height; in con_font_get()
4634 op->width = font.width; in con_font_get()
4635 op->charcount = font.charcount; in con_font_get()
4637 if (op->data && copy_to_user(op->data, font.data, c)) in con_font_get()
4641 kfree(font.data); in con_font_get()
4647 struct console_font font; in con_font_set() local
4663 font.data = memdup_user(op->data, size); in con_font_set()
4664 if (IS_ERR(font.data)) in con_font_set()
4665 return PTR_ERR(font.data); in con_font_set()
4667 font.charcount = op->charcount; in con_font_set()
4668 font.width = op->width; in con_font_set()
4669 font.height = op->height; in con_font_set()
4677 rc = vc->vc_sw->con_font_set(vc, &font, op->flags); in con_font_set()
4681 kfree(font.data); in con_font_set()
4687 struct console_font font = {.width = op->width, .height = op->height}; in con_font_default() local
4708 rc = vc->vc_sw->con_font_default(vc, &font, s); in con_font_default()
4713 op->width = font.width; in con_font_default()
4714 op->height = font.height; in con_font_default()