/Linux-v4.19/drivers/input/mouse/ |
D | psmouse-base.c | 89 (void *) offsetof(struct psmouse, rate), 92 (void *) offsetof(struct psmouse, resolution), 95 (void *) offsetof(struct psmouse, resetafter), 98 (void *) offsetof(struct psmouse, resync_time), 153 psmouse_ret_t psmouse_process_byte(struct psmouse *psmouse) in psmouse_process_byte() argument 155 struct input_dev *dev = psmouse->dev; in psmouse_process_byte() 156 u8 *packet = psmouse->packet; in psmouse_process_byte() 159 if (psmouse->pktcnt < psmouse->pktsize) in psmouse_process_byte() 164 switch (psmouse->protocol->type) { in psmouse_process_byte() 235 packet[0] |= psmouse->extra_buttons; in psmouse_process_byte() [all …]
|
D | cypress_ps2.c | 32 static void cypress_set_packet_size(struct psmouse *psmouse, unsigned int n) in cypress_set_packet_size() argument 34 struct cytp_data *cytp = psmouse->private; in cypress_set_packet_size() 41 static int cypress_ps2_sendbyte(struct psmouse *psmouse, int value) in cypress_ps2_sendbyte() argument 43 struct ps2dev *ps2dev = &psmouse->ps2dev; in cypress_ps2_sendbyte() 46 psmouse_dbg(psmouse, in cypress_ps2_sendbyte() 56 psmouse_dbg(psmouse, "sending command 0x%02x succeeded, resp 0xfa\n", in cypress_ps2_sendbyte() 63 static int cypress_ps2_ext_cmd(struct psmouse *psmouse, unsigned short cmd, in cypress_ps2_ext_cmd() argument 66 struct ps2dev *ps2dev = &psmouse->ps2dev; in cypress_ps2_ext_cmd() 78 rc = cypress_ps2_sendbyte(psmouse, cmd & 0xff); in cypress_ps2_ext_cmd() 80 rc = cypress_ps2_sendbyte(psmouse, 0x00); in cypress_ps2_ext_cmd() [all …]
|
D | focaltech.c | 39 int focaltech_detect(struct psmouse *psmouse, bool set_properties) in focaltech_detect() argument 41 if (!psmouse_matches_pnp_id(psmouse, focaltech_pnp_ids)) in focaltech_detect() 45 psmouse->vendor = "FocalTech"; in focaltech_detect() 46 psmouse->name = "Touchpad"; in focaltech_detect() 119 static void focaltech_report_state(struct psmouse *psmouse) in focaltech_report_state() argument 121 struct focaltech_data *priv = psmouse->private; in focaltech_report_state() 123 struct input_dev *dev = psmouse->dev; in focaltech_report_state() 153 static void focaltech_process_touch_packet(struct psmouse *psmouse, in focaltech_process_touch_packet() argument 156 struct focaltech_data *priv = psmouse->private; in focaltech_process_touch_packet() 177 static void focaltech_process_abs_packet(struct psmouse *psmouse, in focaltech_process_abs_packet() argument [all …]
|
D | hgpk.c | 127 static int hgpk_discard_decay_hack(struct psmouse *psmouse, int x, int y) in hgpk_discard_decay_hack() argument 129 struct hgpk_data *priv = psmouse->private; in hgpk_discard_decay_hack() 139 psmouse_warn(psmouse, "detected %dpx jump in x\n", x); in hgpk_discard_decay_hack() 142 psmouse_warn(psmouse, "detected secondary %dpx jump in x\n", x); in hgpk_discard_decay_hack() 154 psmouse_warn(psmouse, "detected %dpx jump in y\n", y); in hgpk_discard_decay_hack() 157 psmouse_warn(psmouse, "detected secondary %dpx jump in y\n", y); in hgpk_discard_decay_hack() 171 psmouse_warn(psmouse, "scheduling recalibration\n"); in hgpk_discard_decay_hack() 172 psmouse_queue_work(psmouse, &priv->recalib_wq, in hgpk_discard_decay_hack() 188 static void hgpk_reset_hack_state(struct psmouse *psmouse) in hgpk_reset_hack_state() argument 190 struct hgpk_data *priv = psmouse->private; in hgpk_reset_hack_state() [all …]
|
D | sentelic.c | 84 static int fsp_reg_read(struct psmouse *psmouse, int reg_addr, int *reg_val) in fsp_reg_read() argument 86 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_read() 97 psmouse_deactivate(psmouse); in fsp_reg_read() 134 psmouse_activate(psmouse); in fsp_reg_read() 135 psmouse_dbg(psmouse, in fsp_reg_read() 141 static int fsp_reg_write(struct psmouse *psmouse, int reg_addr, int reg_val) in fsp_reg_write() argument 143 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_write() 187 psmouse_dbg(psmouse, in fsp_reg_write() 194 static int fsp_reg_write_enable(struct psmouse *psmouse, bool enable) in fsp_reg_write_enable() argument 198 if (fsp_reg_read(psmouse, FSP_REG_SYSCTL1, &v) == -1) in fsp_reg_write_enable() [all …]
|
D | psmouse.h | 75 struct psmouse; 85 int (*detect)(struct psmouse *, bool); 86 int (*init)(struct psmouse *); 89 struct psmouse { struct 118 psmouse_ret_t (*protocol_handler)(struct psmouse *psmouse); argument 119 void (*set_rate)(struct psmouse *psmouse, unsigned int rate); argument 120 void (*set_resolution)(struct psmouse *psmouse, unsigned int resolution); argument 121 void (*set_scale)(struct psmouse *psmouse, enum psmouse_scale scale); argument 123 int (*reconnect)(struct psmouse *psmouse); argument 124 int (*fast_reconnect)(struct psmouse *psmouse); argument [all …]
|
D | elantech.c | 31 psmouse_printk(KERN_DEBUG, psmouse, \ 38 static int synaptics_send_cmd(struct psmouse *psmouse, unsigned char c, in synaptics_send_cmd() argument 41 if (ps2_sliced_command(&psmouse->ps2dev, c) || in synaptics_send_cmd() 42 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in synaptics_send_cmd() 43 psmouse_err(psmouse, "%s query 0x%02x failed.\n", __func__, c); in synaptics_send_cmd() 53 static int elantech_send_cmd(struct psmouse *psmouse, unsigned char c, in elantech_send_cmd() argument 56 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_send_cmd() 61 psmouse_err(psmouse, "%s query 0x%02x failed.\n", __func__, c); in elantech_send_cmd() 71 static int elantech_ps2_command(struct psmouse *psmouse, in elantech_ps2_command() argument 74 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_ps2_command() [all …]
|
D | synaptics.c | 82 static int synaptics_mode_cmd(struct psmouse *psmouse, u8 mode) in synaptics_mode_cmd() argument 87 error = ps2_sliced_command(&psmouse->ps2dev, mode); in synaptics_mode_cmd() 92 error = ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_SETRATE); in synaptics_mode_cmd() 99 int synaptics_detect(struct psmouse *psmouse, bool set_properties) in synaptics_detect() argument 101 struct ps2dev *ps2dev = &psmouse->ps2dev; in synaptics_detect() 116 psmouse->vendor = "Synaptics"; in synaptics_detect() 117 psmouse->name = "TouchPad"; in synaptics_detect() 123 void synaptics_reset(struct psmouse *psmouse) in synaptics_reset() argument 126 synaptics_mode_cmd(psmouse, 0); in synaptics_reset() 194 static int synaptics_send_cmd(struct psmouse *psmouse, u8 cmd, u8 *param) in synaptics_send_cmd() argument [all …]
|
D | alps.c | 250 static void alps_process_packet_v1_v2(struct psmouse *psmouse) in alps_process_packet_v1_v2() argument 252 struct alps_data *priv = psmouse->private; in alps_process_packet_v1_v2() 253 unsigned char *packet = psmouse->packet; in alps_process_packet_v1_v2() 254 struct input_dev *dev = psmouse->dev; in alps_process_packet_v1_v2() 512 static void alps_report_mt_data(struct psmouse *psmouse, int n) in alps_report_mt_data() argument 514 struct alps_data *priv = psmouse->private; in alps_report_mt_data() 515 struct input_dev *dev = psmouse->dev; in alps_report_mt_data() 526 static void alps_report_semi_mt_data(struct psmouse *psmouse, int fingers) in alps_report_semi_mt_data() argument 528 struct alps_data *priv = psmouse->private; in alps_report_semi_mt_data() 529 struct input_dev *dev = psmouse->dev; in alps_report_semi_mt_data() [all …]
|
D | byd.c | 230 struct psmouse *psmouse; member 239 static void byd_report_input(struct psmouse *psmouse) in byd_report_input() argument 241 struct byd_data *priv = psmouse->private; in byd_report_input() 242 struct input_dev *dev = psmouse->dev; in byd_report_input() 258 struct psmouse *psmouse = priv->psmouse; in byd_clear_touch() local 260 serio_pause_rx(psmouse->ps2dev.serio); in byd_clear_touch() 263 byd_report_input(psmouse); in byd_clear_touch() 265 serio_continue_rx(psmouse->ps2dev.serio); in byd_clear_touch() 276 static psmouse_ret_t byd_process_byte(struct psmouse *psmouse) in byd_process_byte() argument 278 struct byd_data *priv = psmouse->private; in byd_process_byte() [all …]
|
D | vmmouse.c | 118 static void vmmouse_report_button(struct psmouse *psmouse, in vmmouse_report_button() argument 144 static psmouse_ret_t vmmouse_report_events(struct psmouse *psmouse) in vmmouse_report_events() argument 146 struct input_dev *rel_dev = psmouse->dev; in vmmouse_report_events() 147 struct vmmouse_data *priv = psmouse->private; in vmmouse_report_events() 160 psmouse_err(psmouse, "failed to fetch status data\n"); in vmmouse_report_events() 173 psmouse_err(psmouse, "invalid queue length\n"); in vmmouse_report_events() 200 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events() 203 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events() 206 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events() 226 static psmouse_ret_t vmmouse_process_byte(struct psmouse *psmouse) in vmmouse_process_byte() argument [all …]
|
D | logips2pp.c | 44 static psmouse_ret_t ps2pp_process_byte(struct psmouse *psmouse) in ps2pp_process_byte() argument 46 struct input_dev *dev = psmouse->dev; in ps2pp_process_byte() 47 u8 *packet = psmouse->packet; in ps2pp_process_byte() 49 if (psmouse->pktcnt < 3) in ps2pp_process_byte() 90 psmouse_dbg(psmouse, in ps2pp_process_byte() 116 static int ps2pp_cmd(struct psmouse *psmouse, u8 *param, u8 command) in ps2pp_cmd() argument 120 error = ps2_sliced_command(&psmouse->ps2dev, command); in ps2pp_cmd() 124 error = ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_POLL | 0x0300); in ps2pp_cmd() 139 static void ps2pp_set_smartscroll(struct psmouse *psmouse, bool smartscroll) in ps2pp_set_smartscroll() argument 141 struct ps2dev *ps2dev = &psmouse->ps2dev; in ps2pp_set_smartscroll() [all …]
|
D | lifebook.c | 135 static psmouse_ret_t lifebook_process_byte(struct psmouse *psmouse) in lifebook_process_byte() argument 137 struct lifebook_data *priv = psmouse->private; in lifebook_process_byte() 138 struct input_dev *dev1 = psmouse->dev; in lifebook_process_byte() 140 u8 *packet = psmouse->packet; in lifebook_process_byte() 144 if (psmouse->pktcnt != 3) in lifebook_process_byte() 147 switch (psmouse->pktcnt) { in lifebook_process_byte() 173 psmouse_warn(psmouse, in lifebook_process_byte() 202 static int lifebook_absolute_mode(struct psmouse *psmouse) in lifebook_absolute_mode() argument 204 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_absolute_mode() 208 error = psmouse_reset(psmouse); in lifebook_absolute_mode() [all …]
|
D | trackpoint.c | 105 static ssize_t trackpoint_show_int_attr(struct psmouse *psmouse, in trackpoint_show_int_attr() argument 108 struct trackpoint_data *tp = psmouse->private; in trackpoint_show_int_attr() 118 static ssize_t trackpoint_set_int_attr(struct psmouse *psmouse, void *data, in trackpoint_set_int_attr() argument 121 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_int_attr() 132 err = trackpoint_write(&psmouse->ps2dev, attr->command, value); in trackpoint_set_int_attr() 147 static ssize_t trackpoint_set_bit_attr(struct psmouse *psmouse, void *data, in trackpoint_set_bit_attr() argument 150 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_bit_attr() 165 err = trackpoint_toggle_bit(&psmouse->ps2dev, in trackpoint_set_bit_attr() 205 static bool trackpoint_is_attr_available(struct psmouse *psmouse, in trackpoint_is_attr_available() argument 208 struct trackpoint_data *tp = psmouse->private; in trackpoint_is_attr_available() [all …]
|
D | elantech.h | 156 int (*send_cmd)(struct psmouse *psmouse, unsigned char c, 179 void (*original_set_rate)(struct psmouse *psmouse, unsigned int rate); 183 int elantech_detect(struct psmouse *psmouse, bool set_properties); 184 int elantech_init_ps2(struct psmouse *psmouse); 185 int elantech_init(struct psmouse *psmouse); 187 static inline int elantech_detect(struct psmouse *psmouse, bool set_properties) in elantech_detect() argument 191 static inline int elantech_init(struct psmouse *psmouse) in elantech_init() argument 195 static inline int elantech_init_ps2(struct psmouse *psmouse) in elantech_init_ps2() argument 202 int elantech_init_smbus(struct psmouse *psmouse); 204 static inline int elantech_init_smbus(struct psmouse *psmouse) in elantech_init_smbus() argument
|
D | psmouse-smbus.c | 22 struct psmouse *psmouse; member 55 psmouse_dbg(smbdev->psmouse, in psmouse_smbus_check_adapter() 57 serio_rescan(smbdev->psmouse->ps2dev.serio); in psmouse_smbus_check_adapter() 77 psmouse_dbg(smbdev->psmouse, in psmouse_smbus_detach_i2c_client() 81 serio_rescan(smbdev->psmouse->ps2dev.serio); in psmouse_smbus_detach_i2c_client() 115 static psmouse_ret_t psmouse_smbus_process_byte(struct psmouse *psmouse) in psmouse_smbus_process_byte() argument 120 static int psmouse_smbus_reconnect(struct psmouse *psmouse) in psmouse_smbus_reconnect() argument 122 struct psmouse_smbus_dev *smbdev = psmouse->private; in psmouse_smbus_reconnect() 125 psmouse_deactivate(psmouse); in psmouse_smbus_reconnect() 169 static void psmouse_smbus_disconnect(struct psmouse *psmouse) in psmouse_smbus_disconnect() argument [all …]
|
D | Makefile | 20 obj-$(CONFIG_MOUSE_PS2) += psmouse.o 29 psmouse-objs := psmouse-base.o synaptics.o focaltech.o 31 psmouse-$(CONFIG_MOUSE_PS2_ALPS) += alps.o 32 psmouse-$(CONFIG_MOUSE_PS2_BYD) += byd.o 33 psmouse-$(CONFIG_MOUSE_PS2_ELANTECH) += elantech.o 34 psmouse-$(CONFIG_MOUSE_PS2_OLPC) += hgpk.o 35 psmouse-$(CONFIG_MOUSE_PS2_LOGIPS2PP) += logips2pp.o 36 psmouse-$(CONFIG_MOUSE_PS2_LIFEBOOK) += lifebook.o 37 psmouse-$(CONFIG_MOUSE_PS2_SENTELIC) += sentelic.o 38 psmouse-$(CONFIG_MOUSE_PS2_TRACKPOINT) += trackpoint.o [all …]
|
D | touchkit_ps2.c | 53 static psmouse_ret_t touchkit_ps2_process_byte(struct psmouse *psmouse) in touchkit_ps2_process_byte() argument 55 unsigned char *packet = psmouse->packet; in touchkit_ps2_process_byte() 56 struct input_dev *dev = psmouse->dev; in touchkit_ps2_process_byte() 58 if (psmouse->pktcnt != 5) in touchkit_ps2_process_byte() 69 int touchkit_ps2_detect(struct psmouse *psmouse, bool set_properties) in touchkit_ps2_detect() argument 71 struct input_dev *dev = psmouse->dev; in touchkit_ps2_detect() 79 if (ps2_command(&psmouse->ps2dev, param, command)) in touchkit_ps2_detect() 93 psmouse->vendor = "eGalax"; in touchkit_ps2_detect() 94 psmouse->name = "Touchscreen"; in touchkit_ps2_detect() 95 psmouse->protocol_handler = touchkit_ps2_process_byte; in touchkit_ps2_detect() [all …]
|
D | hgpk.h | 37 struct psmouse *psmouse; member 52 int hgpk_detect(struct psmouse *psmouse, bool set_properties); 53 int hgpk_init(struct psmouse *psmouse); 58 static inline int hgpk_detect(struct psmouse *psmouse, bool set_properties) in hgpk_detect() argument 62 static inline int hgpk_init(struct psmouse *psmouse) in hgpk_init() argument
|
D | byd.h | 6 int byd_detect(struct psmouse *psmouse, bool set_properties); 7 int byd_init(struct psmouse *psmouse); 9 static inline int byd_detect(struct psmouse *psmouse, bool set_properties) in byd_detect() argument 13 static inline int byd_init(struct psmouse *psmouse) in byd_init() argument
|
D | vmmouse.h | 17 int vmmouse_detect(struct psmouse *psmouse, bool set_properties); 18 int vmmouse_init(struct psmouse *psmouse); 20 static inline int vmmouse_detect(struct psmouse *psmouse, bool set_properties) in vmmouse_detect() argument 24 static inline int vmmouse_init(struct psmouse *psmouse) in vmmouse_init() argument
|
D | lifebook.h | 16 int lifebook_detect(struct psmouse *psmouse, bool set_properties); 17 int lifebook_init(struct psmouse *psmouse); 22 static inline int lifebook_detect(struct psmouse *psmouse, bool set_properties) in lifebook_detect() argument 26 static inline int lifebook_init(struct psmouse *psmouse) in lifebook_init() argument
|
D | alps.h | 290 struct psmouse *psmouse; member 312 int (*hw_init)(struct psmouse *psmouse); 313 void (*process_packet)(struct psmouse *psmouse); 315 struct psmouse *psmouse); 330 int alps_detect(struct psmouse *psmouse, bool set_properties); 331 int alps_init(struct psmouse *psmouse); 333 inline int alps_detect(struct psmouse *psmouse, bool set_properties) in alps_detect() argument 337 inline int alps_init(struct psmouse *psmouse) in alps_init() argument
|
D | focaltech.h | 20 int focaltech_detect(struct psmouse *psmouse, bool set_properties); 23 int focaltech_init(struct psmouse *psmouse); 25 static inline int focaltech_init(struct psmouse *psmouse) in focaltech_init() argument
|
D | synaptics.h | 210 int synaptics_detect(struct psmouse *psmouse, bool set_properties); 211 int synaptics_init_absolute(struct psmouse *psmouse); 212 int synaptics_init_relative(struct psmouse *psmouse); 213 int synaptics_init_smbus(struct psmouse *psmouse); 214 int synaptics_init(struct psmouse *psmouse); 215 void synaptics_reset(struct psmouse *psmouse);
|