Lines Matching refs:handler

24 	struct ir_raw_handler *handler;  in ir_raw_event_thread()  local
41 list_for_each_entry(handler, &ir_raw_handler_list, list) in ir_raw_event_thread()
43 handler->protocols || !handler->protocols) in ir_raw_event_thread()
44 handler->decode(dev, ev); in ir_raw_event_thread()
247 struct ir_raw_handler *handler; in change_protocol() local
251 list_for_each_entry(handler, &ir_raw_handler_list, list) { in change_protocol()
252 if (!(dev->enabled_protocols & handler->protocols) && in change_protocol()
253 (*rc_proto & handler->protocols) && handler->raw_register) in change_protocol()
254 handler->raw_register(dev); in change_protocol()
256 if ((dev->enabled_protocols & handler->protocols) && in change_protocol()
257 !(*rc_proto & handler->protocols) && in change_protocol()
258 handler->raw_unregister) in change_protocol()
259 handler->raw_unregister(dev); in change_protocol()
267 list_for_each_entry(handler, &ir_raw_handler_list, list) { in change_protocol()
268 if (handler->protocols & *rc_proto) { in change_protocol()
269 if (timeout < handler->min_timeout) in change_protocol()
270 timeout = handler->min_timeout; in change_protocol()
524 struct ir_raw_handler *handler; in ir_raw_encode_scancode() local
531 list_for_each_entry(handler, &ir_raw_handler_list, list) { in ir_raw_encode_scancode()
532 if (handler->protocols & mask && handler->encode) { in ir_raw_encode_scancode()
533 ret = handler->encode(protocol, scancode, events, max); in ir_raw_encode_scancode()
594 struct ir_raw_handler *handler; in ir_raw_encode_carrier() local
599 list_for_each_entry(handler, &ir_raw_handler_list, list) { in ir_raw_encode_carrier()
600 if (handler->protocols & mask && handler->encode) { in ir_raw_encode_carrier()
601 ret = handler->carrier; in ir_raw_encode_carrier()
661 struct ir_raw_handler *handler; in ir_raw_event_unregister() local
671 list_for_each_entry(handler, &ir_raw_handler_list, list) in ir_raw_event_unregister()
672 if (handler->raw_unregister && in ir_raw_event_unregister()
673 (handler->protocols & dev->enabled_protocols)) in ir_raw_event_unregister()
674 handler->raw_unregister(dev); in ir_raw_event_unregister()