Lines Matching +full:5 +full:- +full:button
1 /* SPDX-License-Identifier: GPL-2.0-only */
28 #define DOLPHIN_PROFILE_XOFFSET 8 /* x-electrode offset */
29 #define DOLPHIN_PROFILE_YOFFSET 1 /* y-electrode offset */
32 * enum SS4_PACKET_ID - defines the packet type for V8
33 * SS4_PACKET_ID_IDLE: There's no finger and no button activity.
35 * or there's button activities.
57 #define SS4PLUS_NUMSENSOR_YOFFSET 5
70 ((_b[5]) == 0x00) \
76 ((_b[2] << 5) & 0x1C00) \
82 ((_b[4] << 5) & 0x0C00) \
85 #define SS4_1F_Z_V2(_b) (((_b[5]) & 0x0F) | \
86 ((_b[5] >> 1) & 0x70) | \
94 #define SS4_BTN_V2(_b) ((_b[0] >> 5) & SS4_MASK_NORMAL_BUTTONS)
96 #define SS4_STD_MF_X_V2(_b, _i) (((_b[0 + (_i) * 3] << 5) & 0x00E0) | \
97 ((_b[1 + _i * 3] << 5) & 0x1F00) \
105 ((_b[2 + (_i) * 3] << 5) & 0x01E0) | \
133 #define SS4_TS_Y_V2(_b) -(s8)( \
141 #define SS4_MFPACKET_NO_AX 8160 /* X-Coordinate value */
142 #define SS4_MFPACKET_NO_AY 4080 /* Y-Coordinate value */
143 #define SS4_MFPACKET_NO_AX_BL 8176 /* Buttonless X-Coord value */
144 #define SS4_MFPACKET_NO_AY_BL 4088 /* Buttonless Y-Coord value */
149 * enum V7_PACKET_ID - defines the packet type for V7
150 * V7_PACKET_ID_IDLE: There's no finger and no button activity.
151 * V7_PACKET_ID_TWO: There's one or two non-resting fingers on touchpad
152 * or there's button activities.
153 * V7_PACKET_ID_MULTI: There are at least three non-resting fingers.
166 * struct alps_protocol_info - information about protocol used by a device
181 * struct alps_model_info - touchpad ID table
195 * struct alps_nibble_commands - encodings for register accesses
216 * struct alps_fields - decoded version of the report packet
223 * @first_mp: Packet is the first of a multi-packet report.
224 * @is_mp: Packet is part of a multi-packet report.
225 * @left: Left touchpad button is active.
226 * @right: Right touchpad button is active.
227 * @middle: Middle touchpad button is active.
228 * @ts_left: Left trackstick button is active.
229 * @ts_right: Right trackstick button is active.
230 * @ts_middle: Middle trackstick button is active.
254 * struct alps_data - private data structure for the ALPS driver
275 * @hw_init: Protocol-specific hardware init function.
276 * @process_packet: Protocol-specific function to process a report packet.
277 * @decode_fields: Protocol-specific function to read packet bitfields.
278 * @set_abs_params: Protocol-specific function to configure the input_dev.
280 * @multi_packet: Multi-packet data in progress.
281 * @multi_data: Saved multi-packet data.