Home
last modified time | relevance | path

Searched refs:clockdiv (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/net/can/mscan/
Dmpc5xxx_can.c113 u32 clockdiv; in mpc512x_can_get_clock() local
129 clockdiv = 1; in mpc512x_can_get_clock()
130 of_property_read_u32(np, "fsl,mscan-clock-divider", &clockdiv); in mpc512x_can_get_clock()
132 clock_source ? clock_source : "<NULL>", clockdiv); in mpc512x_can_get_clock()
174 clockdiv = freq_calc / 16000000; in mpc512x_can_get_clock()
177 freq_calc, clockdiv, freq_calc / clockdiv); in mpc512x_can_get_clock()
225 freq_calc /= clockdiv; in mpc512x_can_get_clock()
/linux-6.12.1/drivers/media/usb/gspca/
Dpac7302.c488 u8 clockdiv; in setexposure() local
496 clockdiv = (90 * gspca_dev->exposure->val + 1999) / 2000; in setexposure()
504 if (clockdiv < 6) in setexposure()
505 clockdiv = 6; in setexposure()
506 else if (clockdiv > 63) in setexposure()
507 clockdiv = 63; in setexposure()
514 if (clockdiv < 6 || clockdiv > 12) in setexposure()
515 clockdiv = ((clockdiv + 2) / 3) * 3; in setexposure()
521 exposure = (gspca_dev->exposure->val * 45 * 448) / (1000 * clockdiv); in setexposure()
526 reg_w(gspca_dev, 0x02, clockdiv); in setexposure()
Dmr97310a.c833 u8 clockdiv = (60 * expo + 7999) / 8000; in setexposure() local
836 if (clockdiv < min_clockdiv && gspca_dev->pixfmt.width >= 320) in setexposure()
837 clockdiv = min_clockdiv; in setexposure()
838 else if (clockdiv < 2) in setexposure()
839 clockdiv = 2; in setexposure()
841 if (sd->cam_type == CAM_TYPE_VGA && clockdiv < 4) in setexposure()
842 clockdiv = 4; in setexposure()
846 exposure = (60 * 511 * expo) / (8000 * clockdiv); in setexposure()
856 sensor_write1(gspca_dev, 0x02, clockdiv); in setexposure()
918 static const struct v4l2_ctrl_config clockdiv = { in sd_init_controls() local
[all …]
Dov519.c95 u8 clockdiv; /* clockdiv override */ member
3519 sd->clockdiv = 3; in ov511_mode_init_regs()
3540 sd->clockdiv = 0; in ov511_mode_init_regs()
3548 sd->clockdiv = 1; in ov511_mode_init_regs()
3551 sd->clockdiv = 2; in ov511_mode_init_regs()
3554 sd->clockdiv = 5; in ov511_mode_init_regs()
3558 sd->clockdiv = (sd->clockdiv + 1) * 2 - 1; in ov511_mode_init_regs()
3560 if (sd->clockdiv > 10) in ov511_mode_init_regs()
3561 sd->clockdiv = 10; in ov511_mode_init_regs()
3567 sd->clockdiv = 0; in ov511_mode_init_regs()
[all …]
/linux-6.12.1/drivers/clk/sophgo/
Dclk-cv18xx-ip.c134 u32 clockdiv = 1; in div_helper_get_clockdiv() local
146 clockdiv = cv1800_clk_regfield_get(reg, div); in div_helper_get_clockdiv()
148 clockdiv = div->initval; in div_helper_get_clockdiv()
150 return clockdiv; in div_helper_get_clockdiv()
/linux-6.12.1/include/media/
Dipu-bridge.h75 u32 clockdiv; member