Lines Matching refs:rc_proto

45 	enum rc_proto protocol;
59 u64 rc_proto; member
63 int (*get_key_i2c)(struct i2c_client *ir, enum rc_proto *protocol,
73 enum rc_proto *protocol, u32 *scancode) in em28xx_get_key_terratec()
104 enum rc_proto *protocol, u32 *scancode) in em28xx_get_key_em_haup()
134 enum rc_proto *protocol, in em28xx_get_key_pinnacle_usb_grey()
153 enum rc_proto *protocol, in em28xx_get_key_winfast_usbii_deluxe()
217 switch (ir->rc_proto) { in default_polling_getkey()
263 switch (ir->rc_proto) { in em2874_polling_getkey()
296 enum rc_proto protocol; in em28xx_i2c_ir_handle_key()
384 static int em2860_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2860_ir_change_protocol() argument
390 if (*rc_proto & RC_PROTO_BIT_RC5) { in em2860_ir_change_protocol()
393 *rc_proto = RC_PROTO_BIT_RC5; in em2860_ir_change_protocol()
394 } else if (*rc_proto & RC_PROTO_BIT_NEC) { in em2860_ir_change_protocol()
397 *rc_proto = RC_PROTO_BIT_NEC; in em2860_ir_change_protocol()
398 } else if (*rc_proto & RC_PROTO_BIT_UNKNOWN) { in em2860_ir_change_protocol()
399 *rc_proto = RC_PROTO_BIT_UNKNOWN; in em2860_ir_change_protocol()
401 *rc_proto = ir->rc_proto; in em2860_ir_change_protocol()
407 ir->rc_proto = *rc_proto; in em2860_ir_change_protocol()
412 static int em2874_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2874_ir_change_protocol() argument
419 if (*rc_proto & RC_PROTO_BIT_RC5) { in em2874_ir_change_protocol()
422 *rc_proto = RC_PROTO_BIT_RC5; in em2874_ir_change_protocol()
423 } else if (*rc_proto & RC_PROTO_BIT_NEC) { in em2874_ir_change_protocol()
427 *rc_proto = RC_PROTO_BIT_NEC; in em2874_ir_change_protocol()
428 } else if (*rc_proto & RC_PROTO_BIT_RC6_0) { in em2874_ir_change_protocol()
432 *rc_proto = RC_PROTO_BIT_RC6_0; in em2874_ir_change_protocol()
433 } else if (*rc_proto & RC_PROTO_BIT_UNKNOWN) { in em2874_ir_change_protocol()
434 *rc_proto = RC_PROTO_BIT_UNKNOWN; in em2874_ir_change_protocol()
436 *rc_proto = ir->rc_proto; in em2874_ir_change_protocol()
443 ir->rc_proto = *rc_proto; in em2874_ir_change_protocol()
448 static int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em28xx_ir_change_protocol() argument
457 return em2860_ir_change_protocol(rc_dev, rc_proto); in em28xx_ir_change_protocol()
462 return em2874_ir_change_protocol(rc_dev, rc_proto); in em28xx_ir_change_protocol()
693 u64 rc_proto; in em28xx_ir_init() local
801 rc_proto = RC_PROTO_BIT_UNKNOWN; in em28xx_ir_init()
802 err = em28xx_ir_change_protocol(rc, &rc_proto); in em28xx_ir_init()