Lines Matching defs:max
304 * @max: Maximum number of raw events to fill.
311 * to @max raw IR events using the *@ev pointer.
315 * full encoded data. In this case all @max events will have been
318 int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max,
329 if (!max--)
333 if (!max--)
351 if (!max--)
357 if (!max--)
367 else if (!max--)
386 * @max: Maximum number of raw events to fill.
393 * to @max raw IR events using the *@ev pointer.
397 * full encoded data. In this case all @max events will have been
400 int ir_raw_gen_pd(struct ir_raw_event **ev, unsigned int max,
409 ret = ir_raw_gen_pulse_space(ev, &max, timings->header_pulse,
418 ret = ir_raw_gen_pulse_space(ev, &max,
427 ret = ir_raw_gen_pulse_space(ev, &max,
435 ret = ir_raw_gen_pulse_space(ev, &max, timings->trailer_pulse,
445 * @max: Maximum number of raw events to fill.
452 * to @max raw IR events using the *@ev pointer.
456 * full encoded data. In this case all @max events will have been
459 int ir_raw_gen_pl(struct ir_raw_event **ev, unsigned int max,
467 if (!max--)
474 if (!max--)
478 if (!max--)
485 if (!max--)
489 if (!max--)
496 if (!max--)
511 * @max: max number of raw events
517 * encoding. In this case all @max events will have been written.
522 struct ir_raw_event *events, unsigned int max)
533 ret = handler->encode(protocol, scancode, events, max);