Lines Matching refs:rc_state
140 static inline void m920x_parse_rc_state(struct dvb_usb_device *d, u8 rc_state, in m920x_parse_rc_state() argument
145 switch (rc_state) { in m920x_parse_rc_state()
176 deb("Unexpected rc state %02x\n", rc_state); in m920x_parse_rc_state()
185 u8 *rc_state; in m920x_rc_query() local
187 rc_state = kmalloc(2, GFP_KERNEL); in m920x_rc_query()
188 if (!rc_state) in m920x_rc_query()
192 rc_state, 1); in m920x_rc_query()
197 rc_state + 1, 1); in m920x_rc_query()
201 m920x_parse_rc_state(d, rc_state[0], state); in m920x_rc_query()
204 if (rc5_data(&d->props.rc.legacy.rc_map_table[i]) == rc_state[1]) { in m920x_rc_query()
209 if (rc_state[1] != 0) in m920x_rc_query()
210 deb("Unknown rc key %02x\n", rc_state[1]); in m920x_rc_query()
215 kfree(rc_state); in m920x_rc_query()
222 u8 *rc_state; in m920x_rc_core_query() local
225 rc_state = kmalloc(2, GFP_KERNEL); in m920x_rc_core_query()
226 if (!rc_state) in m920x_rc_core_query()
229 if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_STATE, &rc_state[0], 1)) != 0) in m920x_rc_core_query()
232 if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_KEY, &rc_state[1], 1)) != 0) in m920x_rc_core_query()
235 deb("state=0x%02x keycode=0x%02x\n", rc_state[0], rc_state[1]); in m920x_rc_core_query()
237 m920x_parse_rc_state(d, rc_state[0], &state); in m920x_rc_core_query()
244 rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, rc_state[1], 0); in m920x_rc_core_query()
247 kfree(rc_state); in m920x_rc_core_query()