Searched refs:i2c_w (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/drivers/media/usb/gspca/
H A Detoms.c217 static int i2c_w(struct gspca_dev *gspca_dev, i2c_w() function
420 i2c_w(gspca_dev, PAS106_REG13, &i2cflags, 1, 3); setcolors()
421 i2c_w(gspca_dev, PAS106_REG9, I2cc, sizeof I2cc, 1); setcolors()
514 i2c_w(gspca_dev, PAS106_REG2, I2c0, sizeof I2c0, 1); Et_init1()
515 i2c_w(gspca_dev, PAS106_REG9, I2c2, sizeof I2c2, 1); Et_init1()
517 i2c_w(gspca_dev, PAS106_REG2, &value, 1, 1); Et_init1()
518 i2c_w(gspca_dev, PAS106_REG3, I2c3, sizeof I2c3, 1); Et_init1()
521 i2c_w(gspca_dev, PAS106_REG0e, &value, 1, 1); Et_init1()
525 i2c_w(gspca_dev, PAS106_REG2, I2c0, sizeof I2c0, 1); Et_init1()
526 i2c_w(gspca_dev, PAS106_REG9, I2c2, sizeof I2c2, 1); Et_init1()
528 i2c_w(gspca_dev, PAS106_REG2, &value, 1, 1); Et_init1()
529 i2c_w(gspca_dev, PAS106_REG3, I2c3, sizeof I2c3, 1); Et_init1()
532 i2c_w(gspca_dev, PAS106_REG0e, &value, 1, 1); Et_init1()
535 i2c_w(gspca_dev, PAS106_REG0f, &value, 1, 1); Et_init1()
541 /* i2c_w(gspca_dev, PAS106_REG5, &value, 1, 1); */ Et_init1()
543 i2c_w(gspca_dev, PAS106_REG7, I2c4, sizeof I2c4, 1); Et_init1()
624 i2c_w(gspca_dev, PAS106_REG13, &i2cflags, 1, 3); Et_setgainG()
625 i2c_w(gspca_dev, PAS106_REG0e, &gain, 1, 1); Et_setgainG()
H A Dsonixb.c499 static void i2c_w(struct gspca_dev *gspca_dev, const u8 *buf) i2c_w() function
533 i2c_w(gspca_dev, *buffer); i2c_w_vector()
554 i2c_w(gspca_dev, i2cOV); setbrightness()
578 i2c_w(gspca_dev, i2cpbright); setbrightness()
579 i2c_w(gspca_dev, i2cpdoit); setbrightness()
601 i2c_w(gspca_dev, i2c); setgain()
610 i2c_w(gspca_dev, i2c); setgain()
626 i2c_w(gspca_dev, i2c); setgain()
642 i2c_w(gspca_dev, i2c); setgain()
668 i2c_w(gspca_dev, i2cpgain); setgain()
669 i2c_w(gspca_dev, i2cpcolorgain); setgain()
670 i2c_w(gspca_dev, i2cpdoit); setgain()
699 i2c_w(gspca_dev, i2c); setexposure()
780 i2c_w(gspca_dev, i2c); setexposure()
818 i2c_w(gspca_dev, i2cpframerate); setexposure()
819 i2c_w(gspca_dev, i2cpexpo); setexposure()
820 i2c_w(gspca_dev, i2cpdoit); setexposure()
847 i2c_w(gspca_dev, i2cpframerate); setexposure()
848 i2c_w(gspca_dev, i2cpexpo); setexposure()
849 i2c_w(gspca_dev, i2cpdoit); setexposure()
879 i2c_w(gspca_dev, i2c); setfreq()
1198 i2c_w(gspca_dev, i2cpclockdiv); sd_start()
1207 i2c_w(gspca_dev, i2c); sd_start()
H A Dov519.c2296 /* This is needed to make i2c_w() work */ ov511_i2c_r()
2304 * This is normally only called from i2c_w(). Note that this function
2404 static void i2c_w(struct sd *sd, u8 reg, u8 value) i2c_w() function
2487 i2c_w(sd, reg, value); i2c_w_mask()
2570 i2c_w(sd, 0x12, 0x80); init_ov_sensor()
2583 i2c_w(sd, 0x12, 0x80); init_ov_sensor()
2631 i2c_w(sd, regvals->reg, regvals->val); write_i2c_regvals()
3431 i2c_w(sd, OV7670_R12_COM7, OV7670_COM7_RESET); sd_init()
3711 i2c_w(sd, 0x54, 0x23); ov518_mode_init_regs()
3925 i2c_w(sd, 0x24, qvga ? 0x20 : 0x3a); mode_init_ov_sensor_regs()
3926 i2c_w(sd, 0x25, qvga ? 0x30 : 0x60); mode_init_ov_sensor_regs()
3946 i2c_w(sd, 0x11, v); mode_init_ov_sensor_regs()
3947 i2c_w(sd, 0x12, qvga ? 0x60 : 0x20); mode_init_ov_sensor_regs()
3971 i2c_w(sd, 0x17, xstart >> 4); mode_init_ov_sensor_regs()
3972 i2c_w(sd, 0x18, xend >> 4); mode_init_ov_sensor_regs()
3973 i2c_w(sd, 0x19, ystart >> 3); mode_init_ov_sensor_regs()
3974 i2c_w(sd, 0x1a, yend >> 3); mode_init_ov_sensor_regs()
3986 i2c_w(sd, 0x35, qvga ? 0x1e : 0x9e); mode_init_ov_sensor_regs()
3995 i2c_w(sd, 0x24, qvga ? 0x20 : 0x3a); mode_init_ov_sensor_regs()
3996 i2c_w(sd, 0x25, qvga ? 0x30 : 0x60); mode_init_ov_sensor_regs()
4003 i2c_w(sd, 0x35, qvga ? 0x1e : 0x9e); mode_init_ov_sensor_regs()
4042 i2c_w(sd, OV7670_R17_HSTART, xstart >> 3); mode_init_ov_sensor_regs()
4043 i2c_w(sd, OV7670_R18_HSTOP, xend >> 3); mode_init_ov_sensor_regs()
4048 i2c_w(sd, OV7670_R32_HREF, v); mode_init_ov_sensor_regs()
4050 i2c_w(sd, OV7670_R19_VSTART, ystart >> 2); mode_init_ov_sensor_regs()
4051 i2c_w(sd, OV7670_R1A_VSTOP, yend >> 2); mode_init_ov_sensor_regs()
4056 i2c_w(sd, OV7670_R03_VREF, v); mode_init_ov_sensor_regs()
4100 i2c_w(sd, 0x11, sd->clockdiv); mode_init_ov_sensor_regs()
4224 i2c_w(sd, 0x17, hwsbase); set_ov_sensor_window()
4225 i2c_w(sd, 0x18, hwebase + (sd->sensor_width >> hwscale)); set_ov_sensor_window()
4226 i2c_w(sd, 0x19, vwsbase); set_ov_sensor_window()
4227 i2c_w(sd, 0x1a, vwebase + (sd->sensor_height >> vwscale)); set_ov_sensor_window()
4545 i2c_w(sd, OV7610_REG_BRT, val); setbrightness()
4549 i2c_w(sd, OV7610_REG_BRT, val); setbrightness()
4558 i2c_w(sd, OV7670_R55_BRIGHT, ov7670_abs_to_sm(val)); setbrightness()
4628 i2c_w(sd, OV7610_REG_CNT, val); setcontrast()
4640 i2c_w(sd, 0x64, ctab[val >> 5]); setcontrast()
4651 i2c_w(sd, 0x64, ctab[val >> 4]); setcontrast()
4660 i2c_w(sd, OV7670_R56_CONTRAS, val >> 1); setcontrast()
4669 i2c_w(sd, 0x10, val); setexposure()
4695 i2c_w(sd, OV7610_REG_SAT, val); setcolors()
4703 i2c_w(sd, OV7610_REG_SAT, val); setcolors()
4707 i2c_w(sd, OV7610_REG_SAT, val & 0xf0); setcolors()
4766 i2c_w(sd, 0x2b, 0x5e); setfreq_i()
4768 i2c_w(sd, 0x2b, 0xac); setfreq_i()
4777 i2c_w(sd, 0x2b, 0xa8); setfreq_i()
H A Dsn9c20x.c958 static void i2c_w(struct gspca_dev *gspca_dev, const u8 *buffer) i2c_w() function
969 pr_err("i2c_w error\n"); i2c_w()
976 pr_err("i2c_w reg %02x no response\n", buffer[2]); i2c_w()
998 i2c_w(gspca_dev, row); i2c_w1()
1028 i2c_w(gspca_dev, row); i2c_w2()
1053 i2c_w(gspca_dev, row); i2c_r1()
1056 i2c_w(gspca_dev, row); i2c_r1()
1074 i2c_w(gspca_dev, row); i2c_r2()
1077 i2c_w(gspca_dev, row); i2c_r2()
1459 i2c_w(gspca_dev, exp); set_exposure()
1463 i2c_w(gspca_dev, exp); set_exposure()
1489 i2c_w(gspca_dev, exp); set_exposure()
1536 i2c_w(gspca_dev, gain); set_gain()
H A Dtopro.c1030 static int i2c_w(struct gspca_dev *gspca_dev, u8 index, u8 value) i2c_w() function
1052 i2c_w(gspca_dev, p->reg, p->val); i2c_w_buf()
1125 if (i2c_w(gspca_dev, 0x00, 0x00) >= 0) probe_6810()
1131 if (i2c_w(gspca_dev, 0x00, 0x00) >= 0) probe_6810()
1177 if (i2c_w(gspca_dev, 0xff, 0x00) >= 0) probe_6810()
1403 i2c_w(gspca_dev, 0x12, 0x80); /* sensor reset */ soi763a_6810_init()
1416 i2c_w(gspca_dev, CX0342_EXPO_LINE_L, expo); setexposure()
1417 i2c_w(gspca_dev, CX0342_EXPO_LINE_H, expo >> 8); setexposure()
1419 i2c_w(gspca_dev, CX0342_RAW_GBGAIN_H, setexposure()
1421 i2c_w(gspca_dev, CX0342_RAW_GBGAIN_L, gain); setexposure()
1423 i2c_w(gspca_dev, CX0342_RAW_GRGAIN_H, setexposure()
1425 i2c_w(gspca_dev, CX0342_RAW_GRGAIN_L, gain); setexposure()
1428 i2c_w(gspca_dev, CX0342_RAW_BGAIN_H, setexposure()
1430 i2c_w(gspca_dev, CX0342_RAW_BGAIN_L, blue); setexposure()
1432 i2c_w(gspca_dev, CX0342_RAW_RGAIN_H, setexposure()
1434 i2c_w(gspca_dev, CX0342_RAW_RGAIN_L, red); setexposure()
1436 i2c_w(gspca_dev, CX0342_SYS_CTRL_0, setexposure()
1442 i2c_w(gspca_dev, 0x10, /* AEC_H (exposure time) */ setexposure()
1444 /* i2c_w(gspca_dev, 0x76, 0x02); * AEC_L ([1:0] */ setexposure()
1445 i2c_w(gspca_dev, 0x00, /* gain */ setexposure()
3888 i2c_w(gspca_dev, CX0342_AUTO_ADC_CALIB, 0x01); set_resolution()
3893 i2c_w(gspca_dev, CX0342_EXPO_LINE_L, 0x37); set_resolution()
3894 i2c_w(gspca_dev, CX0342_EXPO_LINE_H, 0x01); set_resolution()
3898 i2c_w(gspca_dev, CX0342_AUTO_ADC_CALIB, 0x01); set_resolution()
3903 i2c_w(gspca_dev, CX0342_EXPO_LINE_L, 0xcf); set_resolution()
3904 i2c_w(gspca_dev, CX0342_EXPO_LINE_H, 0x00); set_resolution()
3906 i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x01); set_resolution()
3965 i2c_w(gspca_dev, CX0342_AUTO_ADC_CALIB, 0x01); setframerate()
3970 i2c_w(gspca_dev, CX0342_RAW_RGAIN_H, rgain >> 8); setrgain()
3971 i2c_w(gspca_dev, CX0342_RAW_RGAIN_L, rgain); setrgain()
3972 i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x80); setrgain()
4005 i2c_w(gspca_dev, CX0342_RAW_BGAIN_H, bgain >> 8); setbgain()
4006 i2c_w(gspca_dev, CX0342_RAW_BGAIN_L, bgain); setbgain()
4007 i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x80); setbgain()
4245 i2c_w(gspca_dev, CX0342_EXPO_LINE_H, 0x00); cx0342_6800_start()
4246 i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x01); cx0342_6800_start()
4453 i2c_w(gspca_dev, 0x12, 0x80); /* sensor reset */ soi763a_6800_start()
H A Dsq930x.c517 PDEBUG(D_USBO, "i2c_w v: %04x i: %04x %02x...%02x", i2c_write()
H A Dnw80x.c1598 static void i2c_w(struct gspca_dev *gspca_dev, i2c_w() function
1639 i2c_w(gspca_dev, reg, cmd, len); reg_w_buf()
H A Dvc032x.c3070 PDEBUG(D_USBO, "i2c_w %02x %02x", reg, *val); i2c_write()
3072 PDEBUG(D_USBO, "i2c_w %02x %02x%02x", reg, *val, val[1]); i2c_write()
H A Dzc3xx.c5625 pr_err("i2c_w status error %02x\n", retbyte); i2c_write()

Completed in 329 milliseconds