Lines Matching refs:font
159 struct sti_cooked_font *font) in sti_putc() argument
163 .font_start_addr = (void *)STI_PTR(font->raw), in sti_putc()
167 .dest_x = x * font->width, in sti_putc()
168 .dest_y = y * font->height, in sti_putc()
231 int height, int width, int c, struct sti_cooked_font *font) in sti_clear() argument
237 .src_x = src_x * font->width, in sti_clear()
238 .src_y = src_y * font->height, in sti_clear()
239 .dest_x = src_x * font->width, in sti_clear()
240 .dest_y = src_y * font->height, in sti_clear()
241 .width = width * font->width, in sti_clear()
242 .height = height * font->height, in sti_clear()
269 struct sti_cooked_font *font) in sti_bmove() argument
273 .src_x = src_x * font->width, in sti_bmove()
274 .src_y = src_y * font->height, in sti_bmove()
275 .dest_x = dst_x * font->width, in sti_bmove()
276 .dest_y = dst_y * font->height, in sti_bmove()
277 .width = width * font->width, in sti_bmove()
278 .height = height * font->height, in sti_bmove()
583 static void sti_dump_font(struct sti_cooked_font *font) in sti_dump_font() argument
586 unsigned char *p = (unsigned char *)font->raw; in sti_dump_font()
590 pr_debug(" w %d h %d bpc %d\n", font->width, font->height, in sti_dump_font()
591 font->raw->bytes_per_char); in sti_dump_font()
593 for (n = 0; n < 256 * font->raw->bytes_per_char; n += 16, p += 16) { in sti_dump_font()
605 struct sti_cooked_font *font; in sti_search_font() local
608 for (font = rom->font_start; font; font = font->next_font, i++) { in sti_search_font()
609 if ((font->raw->width == width) && in sti_search_font()
610 (font->raw->height == height)) in sti_search_font()
618 struct sti_cooked_font *font; in sti_select_font() local
623 font = sti_select_fbfont(rom, font_name); in sti_select_font()
624 if (font) in sti_select_font()
625 return font; in sti_select_font()
632 for (font = rom->font_start, i = font_index - 1; in sti_select_font()
633 font && (i > 0); in sti_select_font()
634 font = font->next_font, i--); in sti_select_font()
636 if (font) in sti_select_font()
637 return font; in sti_select_font()
855 sti->font = sti_select_font(sti->rom); in sti_read_rom()
856 sti->font->width = sti->font->raw->width; in sti_read_rom()
857 sti->font->height = sti->font->raw->height; in sti_read_rom()
858 sti_font_convert_bytemode(sti, sti->font); in sti_read_rom()
859 sti_dump_font(sti->font); in sti_read_rom()