Lines Matching refs:data
443 fn fb_copyarea(&self, data: super::base::CopyAreaData) { in fb_copyarea()
449 if data.sx > var.xres as i32 in fb_copyarea()
450 || data.sy > var.yres as i32 in fb_copyarea()
451 || data.dx > var.xres as i32 in fb_copyarea()
452 || data.dy > var.yres as i32 in fb_copyarea()
453 || (data.sx + data.width as i32) < 0 in fb_copyarea()
454 || (data.sy + data.height as i32) < 0 in fb_copyarea()
455 || (data.dx + data.width as i32) < 0 in fb_copyarea()
456 || (data.dy + data.height as i32) < 0 in fb_copyarea()
462 let (s_visiable_x, s_w) = if data.sx < 0 { in fb_copyarea()
463 (0, (data.width - ((-data.sx) as u32)).min(var.xres)) in fb_copyarea()
465 let w = if data.sx as u32 + data.width > var.xres { in fb_copyarea()
466 var.xres - data.sx as u32 in fb_copyarea()
468 data.width in fb_copyarea()
471 (data.sx, w) in fb_copyarea()
473 let (s_visiable_y, s_h) = if data.sy < 0 { in fb_copyarea()
474 (0, (data.height - ((-data.sy) as u32).min(var.yres))) in fb_copyarea()
476 let h = if data.sy as u32 + data.height > var.yres { in fb_copyarea()
477 var.yres - data.sy as u32 in fb_copyarea()
479 data.height in fb_copyarea()
482 (data.sy, h) in fb_copyarea()
485 let (d_visiable_x, d_w) = if data.dx < 0 { in fb_copyarea()
486 (0, (data.width - ((-data.dx) as u32)).min(var.xres)) in fb_copyarea()
488 let w = if data.dx as u32 + data.width > var.xres { in fb_copyarea()
489 var.xres - data.dx as u32 in fb_copyarea()
491 data.width in fb_copyarea()
494 (data.dx, w) in fb_copyarea()
496 let (d_visiable_y, d_h) = if data.dy < 0 { in fb_copyarea()
497 (0, (data.height - ((-data.dy) as u32).min(var.yres))) in fb_copyarea()
499 let h = if data.dy as u32 + data.height > var.yres { in fb_copyarea()
500 var.yres - data.dy as u32 in fb_copyarea()
502 data.height in fb_copyarea()
505 (data.dy, h) in fb_copyarea()
509 if !(d_h + s_h > data.height && s_w + d_w > data.width) { in fb_copyarea()
514 let s_relative_x = s_visiable_x - data.sx; in fb_copyarea()
515 let s_relative_y = s_visiable_y - data.sy; in fb_copyarea()
516 let d_relative_x = d_visiable_x - data.dx; in fb_copyarea()
517 let d_relative_y = d_visiable_y - data.dy; in fb_copyarea()
521 let visiable_h = d_h + s_h - data.height; in fb_copyarea()
522 let visiable_w = d_w + s_w - data.width; in fb_copyarea()
524 let s_real_x = (visiable_x + data.sx) as u32; in fb_copyarea()
525 let s_real_y = (visiable_y + data.sy) as u32; in fb_copyarea()
526 let d_real_x = (visiable_x + data.dx) as u32; in fb_copyarea()
527 let d_real_y = (visiable_y + data.dy) as u32; in fb_copyarea()
909 .data() in show()
1011 if guard.get(device.fb_id().data() as usize).unwrap().is_some() { in vesa_fb_device_init()
1017 guard[device.fb_id().data() as usize] = Some(device.clone()); in vesa_fb_device_init()