Lines Matching refs:reg_w
2037 static void reg_w(struct sd *sd, u16 index, u16 value) in reg_w() function
2173 reg_w(sd, index, value); in reg_w_mask()
2212 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov511_i2c_w()
2215 reg_w(sd, R51x_I2C_DATA, value); in ov511_i2c_w()
2218 reg_w(sd, R511_I2C_CTL, 0x01); in ov511_i2c_w()
2244 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov511_i2c_r()
2247 reg_w(sd, R511_I2C_CTL, 0x03); in ov511_i2c_r()
2260 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
2271 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r()
2284 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
2297 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r()
2316 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov518_i2c_w()
2319 reg_w(sd, R51x_I2C_DATA, value); in ov518_i2c_w()
2322 reg_w(sd, R518_I2C_CTL, 0x01); in ov518_i2c_w()
2342 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov518_i2c_r()
2345 reg_w(sd, R518_I2C_CTL, 0x03); in ov518_i2c_r()
2349 reg_w(sd, R518_I2C_CTL, 0x05); in ov518_i2c_r()
2501 reg_w(sd, R51x_SYS_RESET, 0x3d); in ov51x_stop()
2508 reg_w(sd, OV519_R51_RESET1, 0x0f); in ov51x_stop()
2509 reg_w(sd, OV519_R51_RESET1, 0x00); in ov51x_stop()
2510 reg_w(sd, 0x22, 0x00); /* FRAR */ in ov51x_stop()
2516 reg_w(sd, 0x3c, 0x0a05); /* stop USB transfer */ in ov51x_stop()
2536 reg_w(sd, R51x_SYS_RESET, 0x00); in ov51x_restart()
2540 reg_w(sd, 0x2f, 0x80); in ov51x_restart()
2541 reg_w(sd, R51x_SYS_RESET, 0x00); in ov51x_restart()
2544 reg_w(sd, OV519_R51_RESET1, 0x0f); in ov51x_restart()
2545 reg_w(sd, OV519_R51_RESET1, 0x00); in ov51x_restart()
2546 reg_w(sd, 0x22, 0x1d); /* FRAR */ in ov51x_restart()
2552 reg_w(sd, 0x3c, 0x8a05); /* USB FIFO enable */ in ov51x_restart()
2605 reg_w(sd, OVFX2_I2C_ADDR, slave); in ov51x_set_slave_ids()
2612 reg_w(sd, R51x_I2C_W_SID, slave); in ov51x_set_slave_ids()
2613 reg_w(sd, R51x_I2C_R_SID, slave + 1); in ov51x_set_slave_ids()
2621 reg_w(sd, regvals->reg, regvals->val); in write_regvals()
2853 reg_w(sd, R511_SYS_LED_CTL, on); in ov51x_led_control()
2880 reg_w(sd, R51x_SYS_SNAP, 0x02); in sd_reset_snapshot()
2881 reg_w(sd, R51x_SYS_SNAP, 0x00); in sd_reset_snapshot()
2885 reg_w(sd, R51x_SYS_SNAP, 0x02); /* Reset */ in sd_reset_snapshot()
2886 reg_w(sd, R51x_SYS_SNAP, 0x01); /* Enable */ in sd_reset_snapshot()
2889 reg_w(sd, R51x_SYS_RESET, 0x40); in sd_reset_snapshot()
2890 reg_w(sd, R51x_SYS_RESET, 0x00); in sd_reset_snapshot()
2956 reg_w(sd, reg, val0); in ov51x_upload_quan_tables()
2963 reg_w(sd, reg + size, val0); in ov51x_upload_quan_tables()
3104 reg_w(sd, 0x2f, 0x80); in ov518_configure()
3222 reg_w(sd, 0xa4, fr_tb[sd->gspca_dev.curr_mode][fr][0]); in ov519_set_fr()
3223 reg_w(sd, 0x23, fr_tb[sd->gspca_dev.curr_mode][fr][1]); in ov519_set_fr()
3433 reg_w(sd, OV519_R57_SNAPSHOT, 0x23); in sd_init()
3501 reg_w(sd, R51x_FIFO_PSIZE, packet_size >> 5); in ov511_mode_init_regs()
3503 reg_w(sd, R511_CAM_UV_EN, 0x01); in ov511_mode_init_regs()
3504 reg_w(sd, R511_SNAP_UV_EN, 0x01); in ov511_mode_init_regs()
3505 reg_w(sd, R511_SNAP_OPTS, 0x03); in ov511_mode_init_regs()
3513 reg_w(sd, R511_CAM_PXCNT, hsegs); in ov511_mode_init_regs()
3514 reg_w(sd, R511_CAM_LNCNT, vsegs); in ov511_mode_init_regs()
3515 reg_w(sd, R511_CAM_PXDIV, 0x00); in ov511_mode_init_regs()
3516 reg_w(sd, R511_CAM_LNDIV, 0x00); in ov511_mode_init_regs()
3519 reg_w(sd, R511_CAM_OPTS, 0x03); in ov511_mode_init_regs()
3522 reg_w(sd, R511_SNAP_PXCNT, hsegs); in ov511_mode_init_regs()
3523 reg_w(sd, R511_SNAP_LNCNT, vsegs); in ov511_mode_init_regs()
3524 reg_w(sd, R511_SNAP_PXDIV, 0x00); in ov511_mode_init_regs()
3525 reg_w(sd, R511_SNAP_LNDIV, 0x00); in ov511_mode_init_regs()
3592 reg_w(sd, R511_COMP_EN, 0x07); in ov511_mode_init_regs()
3593 reg_w(sd, R511_COMP_LUT_EN, 0x03); in ov511_mode_init_regs()
3595 reg_w(sd, R511_COMP_EN, 0x06); in ov511_mode_init_regs()
3596 reg_w(sd, R511_COMP_LUT_EN, 0x00); in ov511_mode_init_regs()
3599 reg_w(sd, R51x_SYS_RESET, OV511_RESET_OMNICE); in ov511_mode_init_regs()
3600 reg_w(sd, R51x_SYS_RESET, 0); in ov511_mode_init_regs()
3629 reg_w(sd, 0x2b, 0); in ov518_mode_init_regs()
3630 reg_w(sd, 0x2c, 0); in ov518_mode_init_regs()
3631 reg_w(sd, 0x2d, 0); in ov518_mode_init_regs()
3632 reg_w(sd, 0x2e, 0); in ov518_mode_init_regs()
3633 reg_w(sd, 0x3b, 0); in ov518_mode_init_regs()
3634 reg_w(sd, 0x3c, 0); in ov518_mode_init_regs()
3635 reg_w(sd, 0x3d, 0); in ov518_mode_init_regs()
3636 reg_w(sd, 0x3e, 0); in ov518_mode_init_regs()
3646 reg_w(sd, 0x28, 0x80); in ov518_mode_init_regs()
3647 reg_w(sd, 0x38, 0x80); in ov518_mode_init_regs()
3653 reg_w(sd, 0x29, hsegs); in ov518_mode_init_regs()
3654 reg_w(sd, 0x2a, vsegs); in ov518_mode_init_regs()
3656 reg_w(sd, 0x39, hsegs); in ov518_mode_init_regs()
3657 reg_w(sd, 0x3a, vsegs); in ov518_mode_init_regs()
3660 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3671 reg_w(sd, 0x51, 0x04); in ov518_mode_init_regs()
3672 reg_w(sd, 0x22, 0x18); in ov518_mode_init_regs()
3673 reg_w(sd, 0x23, 0xff); in ov518_mode_init_regs()
3692 reg_w(sd, 0x20, 0x60); in ov518_mode_init_regs()
3693 reg_w(sd, 0x21, 0x1f); in ov518_mode_init_regs()
3695 reg_w(sd, 0x20, 0x00); in ov518_mode_init_regs()
3696 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3700 reg_w(sd, 0x20, 0x00); in ov518_mode_init_regs()
3701 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3704 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3707 reg_w(sd, 0x71, 0x17); /* Compression-related? */ in ov518_mode_init_regs()
3713 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3716 reg_w(sd, 0x24, 0x94); in ov518_mode_init_regs()
3717 reg_w(sd, 0x25, 0x90); in ov518_mode_init_regs()
3728 reg_w(sd, 0x24, 0x9f); in ov518_mode_init_regs()
3729 reg_w(sd, 0x25, 0x90); in ov518_mode_init_regs()
3741 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3817 reg_w(sd, OV519_R10_H_SIZE, sd->gspca_dev.pixfmt.width >> 4); in ov519_mode_init_regs()
3818 reg_w(sd, OV519_R11_V_SIZE, sd->gspca_dev.pixfmt.height >> 3); in ov519_mode_init_regs()
3821 reg_w(sd, OV519_R12_X_OFFSETL, 0x04); in ov519_mode_init_regs()
3824 reg_w(sd, OV519_R12_X_OFFSETL, 0x01); in ov519_mode_init_regs()
3826 reg_w(sd, OV519_R12_X_OFFSETL, 0x00); in ov519_mode_init_regs()
3827 reg_w(sd, OV519_R13_X_OFFSETH, 0x00); in ov519_mode_init_regs()
3828 reg_w(sd, OV519_R14_Y_OFFSETL, 0x00); in ov519_mode_init_regs()
3829 reg_w(sd, OV519_R15_Y_OFFSETH, 0x00); in ov519_mode_init_regs()
3830 reg_w(sd, OV519_R16_DIVIDER, 0x00); in ov519_mode_init_regs()
3831 reg_w(sd, OV519_R25_FORMAT, 0x03); /* YUV422 */ in ov519_mode_init_regs()
3832 reg_w(sd, 0x26, 0x00); /* Undocumented */ in ov519_mode_init_regs()
3846 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3847 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3850 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3851 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3854 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3855 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3858 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3859 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3863 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3864 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3868 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3869 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3878 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3879 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3882 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3883 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3886 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3887 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3894 reg_w(sd, 0xa4, 0x10); in ov519_mode_init_regs()
3897 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3900 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3904 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
4109 reg_w(sd, OV519_R51_RESET1, 0x0f); /* block stream */ in sethvflip()
4114 reg_w(sd, OV519_R51_RESET1, 0x00); /* restart stream */ in sethvflip()
4297 reg_w(sd, OV519_R57_SNAPSHOT, 0x23); in sd_stop0()