Lines Matching refs:serial_ir

128 struct serial_ir {  struct
138 static struct serial_ir serial_ir; argument
185 if (serial_ir.duty_cycle > 50) in send_pulse_irdeo()
225 pulse = DIV_ROUND_CLOSEST(serial_ir.duty_cycle * (NSEC_PER_SEC / 100), in send_pulse_homebrew_softcarrier()
226 serial_ir.carrier); in send_pulse_homebrew_softcarrier()
227 space = DIV_ROUND_CLOSEST((100 - serial_ir.duty_cycle) * in send_pulse_homebrew_softcarrier()
228 (NSEC_PER_SEC / 100), serial_ir.carrier); in send_pulse_homebrew_softcarrier()
275 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
278 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
305 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
308 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
316 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
338 dev_err(&serial_ir.pdev->dev, "Trapped in interrupt"); in serial_ir_irq_handler()
356 dev_dbg(&serial_ir.pdev->dev, in serial_ir_irq_handler()
359 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler()
363 delkt = ktime_sub(kt, serial_ir.lastkt); in serial_ir_irq_handler()
368 dev_err(&serial_ir.pdev->dev, in serial_ir_irq_handler()
371 ktime_to_ns(serial_ir.lastkt)); in serial_ir_irq_handler()
382 serial_ir.lastkt = kt; in serial_ir_irq_handler()
387 mod_timer(&serial_ir.timeout_timer, in serial_ir_irq_handler()
388 jiffies + usecs_to_jiffies(serial_ir.rcdev->timeout)); in serial_ir_irq_handler()
390 ir_raw_event_handle(serial_ir.rcdev); in serial_ir_irq_handler()
469 .duration = serial_ir.rcdev->timeout in serial_ir_timeout()
471 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in serial_ir_timeout()
472 ir_raw_event_handle(serial_ir.rcdev); in serial_ir_timeout()
524 rcdev->dev.parent = &serial_ir.pdev->dev; in serial_ir_probe()
533 serial_ir.rcdev = rcdev; in serial_ir_probe()
535 timer_setup(&serial_ir.timeout_timer, serial_ir_timeout, 0); in serial_ir_probe()
567 serial_ir.duty_cycle = 50; in serial_ir_probe()
568 serial_ir.carrier = 38000; in serial_ir_probe()
605 serial_ir.lastkt = ktime_get(); in serial_ir_open()
672 serial_ir.duty_cycle = cycle; in serial_ir_tx_duty_cycle()
681 serial_ir.carrier = carrier; in serial_ir_tx_carrier()
715 serial_ir.lastkt = ktime_get(); in serial_ir_resume()
741 serial_ir.pdev = platform_device_alloc("serial_ir", 0); in serial_ir_init()
742 if (!serial_ir.pdev) { in serial_ir_init()
747 result = platform_device_add(serial_ir.pdev); in serial_ir_init()
754 platform_device_put(serial_ir.pdev); in serial_ir_init()
762 platform_device_unregister(serial_ir.pdev); in serial_ir_exit()
800 del_timer_sync(&serial_ir.timeout_timer); in serial_ir_exit_module()