Lines Matching refs:handler

24 	struct ir_raw_handler *handler;  in ir_raw_event_thread()  local
39 list_for_each_entry(handler, &ir_raw_handler_list, list) in ir_raw_event_thread()
41 handler->protocols || !handler->protocols) in ir_raw_event_thread()
42 handler->decode(dev, ev); in ir_raw_event_thread()
245 struct ir_raw_handler *handler; in change_protocol() local
249 list_for_each_entry(handler, &ir_raw_handler_list, list) { in change_protocol()
250 if (!(dev->enabled_protocols & handler->protocols) && in change_protocol()
251 (*rc_proto & handler->protocols) && handler->raw_register) in change_protocol()
252 handler->raw_register(dev); in change_protocol()
254 if ((dev->enabled_protocols & handler->protocols) && in change_protocol()
255 !(*rc_proto & handler->protocols) && in change_protocol()
256 handler->raw_unregister) in change_protocol()
257 handler->raw_unregister(dev); in change_protocol()
265 list_for_each_entry(handler, &ir_raw_handler_list, list) { in change_protocol()
266 if (handler->protocols & *rc_proto) { in change_protocol()
267 if (timeout < handler->min_timeout) in change_protocol()
268 timeout = handler->min_timeout; in change_protocol()
522 struct ir_raw_handler *handler; in ir_raw_encode_scancode() local
529 list_for_each_entry(handler, &ir_raw_handler_list, list) { in ir_raw_encode_scancode()
530 if (handler->protocols & mask && handler->encode) { in ir_raw_encode_scancode()
531 ret = handler->encode(protocol, scancode, events, max); in ir_raw_encode_scancode()
592 struct ir_raw_handler *handler; in ir_raw_encode_carrier() local
597 list_for_each_entry(handler, &ir_raw_handler_list, list) { in ir_raw_encode_carrier()
598 if (handler->protocols & mask && handler->encode) { in ir_raw_encode_carrier()
599 ret = handler->carrier; in ir_raw_encode_carrier()
659 struct ir_raw_handler *handler; in ir_raw_event_unregister() local
669 list_for_each_entry(handler, &ir_raw_handler_list, list) in ir_raw_event_unregister()
670 if (handler->raw_unregister && in ir_raw_event_unregister()
671 (handler->protocols & dev->enabled_protocols)) in ir_raw_event_unregister()
672 handler->raw_unregister(dev); in ir_raw_event_unregister()