Lines Matching refs:cooked_font
166 struct sti_cooked_font *cooked_font; in sticon_set_font() local
189 cooked_font = kzalloc(sizeof(*cooked_font), GFP_KERNEL); in sticon_set_font()
190 if (!cooked_font) { in sticon_set_font()
194 cooked_font->raw = new_font; in sticon_set_font()
195 cooked_font->raw_ptr = new_font; in sticon_set_font()
196 cooked_font->width = w; in sticon_set_font()
197 cooked_font->height = h; in sticon_set_font()
198 FNTREFCOUNT(cooked_font) = 0; /* usage counter */ in sticon_set_font()
207 FNTCRC(cooked_font) = crc32(0, new_font, size + sizeof(*new_font)); in sticon_set_font()
208 sti_font_convert_bytemode(sti, cooked_font); in sticon_set_font()
209 new_font = cooked_font->raw_ptr; in sticon_set_font()
214 && (FNTCRC(font_data[i]) == FNTCRC(cooked_font))) { in sticon_set_font()
216 kfree(cooked_font); in sticon_set_font()
220 cooked_font = font_data[i]; in sticon_set_font()
221 new_font = cooked_font->raw_ptr; in sticon_set_font()
235 FNTREFCOUNT(cooked_font)++; in sticon_set_font()
236 font_data[unit] = cooked_font; in sticon_set_font()
238 vc_cols = sti_onscreen_x(sti) / cooked_font->width; in sticon_set_font()
239 vc_rows = sti_onscreen_y(sti) / cooked_font->height; in sticon_set_font()