Lines Matching refs:poll_result

195 				  struct em28xx_ir_poll_result *poll_result)  in default_polling_getkey()  argument
211 poll_result->toggle_bit = (msg[0] >> 7); in default_polling_getkey()
214 poll_result->read_count = (msg[0] & 0x7f); in default_polling_getkey()
219 poll_result->protocol = RC_PROTO_RC5; in default_polling_getkey()
220 poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); in default_polling_getkey()
224 poll_result->protocol = RC_PROTO_NEC; in default_polling_getkey()
225 poll_result->scancode = RC_SCANCODE_NEC(msg[1], msg[2]); in default_polling_getkey()
229 poll_result->protocol = RC_PROTO_UNKNOWN; in default_polling_getkey()
230 poll_result->scancode = msg[1] << 8 | msg[2]; in default_polling_getkey()
238 struct em28xx_ir_poll_result *poll_result) in em2874_polling_getkey() argument
254 poll_result->toggle_bit = (msg[0] >> 7); in em2874_polling_getkey()
257 poll_result->read_count = (msg[0] & 0x7f); in em2874_polling_getkey()
265 poll_result->protocol = RC_PROTO_RC5; in em2874_polling_getkey()
266 poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); in em2874_polling_getkey()
270 poll_result->scancode = ir_nec_bytes_to_scancode(msg[1], msg[2], msg[3], msg[4], in em2874_polling_getkey()
271 &poll_result->protocol); in em2874_polling_getkey()
275 poll_result->protocol = RC_PROTO_RC6_0; in em2874_polling_getkey()
276 poll_result->scancode = RC_SCANCODE_RC6_0(msg[1], msg[2]); in em2874_polling_getkey()
280 poll_result->protocol = RC_PROTO_UNKNOWN; in em2874_polling_getkey()
281 poll_result->scancode = (msg[1] << 24) | (msg[2] << 16) | in em2874_polling_getkey()
316 struct em28xx_ir_poll_result poll_result; in em28xx_ir_handle_key() local
319 result = ir->get_key(ir, &poll_result); in em28xx_ir_handle_key()
325 if (unlikely(poll_result.read_count != ir->last_readcount)) { in em28xx_ir_handle_key()
327 poll_result.toggle_bit, poll_result.read_count, in em28xx_ir_handle_key()
328 poll_result.scancode); in em28xx_ir_handle_key()
331 poll_result.protocol, in em28xx_ir_handle_key()
332 poll_result.scancode, in em28xx_ir_handle_key()
333 poll_result.toggle_bit); in em28xx_ir_handle_key()
337 poll_result.scancode & 0xff, in em28xx_ir_handle_key()
338 poll_result.toggle_bit); in em28xx_ir_handle_key()
352 ir->last_readcount = poll_result.read_count; in em28xx_ir_handle_key()