Lines Matching full:raw
3 * ImgTec IR Raw Decoder found in PowerDown Controller.
7 * This ties into the input subsystem using the RC-core in raw mode. Raw IR
20 struct img_ir_priv_raw *raw = &priv->raw; in img_ir_refresh_raw() local
21 struct rc_dev *rc_dev = priv->raw.rdev; in img_ir_refresh_raw()
33 if (multiple && ir_status == raw->last_status) in img_ir_refresh_raw()
35 raw->last_status = ir_status; in img_ir_refresh_raw()
37 /* report the edge to the IR raw decoders */ in img_ir_refresh_raw()
48 struct img_ir_priv_raw *raw = &priv->raw; in img_ir_isr_raw() local
51 if (!raw->rdev) in img_ir_isr_raw()
57 mod_timer(&raw->timer, jiffies + msecs_to_jiffies(ECHO_TIMEOUT_MS)); in img_ir_isr_raw()
62 * The raw decoders expect to get a final sample even if there are no edges, in
68 struct img_ir_priv *priv = from_timer(priv, t, raw.timer); in img_ir_echo_timer()
73 if (priv->raw.rdev) in img_ir_echo_timer()
87 if (!priv->raw.rdev) in img_ir_setup_raw()
101 struct img_ir_priv_raw *raw = &priv->raw; in img_ir_probe_raw() local
106 timer_setup(&raw->timer, img_ir_echo_timer, 0); in img_ir_probe_raw()
108 /* Allocate raw decoder */ in img_ir_probe_raw()
109 raw->rdev = rdev = rc_allocate_device(RC_DRIVER_IR_RAW); in img_ir_probe_raw()
111 dev_err(priv->dev, "cannot allocate raw input device\n"); in img_ir_probe_raw()
116 rdev->device_name = "IMG Infrared Decoder Raw"; in img_ir_probe_raw()
118 /* Register raw decoder */ in img_ir_probe_raw()
121 dev_err(priv->dev, "failed to register raw IR input device\n"); in img_ir_probe_raw()
123 raw->rdev = NULL; in img_ir_probe_raw()
132 struct img_ir_priv_raw *raw = &priv->raw; in img_ir_remove_raw() local
133 struct rc_dev *rdev = raw->rdev; in img_ir_remove_raw()
139 /* switch off and disable raw (edge) interrupts */ in img_ir_remove_raw()
141 raw->rdev = NULL; in img_ir_remove_raw()
150 del_timer_sync(&raw->timer); in img_ir_remove_raw()