Lines Matching refs:cyapa
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 *);
265 int (*bl_activate)(struct cyapa *);
266 int (*bl_initiate)(struct cyapa *, const struct firmware *);
267 int (*update_fw)(struct cyapa *, const struct firmware *);
268 int (*bl_deactivate)(struct cyapa *);
275 int (*initialize)(struct cyapa *cyapa);
277 int (*state_parse)(struct cyapa *cyapa, u8 *reg_status, int len);
278 int (*operational_check)(struct cyapa *cyapa);
280 int (*irq_handler)(struct cyapa *);
281 bool (*irq_cmd_handler)(struct cyapa *);
282 int (*sort_empty_output_data)(struct cyapa *,
285 int (*set_power_mode)(struct cyapa *, u8, u16, enum cyapa_pm_stage);
287 int (*set_proximity)(struct cyapa *, bool);
331 struct cyapa { struct
387 ssize_t cyapa_i2c_reg_read_block(struct cyapa *cyapa, u8 reg, size_t len, argument
389 ssize_t cyapa_smbus_read_block(struct cyapa *cyapa, u8 cmd, size_t len,
392 ssize_t cyapa_read_block(struct cyapa *cyapa, u8 cmd_idx, u8 *values);
394 int cyapa_poll_state(struct cyapa *cyapa, unsigned int timeout);
399 ssize_t cyapa_i2c_pip_read(struct cyapa *cyapa, u8 *buf, size_t size);
400 ssize_t cyapa_i2c_pip_write(struct cyapa *cyapa, u8 *buf, size_t size);
401 int cyapa_empty_pip_output_data(struct cyapa *cyapa,
403 int cyapa_i2c_pip_cmd_irq_sync(struct cyapa *cyapa,
409 int cyapa_pip_state_parse(struct cyapa *cyapa, u8 *reg_data, int len);
410 bool cyapa_pip_sort_system_info_data(struct cyapa *cyapa, u8 *buf, int len);
411 bool cyapa_sort_tsg_pip_bl_resp_data(struct cyapa *cyapa, u8 *data, int len);
412 int cyapa_pip_deep_sleep(struct cyapa *cyapa, u8 state);
413 bool cyapa_sort_tsg_pip_app_resp_data(struct cyapa *cyapa, u8 *data, int len);
414 int cyapa_pip_bl_exit(struct cyapa *cyapa);
415 int cyapa_pip_bl_enter(struct cyapa *cyapa);
418 bool cyapa_is_pip_bl_mode(struct cyapa *cyapa);
419 bool cyapa_is_pip_app_mode(struct cyapa *cyapa);
420 int cyapa_pip_cmd_state_initialize(struct cyapa *cyapa);
422 int cyapa_pip_resume_scanning(struct cyapa *cyapa);
423 int cyapa_pip_suspend_scanning(struct cyapa *cyapa);
425 int cyapa_pip_check_fw(struct cyapa *cyapa, const struct firmware *fw);
426 int cyapa_pip_bl_initiate(struct cyapa *cyapa, const struct firmware *fw);
427 int cyapa_pip_do_fw_update(struct cyapa *cyapa, const struct firmware *fw);
428 int cyapa_pip_bl_activate(struct cyapa *cyapa);
429 int cyapa_pip_bl_deactivate(struct cyapa *cyapa);
433 int cyapa_pip_set_proximity(struct cyapa *cyapa, bool enable);
435 bool cyapa_pip_irq_cmd_handler(struct cyapa *cyapa);
436 int cyapa_pip_irq_handler(struct cyapa *cyapa);