Lines Matching refs:reg_w
1989 static void reg_w(struct sd *sd, u16 index, u16 value) in reg_w() function
2142 reg_w(sd, index, value); in reg_w_mask()
2183 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov511_i2c_w()
2186 reg_w(sd, R51x_I2C_DATA, value); in ov511_i2c_w()
2189 reg_w(sd, R511_I2C_CTL, 0x01); in ov511_i2c_w()
2215 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov511_i2c_r()
2218 reg_w(sd, R511_I2C_CTL, 0x03); in ov511_i2c_r()
2231 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
2242 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r()
2255 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
2268 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r()
2287 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov518_i2c_w()
2290 reg_w(sd, R51x_I2C_DATA, value); in ov518_i2c_w()
2293 reg_w(sd, R518_I2C_CTL, 0x01); in ov518_i2c_w()
2313 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov518_i2c_r()
2316 reg_w(sd, R518_I2C_CTL, 0x03); in ov518_i2c_r()
2320 reg_w(sd, R518_I2C_CTL, 0x05); in ov518_i2c_r()
2473 reg_w(sd, R51x_SYS_RESET, 0x3d); in ov51x_stop()
2480 reg_w(sd, OV519_R51_RESET1, 0x0f); in ov51x_stop()
2481 reg_w(sd, OV519_R51_RESET1, 0x00); in ov51x_stop()
2482 reg_w(sd, 0x22, 0x00); /* FRAR */ in ov51x_stop()
2488 reg_w(sd, 0x3c, 0x0a05); /* stop USB transfer */ in ov51x_stop()
2508 reg_w(sd, R51x_SYS_RESET, 0x00); in ov51x_restart()
2512 reg_w(sd, 0x2f, 0x80); in ov51x_restart()
2513 reg_w(sd, R51x_SYS_RESET, 0x00); in ov51x_restart()
2516 reg_w(sd, OV519_R51_RESET1, 0x0f); in ov51x_restart()
2517 reg_w(sd, OV519_R51_RESET1, 0x00); in ov51x_restart()
2518 reg_w(sd, 0x22, 0x1d); /* FRAR */ in ov51x_restart()
2524 reg_w(sd, 0x3c, 0x8a05); /* USB FIFO enable */ in ov51x_restart()
2578 reg_w(sd, OVFX2_I2C_ADDR, slave); in ov51x_set_slave_ids()
2585 reg_w(sd, R51x_I2C_W_SID, slave); in ov51x_set_slave_ids()
2586 reg_w(sd, R51x_I2C_R_SID, slave + 1); in ov51x_set_slave_ids()
2594 reg_w(sd, regvals->reg, regvals->val); in write_regvals()
2832 reg_w(sd, R511_SYS_LED_CTL, on); in ov51x_led_control()
2859 reg_w(sd, R51x_SYS_SNAP, 0x02); in sd_reset_snapshot()
2860 reg_w(sd, R51x_SYS_SNAP, 0x00); in sd_reset_snapshot()
2864 reg_w(sd, R51x_SYS_SNAP, 0x02); /* Reset */ in sd_reset_snapshot()
2865 reg_w(sd, R51x_SYS_SNAP, 0x01); /* Enable */ in sd_reset_snapshot()
2868 reg_w(sd, R51x_SYS_RESET, 0x40); in sd_reset_snapshot()
2869 reg_w(sd, R51x_SYS_RESET, 0x00); in sd_reset_snapshot()
2935 reg_w(sd, reg, val0); in ov51x_upload_quan_tables()
2942 reg_w(sd, reg + size, val0); in ov51x_upload_quan_tables()
3084 reg_w(sd, 0x2f, 0x80); in ov518_configure()
3202 reg_w(sd, 0xa4, fr_tb[sd->gspca_dev.curr_mode][fr][0]); in ov519_set_fr()
3203 reg_w(sd, 0x23, fr_tb[sd->gspca_dev.curr_mode][fr][1]); in ov519_set_fr()
3413 reg_w(sd, OV519_R57_SNAPSHOT, 0x23); in sd_init()
3486 reg_w(sd, R51x_FIFO_PSIZE, packet_size >> 5); in ov511_mode_init_regs()
3488 reg_w(sd, R511_CAM_UV_EN, 0x01); in ov511_mode_init_regs()
3489 reg_w(sd, R511_SNAP_UV_EN, 0x01); in ov511_mode_init_regs()
3490 reg_w(sd, R511_SNAP_OPTS, 0x03); in ov511_mode_init_regs()
3498 reg_w(sd, R511_CAM_PXCNT, hsegs); in ov511_mode_init_regs()
3499 reg_w(sd, R511_CAM_LNCNT, vsegs); in ov511_mode_init_regs()
3500 reg_w(sd, R511_CAM_PXDIV, 0x00); in ov511_mode_init_regs()
3501 reg_w(sd, R511_CAM_LNDIV, 0x00); in ov511_mode_init_regs()
3504 reg_w(sd, R511_CAM_OPTS, 0x03); in ov511_mode_init_regs()
3507 reg_w(sd, R511_SNAP_PXCNT, hsegs); in ov511_mode_init_regs()
3508 reg_w(sd, R511_SNAP_LNCNT, vsegs); in ov511_mode_init_regs()
3509 reg_w(sd, R511_SNAP_PXDIV, 0x00); in ov511_mode_init_regs()
3510 reg_w(sd, R511_SNAP_LNDIV, 0x00); in ov511_mode_init_regs()
3578 reg_w(sd, R511_COMP_EN, 0x07); in ov511_mode_init_regs()
3579 reg_w(sd, R511_COMP_LUT_EN, 0x03); in ov511_mode_init_regs()
3581 reg_w(sd, R511_COMP_EN, 0x06); in ov511_mode_init_regs()
3582 reg_w(sd, R511_COMP_LUT_EN, 0x00); in ov511_mode_init_regs()
3585 reg_w(sd, R51x_SYS_RESET, OV511_RESET_OMNICE); in ov511_mode_init_regs()
3586 reg_w(sd, R51x_SYS_RESET, 0); in ov511_mode_init_regs()
3620 reg_w(sd, 0x2b, 0); in ov518_mode_init_regs()
3621 reg_w(sd, 0x2c, 0); in ov518_mode_init_regs()
3622 reg_w(sd, 0x2d, 0); in ov518_mode_init_regs()
3623 reg_w(sd, 0x2e, 0); in ov518_mode_init_regs()
3624 reg_w(sd, 0x3b, 0); in ov518_mode_init_regs()
3625 reg_w(sd, 0x3c, 0); in ov518_mode_init_regs()
3626 reg_w(sd, 0x3d, 0); in ov518_mode_init_regs()
3627 reg_w(sd, 0x3e, 0); in ov518_mode_init_regs()
3637 reg_w(sd, 0x28, 0x80); in ov518_mode_init_regs()
3638 reg_w(sd, 0x38, 0x80); in ov518_mode_init_regs()
3644 reg_w(sd, 0x29, hsegs); in ov518_mode_init_regs()
3645 reg_w(sd, 0x2a, vsegs); in ov518_mode_init_regs()
3647 reg_w(sd, 0x39, hsegs); in ov518_mode_init_regs()
3648 reg_w(sd, 0x3a, vsegs); in ov518_mode_init_regs()
3651 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3662 reg_w(sd, 0x51, 0x04); in ov518_mode_init_regs()
3663 reg_w(sd, 0x22, 0x18); in ov518_mode_init_regs()
3664 reg_w(sd, 0x23, 0xff); in ov518_mode_init_regs()
3683 reg_w(sd, 0x20, 0x60); in ov518_mode_init_regs()
3684 reg_w(sd, 0x21, 0x1f); in ov518_mode_init_regs()
3686 reg_w(sd, 0x20, 0x00); in ov518_mode_init_regs()
3687 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3691 reg_w(sd, 0x20, 0x00); in ov518_mode_init_regs()
3692 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3695 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3698 reg_w(sd, 0x71, 0x17); /* Compression-related? */ in ov518_mode_init_regs()
3704 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3707 reg_w(sd, 0x24, 0x94); in ov518_mode_init_regs()
3708 reg_w(sd, 0x25, 0x90); in ov518_mode_init_regs()
3719 reg_w(sd, 0x24, 0x9f); in ov518_mode_init_regs()
3720 reg_w(sd, 0x25, 0x90); in ov518_mode_init_regs()
3732 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3808 reg_w(sd, OV519_R10_H_SIZE, sd->gspca_dev.pixfmt.width >> 4); in ov519_mode_init_regs()
3809 reg_w(sd, OV519_R11_V_SIZE, sd->gspca_dev.pixfmt.height >> 3); in ov519_mode_init_regs()
3812 reg_w(sd, OV519_R12_X_OFFSETL, 0x04); in ov519_mode_init_regs()
3815 reg_w(sd, OV519_R12_X_OFFSETL, 0x01); in ov519_mode_init_regs()
3817 reg_w(sd, OV519_R12_X_OFFSETL, 0x00); in ov519_mode_init_regs()
3818 reg_w(sd, OV519_R13_X_OFFSETH, 0x00); in ov519_mode_init_regs()
3819 reg_w(sd, OV519_R14_Y_OFFSETL, 0x00); in ov519_mode_init_regs()
3820 reg_w(sd, OV519_R15_Y_OFFSETH, 0x00); in ov519_mode_init_regs()
3821 reg_w(sd, OV519_R16_DIVIDER, 0x00); in ov519_mode_init_regs()
3822 reg_w(sd, OV519_R25_FORMAT, 0x03); /* YUV422 */ in ov519_mode_init_regs()
3823 reg_w(sd, 0x26, 0x00); /* Undocumented */ in ov519_mode_init_regs()
3837 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3838 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3841 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3842 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3845 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3846 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3849 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3850 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3854 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3855 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3859 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3860 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3869 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3870 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3873 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3874 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3877 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3878 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3885 reg_w(sd, 0xa4, 0x10); in ov519_mode_init_regs()
3888 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3891 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3895 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
4100 reg_w(sd, OV519_R51_RESET1, 0x0f); /* block stream */ in sethvflip()
4105 reg_w(sd, OV519_R51_RESET1, 0x00); /* restart stream */ in sethvflip()
4288 reg_w(sd, OV519_R57_SNAPSHOT, 0x23); in sd_stop0()