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