Lines Matching refs:font

25 #include <linux/font.h>
159 struct sti_cooked_font *font)
163 .font_start_addr = (void *)STI_PTR(font->raw),
167 .dest_x = x * font->width,
168 .dest_y = y * font->height,
231 int height, int width, int c, struct sti_cooked_font *font)
237 .src_x = src_x * font->width,
238 .src_y = src_y * font->height,
239 .dest_x = src_x * font->width,
240 .dest_y = src_y * font->height,
241 .width = width * font->width,
242 .height = height * font->height,
269 struct sti_cooked_font *font)
273 .src_x = src_x * font->width,
274 .src_y = src_y * font->height,
275 .dest_x = dst_x * font->width,
276 .dest_y = dst_y * font->height,
277 .width = width * font->width,
278 .height = height * font->height,
358 * The default font can be selected in various ways.
360 * an built-in Linux framebuffer font.
362 * the first HP STI ROM built-in font..
375 font_name = str; /* fb font name */
381 /* The optional linux kernel parameter "sti_font" defines which font
386 * framebuffer font names (e.g. VGA8x16, SUN22x18).
395 * font which the user wants. The sticon driver will try to use
396 * a font with this height and width, but if no suitable font is
397 * found, sticon will use the default 8x8 font.
536 pr_info(" using %ux%u framebuffer font %s\n",
583 static void sti_dump_font(struct sti_cooked_font *font)
586 unsigned char *p = (unsigned char *)font->raw;
590 pr_debug(" w %d h %d bpc %d\n", font->width, font->height,
591 font->raw->bytes_per_char);
593 for (n = 0; n < 256 * font->raw->bytes_per_char; n += 16, p += 16) {
605 struct sti_cooked_font *font;
608 for (font = rom->font_start; font; font = font->next_font, i++) {
609 if ((font->raw->width == width) &&
610 (font->raw->height == height))
618 struct sti_cooked_font *font;
621 /* check for framebuffer-font first */
623 font = sti_select_fbfont(rom, font_name);
624 if (font)
625 return font;
632 for (font = rom->font_start, i = font_index - 1;
633 font && (i > 0);
634 font = font->next_font, i--);
636 if (font)
637 return font;
655 pr_debug(" font start %08x\n", rom->font_start);
667 pr_info(" built-in font #%d: size %dx%d, chars %d-%d, bpc %d\n", ++nr,
731 /* store new ptr to byte-mode font and delete old font */
822 pr_warn("No font found for STI at %08lx\n", address);
855 sti->font = sti_select_font(sti->rom);
856 sti->font->width = sti->font->raw->width;
857 sti->font->height = sti->font->raw->height;
858 sti_font_convert_bytemode(sti, sti->font);
859 sti_dump_font(sti->font);