• Home
  • Raw
  • Download

Lines Matching refs:reg_w

2035 static void reg_w(struct sd *sd, u16 index, u16 value)  in reg_w()  function
2171 reg_w(sd, index, value); in reg_w_mask()
2210 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov511_i2c_w()
2213 reg_w(sd, R51x_I2C_DATA, value); in ov511_i2c_w()
2216 reg_w(sd, R511_I2C_CTL, 0x01); in ov511_i2c_w()
2242 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov511_i2c_r()
2245 reg_w(sd, R511_I2C_CTL, 0x03); in ov511_i2c_r()
2258 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
2269 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r()
2282 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
2295 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r()
2314 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov518_i2c_w()
2317 reg_w(sd, R51x_I2C_DATA, value); in ov518_i2c_w()
2320 reg_w(sd, R518_I2C_CTL, 0x01); in ov518_i2c_w()
2340 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov518_i2c_r()
2343 reg_w(sd, R518_I2C_CTL, 0x03); in ov518_i2c_r()
2347 reg_w(sd, R518_I2C_CTL, 0x05); in ov518_i2c_r()
2499 reg_w(sd, R51x_SYS_RESET, 0x3d); in ov51x_stop()
2506 reg_w(sd, OV519_R51_RESET1, 0x0f); in ov51x_stop()
2507 reg_w(sd, OV519_R51_RESET1, 0x00); in ov51x_stop()
2508 reg_w(sd, 0x22, 0x00); /* FRAR */ in ov51x_stop()
2514 reg_w(sd, 0x3c, 0x0a05); /* stop USB transfer */ in ov51x_stop()
2534 reg_w(sd, R51x_SYS_RESET, 0x00); in ov51x_restart()
2538 reg_w(sd, 0x2f, 0x80); in ov51x_restart()
2539 reg_w(sd, R51x_SYS_RESET, 0x00); in ov51x_restart()
2542 reg_w(sd, OV519_R51_RESET1, 0x0f); in ov51x_restart()
2543 reg_w(sd, OV519_R51_RESET1, 0x00); in ov51x_restart()
2544 reg_w(sd, 0x22, 0x1d); /* FRAR */ in ov51x_restart()
2550 reg_w(sd, 0x3c, 0x8a05); /* USB FIFO enable */ in ov51x_restart()
2603 reg_w(sd, OVFX2_I2C_ADDR, slave); in ov51x_set_slave_ids()
2610 reg_w(sd, R51x_I2C_W_SID, slave); in ov51x_set_slave_ids()
2611 reg_w(sd, R51x_I2C_R_SID, slave + 1); in ov51x_set_slave_ids()
2619 reg_w(sd, regvals->reg, regvals->val); in write_regvals()
2851 reg_w(sd, R511_SYS_LED_CTL, on); in ov51x_led_control()
2878 reg_w(sd, R51x_SYS_SNAP, 0x02); in sd_reset_snapshot()
2879 reg_w(sd, R51x_SYS_SNAP, 0x00); in sd_reset_snapshot()
2883 reg_w(sd, R51x_SYS_SNAP, 0x02); /* Reset */ in sd_reset_snapshot()
2884 reg_w(sd, R51x_SYS_SNAP, 0x01); /* Enable */ in sd_reset_snapshot()
2887 reg_w(sd, R51x_SYS_RESET, 0x40); in sd_reset_snapshot()
2888 reg_w(sd, R51x_SYS_RESET, 0x00); in sd_reset_snapshot()
2954 reg_w(sd, reg, val0); in ov51x_upload_quan_tables()
2961 reg_w(sd, reg + size, val0); in ov51x_upload_quan_tables()
3102 reg_w(sd, 0x2f, 0x80); in ov518_configure()
3220 reg_w(sd, 0xa4, fr_tb[sd->gspca_dev.curr_mode][fr][0]); in ov519_set_fr()
3221 reg_w(sd, 0x23, fr_tb[sd->gspca_dev.curr_mode][fr][1]); in ov519_set_fr()
3431 reg_w(sd, OV519_R57_SNAPSHOT, 0x23); in sd_init()
3499 reg_w(sd, R51x_FIFO_PSIZE, packet_size >> 5); in ov511_mode_init_regs()
3501 reg_w(sd, R511_CAM_UV_EN, 0x01); in ov511_mode_init_regs()
3502 reg_w(sd, R511_SNAP_UV_EN, 0x01); in ov511_mode_init_regs()
3503 reg_w(sd, R511_SNAP_OPTS, 0x03); in ov511_mode_init_regs()
3511 reg_w(sd, R511_CAM_PXCNT, hsegs); in ov511_mode_init_regs()
3512 reg_w(sd, R511_CAM_LNCNT, vsegs); in ov511_mode_init_regs()
3513 reg_w(sd, R511_CAM_PXDIV, 0x00); in ov511_mode_init_regs()
3514 reg_w(sd, R511_CAM_LNDIV, 0x00); in ov511_mode_init_regs()
3517 reg_w(sd, R511_CAM_OPTS, 0x03); in ov511_mode_init_regs()
3520 reg_w(sd, R511_SNAP_PXCNT, hsegs); in ov511_mode_init_regs()
3521 reg_w(sd, R511_SNAP_LNCNT, vsegs); in ov511_mode_init_regs()
3522 reg_w(sd, R511_SNAP_PXDIV, 0x00); in ov511_mode_init_regs()
3523 reg_w(sd, R511_SNAP_LNDIV, 0x00); in ov511_mode_init_regs()
3589 reg_w(sd, R511_COMP_EN, 0x07); in ov511_mode_init_regs()
3590 reg_w(sd, R511_COMP_LUT_EN, 0x03); in ov511_mode_init_regs()
3592 reg_w(sd, R511_COMP_EN, 0x06); in ov511_mode_init_regs()
3593 reg_w(sd, R511_COMP_LUT_EN, 0x00); in ov511_mode_init_regs()
3596 reg_w(sd, R51x_SYS_RESET, OV511_RESET_OMNICE); in ov511_mode_init_regs()
3597 reg_w(sd, R51x_SYS_RESET, 0); in ov511_mode_init_regs()
3626 reg_w(sd, 0x2b, 0); in ov518_mode_init_regs()
3627 reg_w(sd, 0x2c, 0); in ov518_mode_init_regs()
3628 reg_w(sd, 0x2d, 0); in ov518_mode_init_regs()
3629 reg_w(sd, 0x2e, 0); in ov518_mode_init_regs()
3630 reg_w(sd, 0x3b, 0); in ov518_mode_init_regs()
3631 reg_w(sd, 0x3c, 0); in ov518_mode_init_regs()
3632 reg_w(sd, 0x3d, 0); in ov518_mode_init_regs()
3633 reg_w(sd, 0x3e, 0); in ov518_mode_init_regs()
3643 reg_w(sd, 0x28, 0x80); in ov518_mode_init_regs()
3644 reg_w(sd, 0x38, 0x80); in ov518_mode_init_regs()
3650 reg_w(sd, 0x29, hsegs); in ov518_mode_init_regs()
3651 reg_w(sd, 0x2a, vsegs); in ov518_mode_init_regs()
3653 reg_w(sd, 0x39, hsegs); in ov518_mode_init_regs()
3654 reg_w(sd, 0x3a, vsegs); in ov518_mode_init_regs()
3657 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3664 reg_w(sd, 0x51, 0x04); in ov518_mode_init_regs()
3665 reg_w(sd, 0x22, 0x18); in ov518_mode_init_regs()
3666 reg_w(sd, 0x23, 0xff); in ov518_mode_init_regs()
3672 reg_w(sd, 0x20, 0x00); in ov518_mode_init_regs()
3673 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3675 reg_w(sd, 0x20, 0x60); in ov518_mode_init_regs()
3676 reg_w(sd, 0x21, 0x1f); in ov518_mode_init_regs()
3680 reg_w(sd, 0x20, 0x00); in ov518_mode_init_regs()
3681 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3684 reg_w(sd, 0x21, 0x19); in ov518_mode_init_regs()
3687 reg_w(sd, 0x71, 0x17); /* Compression-related? */ in ov518_mode_init_regs()
3693 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3696 reg_w(sd, 0x24, 0x94); in ov518_mode_init_regs()
3697 reg_w(sd, 0x25, 0x90); in ov518_mode_init_regs()
3708 reg_w(sd, 0x24, 0x9f); in ov518_mode_init_regs()
3709 reg_w(sd, 0x25, 0x90); in ov518_mode_init_regs()
3721 reg_w(sd, 0x2f, 0x80); in ov518_mode_init_regs()
3797 reg_w(sd, OV519_R10_H_SIZE, sd->gspca_dev.width >> 4); in ov519_mode_init_regs()
3798 reg_w(sd, OV519_R11_V_SIZE, sd->gspca_dev.height >> 3); in ov519_mode_init_regs()
3801 reg_w(sd, OV519_R12_X_OFFSETL, 0x04); in ov519_mode_init_regs()
3804 reg_w(sd, OV519_R12_X_OFFSETL, 0x01); in ov519_mode_init_regs()
3806 reg_w(sd, OV519_R12_X_OFFSETL, 0x00); in ov519_mode_init_regs()
3807 reg_w(sd, OV519_R13_X_OFFSETH, 0x00); in ov519_mode_init_regs()
3808 reg_w(sd, OV519_R14_Y_OFFSETL, 0x00); in ov519_mode_init_regs()
3809 reg_w(sd, OV519_R15_Y_OFFSETH, 0x00); in ov519_mode_init_regs()
3810 reg_w(sd, OV519_R16_DIVIDER, 0x00); in ov519_mode_init_regs()
3811 reg_w(sd, OV519_R25_FORMAT, 0x03); /* YUV422 */ in ov519_mode_init_regs()
3812 reg_w(sd, 0x26, 0x00); /* Undocumented */ in ov519_mode_init_regs()
3826 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3827 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3830 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3831 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3834 reg_w(sd, 0xa4, 0x0c); in ov519_mode_init_regs()
3835 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3838 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3839 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3843 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3844 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3848 reg_w(sd, 0xa4, 0x04); in ov519_mode_init_regs()
3849 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3858 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3859 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3862 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3863 reg_w(sd, 0x23, 0x1f); in ov519_mode_init_regs()
3866 reg_w(sd, 0xa4, 0x06); in ov519_mode_init_regs()
3867 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3874 reg_w(sd, 0xa4, 0x10); in ov519_mode_init_regs()
3877 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
3880 reg_w(sd, 0x23, 0x1b); in ov519_mode_init_regs()
3884 reg_w(sd, 0x23, 0xff); in ov519_mode_init_regs()
4087 reg_w(sd, OV519_R51_RESET1, 0x0f); /* block stream */ in sethvflip()
4092 reg_w(sd, OV519_R51_RESET1, 0x00); /* restart stream */ in sethvflip()
4275 reg_w(sd, OV519_R57_SNAPSHOT, 0x23); in sd_stop0()