Lines Matching refs:ps2dev
73 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_read() local
86 ps2_begin_command(ps2dev); in fsp_reg_read()
88 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_reg_read()
92 ps2_sendbyte(ps2dev, 0x66, FSP_CMD_TIMEOUT2); in fsp_reg_read()
94 ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2); in fsp_reg_read()
96 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_reg_read()
100 ps2_sendbyte(ps2dev, 0x68, FSP_CMD_TIMEOUT2); in fsp_reg_read()
103 ps2_sendbyte(ps2dev, 0xcc, FSP_CMD_TIMEOUT2); in fsp_reg_read()
107 ps2_sendbyte(ps2dev, 0x66, FSP_CMD_TIMEOUT2); in fsp_reg_read()
111 ps2_sendbyte(ps2dev, addr, FSP_CMD_TIMEOUT); in fsp_reg_read()
113 if (__ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO) < 0) in fsp_reg_read()
120 ps2_end_command(ps2dev); in fsp_reg_read()
130 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_write() local
134 ps2_begin_command(ps2dev); in fsp_reg_write()
136 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_reg_write()
141 ps2_sendbyte(ps2dev, 0x74, FSP_CMD_TIMEOUT2); in fsp_reg_write()
145 ps2_sendbyte(ps2dev, 0x77, FSP_CMD_TIMEOUT2); in fsp_reg_write()
148 ps2_sendbyte(ps2dev, 0x55, FSP_CMD_TIMEOUT2); in fsp_reg_write()
152 ps2_sendbyte(ps2dev, v, FSP_CMD_TIMEOUT2); in fsp_reg_write()
154 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_reg_write()
159 ps2_sendbyte(ps2dev, 0x47, FSP_CMD_TIMEOUT2); in fsp_reg_write()
162 ps2_sendbyte(ps2dev, 0x44, FSP_CMD_TIMEOUT2); in fsp_reg_write()
165 ps2_sendbyte(ps2dev, 0x33, FSP_CMD_TIMEOUT2); in fsp_reg_write()
169 ps2_sendbyte(ps2dev, v, FSP_CMD_TIMEOUT2); in fsp_reg_write()
173 ps2_end_command(ps2dev); in fsp_reg_write()
203 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_page_reg_read() local
209 ps2_begin_command(ps2dev); in fsp_page_reg_read()
211 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_page_reg_read()
214 ps2_sendbyte(ps2dev, 0x66, FSP_CMD_TIMEOUT2); in fsp_page_reg_read()
215 ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2); in fsp_page_reg_read()
217 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_page_reg_read()
220 ps2_sendbyte(ps2dev, 0x83, FSP_CMD_TIMEOUT2); in fsp_page_reg_read()
221 ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2); in fsp_page_reg_read()
224 if (__ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO)) in fsp_page_reg_read()
231 ps2_end_command(ps2dev); in fsp_page_reg_read()
241 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_page_reg_write() local
245 ps2_begin_command(ps2dev); in fsp_page_reg_write()
247 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_page_reg_write()
250 ps2_sendbyte(ps2dev, 0x38, FSP_CMD_TIMEOUT2); in fsp_page_reg_write()
251 ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2); in fsp_page_reg_write()
253 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_page_reg_write()
257 ps2_sendbyte(ps2dev, 0x47, FSP_CMD_TIMEOUT2); in fsp_page_reg_write()
260 ps2_sendbyte(ps2dev, 0x44, FSP_CMD_TIMEOUT2); in fsp_page_reg_write()
263 ps2_sendbyte(ps2dev, 0x33, FSP_CMD_TIMEOUT2); in fsp_page_reg_write()
266 ps2_sendbyte(ps2dev, v, FSP_CMD_TIMEOUT2); in fsp_page_reg_write()
270 ps2_end_command(ps2dev); in fsp_page_reg_write()
841 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_activate_protocol() local
850 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRATE); in fsp_activate_protocol()
852 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRATE); in fsp_activate_protocol()
854 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRATE); in fsp_activate_protocol()
856 ps2_command(ps2dev, param, PSMOUSE_CMD_GETID); in fsp_activate_protocol()
989 sysfs_remove_group(&psmouse->ps2dev.serio->dev.kobj, in fsp_disconnect()
1053 error = sysfs_create_group(&psmouse->ps2dev.serio->dev.kobj, in fsp_init()