Lines Matching refs:clkrc
251 u8 clkrc; /* Clock divider value */ member
796 u32 clkrc = info->clkrc; in ov7675_get_framerate() local
804 clkrc++; in ov7675_get_framerate()
806 clkrc = (clkrc >> 1); in ov7675_get_framerate()
810 (4 * clkrc); in ov7675_get_framerate()
818 ret = ov7670_write(sd, REG_CLKRC, info->clkrc); in ov7675_apply_framerate()
830 u32 clkrc; in ov7675_set_framerate() local
841 clkrc = 0; in ov7675_set_framerate()
844 clkrc = (5 * pll_factor * info->clock_speed * tpf->numerator) / in ov7675_set_framerate()
847 clkrc = (clkrc << 1); in ov7675_set_framerate()
848 clkrc--; in ov7675_set_framerate()
856 if (clkrc <= 0) in ov7675_set_framerate()
857 clkrc = CLK_EXT; in ov7675_set_framerate()
858 else if (clkrc > CLK_SCALE) in ov7675_set_framerate()
859 clkrc = CLK_SCALE; in ov7675_set_framerate()
860 info->clkrc = clkrc; in ov7675_set_framerate()
883 if ((info->clkrc & CLK_EXT) == 0 && (info->clkrc & CLK_SCALE) > 1) in ov7670_get_framerate_legacy()
884 tpf->denominator /= (info->clkrc & CLK_SCALE); in ov7670_get_framerate_legacy()
901 info->clkrc = (info->clkrc & 0x80) | div; in ov7670_set_framerate_legacy()
911 return ov7670_write(sd, REG_CLKRC, info->clkrc); in ov7670_set_framerate_legacy()
1083 ret = ov7670_write(sd, REG_CLKRC, info->clkrc); in ov7670_apply_fmt()
1921 info->clkrc = 0; in ov7670_probe()