Lines Matching refs:pcd
1021 unsigned long long pcd; in get_pcd() local
1026 pcd = (unsigned long long)(clk_get_rate(fbi->clk) / 10000); in get_pcd()
1027 pcd *= pixclock; in get_pcd()
1028 do_div(pcd, 100000000 * 2); in get_pcd()
1031 return (unsigned int)pcd; in get_pcd()
1040 static inline void set_hsync_time(struct pxafb_info *fbi, unsigned int pcd) in set_hsync_time() argument
1044 if ((pcd == 0) || (fbi->fb.var.hsync_len == 0)) { in set_hsync_time()
1049 htime = clk_get_rate(fbi->clk) / (pcd * fbi->fb.var.hsync_len); in set_hsync_time()
1324 unsigned int lines_per_panel, pcd = get_pcd(fbi, var->pixclock); in setup_parallel_timing() local
1352 if (pcd) { in setup_parallel_timing()
1353 fbi->reg_lccr3 |= LCCR3_PixClkDiv(pcd); in setup_parallel_timing()
1354 set_hsync_time(fbi, pcd); in setup_parallel_timing()
1661 u_int pcd; in pxafb_freq_transition() local
1672 pcd = get_pcd(fbi, fbi->fb.var.pixclock); in pxafb_freq_transition()
1673 set_hsync_time(fbi, pcd); in pxafb_freq_transition()
1675 LCCR3_PixClkDiv(pcd); in pxafb_freq_transition()