Lines Matching refs:addr
74 unsigned char *addr; // pointer to framebuffer memory member
181 G.addr = mmap(NULL, in fb_open()
184 if (G.addr == MAP_FAILED) in fb_open()
188 G.addr += G.scr_var.yoffset * G.scr_fix.line_length + G.scr_var.xoffset * G.bytes_per_pixel; in fb_open()
227 static void fb_write_pixel(unsigned char *addr, unsigned pixel) in fb_write_pixel() argument
231 *addr = pixel; in fb_write_pixel()
234 *(uint16_t *)addr = pixel; in fb_write_pixel()
237 *(uint32_t *)addr = pixel; in fb_write_pixel()
240 addr[0] = pixel; in fb_write_pixel()
241 addr[1] = pixel >> 8; in fb_write_pixel()
242 addr[2] = pixel >> 16; in fb_write_pixel()
262 ptr1 = G.addr + G.nbar_posy * G.scr_fix.line_length + G.nbar_posx * G.bytes_per_pixel; in fb_drawrectangle()
263 …ptr2 = G.addr + (G.nbar_posy + G.nbar_height - 1) * G.scr_fix.line_length + G.nbar_posx * G.bytes_… in fb_drawrectangle()
273 ptr1 = G.addr + G.nbar_posy * G.scr_fix.line_length + G.nbar_posx * G.bytes_per_pixel; in fb_drawrectangle()
274 …ptr2 = G.addr + G.nbar_posy * G.scr_fix.line_length + (G.nbar_posx + G.nbar_width - 1) * G.bytes_p… in fb_drawrectangle()
303 ptr = G.addr + nypos * G.scr_fix.line_length + nx1pos * G.bytes_per_pixel; in fb_drawfullrectangle()
441 src = G.addr + (G.img_posy + j) * G.scr_fix.line_length + G.img_posx * G.bytes_per_pixel; in fb_drawimage()