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