Lines Matching full:timings

63 /* functions for preprocessing timings, ensuring max is set */
84 static void img_ir_timings_preprocess(struct img_ir_timings *timings, in img_ir_timings_preprocess() argument
87 img_ir_symbol_timing_preprocess(&timings->ldr, unit); in img_ir_timings_preprocess()
88 img_ir_symbol_timing_preprocess(&timings->s00, unit); in img_ir_timings_preprocess()
89 img_ir_symbol_timing_preprocess(&timings->s01, unit); in img_ir_timings_preprocess()
90 img_ir_symbol_timing_preprocess(&timings->s10, unit); in img_ir_timings_preprocess()
91 img_ir_symbol_timing_preprocess(&timings->s11, unit); in img_ir_timings_preprocess()
95 timings->ft.ft_min = (timings->ft.ft_min*unit + 999)/1000; in img_ir_timings_preprocess()
116 static void img_ir_timings_defaults(struct img_ir_timings *timings, in img_ir_timings_defaults() argument
119 img_ir_symbol_timing_defaults(&timings->ldr, &defaults->ldr); in img_ir_timings_defaults()
120 img_ir_symbol_timing_defaults(&timings->s00, &defaults->s00); in img_ir_timings_defaults()
121 img_ir_symbol_timing_defaults(&timings->s01, &defaults->s01); in img_ir_timings_defaults()
122 img_ir_symbol_timing_defaults(&timings->s10, &defaults->s10); in img_ir_timings_defaults()
123 img_ir_symbol_timing_defaults(&timings->s11, &defaults->s11); in img_ir_timings_defaults()
124 if (!timings->ft.ft_min) in img_ir_timings_defaults()
125 timings->ft.ft_min = defaults->ft.ft_min; in img_ir_timings_defaults()
128 /* functions for converting timings to register values */
284 * img_ir_timings_convert() - Convert timings to register values
286 * @timings: Input timing data
291 const struct img_ir_timings *timings, in img_ir_timings_convert() argument
295 /* leader symbol timings are divided by 16 */ in img_ir_timings_convert()
296 regs->ldr = img_ir_symbol_timing(&timings->ldr, tolerance, clock_hz, in img_ir_timings_convert()
298 /* other symbol timings, pd fields only are divided by 2 */ in img_ir_timings_convert()
299 regs->s00 = img_ir_symbol_timing(&timings->s00, tolerance, clock_hz, in img_ir_timings_convert()
301 regs->s01 = img_ir_symbol_timing(&timings->s01, tolerance, clock_hz, in img_ir_timings_convert()
303 regs->s10 = img_ir_symbol_timing(&timings->s10, tolerance, clock_hz, in img_ir_timings_convert()
305 regs->s11 = img_ir_symbol_timing(&timings->s11, tolerance, clock_hz, in img_ir_timings_convert()
307 regs->ft = img_ir_free_timing(&timings->ft, clock_hz); in img_ir_timings_convert()
311 * img_ir_decoder_preprocess() - Preprocess timings in decoder.
326 img_ir_timings_preprocess(&decoder->timings, decoder->unit); in img_ir_decoder_preprocess()
328 /* do the same for repeat timings if applicable */ in img_ir_decoder_preprocess()
331 img_ir_timings_defaults(&decoder->rtimings, &decoder->timings); in img_ir_decoder_preprocess()
336 * img_ir_decoder_convert() - Generate internal timings in decoder.
337 * @decoder: Decoder to be converted to internal timings.
341 * Fills out the repeat timings and timing register values for a specific clock
352 img_ir_timings_convert(&reg_timings->timings, &decoder->timings, in img_ir_decoder_convert()
355 /* do the same for repeat timings if applicable */ in img_ir_decoder_convert()
363 * img_ir_write_timings() - Write timings to the hardware now
389 dev_dbg(priv->dev, "timings: ldr=%#x, s=[%#x, %#x, %#x, %#x], ft=%#x\n", in img_ir_write_timings()
607 /* write the new timings */ in img_ir_set_decoder()
609 img_ir_write_timings(priv, &hw->reg_timings.timings, RC_FILTER_NORMAL); in img_ir_set_decoder()
739 img_ir_write_timings(priv, &hw->reg_timings.timings, in img_ir_enable_wake()
776 img_ir_write_timings(priv, &hw->reg_timings.timings, in img_ir_disable_wake()
791 /* switch to repeat timings */ in img_ir_begin_repeat()
805 /* switch to normal timings */ in img_ir_end_repeat()
808 img_ir_write_timings(priv, &hw->reg_timings.timings, in img_ir_end_repeat()
911 /* refresh current timings */ in img_ir_change_frequency()
917 img_ir_write_timings(priv, &hw->reg_timings.timings, in img_ir_change_frequency()
926 img_ir_write_timings(priv, &hw->reg_timings.timings, in img_ir_change_frequency()