Lines Matching refs:modded
379 struct fb_fillrect modded; in pm3fb_fillrect() local
400 memcpy(&modded, region, sizeof(struct fb_fillrect)); in pm3fb_fillrect()
402 if (!modded.width || !modded.height || in pm3fb_fillrect()
403 modded.dx >= vxres || modded.dy >= vyres) in pm3fb_fillrect()
406 if (modded.dx + modded.width > vxres) in pm3fb_fillrect()
407 modded.width = vxres - modded.dx; in pm3fb_fillrect()
408 if (modded.dy + modded.height > vyres) in pm3fb_fillrect()
409 modded.height = vyres - modded.dy; in pm3fb_fillrect()
427 PM3RectanglePosition_XOffset(modded.dx) | in pm3fb_fillrect()
428 PM3RectanglePosition_YOffset(modded.dy)); in pm3fb_fillrect()
435 PM3Render2D_Width(modded.width) | in pm3fb_fillrect()
436 PM3Render2D_Height(modded.height)); in pm3fb_fillrect()
443 struct fb_copyarea modded; in pm3fb_copyarea() local
454 memcpy(&modded, area, sizeof(struct fb_copyarea)); in pm3fb_copyarea()
459 if (!modded.width || !modded.height || in pm3fb_copyarea()
460 modded.sx >= vxres || modded.sy >= vyres || in pm3fb_copyarea()
461 modded.dx >= vxres || modded.dy >= vyres) in pm3fb_copyarea()
464 if (modded.sx + modded.width > vxres) in pm3fb_copyarea()
465 modded.width = vxres - modded.sx; in pm3fb_copyarea()
466 if (modded.dx + modded.width > vxres) in pm3fb_copyarea()
467 modded.width = vxres - modded.dx; in pm3fb_copyarea()
468 if (modded.sy + modded.height > vyres) in pm3fb_copyarea()
469 modded.height = vyres - modded.sy; in pm3fb_copyarea()
470 if (modded.dy + modded.height > vyres) in pm3fb_copyarea()
471 modded.height = vyres - modded.dy; in pm3fb_copyarea()
473 o_x = modded.sx - modded.dx; /*(sx > dx ) ? (sx - dx) : (dx - sx); */ in pm3fb_copyarea()
474 o_y = modded.sy - modded.dy; /*(sy > dy ) ? (sy - dy) : (dy - sy); */ in pm3fb_copyarea()
476 x_align = (modded.sx & 0x1f); in pm3fb_copyarea()
488 ((modded.dy & 0x0fff) << 16) | (modded.dx & 0x0fff)); in pm3fb_copyarea()
490 (((modded.dy + modded.height) & 0x0fff) << 16) | in pm3fb_copyarea()
491 ((modded.dx + modded.width) & 0x0fff)); in pm3fb_copyarea()
498 PM3RectanglePosition_XOffset(modded.dx - x_align) | in pm3fb_copyarea()
499 PM3RectanglePosition_YOffset(modded.dy)); in pm3fb_copyarea()
502 ((modded.sx > modded.dx) ? PM3Render2D_XPositive : 0) | in pm3fb_copyarea()
503 ((modded.sy > modded.dy) ? PM3Render2D_YPositive : 0) | in pm3fb_copyarea()
507 PM3Render2D_Width(modded.width + x_align) | in pm3fb_copyarea()
508 PM3Render2D_Height(modded.height)); in pm3fb_copyarea()