Lines Matching refs:si

177 splash_render(struct splash_info *si, int flg)  in splash_render()  argument
198 if ((width > si->si_width) || (height > si->si_height)) { in splash_render()
201 width, height, si->si_width, si->si_height); in splash_render()
208 xoff = (si->si_width - width) / 2; in splash_render()
209 yoff = (si->si_height - height) / 2; in splash_render()
213 switch (si->si_depth) { in splash_render()
216 splash_render8(si, data, xoff, yoff, width, height, flg); in splash_render()
221 splash_render16(si, data, xoff, yoff, width, height, flg); in splash_render()
226 splash_render32(si, data, xoff, yoff, width, height, flg); in splash_render()
231 si->si_depth); in splash_render()
244 splash_render8(struct splash_info *si, const char *data, int xoff, int yoff, in splash_render8() argument
253 fb = si->si_bits; in splash_render8()
261 fb += xoff + yoff * si->si_stride; in splash_render8()
269 p = si->si_bits; in splash_render8()
271 while (i < si->si_height*si->si_stride) { in splash_render8()
282 fb += si->si_stride; in splash_render8()
286 if (si->si_hwbits) { in splash_render8()
288 memcpy(si->si_hwbits, si->si_bits, in splash_render8()
289 si->si_height*si->si_width); in splash_render8()
293 rp = si->si_bits + xoff + (yoff * si->si_width); in splash_render8()
294 hrp = si->si_hwbits + xoff + (yoff * si->si_width); in splash_render8()
298 rp += si->si_stride; in splash_render8()
299 hrp += si->si_stride; in splash_render8()
318 splash_render16(struct splash_info *si, const char *data, int xoff, int yoff, in splash_render16() argument
327 fb = si->si_bits; in splash_render16()
335 fb += xoff * 2 + yoff * si->si_stride; in splash_render16()
343 p = si->si_bits; in splash_render16()
345 while (i < si->si_height*si->si_stride) { in splash_render16()
353 fb += si->si_stride; in splash_render16()
357 if (si->si_hwbits) { in splash_render16()
359 memcpy(si->si_hwbits, si->si_bits, in splash_render16()
360 si->si_height*si->si_stride); in splash_render16()
364 rp = si->si_bits + (xoff * 2) + (yoff * si->si_stride); in splash_render16()
365 hrp = si->si_hwbits + (xoff * 2) + in splash_render16()
366 (yoff * si->si_stride); in splash_render16()
370 rp += si->si_stride; in splash_render16()
371 hrp += si->si_stride; in splash_render16()
383 splash_render32(struct splash_info *si, const char *data, int xoff, int yoff, in splash_render32() argument
392 fb = si->si_bits; in splash_render32()
400 fb += xoff * 4 + yoff * si->si_stride; in splash_render32()
408 p = si->si_bits; in splash_render32()
410 while (i < si->si_height*si->si_stride) { in splash_render32()
423 fb += si->si_stride; in splash_render32()
427 if (si->si_hwbits) { in splash_render32()
429 memcpy(si->si_hwbits, si->si_bits, in splash_render32()
430 si->si_height*si->si_stride); in splash_render32()
434 rp = si->si_bits + (xoff * 4) + (yoff * si->si_stride); in splash_render32()
435 hrp = si->si_hwbits + (xoff * 4) + in splash_render32()
436 (yoff * si->si_stride); in splash_render32()
440 rp += si->si_stride; in splash_render32()
441 hrp += si->si_stride; in splash_render32()