Lines Matching +full:cmd +full:- +full:timeout +full:- +full:ms
6 * Copyright (C) 2014-2015 Cypress Semiconductor, Inc.
20 #define CYAPA_GEN3 0x03 /* support MT-protocol B with tracking ID. */
31 #define SMBUS_ENCODE_IDX(cmd, idx) ((cmd) | (((idx) & 0x03) << 1)) argument
32 #define SMBUS_ENCODE_RW(cmd, rw) ((cmd) | ((rw) & 0x01)) argument
63 * bit 6 - 4: Reserved
64 * bit 3 - 2: Power status
65 * bit 1 - 0: Device status
76 * bit 7 - 4: Number of touched finger
91 * Write-only command file register used to issue commands and
102 * bit 6 - 5: Reserved
104 * bit 3 - 2: Reserved
127 * bit 1 - 0: Reserved
150 #define PWR_MODE_IDLE (0x03 << 2) /* Default rt suspend scanrate: 30ms */
151 #define PWR_MODE_SLEEP (0x05 << 2) /* Default suspend scanrate: 50ms */
161 #define AUTOSUSPEND_DELAY 2000 /* unit : ms */
228 #define VALID_CMD_RESP_HEADER(resp, cmd) \ argument
231 (GET_PIP_CMD_CODE((resp)[PIP_RESP_APP_CMD_OFFSET]) == (cmd)))
239 #define PIP_DEV_SET_PWR_STATE(cyapa, s) ((cyapa)->dev_pwr_mode = (s))
240 #define PIP_DEV_GET_PWR_STATE(cyapa) ((cyapa)->dev_pwr_mode)
241 #define PIP_DEV_SET_SLEEP_TIME(cyapa, t) ((cyapa)->dev_sleep_time = (t))
242 #define PIP_DEV_GET_SLEEP_TIME(cyapa) ((cyapa)->dev_sleep_time)
244 (((cyapa)->dev_sleep_time) == UNINIT_SLEEP_TIME)
389 ssize_t cyapa_smbus_read_block(struct cyapa *cyapa, u8 cmd, size_t len,
394 int cyapa_poll_state(struct cyapa *cyapa, unsigned int timeout);
404 u8 *cmd, int cmd_len,
406 unsigned long timeout,