Lines Matching defs:raw
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;
21 struct rc_dev *rc_dev = priv->raw.rdev;
33 if (multiple && ir_status == raw->last_status)
35 raw->last_status = ir_status;
37 /* report the edge to the IR raw decoders */
48 struct img_ir_priv_raw *raw = &priv->raw;
51 if (!raw->rdev)
57 mod_timer(&raw->timer, jiffies + msecs_to_jiffies(ECHO_TIMEOUT_MS));
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);
73 if (priv->raw.rdev)
87 if (!priv->raw.rdev)
101 struct img_ir_priv_raw *raw = &priv->raw;
106 timer_setup(&raw->timer, img_ir_echo_timer, 0);
108 /* Allocate raw decoder */
109 raw->rdev = rdev = rc_allocate_device(RC_DRIVER_IR_RAW);
111 dev_err(priv->dev, "cannot allocate raw input device\n");
118 /* Register raw decoder */
121 dev_err(priv->dev, "failed to register raw IR input device\n");
123 raw->rdev = NULL;
132 struct img_ir_priv_raw *raw = &priv->raw;
133 struct rc_dev *rdev = raw->rdev;
139 /* switch off and disable raw (edge) interrupts */
141 raw->rdev = NULL;
150 del_timer_sync(&raw->timer);