Lines Matching refs:rc_state
137 static inline void m920x_parse_rc_state(struct dvb_usb_device *d, u8 rc_state, in m920x_parse_rc_state() argument
142 switch (rc_state) { in m920x_parse_rc_state()
173 deb("Unexpected rc state %02x\n", rc_state); in m920x_parse_rc_state()
182 u8 *rc_state; in m920x_rc_query() local
184 rc_state = kmalloc(2, GFP_KERNEL); in m920x_rc_query()
185 if (!rc_state) in m920x_rc_query()
189 rc_state, 1); in m920x_rc_query()
194 rc_state + 1, 1); in m920x_rc_query()
198 m920x_parse_rc_state(d, rc_state[0], state); in m920x_rc_query()
201 if (rc5_data(&d->props.rc.legacy.rc_map_table[i]) == rc_state[1]) { in m920x_rc_query()
206 if (rc_state[1] != 0) in m920x_rc_query()
207 deb("Unknown rc key %02x\n", rc_state[1]); in m920x_rc_query()
212 kfree(rc_state); in m920x_rc_query()
219 u8 *rc_state; in m920x_rc_core_query() local
222 rc_state = kmalloc(2, GFP_KERNEL); in m920x_rc_core_query()
223 if (!rc_state) in m920x_rc_core_query()
226 if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_STATE, &rc_state[0], 1)) != 0) in m920x_rc_core_query()
229 if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_KEY, &rc_state[1], 1)) != 0) in m920x_rc_core_query()
232 deb("state=0x%02x keycode=0x%02x\n", rc_state[0], rc_state[1]); in m920x_rc_core_query()
234 m920x_parse_rc_state(d, rc_state[0], &state); in m920x_rc_core_query()
241 rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, rc_state[1], 0); in m920x_rc_core_query()
244 kfree(rc_state); in m920x_rc_core_query()