Home
last modified time | relevance | path

Searched refs:coords (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/hid/bpf/progs/
H A DXPPen__ArtistPro16Gen2.bpf.c183 __u16 coords = data[idx+1]; in compensate_coordinates_by_tilt() local
185 coords <<= 8; in compensate_coordinates_by_tilt()
186 coords += data[idx]; in compensate_coordinates_by_tilt()
197 coords = (coords > compensation) ? coords - compensation : 0; in compensate_coordinates_by_tilt()
202 coords = (coords < max) ? coords + compensation : logical_maximum; in compensate_coordinates_by_tilt()
205 data[idx] = coords & 0xff; in compensate_coordinates_by_tilt()
206 data[idx+1] = coords >> 8; in compensate_coordinates_by_tilt()
/linux/drivers/input/touchscreen/
H A Djornada720_ts.c53 static int jornada720_ts_average(int coords[4]) in jornada720_ts_average()
55 int coord, high_bits = coords[3]; in jornada720_ts_average()
57 coord = coords[0] | ((high_bits & 0x03) << 8); in jornada720_ts_average()
58 coord += coords[1] | ((high_bits & 0x0c) << 6); in jornada720_ts_average()
59 coord += coords[2] | ((high_bits & 0x30) << 4); in jornada720_ts_average()
/linux/drivers/cxl/core/
H A Dcdat.c757 struct access_coordinate coords[ACCESS_COORDINATE_MAX]; in DEFINE_FREE() local
815 rc = cxl_pci_get_bandwidth(to_pci_dev(dev), coords); in DEFINE_FREE()
823 cxl_coordinates_combine(coords, coords, ctx->coord); in DEFINE_FREE()
830 cxl_coordinates_combine(coords, coords, dport->coord); in DEFINE_FREE()
836 cxl_bandwidth_add(us_ctx->coord, us_ctx->coord, coords); in DEFINE_FREE()
/linux/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c1609 struct hw_x_point *coords = coordinates_x; in copy_rgb_regamma_to_coordinates_x() local
1614 coords->regamma_y_red = rgb_regamma->r; in copy_rgb_regamma_to_coordinates_x()
1615 coords->regamma_y_green = rgb_regamma->g; in copy_rgb_regamma_to_coordinates_x()
1616 coords->regamma_y_blue = rgb_regamma->b; in copy_rgb_regamma_to_coordinates_x()
1618 ++coords; in copy_rgb_regamma_to_coordinates_x()
1825 struct hw_x_point *coords = coords_x; in map_regamma_hw_to_x_user() local
1829 copy_rgb_regamma_to_coordinates_x(coords, in map_regamma_hw_to_x_user()
1834 ramp, coeff128, rgb_user, coords, axis_x, in map_regamma_hw_to_x_user()