Lines Matching refs:reg_w
663 reg_w(struct usb_ov511 *ov, unsigned char reg, unsigned char value) in reg_w() function
734 return (reg_w(ov, reg, newval)); in reg_w_mask()
783 rc = reg_w(ov, reg, val0); in ov511_upload_quan_tables()
794 rc = reg_w(ov, reg + OV511_QUANTABLESIZE/2, val0); in ov511_upload_quan_tables()
823 rc = reg_w(ov, reg, val0); in ov518_upload_quan_tables()
834 rc = reg_w(ov, reg + OV518_QUANTABLESIZE/2, val0); in ov518_upload_quan_tables()
856 rc = reg_w(ov, R51x_SYS_RESET, reset_type); in ov51x_reset()
857 rc = reg_w(ov, R51x_SYS_RESET, 0); in ov51x_reset()
886 rc = reg_w(ov, R51x_I2C_SADDR_3, reg); in ov518_i2c_write_internal()
890 rc = reg_w(ov, R51x_I2C_DATA, value); in ov518_i2c_write_internal()
894 rc = reg_w(ov, R518_I2C_CTL, 0x01); in ov518_i2c_write_internal()
913 rc = reg_w(ov, R51x_I2C_SADDR_3, reg); in ov511_i2c_write_internal()
917 rc = reg_w(ov, R51x_I2C_DATA, value); in ov511_i2c_write_internal()
921 rc = reg_w(ov, R511_I2C_CTL, 0x01); in ov511_i2c_write_internal()
932 reg_w(ov, R511_I2C_CTL, 0x10); in ov511_i2c_write_internal()
954 rc = reg_w(ov, R51x_I2C_SADDR_2, reg); in ov518_i2c_read_internal()
958 rc = reg_w(ov, R518_I2C_CTL, 0x03); in ov518_i2c_read_internal()
962 rc = reg_w(ov, R518_I2C_CTL, 0x05); in ov518_i2c_read_internal()
982 rc = reg_w(ov, R51x_I2C_SADDR_2, reg); in ov511_i2c_read_internal()
986 rc = reg_w(ov, R511_I2C_CTL, 0x03); in ov511_i2c_read_internal()
997 reg_w(ov, R511_I2C_CTL, 0x10); in ov511_i2c_read_internal()
1008 rc = reg_w(ov, R511_I2C_CTL, 0x05); in ov511_i2c_read_internal()
1019 rc = reg_w(ov, R511_I2C_CTL, 0x10); in ov511_i2c_read_internal()
1033 rc = reg_w(ov, R511_I2C_CTL, 0x05); in ov511_i2c_read_internal()
1137 rc = reg_w(ov, R51x_I2C_W_SID, slave); in i2c_set_slave_internal()
1140 rc = reg_w(ov, R51x_I2C_R_SID, slave + 1); in i2c_set_slave_internal()
1228 if ((rc = reg_w(ov, pRegvals->reg, pRegvals->val)) < 0) in write_regvals()
1336 return (reg_w(ov, R51x_SYS_RESET, 0x3d)); in ov51x_stop()
1350 reg_w(ov, 0x2f, 0x80); in ov51x_restart()
1352 return (reg_w(ov, R51x_SYS_RESET, 0x00)); in ov51x_restart()
1363 reg_w(ov, R51x_SYS_SNAP, 0x00); in ov51x_clear_snapshot()
1364 reg_w(ov, R51x_SYS_SNAP, 0x02); in ov51x_clear_snapshot()
1365 reg_w(ov, R51x_SYS_SNAP, 0x00); in ov51x_clear_snapshot()
1475 if (reg_w(ov, R51x_FIFO_PSIZE, mult) < 0) in ov511_set_packet_size()
1540 if (reg_w(ov, 0x2f, 0x80) < 0) in ov518_set_packet_size()
1559 reg_w(ov, 0x70, phy); in ov511_init_compression()
1560 reg_w(ov, 0x71, phuv); in ov511_init_compression()
1561 reg_w(ov, 0x72, pvy); in ov511_init_compression()
1562 reg_w(ov, 0x73, pvuv); in ov511_init_compression()
1563 reg_w(ov, 0x74, qhy); in ov511_init_compression()
1564 reg_w(ov, 0x75, qhuv); in ov511_init_compression()
1565 reg_w(ov, 0x76, qvy); in ov511_init_compression()
1566 reg_w(ov, 0x77, qvuv); in ov511_init_compression()
2139 reg_w(ov, R511_SYS_LED_CTL, enable ? 1 : 0); in ov51x_led_control()
2726 reg_w(ov, R511_CAM_UV_EN, 0x00); in ov511_mode_init_regs()
2727 reg_w(ov, R511_SNAP_UV_EN, 0x00); in ov511_mode_init_regs()
2728 reg_w(ov, R511_SNAP_OPTS, 0x01); in ov511_mode_init_regs()
2730 reg_w(ov, R511_CAM_UV_EN, 0x01); in ov511_mode_init_regs()
2731 reg_w(ov, R511_SNAP_UV_EN, 0x01); in ov511_mode_init_regs()
2732 reg_w(ov, R511_SNAP_OPTS, 0x03); in ov511_mode_init_regs()
2741 reg_w(ov, R511_CAM_PXCNT, hsegs); in ov511_mode_init_regs()
2742 reg_w(ov, R511_CAM_LNCNT, vsegs); in ov511_mode_init_regs()
2743 reg_w(ov, R511_CAM_PXDIV, 0x00); in ov511_mode_init_regs()
2744 reg_w(ov, R511_CAM_LNDIV, 0x00); in ov511_mode_init_regs()
2747 reg_w(ov, R511_CAM_OPTS, 0x03); in ov511_mode_init_regs()
2750 reg_w(ov, R511_SNAP_PXCNT, hsegs); in ov511_mode_init_regs()
2751 reg_w(ov, R511_SNAP_LNCNT, vsegs); in ov511_mode_init_regs()
2752 reg_w(ov, R511_SNAP_PXDIV, 0x00); in ov511_mode_init_regs()
2753 reg_w(ov, R511_SNAP_LNDIV, 0x00); in ov511_mode_init_regs()
2757 reg_w(ov, R511_COMP_EN, 0x07); in ov511_mode_init_regs()
2758 reg_w(ov, R511_COMP_LUT_EN, 0x03); in ov511_mode_init_regs()
2813 reg_w(ov, 0x2b, 0); in ov518_mode_init_regs()
2814 reg_w(ov, 0x2c, 0); in ov518_mode_init_regs()
2815 reg_w(ov, 0x2d, 0); in ov518_mode_init_regs()
2816 reg_w(ov, 0x2e, 0); in ov518_mode_init_regs()
2817 reg_w(ov, 0x3b, 0); in ov518_mode_init_regs()
2818 reg_w(ov, 0x3c, 0); in ov518_mode_init_regs()
2819 reg_w(ov, 0x3d, 0); in ov518_mode_init_regs()
2820 reg_w(ov, 0x3e, 0); in ov518_mode_init_regs()
2842 reg_w(ov, 0x28, (mode == VIDEO_PALETTE_GREY) ? 0x00:0x80); in ov518_mode_init_regs()
2843 reg_w(ov, 0x38, (mode == VIDEO_PALETTE_GREY) ? 0x00:0x80); in ov518_mode_init_regs()
2849 reg_w(ov, 0x29, hsegs); in ov518_mode_init_regs()
2850 reg_w(ov, 0x2a, vsegs); in ov518_mode_init_regs()
2852 reg_w(ov, 0x39, hsegs); in ov518_mode_init_regs()
2853 reg_w(ov, 0x3a, vsegs); in ov518_mode_init_regs()
2856 reg_w(ov, 0x2f, 0x80); in ov518_mode_init_regs()
2861 reg_w(ov, 0x51, 0x02); /* Clock divider; lower==faster */ in ov518_mode_init_regs()
2862 reg_w(ov, 0x22, 0x18); in ov518_mode_init_regs()
2863 reg_w(ov, 0x23, 0xff); in ov518_mode_init_regs()
2866 reg_w(ov, 0x21, 0x19); in ov518_mode_init_regs()
2868 reg_w(ov, 0x71, 0x19); /* Compression-related? */ in ov518_mode_init_regs()
2874 reg_w(ov, 0x2f, 0x80); in ov518_mode_init_regs()
2877 reg_w(ov, 0x24, 0x94); in ov518_mode_init_regs()
2878 reg_w(ov, 0x25, 0x90); in ov518_mode_init_regs()
2889 reg_w(ov, 0x24, 0x9f); in ov518_mode_init_regs()
2890 reg_w(ov, 0x25, 0x90); in ov518_mode_init_regs()
2902 reg_w(ov, 0x2f, 0x80); in ov518_mode_init_regs()
6053 reg_w(ov, 0x11, 0x00); in saa7111a_configure()
6298 if (reg_w(ov, 0x2f, 0x80) < 0) goto error; in ov518_configure()