Lines Matching refs:rawir
84 struct ir_raw_event rawir;
173 struct ir_raw_event rawir = { .pulse = false, .duration = 0 };
185 ret = kfifo_out(&sz->fifo, &rawir, sizeof(rawir));
186 if (ret != sizeof(rawir))
188 ir_raw_event_store(sz->idev, &rawir);
196 ret = kfifo_out(&sz->fifo, &rawir, sizeof(rawir));
197 if (ret != sizeof(rawir))
199 ir_raw_event_store(sz->idev, &rawir);
218 struct ir_raw_event rawir = { .pulse = false, .duration = 0 };
223 ret = kfifo_out(&sz->fifo, &rawir, sizeof(rawir));
224 if (ret != sizeof(rawir))
226 ir_raw_event_store(sz->idev, &rawir);
236 struct ir_raw_event rawir = { .pulse = false, .duration = 0 };
242 ret = kfifo_out(&sz->fifo, &rawir, sizeof(rawir));
243 if (ret != sizeof(rawir))
245 ir_raw_event_store(sz->idev, &rawir);
248 kfifo_in(&sz->fifo, &sz->rawir, sizeof(rawir));
269 sz->rawir.pulse = false;
272 sz->rawir.duration = IR_MAX_DURATION;
274 sz->rawir.duration = (int)(deltv * 1000000 +
277 sz->rawir.duration -= sz->sum;
278 sz->rawir.duration *= 1000;
279 sz->rawir.duration &= IR_MAX_DURATION;
281 dev_dbg(sz->dev, "ls %u\n", sz->rawir.duration);
288 sz->rawir.pulse = true;
289 sz->rawir.duration = ((int) value) * STREAMZAP_RESOLUTION;
290 sz->rawir.duration += STREAMZAP_RESOLUTION / 2;
291 sz->sum += sz->rawir.duration;
292 sz->rawir.duration *= 1000;
293 sz->rawir.duration &= IR_MAX_DURATION;
294 dev_dbg(sz->dev, "p %u\n", sz->rawir.duration);
307 sz->rawir.pulse = false;
308 sz->rawir.duration = ((int) value) * STREAMZAP_RESOLUTION;
309 sz->rawir.duration += STREAMZAP_RESOLUTION / 2;
310 sz->sum += sz->rawir.duration;
311 sz->rawir.duration *= 1000;
312 dev_dbg(sz->dev, "s %u\n", sz->rawir.duration);