Lines Matching refs:clkrc
244 u8 clkrc; /* Clock divider value */ member
792 u32 clkrc = info->clkrc; in ov7675_get_framerate() local
800 clkrc++; in ov7675_get_framerate()
802 clkrc = (clkrc >> 1); in ov7675_get_framerate()
806 (4 * clkrc); in ov7675_get_framerate()
814 ret = ov7670_write(sd, REG_CLKRC, info->clkrc); in ov7675_apply_framerate()
826 u32 clkrc; in ov7675_set_framerate() local
837 clkrc = 0; in ov7675_set_framerate()
840 clkrc = (5 * pll_factor * info->clock_speed * tpf->numerator) / in ov7675_set_framerate()
843 clkrc = (clkrc << 1); in ov7675_set_framerate()
844 clkrc--; in ov7675_set_framerate()
852 if (clkrc <= 0) in ov7675_set_framerate()
853 clkrc = CLK_EXT; in ov7675_set_framerate()
854 else if (clkrc > CLK_SCALE) in ov7675_set_framerate()
855 clkrc = CLK_SCALE; in ov7675_set_framerate()
856 info->clkrc = clkrc; in ov7675_set_framerate()
879 if ((info->clkrc & CLK_EXT) == 0 && (info->clkrc & CLK_SCALE) > 1) in ov7670_get_framerate_legacy()
880 tpf->denominator /= (info->clkrc & CLK_SCALE); in ov7670_get_framerate_legacy()
897 info->clkrc = (info->clkrc & 0x80) | div; in ov7670_set_framerate_legacy()
907 return ov7670_write(sd, REG_CLKRC, info->clkrc); in ov7670_set_framerate_legacy()
1090 ret = ov7670_write(sd, REG_CLKRC, info->clkrc); in ov7670_apply_fmt()
1903 info->clkrc = 0; in ov7670_probe()