Lines Matching refs:cmd
45 __u32 cmd[6]; in mb86290fb_copyarea() local
47 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_copyarea()
49 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_copyarea()
50 cmd[2] = GDC_TYPE_BLTCOPYP << 24; in mb86290fb_copyarea()
53 cmd[2] |= GDC_CMD_BLTCOPY_TOP_LEFT << 16; in mb86290fb_copyarea()
55 cmd[2] |= GDC_CMD_BLTCOPY_BOTTOM_LEFT << 16; in mb86290fb_copyarea()
57 cmd[2] |= GDC_CMD_BLTCOPY_TOP_RIGHT << 16; in mb86290fb_copyarea()
59 cmd[2] |= GDC_CMD_BLTCOPY_BOTTOM_RIGHT << 16; in mb86290fb_copyarea()
61 cmd[3] = (area->sy << 16) | area->sx; in mb86290fb_copyarea()
62 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea()
63 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
64 mb862xxfb_write_fifo(6, cmd, info); in mb86290fb_copyarea()
71 static void mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit1() argument
81 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_imageblit1()
83 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_imageblit1()
84 cmd[2] = in mb86290fb_imageblit1()
86 cmd[3] = fgcolor; in mb86290fb_imageblit1()
87 cmd[4] = in mb86290fb_imageblit1()
89 cmd[5] = bgcolor; in mb86290fb_imageblit1()
96 cmd[6] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit1()
98 cmd[7] = (dy << 16) | dx; in mb86290fb_imageblit1()
99 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1()
102 memcpy(&cmd[9 + i * step], line, step << 2); in mb86290fb_imageblit1()
107 cmd[9 + i * step + k] = in mb86290fb_imageblit1()
108 cpu_to_be32(cmd[9 + i * step + k]); in mb86290fb_imageblit1()
120 static void mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit8() argument
129 cmd[0] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit8()
131 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit8()
132 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8()
141 cmd[3 + i * step + j] = in mb86290fb_imageblit8()
144 cmd[3 + i * step + j] |= in mb86290fb_imageblit8()
159 static void mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit16() argument
172 cmd[0] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit16()
174 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit16()
175 cmd[2] = (height << 16) | width; in mb86290fb_imageblit16()
178 memcpy(&cmd[3 + i * step], line, step); in mb86290fb_imageblit16()
187 u32 *cmd = NULL; in mb86290fb_imageblit() local
242 cmd = kmalloc_array(cmdlen, 4, GFP_DMA); in mb86290fb_imageblit()
243 if (!cmd) in mb86290fb_imageblit()
245 cmdfn(cmd, step, dx, dy, width, height, fgcolor, bgcolor, image, info); in mb86290fb_imageblit()
246 mb862xxfb_write_fifo(cmdlen, cmd, info); in mb86290fb_imageblit()
247 kfree(cmd); in mb86290fb_imageblit()
255 u32 cmd[7]; in mb86290fb_fillrect() local
282 cmd[1] = (2 << 7) | (GDC_ROP_XOR << 9); in mb86290fb_fillrect()
287 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_fillrect()
292 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_fillrect()
294 cmd[2] = in mb86290fb_fillrect()
296 cmd[3] = fg; in mb86290fb_fillrect()
297 cmd[4] = (GDC_TYPE_DRAWRECTP << 24) | (GDC_CMD_BLT_FILL << 16); in mb86290fb_fillrect()
298 cmd[5] = (rect->dy << 16) | (rect->dx); in mb86290fb_fillrect()
299 cmd[6] = (height << 16) | width; in mb86290fb_fillrect()
301 mb862xxfb_write_fifo(7, cmd, info); in mb86290fb_fillrect()