Lines Matching refs:cooked_font
180 struct sti_cooked_font *cooked_font; in sticon_set_font() local
203 cooked_font = kzalloc(sizeof(*cooked_font), GFP_KERNEL); in sticon_set_font()
204 if (!cooked_font) { in sticon_set_font()
208 cooked_font->raw = new_font; in sticon_set_font()
209 cooked_font->raw_ptr = new_font; in sticon_set_font()
210 cooked_font->width = w; in sticon_set_font()
211 cooked_font->height = h; in sticon_set_font()
212 FNTREFCOUNT(cooked_font) = 0; /* usage counter */ in sticon_set_font()
221 FNTCRC(cooked_font) = crc32(0, new_font, size + sizeof(*new_font)); in sticon_set_font()
222 sti_font_convert_bytemode(sti, cooked_font); in sticon_set_font()
223 new_font = cooked_font->raw_ptr; in sticon_set_font()
228 && (FNTCRC(font_data[i]) == FNTCRC(cooked_font))) { in sticon_set_font()
230 kfree(cooked_font); in sticon_set_font()
234 cooked_font = font_data[i]; in sticon_set_font()
235 new_font = cooked_font->raw_ptr; in sticon_set_font()
249 FNTREFCOUNT(cooked_font)++; in sticon_set_font()
250 font_data[unit] = cooked_font; in sticon_set_font()
252 vc_cols = sti_onscreen_x(sti) / cooked_font->width; in sticon_set_font()
253 vc_rows = sti_onscreen_y(sti) / cooked_font->height; in sticon_set_font()