cytp 31 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 32 drivers/input/mouse/cypress_ps2.c cytp->pkt_size = n; cytp 222 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 232 drivers/input/mouse/cypress_ps2.c cytp->fw_version = param[2] & FW_VERSION_MASX; cytp 233 drivers/input/mouse/cypress_ps2.c cytp->tp_metrics_supported = (param[2] & TP_METRICS_MASK) ? 1 : 0; cytp 239 drivers/input/mouse/cypress_ps2.c if (cytp->fw_version >= 11) cytp 240 drivers/input/mouse/cypress_ps2.c cytp->tp_metrics_supported = 0; cytp 242 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->fw_version = %d\n", cytp->fw_version); cytp 244 drivers/input/mouse/cypress_ps2.c cytp->tp_metrics_supported); cytp 251 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 255 drivers/input/mouse/cypress_ps2.c cytp->tp_width = CYTP_DEFAULT_WIDTH; cytp 256 drivers/input/mouse/cypress_ps2.c cytp->tp_high = CYTP_DEFAULT_HIGH; cytp 257 drivers/input/mouse/cypress_ps2.c cytp->tp_max_abs_x = CYTP_ABS_MAX_X; cytp 258 drivers/input/mouse/cypress_ps2.c cytp->tp_max_abs_y = CYTP_ABS_MAX_Y; cytp 259 drivers/input/mouse/cypress_ps2.c cytp->tp_min_pressure = CYTP_MIN_PRESSURE; cytp 260 drivers/input/mouse/cypress_ps2.c cytp->tp_max_pressure = CYTP_MAX_PRESSURE; cytp 261 drivers/input/mouse/cypress_ps2.c cytp->tp_res_x = cytp->tp_max_abs_x / cytp->tp_width; cytp 262 drivers/input/mouse/cypress_ps2.c cytp->tp_res_y = cytp->tp_max_abs_y / cytp->tp_high; cytp 264 drivers/input/mouse/cypress_ps2.c if (!cytp->tp_metrics_supported) cytp 270 drivers/input/mouse/cypress_ps2.c cytp->tp_max_abs_x = (param[1] << 8) | param[0]; cytp 271 drivers/input/mouse/cypress_ps2.c cytp->tp_max_abs_y = (param[3] << 8) | param[2]; cytp 272 drivers/input/mouse/cypress_ps2.c cytp->tp_min_pressure = param[4]; cytp 273 drivers/input/mouse/cypress_ps2.c cytp->tp_max_pressure = param[5]; cytp 276 drivers/input/mouse/cypress_ps2.c if (!cytp->tp_max_pressure || cytp 277 drivers/input/mouse/cypress_ps2.c cytp->tp_max_pressure < cytp->tp_min_pressure || cytp 278 drivers/input/mouse/cypress_ps2.c !cytp->tp_width || !cytp->tp_high || cytp 279 drivers/input/mouse/cypress_ps2.c !cytp->tp_max_abs_x || cytp 280 drivers/input/mouse/cypress_ps2.c cytp->tp_max_abs_x < cytp->tp_width || cytp 281 drivers/input/mouse/cypress_ps2.c !cytp->tp_max_abs_y || cytp 282 drivers/input/mouse/cypress_ps2.c cytp->tp_max_abs_y < cytp->tp_high) cytp 285 drivers/input/mouse/cypress_ps2.c cytp->tp_res_x = cytp->tp_max_abs_x / cytp->tp_width; cytp 286 drivers/input/mouse/cypress_ps2.c cytp->tp_res_y = cytp->tp_max_abs_y / cytp->tp_high; cytp 290 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_width = %d\n", cytp->tp_width); cytp 291 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_high = %d\n", cytp->tp_high); cytp 292 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_max_abs_x = %d\n", cytp->tp_max_abs_x); cytp 293 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_max_abs_y = %d\n", cytp->tp_max_abs_y); cytp 294 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_min_pressure = %d\n", cytp->tp_min_pressure); cytp 295 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_max_pressure = %d\n", cytp->tp_max_pressure); cytp 296 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_res_x = %d\n", cytp->tp_res_x); cytp 297 drivers/input/mouse/cypress_ps2.c psmouse_dbg(psmouse, "cytp->tp_res_y = %d\n", cytp->tp_res_y); cytp 339 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 345 drivers/input/mouse/cypress_ps2.c cytp->mode = (cytp->mode & ~CYTP_BIT_ABS_REL_MASK) cytp 358 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 360 drivers/input/mouse/cypress_ps2.c cytp->mode = 0; cytp 366 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp) cytp 370 drivers/input/mouse/cypress_ps2.c if (!cytp->tp_res_x || !cytp->tp_res_y) cytp 374 drivers/input/mouse/cypress_ps2.c input_set_abs_params(input, ABS_X, 0, cytp->tp_max_abs_x, 0, 0); cytp 375 drivers/input/mouse/cypress_ps2.c input_set_abs_params(input, ABS_Y, 0, cytp->tp_max_abs_y, 0, 0); cytp 377 drivers/input/mouse/cypress_ps2.c cytp->tp_min_pressure, cytp->tp_max_pressure, 0, 0); cytp 381 drivers/input/mouse/cypress_ps2.c input_set_abs_params(input, ABS_MT_POSITION_X, 0, cytp->tp_max_abs_x, 0, 0); cytp 382 drivers/input/mouse/cypress_ps2.c input_set_abs_params(input, ABS_MT_POSITION_Y, 0, cytp->tp_max_abs_y, 0, 0); cytp 392 drivers/input/mouse/cypress_ps2.c input_abs_set_res(input, ABS_X, cytp->tp_res_x); cytp 393 drivers/input/mouse/cypress_ps2.c input_abs_set_res(input, ABS_Y, cytp->tp_res_y); cytp 395 drivers/input/mouse/cypress_ps2.c input_abs_set_res(input, ABS_MT_POSITION_X, cytp->tp_res_x); cytp 396 drivers/input/mouse/cypress_ps2.c input_abs_set_res(input, ABS_MT_POSITION_Y, cytp->tp_res_y); cytp 444 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp, struct cytp_report_data *report_data) cytp 459 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_PRESSURE) cytp 467 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_PRESSURE) cytp 474 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_PRESSURE) cytp 517 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 524 drivers/input/mouse/cypress_ps2.c cypress_parse_packet(psmouse, cytp, &report_data); cytp 563 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 565 drivers/input/mouse/cypress_ps2.c if (index < 0 || index > cytp->pkt_size) cytp 585 drivers/input/mouse/cypress_ps2.c if ((cytp->mode & CYTP_BIT_ABS_REL_MASK) == 0) cytp 592 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_NO_PRESSURE) cytp 602 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 604 drivers/input/mouse/cypress_ps2.c if (psmouse->pktcnt >= cytp->pkt_size) { cytp 614 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp = psmouse->private; cytp 618 drivers/input/mouse/cypress_ps2.c cytp->mode |= CYTP_BIT_HIGH_RATE; cytp 621 drivers/input/mouse/cypress_ps2.c cytp->mode &= ~CYTP_BIT_HIGH_RATE; cytp 660 drivers/input/mouse/cypress_ps2.c struct cytp_data *cytp; cytp 662 drivers/input/mouse/cypress_ps2.c cytp = kzalloc(sizeof(struct cytp_data), GFP_KERNEL); cytp 663 drivers/input/mouse/cypress_ps2.c if (!cytp) cytp 666 drivers/input/mouse/cypress_ps2.c psmouse->private = cytp; cytp 681 drivers/input/mouse/cypress_ps2.c if (cypress_set_input_params(psmouse->dev, cytp) < 0) { cytp 704 drivers/input/mouse/cypress_ps2.c kfree(cytp);