Lines Matching refs:mm
656 struct phys_coords mm;
658 mm.x = evdev_convert_to_mm(device->abs.absinfo_x, x);
659 mm.y = evdev_convert_to_mm(device->abs.absinfo_y, y);
661 return mm;
873 * Convert the pair of delta coordinates in device space to mm.
879 struct phys_coords mm = { 0, 0 };
887 return mm;
893 mm.x = 1.0 * units->x/absx->resolution;
894 mm.y = 1.0 * units->y/absy->resolution;
896 return mm;
900 * Convert the pair of coordinates in device space to mm. This takes the
901 * axis min into account, i.e. a unit of min is equivalent to 0 mm.
907 struct phys_coords mm = { 0, 0 };
915 return mm;
921 mm.x = (units->x - absx->minimum)/absx->resolution;
922 mm.y = (units->y - absy->minimum)/absy->resolution;
924 return mm;
928 * Convert the pair of coordinates in mm to device units. This takes the
929 * axis min into account, i.e. 0 mm is equivalent to the min.
933 const struct phys_coords *mm)
949 units.x = mm->x * absx->resolution + absx->minimum;
950 units.y = mm->y * absy->resolution + absy->minimum;
957 const struct phys_rect *mm)
973 units.x = mm->x * absx->resolution + absx->minimum;
974 units.y = mm->y * absy->resolution + absy->minimum;
975 units.w = mm->w * absx->resolution;
976 units.h = mm->h * absy->resolution;