Lines Matching refs:modded
386 struct fb_fillrect modded; in pm3fb_fillrect() local
407 memcpy(&modded, region, sizeof(struct fb_fillrect)); in pm3fb_fillrect()
409 if (!modded.width || !modded.height || in pm3fb_fillrect()
410 modded.dx >= vxres || modded.dy >= vyres) in pm3fb_fillrect()
413 if (modded.dx + modded.width > vxres) in pm3fb_fillrect()
414 modded.width = vxres - modded.dx; in pm3fb_fillrect()
415 if (modded.dy + modded.height > vyres) in pm3fb_fillrect()
416 modded.height = vyres - modded.dy; in pm3fb_fillrect()
434 PM3RectanglePosition_XOffset(modded.dx) | in pm3fb_fillrect()
435 PM3RectanglePosition_YOffset(modded.dy)); in pm3fb_fillrect()
442 PM3Render2D_Width(modded.width) | in pm3fb_fillrect()
443 PM3Render2D_Height(modded.height)); in pm3fb_fillrect()
450 struct fb_copyarea modded; in pm3fb_copyarea() local
461 memcpy(&modded, area, sizeof(struct fb_copyarea)); in pm3fb_copyarea()
466 if (!modded.width || !modded.height || in pm3fb_copyarea()
467 modded.sx >= vxres || modded.sy >= vyres || in pm3fb_copyarea()
468 modded.dx >= vxres || modded.dy >= vyres) in pm3fb_copyarea()
471 if (modded.sx + modded.width > vxres) in pm3fb_copyarea()
472 modded.width = vxres - modded.sx; in pm3fb_copyarea()
473 if (modded.dx + modded.width > vxres) in pm3fb_copyarea()
474 modded.width = vxres - modded.dx; in pm3fb_copyarea()
475 if (modded.sy + modded.height > vyres) in pm3fb_copyarea()
476 modded.height = vyres - modded.sy; in pm3fb_copyarea()
477 if (modded.dy + modded.height > vyres) in pm3fb_copyarea()
478 modded.height = vyres - modded.dy; in pm3fb_copyarea()
480 o_x = modded.sx - modded.dx; /*(sx > dx ) ? (sx - dx) : (dx - sx); */ in pm3fb_copyarea()
481 o_y = modded.sy - modded.dy; /*(sy > dy ) ? (sy - dy) : (dy - sy); */ in pm3fb_copyarea()
483 x_align = (modded.sx & 0x1f); in pm3fb_copyarea()
495 ((modded.dy & 0x0fff) << 16) | (modded.dx & 0x0fff)); in pm3fb_copyarea()
497 (((modded.dy + modded.height) & 0x0fff) << 16) | in pm3fb_copyarea()
498 ((modded.dx + modded.width) & 0x0fff)); in pm3fb_copyarea()
505 PM3RectanglePosition_XOffset(modded.dx - x_align) | in pm3fb_copyarea()
506 PM3RectanglePosition_YOffset(modded.dy)); in pm3fb_copyarea()
509 ((modded.sx > modded.dx) ? PM3Render2D_XPositive : 0) | in pm3fb_copyarea()
510 ((modded.sy > modded.dy) ? PM3Render2D_YPositive : 0) | in pm3fb_copyarea()
514 PM3Render2D_Width(modded.width + x_align) | in pm3fb_copyarea()
515 PM3Render2D_Height(modded.height)); in pm3fb_copyarea()