Lines Matching refs:cmd
49 __u32 cmd[6]; in mb86290fb_copyarea() local
51 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_copyarea()
53 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_copyarea()
54 cmd[2] = GDC_TYPE_BLTCOPYP << 24; in mb86290fb_copyarea()
57 cmd[2] |= GDC_CMD_BLTCOPY_TOP_LEFT << 16; in mb86290fb_copyarea()
59 cmd[2] |= GDC_CMD_BLTCOPY_BOTTOM_LEFT << 16; in mb86290fb_copyarea()
61 cmd[2] |= GDC_CMD_BLTCOPY_TOP_RIGHT << 16; in mb86290fb_copyarea()
63 cmd[2] |= GDC_CMD_BLTCOPY_BOTTOM_RIGHT << 16; in mb86290fb_copyarea()
65 cmd[3] = (area->sy << 16) | area->sx; in mb86290fb_copyarea()
66 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea()
67 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
68 mb862xxfb_write_fifo(6, cmd, info); in mb86290fb_copyarea()
75 static void mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit1() argument
85 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_imageblit1()
87 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_imageblit1()
88 cmd[2] = in mb86290fb_imageblit1()
90 cmd[3] = fgcolor; in mb86290fb_imageblit1()
91 cmd[4] = in mb86290fb_imageblit1()
93 cmd[5] = bgcolor; in mb86290fb_imageblit1()
100 cmd[6] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit1()
102 cmd[7] = (dy << 16) | dx; in mb86290fb_imageblit1()
103 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1()
106 memcpy(&cmd[9 + i * step], line, step << 2); in mb86290fb_imageblit1()
111 cmd[9 + i * step + k] = in mb86290fb_imageblit1()
112 cpu_to_be32(cmd[9 + i * step + k]); in mb86290fb_imageblit1()
124 static void mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit8() argument
133 cmd[0] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit8()
135 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit8()
136 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8()
145 cmd[3 + i * step + j] = in mb86290fb_imageblit8()
148 cmd[3 + i * step + j] |= in mb86290fb_imageblit8()
163 static void mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit16() argument
176 cmd[0] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit16()
178 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit16()
179 cmd[2] = (height << 16) | width; in mb86290fb_imageblit16()
182 memcpy(&cmd[3 + i * step], line, step); in mb86290fb_imageblit16()
192 u32 *cmd = NULL; in mb86290fb_imageblit() local
248 cmd = kmalloc(cmdlen * 4, GFP_DMA); in mb86290fb_imageblit()
249 if (!cmd) in mb86290fb_imageblit()
251 cmdfn(cmd, step, dx, dy, width, height, fgcolor, bgcolor, image, info); in mb86290fb_imageblit()
252 mb862xxfb_write_fifo(cmdlen, cmd, info); in mb86290fb_imageblit()
253 kfree(cmd); in mb86290fb_imageblit()
261 u32 cmd[7]; in mb86290fb_fillrect() local
288 cmd[1] = (2 << 7) | (GDC_ROP_XOR << 9); in mb86290fb_fillrect()
293 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_fillrect()
298 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_fillrect()
300 cmd[2] = in mb86290fb_fillrect()
302 cmd[3] = fg; in mb86290fb_fillrect()
303 cmd[4] = (GDC_TYPE_DRAWRECTP << 24) | (GDC_CMD_BLT_FILL << 16); in mb86290fb_fillrect()
304 cmd[5] = (rect->dy << 16) | (rect->dx); in mb86290fb_fillrect()
305 cmd[6] = (height << 16) | width; in mb86290fb_fillrect()
307 mb862xxfb_write_fifo(7, cmd, info); in mb86290fb_fillrect()