| /drivers/firmware/efi/ |
| A D | earlycon.c | 18 static const struct font_desc *font; variable 131 bytes = BITS_TO_BYTES(font->width); in efi_earlycon_write_char() 132 src = font->data + c * font->height * bytes + h * bytes; in efi_earlycon_write_char() 134 for (m = 0; m < font->width; m++) { in efi_earlycon_write_char() 178 x += font->width; in efi_earlycon_write() 186 efi_x += count * font->width; in efi_earlycon_write() 192 efi_y += font->height; in efi_earlycon_write() 200 efi_y += font->height; in efi_earlycon_write() 209 efi_y -= font->height; in efi_earlycon_write() 256 if (!font) in efi_earlycon_setup() [all …]
|
| /drivers/video/ |
| A D | sticore.c | 590 pr_debug(" w %d h %d bpc %d\n", font->width, font->height, in sti_dump_font() 608 for (font = rom->font_start; font; font = font->next_font, i++) { in sti_search_font() 624 if (font) in sti_select_font() 625 return font; 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() 856 sti->font->width = sti->font->raw->width; in sti_read_rom() 857 sti->font->height = sti->font->raw->height; in sti_read_rom() [all …]
|
| /drivers/gpu/drm/ |
| A D | drm_panic.c | 403 rec.y2 = rec.y1 + font->height; in draw_txt_rectangle() 411 rec.x2 = rec.x1 + font->width; in draw_txt_rectangle() 413 rec.x1 += font->width; in draw_txt_rectangle() 450 if (!font) in draw_panic_static_user() 454 drm_panic_logo_rect(&r_logo, font); in draw_panic_static_user() 487 r_txt.y1 -= font->height; in draw_line_with_wrap() 494 r_txt.y1 -= font->height; in draw_line_with_wrap() 500 r_txt.y1 -= font->height; in draw_line_with_wrap() 523 if (!font) in draw_panic_static_kmsg() 526 yoffset = sb->height - font->height - (sb->height % font->height) / 2; in draw_panic_static_kmsg() [all …]
|
| A D | drm_draw_internal.h | 21 static inline const u8 *drm_draw_get_char_bitmap(const struct font_desc *font, in drm_draw_get_char_bitmap() argument 24 return font->data + (c * font->height) * font_pitch; in drm_draw_get_char_bitmap()
|
| /drivers/gpu/drm/clients/ |
| A D | drm_log.c | 42 const struct font_desc *font; member 111 const struct font_desc *font = scanout->font; in drm_log_draw_line() local 112 size_t font_pitch = DIV_ROUND_UP(font->width, 8); in drm_log_draw_line() 125 src = drm_draw_get_char_bitmap(font, s[i], font_pitch); in drm_log_draw_line() 199 scanout->font = get_default_font(width, height, NULL, NULL); in drm_log_setup_modeset() 200 if (!scanout->font) in drm_log_setup_modeset() 214 scanout->scaled_font_h = scanout->font->height * scale; in drm_log_setup_modeset() 215 scanout->scaled_font_w = scanout->font->width * scale; in drm_log_setup_modeset()
|
| /drivers/video/fbdev/core/ |
| A D | fbcon.c | 2308 u8 *data = font->data; in fbcon_get_font() 2313 if (font->height > vpitch) in fbcon_get_font() 2316 if (!font->data) in fbcon_get_font() 2319 if (font->width <= 8) { in fbcon_get_font() 2330 } else if (font->width <= 16) { in fbcon_get_font() 2505 int w = font->width; in fbcon_set_font() 2506 int h = font->height; in fbcon_set_font() 2522 if (font->width > FB_MAX_BLIT_WIDTH || font->height > FB_MAX_BLIT_HEIGHT) in fbcon_set_font() 2570 return fbcon_do_set_font(vc, font->width, font->height, charcount, new_data, 1); in fbcon_set_font() 2585 font->width = f->width; in fbcon_set_def_font() [all …]
|
| A D | svgalib.c | 194 const u8 *font = map->data; in svga_settile() local 208 fb_writeb(font[i], fb + i * 4); in svga_settile() 212 font += map->height; in svga_settile()
|
| /drivers/video/console/ |
| A D | vgacon.c | 1042 static int vgacon_font_set(struct vc_data *c, const struct console_font *font, in vgacon_font_set() argument 1045 unsigned charcount = font->charcount; in vgacon_font_set() 1051 if (font->width != VGA_FONTWIDTH || font->height > 32 || vpitch != 32 || in vgacon_font_set() 1055 rc = vgacon_do_font_op(&vgastate, font->data, 1, charcount == 512); in vgacon_font_set() 1060 rc = vgacon_adjust_height(c, font->height); in vgacon_font_set() 1064 static int vgacon_font_get(struct vc_data *c, struct console_font *font, unsigned int vpitch) in vgacon_font_get() argument 1069 font->width = VGA_FONTWIDTH; in vgacon_font_get() 1070 font->height = c->vc_font.height; in vgacon_font_get() 1071 font->charcount = vga_512_chars ? 512 : 256; in vgacon_font_get() 1072 if (!font->data) in vgacon_font_get() [all …]
|
| A D | sticon.c | 59 #define STI_DEF_FONT sticon_sti->font 257 static int sticon_font_set(struct vc_data *vc, const struct console_font *font, in sticon_font_set() argument 260 return sticon_set_font(vc, font, vpitch); in sticon_font_set() 269 vc_cols = sti_onscreen_x(sti) / sti->font->width; in sticon_init() 270 vc_rows = sti_onscreen_y(sti) / sti->font->height; in sticon_init()
|
| A D | newport_con.c | 573 static int newport_font_set(struct vc_data *vc, const struct console_font *font, in newport_font_set() argument 576 return newport_set_font(vc->vc_num, font, vpitch); in newport_font_set()
|
| /drivers/tty/vt/ |
| A D | vt.c | 4803 struct console_font font; in con_font_get() local 4813 if (!font.data) in con_font_get() 4816 font.data = NULL; in con_font_get() 4830 c = (font.width+7)/8 * vpitch * font.charcount; in con_font_get() 4834 if (font.width > op->width || font.height > op->height) in con_font_get() 4840 op->width = font.width; in con_font_get() 4847 kvfree(font.data); in con_font_get() 4874 if (IS_ERR(font.data)) in con_font_set() 4878 font.width = op->width; in con_font_set() 4891 kfree(font.data); in con_font_set() [all …]
|
| /drivers/media/test-drivers/vimc/ |
| A D | vimc-core.c | 341 const struct font_desc *font = find_font("VGA8x16"); in vimc_probe() local 347 if (!font) { in vimc_probe() 352 tpg_set_font(font->data); in vimc_probe()
|
| /drivers/media/test-drivers/visl/ |
| A D | visl-video.c | 83 const struct font_desc *font; in visl_tpg_init() local 92 font = find_font(font_name); in visl_tpg_init() 93 if (font) { in visl_tpg_init() 100 tpg_set_font(font->data); in visl_tpg_init()
|
| /drivers/video/fbdev/ |
| A D | arkfb.c | 122 const u8 *font = map->data; in arkfb_settile() local 136 fb_writeb(font[i], &fb[i * 4]); in arkfb_settile() 137 fb_writeb(font[i], &fb[i * 4 + (128 * 8)]); in arkfb_settile() 144 font += map->height; in arkfb_settile()
|
| A D | cg6.c | 198 u32 font; member 439 sbus_writel(val, &fbc->font); in cg6_imageblit() 464 sbus_writel(val, &fbc->font); in cg6_imageblit()
|
| A D | ffb.c | 296 u32 font; member 598 upa_writel(val, &fbc->font); in ffb_imageblit() 618 upa_writel(val, &fbc->font); in ffb_imageblit()
|
| A D | s3fb.c | 292 const u8 *font = map->data; in s3fb_settile_fast() local 306 fb_writeb(font[c * map->height + i], fb + c * 4); in s3fb_settile_fast()
|
| A D | Kconfig | 846 also use font widths different from 8. 855 packed pixel and 32 bpp packed pixel. You can also use font widths 865 pixel and 32 bpp packed pixel. You can also use font widths 881 too. You can use only some font widths, as the driver uses generic 933 too. You can use only some font widths, as the driver uses generic
|
| /drivers/media/test-drivers/vivid/ |
| A D | vivid-core.c | 2082 const struct font_desc *font = find_font("VGA8x16"); in vivid_probe() local 2085 if (font == NULL) { in vivid_probe() 2090 tpg_set_font(font->data); in vivid_probe()
|
| /drivers/tty/ |
| A D | Kconfig | 49 This enables support for font mapping and Unicode translation
|