Lines Matching refs:cmd

43 	__u32 cmd[6];  in mb86290fb_copyarea()  local
45 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_copyarea()
47 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_copyarea()
48 cmd[2] = GDC_TYPE_BLTCOPYP << 24; in mb86290fb_copyarea()
51 cmd[2] |= GDC_CMD_BLTCOPY_TOP_LEFT << 16; in mb86290fb_copyarea()
53 cmd[2] |= GDC_CMD_BLTCOPY_BOTTOM_LEFT << 16; in mb86290fb_copyarea()
55 cmd[2] |= GDC_CMD_BLTCOPY_TOP_RIGHT << 16; in mb86290fb_copyarea()
57 cmd[2] |= GDC_CMD_BLTCOPY_BOTTOM_RIGHT << 16; in mb86290fb_copyarea()
59 cmd[3] = (area->sy << 16) | area->sx; in mb86290fb_copyarea()
60 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea()
61 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
62 mb862xxfb_write_fifo(6, cmd, info); in mb86290fb_copyarea()
69 static void mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit1() argument
79 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_imageblit1()
81 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_imageblit1()
82 cmd[2] = in mb86290fb_imageblit1()
84 cmd[3] = fgcolor; in mb86290fb_imageblit1()
85 cmd[4] = in mb86290fb_imageblit1()
87 cmd[5] = bgcolor; in mb86290fb_imageblit1()
94 cmd[6] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit1()
96 cmd[7] = (dy << 16) | dx; in mb86290fb_imageblit1()
97 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1()
100 memcpy(&cmd[9 + i * step], line, step << 2); in mb86290fb_imageblit1()
105 cmd[9 + i * step + k] = in mb86290fb_imageblit1()
106 cpu_to_be32(cmd[9 + i * step + k]); in mb86290fb_imageblit1()
118 static void mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit8() argument
127 cmd[0] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit8()
129 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit8()
130 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8()
139 cmd[3 + i * step + j] = in mb86290fb_imageblit8()
142 cmd[3 + i * step + j] |= in mb86290fb_imageblit8()
157 static void mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit16() argument
170 cmd[0] = (GDC_TYPE_DRAWBITMAPP << 24) | in mb86290fb_imageblit16()
172 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit16()
173 cmd[2] = (height << 16) | width; in mb86290fb_imageblit16()
176 memcpy(&cmd[3 + i * step], line, step); in mb86290fb_imageblit16()
185 u32 *cmd = NULL; in mb86290fb_imageblit() local
240 cmd = kmalloc_array(cmdlen, 4, GFP_DMA); in mb86290fb_imageblit()
241 if (!cmd) in mb86290fb_imageblit()
243 cmdfn(cmd, step, dx, dy, width, height, fgcolor, bgcolor, image, info); in mb86290fb_imageblit()
244 mb862xxfb_write_fifo(cmdlen, cmd, info); in mb86290fb_imageblit()
245 kfree(cmd); in mb86290fb_imageblit()
253 u32 cmd[7]; in mb86290fb_fillrect() local
280 cmd[1] = (2 << 7) | (GDC_ROP_XOR << 9); in mb86290fb_fillrect()
285 cmd[1] = (2 << 7) | (GDC_ROP_COPY << 9); in mb86290fb_fillrect()
290 cmd[0] = (GDC_TYPE_SETREGISTER << 24) | (1 << 16) | GDC_REG_MODE_BITMAP; in mb86290fb_fillrect()
292 cmd[2] = in mb86290fb_fillrect()
294 cmd[3] = fg; in mb86290fb_fillrect()
295 cmd[4] = (GDC_TYPE_DRAWRECTP << 24) | (GDC_CMD_BLT_FILL << 16); in mb86290fb_fillrect()
296 cmd[5] = (rect->dy << 16) | (rect->dx); in mb86290fb_fillrect()
297 cmd[6] = (height << 16) | width; in mb86290fb_fillrect()
299 mb862xxfb_write_fifo(7, cmd, info); in mb86290fb_fillrect()