Lines Matching refs:rc_state
144 static inline void m920x_parse_rc_state(struct dvb_usb_device *d, u8 rc_state, in m920x_parse_rc_state() argument
149 switch (rc_state) { in m920x_parse_rc_state()
180 deb("Unexpected rc state %02x\n", rc_state); in m920x_parse_rc_state()
189 u8 *rc_state; in m920x_rc_query() local
191 rc_state = kmalloc(2, GFP_KERNEL); in m920x_rc_query()
192 if (!rc_state) in m920x_rc_query()
196 rc_state, 1); in m920x_rc_query()
201 rc_state + 1, 1); in m920x_rc_query()
205 m920x_parse_rc_state(d, rc_state[0], state); in m920x_rc_query()
208 if (rc5_data(&d->props.rc.legacy.rc_map_table[i]) == rc_state[1]) { in m920x_rc_query()
213 if (rc_state[1] != 0) in m920x_rc_query()
214 deb("Unknown rc key %02x\n", rc_state[1]); in m920x_rc_query()
219 kfree(rc_state); in m920x_rc_query()
226 u8 *rc_state; in m920x_rc_core_query() local
229 rc_state = kmalloc(2, GFP_KERNEL); in m920x_rc_core_query()
230 if (!rc_state) in m920x_rc_core_query()
233 if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_STATE, &rc_state[0], 1)) != 0) in m920x_rc_core_query()
236 if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_KEY, &rc_state[1], 1)) != 0) in m920x_rc_core_query()
239 deb("state=0x%02x keycode=0x%02x\n", rc_state[0], rc_state[1]); in m920x_rc_core_query()
241 m920x_parse_rc_state(d, rc_state[0], &state); in m920x_rc_core_query()
248 rc_keydown(d->rc_dev, RC_TYPE_UNKNOWN, rc_state[1], 0); in m920x_rc_core_query()
251 kfree(rc_state); in m920x_rc_core_query()