Lines Matching refs:modded
380 struct fb_fillrect modded; in pm3fb_fillrect() local
401 memcpy(&modded, region, sizeof(struct fb_fillrect)); in pm3fb_fillrect()
403 if (!modded.width || !modded.height || in pm3fb_fillrect()
404 modded.dx >= vxres || modded.dy >= vyres) in pm3fb_fillrect()
407 if (modded.dx + modded.width > vxres) in pm3fb_fillrect()
408 modded.width = vxres - modded.dx; in pm3fb_fillrect()
409 if (modded.dy + modded.height > vyres) in pm3fb_fillrect()
410 modded.height = vyres - modded.dy; in pm3fb_fillrect()
428 PM3RectanglePosition_XOffset(modded.dx) | in pm3fb_fillrect()
429 PM3RectanglePosition_YOffset(modded.dy)); in pm3fb_fillrect()
436 PM3Render2D_Width(modded.width) | in pm3fb_fillrect()
437 PM3Render2D_Height(modded.height)); in pm3fb_fillrect()
444 struct fb_copyarea modded; in pm3fb_copyarea() local
455 memcpy(&modded, area, sizeof(struct fb_copyarea)); in pm3fb_copyarea()
460 if (!modded.width || !modded.height || in pm3fb_copyarea()
461 modded.sx >= vxres || modded.sy >= vyres || in pm3fb_copyarea()
462 modded.dx >= vxres || modded.dy >= vyres) in pm3fb_copyarea()
465 if (modded.sx + modded.width > vxres) in pm3fb_copyarea()
466 modded.width = vxres - modded.sx; in pm3fb_copyarea()
467 if (modded.dx + modded.width > vxres) in pm3fb_copyarea()
468 modded.width = vxres - modded.dx; in pm3fb_copyarea()
469 if (modded.sy + modded.height > vyres) in pm3fb_copyarea()
470 modded.height = vyres - modded.sy; in pm3fb_copyarea()
471 if (modded.dy + modded.height > vyres) in pm3fb_copyarea()
472 modded.height = vyres - modded.dy; in pm3fb_copyarea()
474 o_x = modded.sx - modded.dx; /*(sx > dx ) ? (sx - dx) : (dx - sx); */ in pm3fb_copyarea()
475 o_y = modded.sy - modded.dy; /*(sy > dy ) ? (sy - dy) : (dy - sy); */ in pm3fb_copyarea()
477 x_align = (modded.sx & 0x1f); in pm3fb_copyarea()
489 ((modded.dy & 0x0fff) << 16) | (modded.dx & 0x0fff)); in pm3fb_copyarea()
491 (((modded.dy + modded.height) & 0x0fff) << 16) | in pm3fb_copyarea()
492 ((modded.dx + modded.width) & 0x0fff)); in pm3fb_copyarea()
499 PM3RectanglePosition_XOffset(modded.dx - x_align) | in pm3fb_copyarea()
500 PM3RectanglePosition_YOffset(modded.dy)); in pm3fb_copyarea()
503 ((modded.sx > modded.dx) ? PM3Render2D_XPositive : 0) | in pm3fb_copyarea()
504 ((modded.sy > modded.dy) ? PM3Render2D_YPositive : 0) | in pm3fb_copyarea()
508 PM3Render2D_Width(modded.width + x_align) | in pm3fb_copyarea()
509 PM3Render2D_Height(modded.height)); in pm3fb_copyarea()