Lines Matching refs:font
140 struct sti_cooked_font *font) in sti_putc() argument
144 .font_start_addr = STI_PTR(font->raw), in sti_putc()
148 .dest_x = x * font->width, in sti_putc()
149 .dest_y = y * font->height, in sti_putc()
200 int height, int width, int c, struct sti_cooked_font *font) in sti_clear() argument
206 .src_x = src_x * font->width, in sti_clear()
207 .src_y = src_y * font->height, in sti_clear()
208 .dest_x = src_x * font->width, in sti_clear()
209 .dest_y = src_y * font->height, in sti_clear()
210 .width = width * font->width, in sti_clear()
211 .height = height * font->height, in sti_clear()
233 struct sti_cooked_font *font) in sti_bmove() argument
237 .src_x = src_x * font->width, in sti_bmove()
238 .src_y = src_y * font->height, in sti_bmove()
239 .dest_x = dst_x * font->width, in sti_bmove()
240 .dest_y = dst_y * font->height, in sti_bmove()
241 .width = width * font->width, in sti_bmove()
242 .height = height * font->height, in sti_bmove()
553 static void sti_dump_font(struct sti_cooked_font *font) in sti_dump_font() argument
556 unsigned char *p = (unsigned char *)font->raw; in sti_dump_font()
560 pr_debug(" w %d h %d bpc %d\n", font->width, font->height, in sti_dump_font()
561 font->raw->bytes_per_char); in sti_dump_font()
563 for (n = 0; n < 256 * font->raw->bytes_per_char; n += 16, p += 16) { in sti_dump_font()
575 struct sti_cooked_font *font; in sti_search_font() local
578 for (font = rom->font_start; font; font = font->next_font, i++) { in sti_search_font()
579 if ((font->raw->width == width) && in sti_search_font()
580 (font->raw->height == height)) in sti_search_font()
588 struct sti_cooked_font *font; in sti_select_font() local
593 font = sti_select_fbfont(rom, font_name); in sti_select_font()
594 if (font) in sti_select_font()
595 return font; in sti_select_font()
602 for (font = rom->font_start, i = font_index - 1; in sti_select_font()
603 font && (i > 0); in sti_select_font()
604 font = font->next_font, i--); in sti_select_font()
606 if (font) in sti_select_font()
607 return font; in sti_select_font()
816 sti->font = sti_select_font(sti->rom); in sti_read_rom()
817 sti->font->width = sti->font->raw->width; in sti_read_rom()
818 sti->font->height = sti->font->raw->height; in sti_read_rom()
819 sti_font_convert_bytemode(sti, sti->font); in sti_read_rom()
820 sti_dump_font(sti->font); in sti_read_rom()