Lines Matching refs:dc
1061 int av7110_osd_cmd(struct av7110 *av7110, osd_cmd_t *dc) in av7110_osd_cmd() argument
1068 switch (dc->cmd) { in av7110_osd_cmd()
1073 av7110->osdbpp[av7110->osdwin] = (dc->color - 1) & 7; in av7110_osd_cmd()
1076 dc->x1 - dc->x0 + 1, dc->y1 - dc->y0 + 1); in av7110_osd_cmd()
1079 if (!dc->data) { in av7110_osd_cmd()
1080 ret = MoveWindowAbs(av7110, av7110->osdwin, dc->x0, dc->y0); in av7110_osd_cmd()
1096 ret = DrawBlock(av7110, av7110->osdwin, 0, 0, 720, 576, dc->color); in av7110_osd_cmd()
1099 ret = OSDSetColor(av7110, dc->color, dc->x0, dc->y0, dc->x1, dc->y1); in av7110_osd_cmd()
1103 ret = OSDSetPalette(av7110, dc->data, dc->color, dc->x0); in av7110_osd_cmd()
1105 int i, len = dc->x0-dc->color+1; in av7110_osd_cmd()
1106 u8 __user *colors = (u8 __user *)dc->data; in av7110_osd_cmd()
1117 ret = OSDSetColor(av7110, dc->color + i, r, g, b, blend); in av7110_osd_cmd()
1125 dc->x0, dc->y0, 0, 0, dc->color); in av7110_osd_cmd()
1128 dc->y1 = dc->y0; in av7110_osd_cmd()
1131 ret = OSDSetBlock(av7110, dc->x0, dc->y0, dc->x1, dc->y1, dc->color, dc->data); in av7110_osd_cmd()
1134 ret = DrawBlock(av7110, av7110->osdwin, dc->x0, dc->y0, in av7110_osd_cmd()
1135 dc->x1-dc->x0+1, dc->y1, dc->color); in av7110_osd_cmd()
1138 ret = DrawBlock(av7110, av7110->osdwin, dc->x0, dc->y0, in av7110_osd_cmd()
1139 dc->x1 - dc->x0 + 1, dc->y1 - dc->y0 + 1, dc->color); in av7110_osd_cmd()
1143 dc->x0, dc->y0, dc->x1 - dc->x0, dc->y1 - dc->y0, dc->color); in av7110_osd_cmd()
1149 if (strncpy_from_user(textbuf, dc->data, 240) < 0) { in av7110_osd_cmd()
1154 if (dc->x1 > 3) in av7110_osd_cmd()
1155 dc->x1 = 3; in av7110_osd_cmd()
1156 ret = SetFont(av7110, av7110->osdwin, dc->x1, in av7110_osd_cmd()
1157 (u16) (dc->color & 0xffff), (u16) (dc->color >> 16)); in av7110_osd_cmd()
1161 ret = WriteText(av7110, av7110->osdwin, dc->x0, dc->y0, textbuf); in av7110_osd_cmd()
1165 if (dc->x0 < 1 || dc->x0 > 7) in av7110_osd_cmd()
1168 av7110->osdwin = dc->x0; in av7110_osd_cmd()
1173 ret = MoveWindowAbs(av7110, av7110->osdwin, dc->x0, dc->y0); in av7110_osd_cmd()
1178 if (dc->color < OSD_BITMAP1 || dc->color > OSD_CURSOR) { in av7110_osd_cmd()
1182 if (dc->color >= OSD_BITMAP1 && dc->color <= OSD_BITMAP8HR) in av7110_osd_cmd()
1183 av7110->osdbpp[av7110->osdwin] = (1 << (dc->color & 3)) - 1; in av7110_osd_cmd()
1186 ret = CreateOSDWindow(av7110, av7110->osdwin, (osd_raw_window_t)dc->color, in av7110_osd_cmd()
1187 dc->x1 - dc->x0 + 1, dc->y1 - dc->y0 + 1); in av7110_osd_cmd()
1190 if (!dc->data) { in av7110_osd_cmd()
1191 ret = MoveWindowAbs(av7110, av7110->osdwin, dc->x0, dc->y0); in av7110_osd_cmd()
1203 dprintk(1, "av7110_osd_cmd(%d) returns with -ERESTARTSYS\n",dc->cmd); in av7110_osd_cmd()
1205 dprintk(1, "av7110_osd_cmd(%d) returns with %d\n",dc->cmd,ret); in av7110_osd_cmd()