Home
last modified time | relevance | path

Searched refs:dx (Results 1 – 25 of 117) sorted by relevance

12345

/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c56 if (area->sx >= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
58 else if (area->sx >= area->dx && area->sy <= area->dy) in mb86290fb_copyarea()
60 else if (area->sx <= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
66 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea()
75 static void mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit1() argument
102 cmd[7] = (dy << 16) | dx; in mb86290fb_imageblit1()
124 static void mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit8() argument
135 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit8()
163 static void mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit16() argument
178 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit16()
[all …]
/drivers/video/fbdev/aty/
Dmach64_accel.c27 static u32 rotation24bpp(u32 dx, u32 direction) in rotation24bpp() argument
31 rotation = (dx / 4) % 6; in rotation24bpp()
33 rotation = ((dx + 2) / 4) % 6; in rotation24bpp()
200 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local
215 dx *= 3; in atyfb_copyarea()
225 if (sx < dx) { in atyfb_copyarea()
226 dx += width - 1; in atyfb_copyarea()
232 rotation = rotation24bpp(dx, direction); in atyfb_copyarea()
240 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea()
246 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local
[all …]
Dradeon_accel.c63 OUTREG(DST_Y_X, (region->dy << 16) | region->dx); in radeonfb_prim_fillrect()
88 modded.dx >= vxres || modded.dy >= vyres) in radeonfb_fillrect()
91 if(modded.dx + modded.width > vxres) modded.width = vxres - modded.dx; in radeonfb_fillrect()
101 u32 sx, sy, dx, dy, w, h; in radeonfb_prim_copyarea() local
104 dx = area->dx; dy = area->dy; in radeonfb_prim_copyarea()
106 xdir = sx - dx; in radeonfb_prim_copyarea()
109 if ( xdir < 0 ) { sx += w-1; dx += w-1; } in radeonfb_prim_copyarea()
129 OUTREG(DST_Y_X, (dy << 16) | dx); in radeonfb_prim_copyarea()
141 modded.dx = area->dx; in radeonfb_copyarea()
160 modded.dx >= vxres || modded.dy >= vyres) in radeonfb_copyarea()
[all …]
/drivers/video/fbdev/
Datafb.h5 int dx, int height, int width);
9 int dy, int dx, u32 width,
13 int dx, int height, int width);
17 int dy, int dx, u32 width,
21 int dx, int height, int width);
25 int dy, int dx, u32 width,
29 int dx, int height, int width);
33 int dy, int dx, u32 width,
Ddnfb.c160 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
164 x_end = area->dx + area->width - 1; in dnfb_copyarea()
165 x_word_count = (x_end >> 4) - (area->dx >> 4) + 1; in dnfb_copyarea()
166 start_mask = 0xffff0000 >> (area->dx & 0xf); in dnfb_copyarea()
169 (((area->dx & 0xf) - (area->sx & 0xf)) % 16) | (0x4 << 5)); in dnfb_copyarea()
170 if ((area->dx & 0xf) < (area->sx & 0xf)) in dnfb_copyarea()
174 x_end = area->dx - area->width + 1; in dnfb_copyarea()
175 x_word_count = (area->dx >> 4) - (x_end >> 4) + 1; in dnfb_copyarea()
176 start_mask = 0x7ffff >> (area->dx & 0xf); in dnfb_copyarea()
179 ((-((area->sx & 0xf) - (area->dx & 0xf))) % 16) | in dnfb_copyarea()
[all …]
Datafb_iplan2p2.c25 int sy, int sx, int dy, int dx, in atafb_iplan2p2_copyarea() argument
44 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in atafb_iplan2p2_copyarea()
47 if (!((sx ^ dx) & 15)) { in atafb_iplan2p2_copyarea()
52 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
111 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
153 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
158 if ((dx + width) & 15) in atafb_iplan2p2_copyarea()
240 int dy, int dx, u32 width, in atafb_iplan2p2_linefill() argument
248 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p2_linefill()
[all …]
Datafb_iplan2p4.c25 int sy, int sx, int dy, int dx, in atafb_iplan2p4_copyarea() argument
44 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in atafb_iplan2p4_copyarea()
47 if (!((sx ^ dx) & 15)) { in atafb_iplan2p4_copyarea()
52 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
111 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
160 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
165 if ((dx + width) & 15) in atafb_iplan2p4_copyarea()
254 int dy, int dx, u32 width, in atafb_iplan2p4_linefill() argument
262 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p4_linefill()
[all …]
Datafb_mfb.c25 int sy, int sx, int dy, int dx, in atafb_mfb_copyarea() argument
31 if (sx == 0 && dx == 0 && width == next_line) { in atafb_mfb_copyarea()
37 dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3); in atafb_mfb_copyarea()
45 dest = (u8 *)info->screen_base + (dy + height - 1) * next_line + (dx >> 3); in atafb_mfb_copyarea()
78 int dy, int dx, u32 width, in atafb_mfb_linefill() argument
84 dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3); in atafb_mfb_linefill()
Dvga16fb.c829 u32 dx = rect->dx, width = rect->width; in vga_8planes_fillrect() local
837 dx /= 4; in vga_8planes_fillrect()
838 where = info->screen_base + dx + rect->dy * info->fix.line_length; in vga_8planes_fillrect()
889 if (!rect->width || !rect->height || rect->dx > vxres || rect->dy > vyres) in vga16fb_fillrect()
895 x2 = rect->dx + rect->width; in vga16fb_fillrect()
899 width = x2 - rect->dx; in vga16fb_fillrect()
909 dst = info->screen_base + (rect->dx/8) + rect->dy * info->fix.line_length; in vga16fb_fillrect()
963 u32 sx, dx, width; in vga_8planes_copyarea() local
970 dx = area->dx / 4; in vga_8planes_copyarea()
973 if (area->dy < area->sy || (area->dy == area->sy && dx < sx)) { in vga_8planes_copyarea()
[all …]
Dtgafb.c623 u32 fgcolor, bgcolor, dx, dy, width, height, vxres, vyres, pixelmask; local
632 dx = image->dx;
645 if (dx > vxres || dy > vyres)
647 if (dx + width > vxres)
648 width = vxres - dx;
678 pos += dx;
682 pos += dx * 4;
836 u32 color, dx, dy, width, height, vxres, vyres; local
842 dx = image->dx;
851 if (dx > vxres || dy > vyres)
[all …]
Datafb_iplan2p8.c32 int sy, int sx, int dy, int dx, in atafb_iplan2p8_copyarea() argument
51 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in atafb_iplan2p8_copyarea()
54 if (!((sx ^ dx) & 15)) { in atafb_iplan2p8_copyarea()
59 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
84 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
118 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
181 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
186 if ((dx + width) & 15) in atafb_iplan2p8_copyarea()
289 int dy, int dx, u32 width, in atafb_iplan2p8_linefill() argument
297 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p8_linefill()
[all …]
Dhitfb.c60 static inline void hitfb_accel_set_dest(int truecolor, u16 dx, u16 dy, in hitfb_accel_set_dest() argument
63 u32 saddr = WIDTH * dy + dx; in hitfb_accel_set_dest()
75 static inline void hitfb_accel_bitblt(int truecolor, u16 sx, u16 sy, u16 dx, in hitfb_accel_bitblt() argument
85 if ((sy < dy) || ((sy == dy) && (sx <= dx))) { in hitfb_accel_bitblt()
87 daddr = WIDTH * (dy + height) + dx + width; in hitfb_accel_bitblt()
100 daddr = WIDTH * dy + dx; in hitfb_accel_bitblt()
137 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, in hitfb_fillrect()
142 hitfb_accel_set_dest(0, rect->dx, rect->dy, rect->width, in hitfb_fillrect()
153 area->dx, area->dy, area->width, area->height, in hitfb_copyarea()
/drivers/video/fbdev/savage/
Dsavagefb_accel.c34 int sx = region->sx, dx = region->dx; in savagefb_copyarea() local
44 if (dx <= sx) { in savagefb_copyarea()
48 dx += region->width - 1; in savagefb_copyarea()
61 BCI_SEND(BCI_X_Y(dx, dy)); in savagefb_copyarea()
88 BCI_SEND( BCI_X_Y(rect->dx, rect->dy) ); in savagefb_fillrect()
128 BCI_SEND(BCI_CLIP_LR(image->dx, image->dx + image->width - 1)); in savagefb_imageblit()
131 BCI_SEND(BCI_X_Y(image->dx, image->dy)); in savagefb_imageblit()
/drivers/video/fbdev/omap2/dss/
Dhdmi_phy.c50 int dx, dy; in hdmi_phy_parse_lanes() local
52 dx = lanes[i]; in hdmi_phy_parse_lanes()
55 if (dx < 0 || dx >= 8) in hdmi_phy_parse_lanes()
61 if (dx & 1) { in hdmi_phy_parse_lanes()
62 if (dy != dx - 1) in hdmi_phy_parse_lanes()
66 if (dy != dx + 1) in hdmi_phy_parse_lanes()
71 lane = dx / 2; in hdmi_phy_parse_lanes()
/drivers/input/mouse/
Damimouse.c42 int nx, ny, dx, dy; in amimouse_interrupt() local
49 dx = nx - amimouse_lastx; in amimouse_interrupt()
52 if (dx < -127) dx = (256 + nx) - amimouse_lastx; in amimouse_interrupt()
53 if (dx > 127) dx = (nx - 256) - amimouse_lastx; in amimouse_interrupt()
62 input_report_rel(dev, REL_X, dx); in amimouse_interrupt()
Dlogibm.c79 char dx, dy; in logibm_interrupt() local
83 dx = (inb(LOGIBM_DATA_PORT) & 0xf); in logibm_interrupt()
85 dx |= (inb(LOGIBM_DATA_PORT) & 0xf) << 4; in logibm_interrupt()
93 input_report_rel(logibm_dev, REL_X, dx); in logibm_interrupt()
/drivers/video/fbdev/sis/
Dsis_accel.c335 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
339 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect()
354 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
361 SiS310SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
388 area->dx >= vxres || area->dy >= vyres) in fbcon_sis_copyarea()
393 if((area->dx + width) > vxres) width = vxres - area->dx; in fbcon_sis_copyarea()
401 if(area->sx < area->dx) xdir = 0; in fbcon_sis_copyarea()
409 area->dx, area->dy, width, height); in fbcon_sis_copyarea()
417 area->dx, area->dy, width, height); in fbcon_sis_copyarea()
/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c208 int sx, int dy, int dx, int height, int width) in matrox_accel_bmove() argument
217 if ((dy < sy) || ((dy == sy) && (dx <= sx))) { in matrox_accel_bmove()
241 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); in matrox_accel_bmove()
249 int sy, int sx, int dy, int dx, int height, in matrox_accel_bmove_lin() argument
259 if ((dy < sy) || ((dy == sy) && (dx <= sx))) { in matrox_accel_bmove_lin()
283 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); in matrox_accel_bmove_lin()
294 if ((area->sx | area->dx | area->width) & 1) in matroxfb_cfb4_copyarea()
297 …nfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->height, … in matroxfb_cfb4_copyarea()
303 …matrox_accel_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, a… in matroxfb_copyarea()
331 …matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, … in matroxfb_fillrect()
[all …]
/drivers/video/fbdev/i810/
Di810_accel.c301 u32 dx, dy, width, height, dest, rop = 0, color = 0; in i810fb_fillrect() local
316 dx = rect->dx * par->depth; in i810fb_fillrect()
321 dest = info->fix.smem_start + (dy * info->fix.line_length) + dx; in i810fb_fillrect()
329 u32 sx, sy, dx, dy, pitch, width, height, src, dest, xdir; in i810fb_copyarea() local
337 dx = region->dx * par->depth; in i810fb_copyarea()
344 if (dx <= sx) { in i810fb_copyarea()
350 dx += width - 1; in i810fb_copyarea()
361 dest = info->fix.smem_start + (dy * info->fix.line_length) + dx; in i810fb_copyarea()
391 (image->dx * par->depth); in i810fb_imageblit()
/drivers/video/console/
Dfbcon_cw.c49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument
57 area.dx = vxres - ((dy + height) * vc->vc_font.height); in cw_bmove()
58 area.dy = dx * vc->vc_font.width; in cw_bmove()
74 region.dx = vxres - ((sy + height) * vc->vc_font.height); in cw_clear()
135 image.dx = vxres - ((yy + 1) * vc->vc_font.height); in cw_putcs()
188 region.dx = 0; in cw_clear_margins()
196 region.dx = info->var.xoffset; in cw_clear_margins()
213 int err = 1, dx, dy; in cw_cursor() local
269 dx = vxres - ((y * vc->vc_font.height) + vc->vc_font.height); in cw_cursor()
272 if (ops->cursor_state.image.dx != dx || in cw_cursor()
[all …]
Dfbcon_ccw.c64 int sx, int dy, int dx, int height, int width) in ccw_bmove() argument
72 area.dx = dy * vc->vc_font.height; in ccw_bmove()
73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove()
89 region.dx = sy * vc->vc_font.height; in ccw_clear()
150 image.dx = yy * vc->vc_font.height; in ccw_putcs()
205 region.dx = 0; in ccw_clear_margins()
213 region.dx = info->var.xoffset + bs; in ccw_clear_margins()
230 int err = 1, dx, dy; in ccw_cursor() local
286 dx = y * vc->vc_font.height; in ccw_cursor()
289 if (ops->cursor_state.image.dx != dx || in ccw_cursor()
[all …]
Dfbcon_ud.c49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument
59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove()
77 region.dx = vxres - ((sx + width) * vc->vc_font.width); in ud_clear()
174 image.dx = vxres - ((xx + count) * vc->vc_font.width); in ud_putcs()
208 image.dx += image.width; in ud_putcs()
236 region.dx = info->var.xoffset; in ud_clear_margins()
244 region.dx = info->var.xoffset; in ud_clear_margins()
260 int err = 1, dx, dy; in ud_cursor() local
318 dx = vxres - ((vc->vc_x * vc->vc_font.width) + vc->vc_font.width); in ud_cursor()
320 if (ops->cursor_state.image.dx != dx || in ud_cursor()
[all …]
Dbitblit.c47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument
53 area.dx = dx * vc->vc_font.width; in bit_bmove()
68 region.dx = sx * vc->vc_font.width; in bit_clear()
159 image.dx = xx * vc->vc_font.width; in bit_putcs()
192 image.dx += cnt * vc->vc_font.width; in bit_putcs()
220 region.dx = info->var.xoffset + rs; in bit_clear_margins()
228 region.dx = info->var.xoffset; in bit_clear_margins()
289 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->vc_x)) || in bit_cursor()
292 ops->cursor_state.image.dx = vc->vc_font.width * vc->vc_x; in bit_cursor()
371 cursor.image.dx = ops->cursor_state.image.dx; in bit_cursor()
/drivers/video/fbdev/core/
Dsvgalib.c220 int dx, dy; in svga_tilecopy() local
228 ((area->sy == area->dy) && (area->sx > area->dx))) { in svga_tilecopy()
230 dst = fb + area->dx * colstride + area->dy * rowstride; in svga_tilecopy()
234 dst = fb + (area->dx + area->width - 1) * colstride in svga_tilecopy()
244 for (dx = 0; dx < area->width; dx++) { in svga_tilecopy()
258 int dx, dy; in svga_tilefill() local
267 for (dx = 0; dx < rect->width; dx++) { in svga_tilefill()
279 int dx, dy, i; in svga_tileblit() local
289 for (dx = 0; dx < blit->width; dx ++) { in svga_tileblit()
/drivers/isdn/sc/
Dmessage.h38 #define IS_CM_MESSAGE(mesg, tx, cx, dx) \ argument
41 && (mesg.code == cmRsp##dx))
46 #define IS_CE_MESSAGE(mesg, tx, cx, dx) \ argument
49 && (mesg.code == ceRsp##tx##dx))

12345