Home
last modified time | relevance | path

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

123456

/linux/drivers/video/fbdev/mb862xx/
H A Dmb862xxfb_accel.c50 if (area->sx >= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
52 else if (area->sx >= area->dx && area->sy <= area->dy) in mb86290fb_copyarea()
54 else if (area->sx <= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
60 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea()
69 static void mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit1() argument
96 cmd[7] = (dy << 16) | dx; in mb86290fb_imageblit1()
118 static void mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit8() argument
129 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit8()
157 static void mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit16() argument
172 cmd[1] = (dy << 16) | dx; in mb86290fb_imageblit16()
[all …]
/linux/drivers/video/fbdev/aty/
H A Dmach64_accel.c28 static u32 rotation24bpp(u32 dx, u32 direction) in rotation24bpp() argument
32 rotation = (dx / 4) % 6; in rotation24bpp()
34 rotation = ((dx + 2) / 4) % 6; in rotation24bpp()
203 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local
218 dx *= 3; in atyfb_copyarea()
228 if (sx < dx) { in atyfb_copyarea()
229 dx += width - 1; in atyfb_copyarea()
235 rotation = rotation24bpp(dx, direction); in atyfb_copyarea()
244 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea()
250 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local
[all …]
H A Dradeon_accel.c64 OUTREG(DST_Y_X, (region->dy << 16) | region->dx); in radeonfb_prim_fillrect()
89 modded.dx >= vxres || modded.dy >= vyres) in radeonfb_fillrect()
92 if(modded.dx + modded.width > vxres) modded.width = vxres - modded.dx; in radeonfb_fillrect()
102 u32 sx, sy, dx, dy, w, h; in radeonfb_prim_copyarea() local
105 dx = area->dx; dy = area->dy; in radeonfb_prim_copyarea()
107 xdir = sx - dx; in radeonfb_prim_copyarea()
110 if ( xdir < 0 ) { sx += w-1; dx += w-1; } in radeonfb_prim_copyarea()
130 OUTREG(DST_Y_X, (dy << 16) | dx); in radeonfb_prim_copyarea()
142 modded.dx = area->dx; in radeonfb_copyarea()
161 modded.dx >= vxres || modded.dy >= vyres) in radeonfb_copyarea()
[all …]
/linux/drivers/video/fbdev/
H A Datafb.h6 int dx, int height, int width);
10 int dy, int dx, u32 width,
14 int dx, int height, int width);
18 int dy, int dx, u32 width,
22 int dx, int height, int width);
26 int dy, int dx, u32 width,
30 int dx, int height, int width);
34 int dy, int dx, u32 width,
H A Ddnfb.c163 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
167 x_end = area->dx + area->width - 1; in dnfb_copyarea()
168 x_word_count = (x_end >> 4) - (area->dx >> 4) + 1; in dnfb_copyarea()
169 start_mask = 0xffff0000 >> (area->dx & 0xf); in dnfb_copyarea()
172 (((area->dx & 0xf) - (area->sx & 0xf)) % 16) | (0x4 << 5)); in dnfb_copyarea()
173 if ((area->dx & 0xf) < (area->sx & 0xf)) in dnfb_copyarea()
177 x_end = area->dx - area->width + 1; in dnfb_copyarea()
178 x_word_count = (area->dx >> 4) - (x_end >> 4) + 1; in dnfb_copyarea()
179 start_mask = 0x7ffff >> (area->dx & 0xf); in dnfb_copyarea()
182 ((-((area->sx & 0xf) - (area->dx & 0xf))) % 16) | in dnfb_copyarea()
[all …]
H A Datafb_iplan2p2.c24 int sy, int sx, int dy, int dx, in atafb_iplan2p2_copyarea() argument
43 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in atafb_iplan2p2_copyarea()
46 if (!((sx ^ dx) & 15)) { in atafb_iplan2p2_copyarea()
51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
76 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
110 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
152 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
157 if ((dx + width) & 15) in atafb_iplan2p2_copyarea()
239 int dy, int dx, u32 width, in atafb_iplan2p2_linefill() argument
247 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p2_linefill()
[all …]
H A Datafb_mfb.c24 int sy, int sx, int dy, int dx, in atafb_mfb_copyarea() argument
30 if (sx == 0 && dx == 0 && width == next_line) { in atafb_mfb_copyarea()
36 dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3); in atafb_mfb_copyarea()
44 dest = (u8 *)info->screen_base + (dy + height - 1) * next_line + (dx >> 3); in atafb_mfb_copyarea()
77 int dy, int dx, u32 width, in atafb_mfb_linefill() argument
83 dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3); in atafb_mfb_linefill()
H A Datafb_iplan2p4.c24 int sy, int sx, int dy, int dx, in atafb_iplan2p4_copyarea() argument
43 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in atafb_iplan2p4_copyarea()
46 if (!((sx ^ dx) & 15)) { in atafb_iplan2p4_copyarea()
51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
76 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
110 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
159 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
164 if ((dx + width) & 15) in atafb_iplan2p4_copyarea()
253 int dy, int dx, u32 width, in atafb_iplan2p4_linefill() argument
261 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p4_linefill()
[all …]
H A Dvga16fb.c845 u32 dx = rect->dx, width = rect->width; in vga_8planes_fillrect() local
853 dx /= 4; in vga_8planes_fillrect()
854 where = info->screen_base + dx + rect->dy * info->fix.line_length; in vga_8planes_fillrect()
905 if (!rect->width || !rect->height || rect->dx > vxres || rect->dy > vyres) in vga16fb_fillrect()
911 x2 = rect->dx + rect->width; in vga16fb_fillrect()
915 width = x2 - rect->dx; in vga16fb_fillrect()
925 dst = info->screen_base + (rect->dx/8) + rect->dy * info->fix.line_length; in vga16fb_fillrect()
979 u32 sx, dx, width; in vga_8planes_copyarea() local
986 dx = area->dx / 4; in vga_8planes_copyarea()
989 if (area->dy < area->sy || (area->dy == area->sy && dx < sx)) { in vga_8planes_copyarea()
[all …]
H A Datafb_iplan2p8.c31 int sy, int sx, int dy, int dx, in atafb_iplan2p8_copyarea() argument
50 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in atafb_iplan2p8_copyarea()
53 if (!((sx ^ dx) & 15)) { in atafb_iplan2p8_copyarea()
58 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
83 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
117 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
180 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
185 if ((dx + width) & 15) in atafb_iplan2p8_copyarea()
288 int dy, int dx, u32 width, in atafb_iplan2p8_linefill() argument
296 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p8_linefill()
[all …]
H A Dtgafb.c635 u32 fgcolor, bgcolor, dx, dy, width, height, vxres, vyres, pixelmask; local
644 dx = image->dx;
657 if (dx > vxres || dy > vyres)
659 if (dx + width > vxres)
660 width = vxres - dx;
690 pos += dx;
694 pos += dx * 4;
848 u32 color, dx, dy, width, height, vxres, vyres; local
854 dx = image->dx;
863 if (dx > vxres || dy > vyres)
[all …]
/linux/drivers/video/fbdev/savage/
H A 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()
/linux/drivers/gpu/drm/omapdrm/dss/
H A Dhdmi_phy.c38 int dx, dy; in hdmi_phy_parse_lanes() local
40 dx = lanes[i]; in hdmi_phy_parse_lanes()
43 if (dx < 0 || dx >= 8) in hdmi_phy_parse_lanes()
49 if (dx & 1) { in hdmi_phy_parse_lanes()
50 if (dy != dx - 1) in hdmi_phy_parse_lanes()
54 if (dy != dx + 1) in hdmi_phy_parse_lanes()
59 lane = dx / 2; in hdmi_phy_parse_lanes()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dhdmi_phy.c47 int dx, dy; in hdmi_phy_parse_lanes() local
49 dx = lanes[i]; in hdmi_phy_parse_lanes()
52 if (dx < 0 || dx >= 8) in hdmi_phy_parse_lanes()
58 if (dx & 1) { in hdmi_phy_parse_lanes()
59 if (dy != dx - 1) in hdmi_phy_parse_lanes()
63 if (dy != dx + 1) in hdmi_phy_parse_lanes()
68 lane = dx / 2; in hdmi_phy_parse_lanes()
/linux/drivers/input/mouse/
H A Damimouse.c38 int nx, ny, dx, dy; in amimouse_interrupt() local
45 dx = nx - amimouse_lastx; in amimouse_interrupt()
48 if (dx < -127) dx = (256 + nx) - amimouse_lastx; in amimouse_interrupt()
49 if (dx > 127) dx = (nx - 256) - amimouse_lastx; in amimouse_interrupt()
58 input_report_rel(dev, REL_X, dx); in amimouse_interrupt()
/linux/drivers/video/fbdev/sis/
H A Dsis_accel.c322 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
326 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect()
341 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
348 SiS310SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
375 area->dx >= vxres || area->dy >= vyres) in fbcon_sis_copyarea()
380 if((area->dx + width) > vxres) width = vxres - area->dx; in fbcon_sis_copyarea()
388 if(area->sx < area->dx) xdir = 0; in fbcon_sis_copyarea()
396 area->dx, area->dy, width, height); in fbcon_sis_copyarea()
404 area->dx, area->dy, width, height); in fbcon_sis_copyarea()
/linux/drivers/platform/chrome/
H A Dcros_ec_sensorhub_trace.h81 TP_PROTO(struct cros_ec_sensors_ts_filter_state *state, s64 dx, s64 dy),
82 TP_ARGS(state, dx, dy),
84 __field(s64, dx)
93 __entry->dx = dx;
102 __entry->dx,
/linux/drivers/video/fbdev/core/
H A Dfb_logo.c218 image->dx = info->var.xres - image->width - image->dx; in fb_rotate_logo()
225 image->dy = image->dx; in fb_rotate_logo()
226 image->dx = info->var.xres - image->width - tmp; in fb_rotate_logo()
231 tmp = image->dx; in fb_rotate_logo()
232 image->dx = image->dy; in fb_rotate_logo()
249 x < num && image->dx + image->width <= info->var.xres; in fb_do_show_logo()
252 image->dx += image->width + 8; in fb_do_show_logo()
255 u32 dx = image->dx; in fb_do_show_logo() local
257 for (x = 0; x < num && image->dx <= dx; x++) { in fb_do_show_logo()
259 image->dx -= image->width + 8; in fb_do_show_logo()
[all …]
H A 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()
67 region.dx = sx * vc->vc_font.width; in bit_clear()
166 image.dx = xx * vc->vc_font.width; in bit_putcs()
190 if (image.dx >= info->var.xres) in bit_putcs()
193 if (image.dx + image.width > info->var.xres) { in bit_putcs()
194 image.width = info->var.xres - image.dx; in bit_putcs()
216 image.dx += cnt * vc->vc_font.width; in bit_putcs()
244 region.dx = info->var.xoffset + rs; in bit_clear_margins()
252 region.dx = info->var.xoffset; in bit_clear_margins()
[all …]
H A Dsvgalib.c219 int dx, dy; in svga_tilecopy() local
227 ((area->sy == area->dy) && (area->sx > area->dx))) { in svga_tilecopy()
229 dst = fb + area->dx * colstride + area->dy * rowstride; in svga_tilecopy()
233 dst = fb + (area->dx + area->width - 1) * colstride in svga_tilecopy()
243 for (dx = 0; dx < area->width; dx++) { in svga_tilecopy()
257 int dx, dy; in svga_tilefill() local
266 for (dx = 0; dx < rect->width; dx++) { in svga_tilefill()
278 int dx, dy, i; in svga_tileblit() local
288 for (dx = 0; dx < blit->width; dx++) { in svga_tileblit()
/linux/drivers/video/fbdev/i810/
H A 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()
/linux/arch/x86/include/asm/
H A Dsyscall.h94 args[2] = regs->dx; in syscall_get_arguments()
106 regs->dx = args[2]; in syscall_set_arguments()
127 *args++ = regs->dx; in syscall_get_arguments()
136 *args++ = regs->dx; in syscall_get_arguments()
151 regs->dx = *args++; in syscall_set_arguments()
160 regs->dx = *args++; in syscall_set_arguments()
/linux/net/sched/
H A Dsch_hfsc.c87 u64 dx; /* the x-projection of the 1st segment */ member
99 u64 dx; /* the x-projection of the 1st segment */ member
451 u64 dx; in d2dx() local
453 dx = ((u64)d * PSCHED_TICKS_PER_SEC); in d2dx()
454 dx += USEC_PER_SEC - 1; in d2dx()
455 do_div(dx, USEC_PER_SEC); in d2dx()
456 return dx; in d2dx()
471 dx2d(u64 dx) in dx2d() argument
475 d = dx * USEC_PER_SEC; in dx2d()
485 isc->dx = d2dx(sc->d); in sc2isc()
[all …]
/linux/drivers/input/
H A Dmousedev.c52 int dx, dy, dz; member
89 int dx, dy, dz; member
142 mousedev->packet.dx = tmp / FRACTION_DENOM; in mousedev_touchpad_event()
144 tmp - mousedev->packet.dx * FRACTION_DENOM; in mousedev_touchpad_event()
209 mousedev->packet.dx += value; in mousedev_rel_event()
285 p->dx += packet->x - client->pos_x; in mousedev_notify_readers()
291 client->pos_x += packet->dx; in mousedev_notify_readers()
297 p->dx += packet->dx; in mousedev_notify_readers()
302 if (p->dx || p->dy || p->dz || in mousedev_notify_readers()
396 mousedev->packet.dx = mousedev->packet.dy = in mousedev_event()
[all …]
/linux/tools/testing/selftests/x86/
H A Dcheck_initial_reg_state.c11 unsigned long ax, bx, cx, dx, si, di, bp, sp, flags; variable
63 if (ax || bx || cx || dx || si || di || bp in main()
73 SHOW(dx); in main()

123456