Lines Matching refs:ival

212 	struct ti_iodelay_reg_values *ival = &iod->reg_init_conf_values;  in ti_iodelay_pinconf_set()  local
225 a_delay_coarse = cfg->a_delay / ival->cdpe; in ti_iodelay_pinconf_set()
226 a_delay_fine = ((cfg->a_delay % ival->cdpe) * 10) / ival->fdpe; in ti_iodelay_pinconf_set()
232 total_delay = c_elements * ival->cdpe + f_elements * ival->fdpe; in ti_iodelay_pinconf_set()
233 c_elements = total_delay / ival->cdpe; in ti_iodelay_pinconf_set()
234 f_elements = (total_delay % ival->cdpe) / ival->fdpe; in ti_iodelay_pinconf_set()
287 struct ti_iodelay_reg_values *ival = &iod->reg_init_conf_values; in ti_iodelay_pinconf_init_dev() local
301 ival->ref_clk_period = ti_iodelay_extract(val, reg->refclk_period_mask); in ti_iodelay_pinconf_init_dev()
302 dev_dbg(dev, "refclk_period=0x%04x\n", ival->ref_clk_period); in ti_iodelay_pinconf_init_dev()
307 ival->coarse_ref_count = in ti_iodelay_pinconf_init_dev()
309 ival->coarse_delay_count = in ti_iodelay_pinconf_init_dev()
311 if (!ival->coarse_delay_count) { in ti_iodelay_pinconf_init_dev()
316 ival->cdpe = ti_iodelay_compute_dpe(ival->ref_clk_period, in ti_iodelay_pinconf_init_dev()
317 ival->coarse_ref_count, in ti_iodelay_pinconf_init_dev()
318 ival->coarse_delay_count, 88); in ti_iodelay_pinconf_init_dev()
319 if (!ival->cdpe) { in ti_iodelay_pinconf_init_dev()
321 ival->ref_clk_period, ival->coarse_ref_count, in ti_iodelay_pinconf_init_dev()
322 ival->coarse_delay_count); in ti_iodelay_pinconf_init_dev()
326 ival->coarse_ref_count, ival->coarse_delay_count, ival->cdpe); in ti_iodelay_pinconf_init_dev()
331 ival->fine_ref_count = in ti_iodelay_pinconf_init_dev()
333 ival->fine_delay_count = in ti_iodelay_pinconf_init_dev()
335 if (!ival->fine_delay_count) { in ti_iodelay_pinconf_init_dev()
340 ival->fdpe = ti_iodelay_compute_dpe(ival->ref_clk_period, in ti_iodelay_pinconf_init_dev()
341 ival->fine_ref_count, in ti_iodelay_pinconf_init_dev()
342 ival->fine_delay_count, 264); in ti_iodelay_pinconf_init_dev()
343 if (!ival->fdpe) { in ti_iodelay_pinconf_init_dev()
345 ival->ref_clk_period, ival->fine_ref_count, in ti_iodelay_pinconf_init_dev()
346 ival->fine_delay_count); in ti_iodelay_pinconf_init_dev()
350 ival->fine_ref_count, ival->fine_delay_count, ival->fdpe); in ti_iodelay_pinconf_init_dev()