Searched refs:cyapa (Results 1 – 7 of 7) sorted by relevance
/drivers/input/mouse/ |
D | cyapa.c | 42 static int cyapa_reinitialize(struct cyapa *cyapa); 44 bool cyapa_is_pip_bl_mode(struct cyapa *cyapa) in cyapa_is_pip_bl_mode() argument 46 if (cyapa->gen == CYAPA_GEN6 && cyapa->state == CYAPA_STATE_GEN6_BL) in cyapa_is_pip_bl_mode() 49 if (cyapa->gen == CYAPA_GEN5 && cyapa->state == CYAPA_STATE_GEN5_BL) in cyapa_is_pip_bl_mode() 55 bool cyapa_is_pip_app_mode(struct cyapa *cyapa) in cyapa_is_pip_app_mode() argument 57 if (cyapa->gen == CYAPA_GEN6 && cyapa->state == CYAPA_STATE_GEN6_APP) in cyapa_is_pip_app_mode() 60 if (cyapa->gen == CYAPA_GEN5 && cyapa->state == CYAPA_STATE_GEN5_APP) in cyapa_is_pip_app_mode() 66 static bool cyapa_is_bootloader_mode(struct cyapa *cyapa) in cyapa_is_bootloader_mode() argument 68 if (cyapa_is_pip_bl_mode(cyapa)) in cyapa_is_bootloader_mode() 71 if (cyapa->gen == CYAPA_GEN3 && in cyapa_is_bootloader_mode() [all …]
|
D | cyapa.h | 239 #define PIP_DEV_SET_PWR_STATE(cyapa, s) ((cyapa)->dev_pwr_mode = (s)) argument 240 #define PIP_DEV_GET_PWR_STATE(cyapa) ((cyapa)->dev_pwr_mode) argument 241 #define PIP_DEV_SET_SLEEP_TIME(cyapa, t) ((cyapa)->dev_sleep_time = (t)) argument 242 #define PIP_DEV_GET_SLEEP_TIME(cyapa) ((cyapa)->dev_sleep_time) argument 243 #define PIP_DEV_UNINIT_SLEEP_TIME(cyapa) \ argument 244 (((cyapa)->dev_sleep_time) == UNINIT_SLEEP_TIME) 249 struct cyapa; 251 typedef bool (*cb_sort)(struct cyapa *, u8 *, int); 263 int (*check_fw)(struct cyapa *, const struct firmware *); 264 int (*bl_enter)(struct cyapa *); [all …]
|
D | cyapa_gen6.c | 75 static bool cyapa_sort_pip_hid_descriptor_data(struct cyapa *cyapa, in cyapa_sort_pip_hid_descriptor_data() argument 88 static int cyapa_get_pip_fixed_info(struct cyapa *cyapa, in cyapa_get_pip_fixed_info() argument 99 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, in cyapa_get_pip_fixed_info() 116 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, in cyapa_get_pip_fixed_info() 136 int cyapa_pip_state_parse(struct cyapa *cyapa, u8 *reg_data, int len) in cyapa_pip_state_parse() argument 145 cyapa->state = CYAPA_STATE_NO_DEVICE; in cyapa_pip_state_parse() 148 cyapa_pip_deep_sleep(cyapa, PIP_DEEP_SLEEP_STATE_ON); in cyapa_pip_state_parse() 151 cyapa_empty_pip_output_data(cyapa, NULL, NULL, NULL); in cyapa_pip_state_parse() 158 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, in cyapa_pip_state_parse() 176 error = cyapa_get_pip_fixed_info(cyapa, &pip_info, is_bootloader); in cyapa_pip_state_parse() [all …]
|
D | cyapa_gen3.c | 229 static int cyapa_gen3_try_poll_handler(struct cyapa *cyapa); 244 ssize_t cyapa_smbus_read_block(struct cyapa *cyapa, u8 cmd, size_t len, in cyapa_smbus_read_block() argument 251 struct i2c_client *client = cyapa->client; in cyapa_smbus_read_block() 277 static s32 cyapa_read_byte(struct cyapa *cyapa, u8 cmd_idx) in cyapa_read_byte() argument 281 if (cyapa->smbus) { in cyapa_read_byte() 287 return i2c_smbus_read_byte_data(cyapa->client, cmd); in cyapa_read_byte() 290 static s32 cyapa_write_byte(struct cyapa *cyapa, u8 cmd_idx, u8 value) in cyapa_write_byte() argument 294 if (cyapa->smbus) { in cyapa_write_byte() 300 return i2c_smbus_write_byte_data(cyapa->client, cmd, value); in cyapa_write_byte() 303 ssize_t cyapa_i2c_reg_read_block(struct cyapa *cyapa, u8 reg, size_t len, in cyapa_i2c_reg_read_block() argument [all …]
|
D | cyapa_gen5.c | 345 static int cyapa_pip_event_process(struct cyapa *cyapa, 348 int cyapa_pip_cmd_state_initialize(struct cyapa *cyapa) in cyapa_pip_cmd_state_initialize() argument 350 struct cyapa_pip_cmd_states *pip = &cyapa->cmd_states.pip; in cyapa_pip_cmd_state_initialize() 364 cyapa->dev_pwr_mode = UNINIT_PWR_MODE; in cyapa_pip_cmd_state_initialize() 365 cyapa->dev_sleep_time = UNINIT_SLEEP_TIME; in cyapa_pip_cmd_state_initialize() 371 ssize_t cyapa_i2c_pip_read(struct cyapa *cyapa, u8 *buf, size_t size) in cyapa_i2c_pip_read() argument 381 ret = i2c_master_recv(cyapa->client, buf, size); in cyapa_i2c_pip_read() 391 ssize_t cyapa_i2c_pip_write(struct cyapa *cyapa, u8 *buf, size_t size) in cyapa_i2c_pip_write() argument 398 ret = i2c_master_send(cyapa->client, buf, size); in cyapa_i2c_pip_write() 406 static void cyapa_set_pip_pm_state(struct cyapa *cyapa, in cyapa_set_pip_pm_state() argument [all …]
|
D | Makefile | 28 cyapatp-objs := cyapa.o cyapa_gen3.o cyapa_gen5.o cyapa_gen6.o
|
D | Kconfig | 271 called cyapa.
|