/Linux-v4.19/drivers/media/usb/gspca/ |
D | spca500.c | 326 static int reg_w(struct gspca_dev *gspca_dev, in reg_w() function 392 ret = reg_w(gspca_dev, data[i][0], data[i][2], data[i][1]); in write_vector() 410 err = reg_w(gspca_dev, request, ybase + i, qtable[0][i]); in spca50x_setup_qtable() 417 err = reg_w(gspca_dev, request, cbase + i, qtable[1][i]); in spca50x_setup_qtable() 436 reg_w(gspca_dev, 0x00, 0x8167, 0x5a); in spca500_clksmart310_init() 439 reg_w(gspca_dev, 0x00, 0x8168, 0x22); in spca500_clksmart310_init() 440 reg_w(gspca_dev, 0x00, 0x816a, 0xc0); in spca500_clksmart310_init() 441 reg_w(gspca_dev, 0x00, 0x816b, 0x0b); in spca500_clksmart310_init() 442 reg_w(gspca_dev, 0x00, 0x8169, 0x25); in spca500_clksmart310_init() 443 reg_w(gspca_dev, 0x00, 0x8157, 0x5b); in spca500_clksmart310_init() [all …]
|
D | spca506.c | 87 static void reg_w(struct usb_device *dev, in reg_w() function 102 reg_w(gspca_dev->dev, 0x07, SAA7113_I2C_BASE_WRITE, 0x0004); in spca506_Initi2c() 110 reg_w(gspca_dev->dev, 0x07, reg, 0x0001); in spca506_WriteI2c() 111 reg_w(gspca_dev->dev, 0x07, valeur, 0x0000); in spca506_WriteI2c() 141 reg_w(gspca_dev->dev, 0x08, videomask, 0x0000); in spca506_SetNormeInput() 180 reg_w(dev, 0x04, (0x18 | (code & 0x07)), 0x0000); in spca506_Setsize() 182 reg_w(dev, 0x04, 0x41, 0x0001); in spca506_Setsize() 183 reg_w(dev, 0x04, 0x00, 0x0002); in spca506_Setsize() 185 reg_w(dev, 0x04, 0x00, 0x0003); in spca506_Setsize() 188 reg_w(dev, 0x04, 0x00, 0x0004); in spca506_Setsize() [all …]
|
D | w996Xcf.c | 60 static void reg_w(struct sd *sd, u16 index, u16 value); 163 reg_w(sd, 0x39, 0x0010); /* JPEG clock enable */ in w9968cf_upload_quantizationtables() 168 reg_w(sd, 0x40 + i, a); in w9968cf_upload_quantizationtables() 169 reg_w(sd, 0x60 + i, b); in w9968cf_upload_quantizationtables() 171 reg_w(sd, 0x39, 0x0012); /* JPEG encoder enable */ in w9968cf_upload_quantizationtables() 348 reg_w(sd, 0x00, 0xff00); /* power-down */ in w9968cf_configure() 349 reg_w(sd, 0x00, 0xbf17); /* reset everything */ in w9968cf_configure() 350 reg_w(sd, 0x00, 0xbf10); /* normal operation */ in w9968cf_configure() 351 reg_w(sd, 0x01, 0x0010); /* serial bus, SDS high */ in w9968cf_configure() 352 reg_w(sd, 0x01, 0x0000); /* serial bus, SDS low */ in w9968cf_configure() [all …]
|
D | stk1135.c | 82 static void reg_w(struct gspca_dev *gspca_dev, u16 index, u8 val) in reg_w() function 107 reg_w(gspca_dev, index, val); in reg_w_mask() 138 reg_w(gspca_dev, STK1135_REG_SBUSR, addr); in sensor_read_8() 140 reg_w(gspca_dev, STK1135_REG_SICTL, 0x20); in sensor_read_8() 159 reg_w(gspca_dev, STK1135_REG_SBUSW, addr); in sensor_write_8() 160 reg_w(gspca_dev, STK1135_REG_SBUSW + 1, data); in sensor_write_8() 162 reg_w(gspca_dev, STK1135_REG_SICTL, 0x01); in sensor_write_8() 338 reg_w(gspca_dev, STK1135_REG_TMGEN, 0x12); in stk1135_configure_clock() 341 reg_w(gspca_dev, STK1135_REG_TCP1 + 0, 0x41); in stk1135_configure_clock() 342 reg_w(gspca_dev, STK1135_REG_TCP1 + 1, 0x00); in stk1135_configure_clock() [all …]
|
D | pac7311.c | 184 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 210 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq() 296 reg_w(gspca_dev, 0xff, 0x04); in setcontrast() 297 reg_w(gspca_dev, 0x10, val); in setcontrast() 299 reg_w(gspca_dev, 0x11, 0x01); in setcontrast() 304 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setgain() 305 reg_w(gspca_dev, 0x0e, 0x00); in setgain() 306 reg_w(gspca_dev, 0x0f, gspca_dev->gain->maximum - val + 1); in setgain() 309 reg_w(gspca_dev, 0x11, 0x01); in setgain() 314 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setexposure() [all …]
|
D | topro.c | 987 static void reg_w(struct gspca_dev *gspca_dev, u8 index, u8 value) in reg_w() function 1026 reg_w(gspca_dev, p->reg, p->val); in reg_w_buf() 1035 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_w() 1036 reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index); in i2c_w() 1037 reg_w(gspca_dev, TP6800_R13_SIF_TX_DATA, value); in i2c_w() 1038 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x01); in i2c_w() 1045 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_w() 1063 reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index); in i2c_r() 1064 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x02); in i2c_r() 1077 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_r() [all …]
|
D | stk014.c | 74 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 103 reg_w(gspca_dev, 0x634, (ads >> 16) & 0xff); in rcv_val() 104 reg_w(gspca_dev, 0x635, (ads >> 8) & 0xff); in rcv_val() 105 reg_w(gspca_dev, 0x636, ads & 0xff); in rcv_val() 106 reg_w(gspca_dev, 0x637, 0); in rcv_val() 107 reg_w(gspca_dev, 0x638, 4); /* len & 0xff */ in rcv_val() 108 reg_w(gspca_dev, 0x639, 0); /* len >> 8 */ in rcv_val() 109 reg_w(gspca_dev, 0x63a, 0); in rcv_val() 110 reg_w(gspca_dev, 0x63b, 0); in rcv_val() 111 reg_w(gspca_dev, 0x630, 5); in rcv_val() [all …]
|
D | conex.c | 104 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 208 reg_w(gspca_dev, 0x006b, cx11646_fw1[i], 3); in cx11646_fw() 246 reg_w(gspca_dev, 0x0020, reg20, 8); in cx_sensor() 247 reg_w(gspca_dev, 0x0028, reg28, 8); in cx_sensor() 248 reg_w(gspca_dev, 0x0010, reg10, 2); in cx_sensor() 253 reg_w(gspca_dev, 0x0071, reg71a, 4); in cx_sensor() 256 reg_w(gspca_dev, 0x0071, reg71b, 4); in cx_sensor() 260 reg_w(gspca_dev, 0x0071, reg71c, 4); in cx_sensor() 263 reg_w(gspca_dev, 0x0071, reg71d, 4); in cx_sensor() 266 reg_w(gspca_dev, 0x007b, reg7b, 6); in cx_sensor() [all …]
|
D | pac7302.c | 265 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 291 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq() 389 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setbrightcont() 399 reg_w(gspca_dev, 0xa2 + i, v); in setbrightcont() 401 reg_w(gspca_dev, 0xdc, 0x01); in setbrightcont() 413 reg_w(gspca_dev, 0xff, 0x03); /* page 3 */ in setcolors() 414 reg_w(gspca_dev, 0x11, 0x01); in setcolors() 415 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setcolors() 419 reg_w(gspca_dev, 0x0f + 2 * i, (v >> 8) & 0x07); in setcolors() 420 reg_w(gspca_dev, 0x0f + 2 * i + 1, v); in setcolors() [all …]
|
D | ov519.c | 1999 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() [all …]
|
D | mars.c | 77 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 107 reg_w(gspca_dev, 4); in mi_w() 114 reg_w(gspca_dev, 2); in setbrightness() 122 reg_w(gspca_dev, 3); in setcolors() 129 reg_w(gspca_dev, 2); in setgamma() 136 reg_w(gspca_dev, 2); in setsharpness() 149 reg_w(gspca_dev, 2); in setilluminators() 262 reg_w(gspca_dev, 2); in sd_start() 284 reg_w(gspca_dev, 11); in sd_start() 289 reg_w(gspca_dev, 2); in sd_start() [all …]
|
D | vc032x.c | 2957 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 2979 reg_w(gspca_dev, 0xa0, address, 0xb33a); in read_sensor_register() 2980 reg_w(gspca_dev, 0xa0, 0x02, 0xb339); in read_sensor_register() 3013 reg_w(gspca_dev, 0xa0, 0x01, 0xb301); in vc032x_probe_sensor() 3014 reg_w(gspca_dev, 0x89, 0xf0ff, 0xffff); in vc032x_probe_sensor() 3029 reg_w(gspca_dev, 0xa0, 0x02, 0xb334); in vc032x_probe_sensor() 3030 reg_w(gspca_dev, 0xa0, ptsensor_info->m1, 0xb300); in vc032x_probe_sensor() 3031 reg_w(gspca_dev, 0xa0, ptsensor_info->m2, 0xb300); in vc032x_probe_sensor() 3032 reg_w(gspca_dev, 0xa0, 0x01, 0xb308); in vc032x_probe_sensor() 3033 reg_w(gspca_dev, 0xa0, 0x0c, 0xb309); in vc032x_probe_sensor() [all …]
|
D | touptek.c | 212 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function 240 reg_w(gspca_dev, p->value, p->index); in reg_w_buf() 264 reg_w(gspca_dev, value, REG_COARSE_INTEGRATION_TIME_); in setexposure() 265 reg_w(gspca_dev, value, REG_COARSE_INTEGRATION_TIME_); in setexposure() 293 reg_w(gspca_dev, normalized, REG_GREEN1_GAIN); in setggain() 294 reg_w(gspca_dev, normalized, REG_GREEN2_GAIN); in setggain() 313 reg_w(gspca_dev, normalized, REG_BLUE_GAIN); in setbgain() 332 reg_w(gspca_dev, normalized, REG_RED_GAIN); in setrgain() 380 reg_w(gspca_dev, 0x0000, REG_SCALING_MODE); in configure_wh() 381 reg_w(gspca_dev, 0x0010, REG_SCALE_M); in configure_wh() [all …]
|
D | zc3xx.c | 5560 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 5588 reg_w(gspca_dev, reg, 0x0092); in i2c_read() 5589 reg_w(gspca_dev, 0x02, 0x0090); /* <- read command */ in i2c_read() 5608 reg_w(gspca_dev, reg, 0x92); in i2c_write() 5609 reg_w(gspca_dev, valL, 0x93); in i2c_write() 5610 reg_w(gspca_dev, valH, 0x94); in i2c_write() 5611 reg_w(gspca_dev, 0x01, 0x90); /* <- write command */ in i2c_write() 5625 reg_w(gspca_dev, action->val, action->idx); in usb_exchange() 5699 reg_w(gspca_dev, matrix[i], 0x010a + i); in setmatrix() 5711 reg_w(gspca_dev, sharpness_tb[val][0], 0x01c6); in setsharpness() [all …]
|
D | ov534_9.c | 1134 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w() function 1199 reg_w(gspca_dev, OV534_REG_SUBADDR, reg); in sccb_read() 1200 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_WRITE_2); in sccb_read() 1204 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_READ_2); in sccb_read() 1216 reg_w(gspca_dev, (*data)[0], (*data)[1]); in reg_w_array() 1246 reg_w(gspca_dev, 0x21, data); in set_led() 1254 reg_w(gspca_dev, 0x23, data); in set_led() 1259 reg_w(gspca_dev, 0x21, data); in set_led() 1411 reg_w(gspca_dev, 0xe7, 0x3a); in sd_init() 1412 reg_w(gspca_dev, 0xe0, 0x08); in sd_init() [all …]
|
D | t613.c | 315 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 431 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init() 442 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init() 480 reg_w(gspca_dev, reg_to_write); in setcontrast() 488 reg_w(gspca_dev, reg_to_write); in setcolors() 535 reg_w(gspca_dev, reg_to_write); in setsharpness() 648 reg_w(gspca_dev, 0x6c80); in sd_init() 655 reg_w(gspca_dev, (sensor->reg80 << 8) + 0x80); in sd_init() 656 reg_w(gspca_dev, (sensor->reg80 << 8) + 0x80); in sd_init() 657 reg_w(gspca_dev, (sensor->reg8e << 8) + 0x8e); in sd_init() [all …]
|
D | spca1528.c | 86 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 208 reg_w(gspca_dev, 0x00, 0x0001, 0x2067); in sd_init() 209 reg_w(gspca_dev, 0x00, 0x00d0, 0x206b); in sd_init() 210 reg_w(gspca_dev, 0x00, 0x0000, 0x206c); in sd_init() 211 reg_w(gspca_dev, 0x00, 0x0001, 0x2069); in sd_init() 213 reg_w(gspca_dev, 0x00, 0x00c0, 0x206b); in sd_init() 214 reg_w(gspca_dev, 0x00, 0x0000, 0x206c); in sd_init() 215 reg_w(gspca_dev, 0x00, 0x0001, 0x2069); in sd_init() 233 reg_w(gspca_dev, 0xc5, 0x0003, 0x0000); in sd_isoc_init() 267 reg_w(gspca_dev, 0x31, 0x0000, 0x0004); /* start request */ in sd_start() [all …]
|
D | konica.c | 86 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function 131 reg_w(gspca_dev, 1, 0x0b); in konica_stream_on() 136 reg_w(gspca_dev, 0, 0x0b); in konica_stream_off() 167 reg_w(gspca_dev, 0, 0x0d); in sd_init() 193 reg_w(gspca_dev, n, 0x08); in sd_start() 385 reg_w(gspca_dev, ctrl->val, BRIGHTNESS_REG); in sd_s_ctrl() 390 reg_w(gspca_dev, ctrl->val, CONTRAST_REG); in sd_s_ctrl() 395 reg_w(gspca_dev, ctrl->val, SATURATION_REG); in sd_s_ctrl() 400 reg_w(gspca_dev, ctrl->val, WHITEBAL_REG); in sd_s_ctrl() 405 reg_w(gspca_dev, ctrl->val, SHARPNESS_REG); in sd_s_ctrl()
|
D | nw80x.c | 1535 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 1603 reg_w(gspca_dev, 0x0600, data + 1, len - 1); in i2c_w() 1604 reg_w(gspca_dev, 0x0600, data, len); in i2c_w() 1607 reg_w(gspca_dev, 0x0502, val, 2); in i2c_w() 1609 reg_w(gspca_dev, 0x0501, val, 1); in i2c_w() 1634 reg_w(gspca_dev, reg, cmd, len); in reg_w_buf() 1662 reg_w(gspca_dev, 0x1026, &val, 1); in setgain() 1669 reg_w(gspca_dev, 0x101d, v, 2); /* SIF reg0/1 (AGC) */ in setgain() 1682 reg_w(gspca_dev, 0x1019, v, 1); in setexposure() 1690 reg_w(gspca_dev, 0x101b, v, 2); in setexposure() [all …]
|
D | benq.c | 42 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 129 reg_w(gspca_dev, 0x003c, 0x0003); in sd_stopN() 130 reg_w(gspca_dev, 0x003c, 0x0004); in sd_stopN() 131 reg_w(gspca_dev, 0x003c, 0x0005); in sd_stopN() 132 reg_w(gspca_dev, 0x003c, 0x0006); in sd_stopN() 133 reg_w(gspca_dev, 0x003c, 0x0007); in sd_stopN()
|
D | sonixb.c | 468 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 503 reg_w(gspca_dev, 0x08, buf, 8); in i2c_w() 672 reg_w(gspca_dev, 0x05, buf, 3); in setgain() 677 reg_w(gspca_dev, 0x10, buf, 2); in setgain() 706 reg_w(gspca_dev, 0x19, ®, 1); in setexposure() 952 reg_w(gspca_dev, 0x01, &stop, 1); in sd_init() 1176 reg_w(gspca_dev, 0x01, ®s[0x01], 1); in sd_start() 1178 reg_w(gspca_dev, 0x17, ®s[0x17], 1); in sd_start() 1180 reg_w(gspca_dev, 0x01, ®s[0x01], in sd_start() 1208 reg_w(gspca_dev, 0x15, ®s[0x15], 2); in sd_start() [all …]
|
D | sonixj.c | 1200 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 1599 reg_w(gspca_dev, 0x01, regGpio, 2); in sd_init() 1862 reg_w(gspca_dev, 0x84, contrast, sizeof contrast); in setcontrast() 1890 reg_w(gspca_dev, 0x8a, reg8a, sizeof reg8a); in setcolors() 1947 reg_w(gspca_dev, 0x20, gamma, sizeof gamma); in setgamma() 2223 reg_w(gspca_dev, 0x01, reg0102, 2); in sd_start() 2224 reg_w(gspca_dev, 0x08, &sn9c1xx[8], 2); in sd_start() 2225 reg_w(gspca_dev, 0x17, &sn9c1xx[0x17], 5); in sd_start() 2239 reg_w(gspca_dev, 0x9a, reg9a, 6); in sd_start() 2241 reg_w(gspca_dev, 0xd4, regd4, sizeof regd4); in sd_start() [all …]
|
D | sn9c20x.c | 924 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, in reg_w() function 949 reg_w(gspca_dev, reg, &value, 1); in reg_w1() 956 reg_w(gspca_dev, 0x10c0, buffer, 8); in i2c_w() 1324 reg_w(gspca_dev, 0x10e1, cmatrix, 21); in set_cmatrix() 1350 reg_w(gspca_dev, 0x1190, gamma, 17); in set_gamma() 1540 reg_w(gspca_dev, 0x1100, &sd->jpeg_hdr[JPEG_QT0_OFFSET], 64); in set_quality() 1541 reg_w(gspca_dev, 0x1140, &sd->jpeg_hdr[JPEG_QT1_OFFSET], 64); in set_quality() 1790 reg_w(gspca_dev, bridge_init[i][0], &value, 1); in sd_init() 1802 reg_w(gspca_dev, 0x10c0, i2c_init, 9); in sd_init() 2018 reg_w(gspca_dev, 0x1100, &sd->jpeg_hdr[JPEG_QT0_OFFSET], 64); in sd_start() [all …]
|
D | sq930x.c | 440 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function 595 reg_w(gspca_dev, 0x0100 | SQ930_CTRL_GPIO, in gpio_set() 603 reg_w(gspca_dev, 0x0300 | SQ930_CTRL_GPIO, in gpio_set() 896 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0); in send_stop() 938 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0x0000); in sd_start()
|
D | etoms.c | 192 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 376 reg_w(gspca_dev, 0x62, FormLine, 6); in Et_init2() 402 reg_w(gspca_dev, ET_G_RED, RGBG, 6); in setcontrast() 540 reg_w(gspca_dev, ET_G_RED, GainRGBG, 6); in Et_init1()
|