Home
last modified time | relevance | path

Searched refs:reg_w (Results 1 – 25 of 27) sorted by relevance

12

/drivers/media/usb/gspca/
Dspca500.c316 static int reg_w(struct gspca_dev *gspca_dev, in reg_w() function
382 ret = reg_w(gspca_dev, data[i][0], data[i][2], data[i][1]); in write_vector()
400 err = reg_w(gspca_dev, request, ybase + i, qtable[0][i]); in spca50x_setup_qtable()
407 err = reg_w(gspca_dev, request, cbase + i, qtable[1][i]); in spca50x_setup_qtable()
426 reg_w(gspca_dev, 0x00, 0x8167, 0x5a); in spca500_clksmart310_init()
429 reg_w(gspca_dev, 0x00, 0x8168, 0x22); in spca500_clksmart310_init()
430 reg_w(gspca_dev, 0x00, 0x816a, 0xc0); in spca500_clksmart310_init()
431 reg_w(gspca_dev, 0x00, 0x816b, 0x0b); in spca500_clksmart310_init()
432 reg_w(gspca_dev, 0x00, 0x8169, 0x25); in spca500_clksmart310_init()
433 reg_w(gspca_dev, 0x00, 0x8157, 0x5b); in spca500_clksmart310_init()
[all …]
Dspca506.c78 static void reg_w(struct usb_device *dev, in reg_w() function
93 reg_w(gspca_dev->dev, 0x07, SAA7113_I2C_BASE_WRITE, 0x0004); in spca506_Initi2c()
101 reg_w(gspca_dev->dev, 0x07, reg, 0x0001); in spca506_WriteI2c()
102 reg_w(gspca_dev->dev, 0x07, valeur, 0x0000); in spca506_WriteI2c()
132 reg_w(gspca_dev->dev, 0x08, videomask, 0x0000); in spca506_SetNormeInput()
171 reg_w(dev, 0x04, (0x18 | (code & 0x07)), 0x0000); in spca506_Setsize()
173 reg_w(dev, 0x04, 0x41, 0x0001); in spca506_Setsize()
174 reg_w(dev, 0x04, 0x00, 0x0002); in spca506_Setsize()
176 reg_w(dev, 0x04, 0x00, 0x0003); in spca506_Setsize()
179 reg_w(dev, 0x04, 0x00, 0x0004); in spca506_Setsize()
[all …]
Dw996Xcf.c49 static void reg_w(struct sd *sd, u16 index, u16 value);
157 reg_w(sd, 0x39, 0x0010); /* JPEG clock enable */ in w9968cf_upload_quantizationtables()
162 reg_w(sd, 0x40 + i, a); in w9968cf_upload_quantizationtables()
163 reg_w(sd, 0x60 + i, b); in w9968cf_upload_quantizationtables()
165 reg_w(sd, 0x39, 0x0012); /* JPEG encoder enable */ in w9968cf_upload_quantizationtables()
342 reg_w(sd, 0x00, 0xff00); /* power-down */ in w9968cf_configure()
343 reg_w(sd, 0x00, 0xbf17); /* reset everything */ in w9968cf_configure()
344 reg_w(sd, 0x00, 0xbf10); /* normal operation */ in w9968cf_configure()
345 reg_w(sd, 0x01, 0x0010); /* serial bus, SDS high */ in w9968cf_configure()
346 reg_w(sd, 0x01, 0x0000); /* serial bus, SDS low */ in w9968cf_configure()
[all …]
Dstk1135.c73 static void reg_w(struct gspca_dev *gspca_dev, u16 index, u8 val) in reg_w() function
98 reg_w(gspca_dev, index, val); in reg_w_mask()
129 reg_w(gspca_dev, STK1135_REG_SBUSR, addr); in sensor_read_8()
131 reg_w(gspca_dev, STK1135_REG_SICTL, 0x20); in sensor_read_8()
150 reg_w(gspca_dev, STK1135_REG_SBUSW, addr); in sensor_write_8()
151 reg_w(gspca_dev, STK1135_REG_SBUSW + 1, data); in sensor_write_8()
153 reg_w(gspca_dev, STK1135_REG_SICTL, 0x01); in sensor_write_8()
329 reg_w(gspca_dev, STK1135_REG_TMGEN, 0x12); in stk1135_configure_clock()
332 reg_w(gspca_dev, STK1135_REG_TCP1 + 0, 0x41); in stk1135_configure_clock()
333 reg_w(gspca_dev, STK1135_REG_TCP1 + 1, 0x00); in stk1135_configure_clock()
[all …]
Dpac7311.c175 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
201 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq()
287 reg_w(gspca_dev, 0xff, 0x04); in setcontrast()
288 reg_w(gspca_dev, 0x10, val); in setcontrast()
290 reg_w(gspca_dev, 0x11, 0x01); in setcontrast()
295 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setgain()
296 reg_w(gspca_dev, 0x0e, 0x00); in setgain()
297 reg_w(gspca_dev, 0x0f, gspca_dev->gain->maximum - val + 1); in setgain()
300 reg_w(gspca_dev, 0x11, 0x01); in setgain()
305 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setexposure()
[all …]
Dtopro.c975 static void reg_w(struct gspca_dev *gspca_dev, u8 index, u8 value) in reg_w() function
1014 reg_w(gspca_dev, p->reg, p->val); in reg_w_buf()
1023 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_w()
1024 reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index); in i2c_w()
1025 reg_w(gspca_dev, TP6800_R13_SIF_TX_DATA, value); in i2c_w()
1026 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x01); in i2c_w()
1033 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_w()
1051 reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index); in i2c_r()
1052 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x02); in i2c_r()
1065 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_r()
[all …]
Dconex.c95 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
199 reg_w(gspca_dev, 0x006b, cx11646_fw1[i], 3); in cx11646_fw()
237 reg_w(gspca_dev, 0x0020, reg20, 8); in cx_sensor()
238 reg_w(gspca_dev, 0x0028, reg28, 8); in cx_sensor()
239 reg_w(gspca_dev, 0x0010, reg10, 2); in cx_sensor()
244 reg_w(gspca_dev, 0x0071, reg71a, 4); in cx_sensor()
247 reg_w(gspca_dev, 0x0071, reg71b, 4); in cx_sensor()
251 reg_w(gspca_dev, 0x0071, reg71c, 4); in cx_sensor()
254 reg_w(gspca_dev, 0x0071, reg71d, 4); in cx_sensor()
257 reg_w(gspca_dev, 0x007b, reg7b, 6); in cx_sensor()
[all …]
Dstk014.c65 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
94 reg_w(gspca_dev, 0x634, (ads >> 16) & 0xff); in rcv_val()
95 reg_w(gspca_dev, 0x635, (ads >> 8) & 0xff); in rcv_val()
96 reg_w(gspca_dev, 0x636, ads & 0xff); in rcv_val()
97 reg_w(gspca_dev, 0x637, 0); in rcv_val()
98 reg_w(gspca_dev, 0x638, 4); /* len & 0xff */ in rcv_val()
99 reg_w(gspca_dev, 0x639, 0); /* len >> 8 */ in rcv_val()
100 reg_w(gspca_dev, 0x63a, 0); in rcv_val()
101 reg_w(gspca_dev, 0x63b, 0); in rcv_val()
102 reg_w(gspca_dev, 0x630, 5); in rcv_val()
[all …]
Dpac7302.c256 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
282 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq()
380 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setbrightcont()
390 reg_w(gspca_dev, 0xa2 + i, v); in setbrightcont()
392 reg_w(gspca_dev, 0xdc, 0x01); in setbrightcont()
404 reg_w(gspca_dev, 0xff, 0x03); /* page 3 */ in setcolors()
405 reg_w(gspca_dev, 0x11, 0x01); in setcolors()
406 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setcolors()
410 reg_w(gspca_dev, 0x0f + 2 * i, (v >> 8) & 0x07); in setcolors()
411 reg_w(gspca_dev, 0x0f + 2 * i + 1, v); in setcolors()
[all …]
Dov519.c1989 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 …]
Dvc032x.c2953 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
2975 reg_w(gspca_dev, 0xa0, address, 0xb33a); in read_sensor_register()
2976 reg_w(gspca_dev, 0xa0, 0x02, 0xb339); in read_sensor_register()
3009 reg_w(gspca_dev, 0xa0, 0x01, 0xb301); in vc032x_probe_sensor()
3010 reg_w(gspca_dev, 0x89, 0xf0ff, 0xffff); in vc032x_probe_sensor()
3025 reg_w(gspca_dev, 0xa0, 0x02, 0xb334); in vc032x_probe_sensor()
3026 reg_w(gspca_dev, 0xa0, ptsensor_info->m1, 0xb300); in vc032x_probe_sensor()
3027 reg_w(gspca_dev, 0xa0, ptsensor_info->m2, 0xb300); in vc032x_probe_sensor()
3028 reg_w(gspca_dev, 0xa0, 0x01, 0xb308); in vc032x_probe_sensor()
3029 reg_w(gspca_dev, 0xa0, 0x0c, 0xb309); in vc032x_probe_sensor()
[all …]
Dmars.c68 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
98 reg_w(gspca_dev, 4); in mi_w()
105 reg_w(gspca_dev, 2); in setbrightness()
113 reg_w(gspca_dev, 3); in setcolors()
120 reg_w(gspca_dev, 2); in setgamma()
127 reg_w(gspca_dev, 2); in setsharpness()
140 reg_w(gspca_dev, 2); in setilluminators()
253 reg_w(gspca_dev, 2); in sd_start()
275 reg_w(gspca_dev, 11); in sd_start()
280 reg_w(gspca_dev, 2); in sd_start()
[all …]
Dzc3xx.c5551 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
5579 reg_w(gspca_dev, reg, 0x0092); in i2c_read()
5580 reg_w(gspca_dev, 0x02, 0x0090); /* <- read command */ in i2c_read()
5599 reg_w(gspca_dev, reg, 0x92); in i2c_write()
5600 reg_w(gspca_dev, valL, 0x93); in i2c_write()
5601 reg_w(gspca_dev, valH, 0x94); in i2c_write()
5602 reg_w(gspca_dev, 0x01, 0x90); /* <- write command */ in i2c_write()
5616 reg_w(gspca_dev, action->val, action->idx); in usb_exchange()
5690 reg_w(gspca_dev, matrix[i], 0x010a + i); in setmatrix()
5702 reg_w(gspca_dev, sharpness_tb[val][0], 0x01c6); in setsharpness()
[all …]
Dtouptek.c203 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function
231 reg_w(gspca_dev, p->value, p->index); in reg_w_buf()
255 reg_w(gspca_dev, value, REG_COARSE_INTEGRATION_TIME_); in setexposure()
256 reg_w(gspca_dev, value, REG_COARSE_INTEGRATION_TIME_); in setexposure()
284 reg_w(gspca_dev, normalized, REG_GREEN1_GAIN); in setggain()
285 reg_w(gspca_dev, normalized, REG_GREEN2_GAIN); in setggain()
304 reg_w(gspca_dev, normalized, REG_BLUE_GAIN); in setbgain()
323 reg_w(gspca_dev, normalized, REG_RED_GAIN); in setrgain()
371 reg_w(gspca_dev, 0x0000, REG_SCALING_MODE); in configure_wh()
372 reg_w(gspca_dev, 0x0010, REG_SCALE_M); in configure_wh()
[all …]
Dov534_9.c1125 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w() function
1191 reg_w(gspca_dev, OV534_REG_SUBADDR, reg); in sccb_read()
1192 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_WRITE_2); in sccb_read()
1196 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_READ_2); in sccb_read()
1208 reg_w(gspca_dev, (*data)[0], (*data)[1]); in reg_w_array()
1238 reg_w(gspca_dev, 0x21, data); in set_led()
1246 reg_w(gspca_dev, 0x23, data); in set_led()
1251 reg_w(gspca_dev, 0x21, data); in set_led()
1403 reg_w(gspca_dev, 0xe7, 0x3a); in sd_init()
1404 reg_w(gspca_dev, 0xe0, 0x08); in sd_init()
[all …]
Dt613.c306 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
422 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init()
433 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init()
471 reg_w(gspca_dev, reg_to_write); in setcontrast()
479 reg_w(gspca_dev, reg_to_write); in setcolors()
526 reg_w(gspca_dev, reg_to_write); in setsharpness()
639 reg_w(gspca_dev, 0x6c80); in sd_init()
646 reg_w(gspca_dev, (sensor->reg80 << 8) + 0x80); in sd_init()
647 reg_w(gspca_dev, (sensor->reg80 << 8) + 0x80); in sd_init()
648 reg_w(gspca_dev, (sensor->reg8e << 8) + 0x8e); in sd_init()
[all …]
Dspca1528.c82 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
204 reg_w(gspca_dev, 0x00, 0x0001, 0x2067); in sd_init()
205 reg_w(gspca_dev, 0x00, 0x00d0, 0x206b); in sd_init()
206 reg_w(gspca_dev, 0x00, 0x0000, 0x206c); in sd_init()
207 reg_w(gspca_dev, 0x00, 0x0001, 0x2069); in sd_init()
209 reg_w(gspca_dev, 0x00, 0x00c0, 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()
229 reg_w(gspca_dev, 0xc5, 0x0003, 0x0000); in sd_isoc_init()
263 reg_w(gspca_dev, 0x31, 0x0000, 0x0004); /* start request */ in sd_start()
[all …]
Dkonica.c77 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function
127 reg_w(gspca_dev, 1, 0x0b); in konica_stream_on()
132 reg_w(gspca_dev, 0, 0x0b); in konica_stream_off()
163 reg_w(gspca_dev, 0, 0x0d); in sd_init()
189 reg_w(gspca_dev, n, 0x08); in sd_start()
381 reg_w(gspca_dev, ctrl->val, BRIGHTNESS_REG); in sd_s_ctrl()
386 reg_w(gspca_dev, ctrl->val, CONTRAST_REG); in sd_s_ctrl()
391 reg_w(gspca_dev, ctrl->val, SATURATION_REG); in sd_s_ctrl()
396 reg_w(gspca_dev, ctrl->val, WHITEBAL_REG); in sd_s_ctrl()
401 reg_w(gspca_dev, ctrl->val, SHARPNESS_REG); in sd_s_ctrl()
Dnw80x.c1526 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
1599 reg_w(gspca_dev, 0x0600, data + 1, len - 1); in i2c_w()
1600 reg_w(gspca_dev, 0x0600, data, len); in i2c_w()
1603 reg_w(gspca_dev, 0x0502, val, 2); in i2c_w()
1605 reg_w(gspca_dev, 0x0501, val, 1); in i2c_w()
1630 reg_w(gspca_dev, reg, cmd, len); in reg_w_buf()
1658 reg_w(gspca_dev, 0x1026, &val, 1); in setgain()
1665 reg_w(gspca_dev, 0x101d, v, 2); /* SIF reg0/1 (AGC) */ in setgain()
1678 reg_w(gspca_dev, 0x1019, v, 1); in setexposure()
1686 reg_w(gspca_dev, 0x101b, v, 2); in setexposure()
[all …]
Dsonixb.c464 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
499 reg_w(gspca_dev, 0x08, buf, 8); in i2c_w()
668 reg_w(gspca_dev, 0x05, buf, 3); in setgain()
673 reg_w(gspca_dev, 0x10, buf, 2); in setgain()
702 reg_w(gspca_dev, 0x19, &reg, 1); in setexposure()
948 reg_w(gspca_dev, 0x01, &stop, 1); in sd_init()
1172 reg_w(gspca_dev, 0x01, &regs[0x01], 1); in sd_start()
1174 reg_w(gspca_dev, 0x17, &regs[0x17], 1); in sd_start()
1176 reg_w(gspca_dev, 0x01, &regs[0x01], in sd_start()
1204 reg_w(gspca_dev, 0x15, &regs[0x15], 2); in sd_start()
[all …]
Dbenq.c33 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
120 reg_w(gspca_dev, 0x003c, 0x0003); in sd_stopN()
121 reg_w(gspca_dev, 0x003c, 0x0004); in sd_stopN()
122 reg_w(gspca_dev, 0x003c, 0x0005); in sd_stopN()
123 reg_w(gspca_dev, 0x003c, 0x0006); in sd_stopN()
124 reg_w(gspca_dev, 0x003c, 0x0007); in sd_stopN()
Dsonixj.c1196 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
1595 reg_w(gspca_dev, 0x01, regGpio, 2); in sd_init()
1858 reg_w(gspca_dev, 0x84, contrast, sizeof contrast); in setcontrast()
1886 reg_w(gspca_dev, 0x8a, reg8a, sizeof reg8a); in setcolors()
1943 reg_w(gspca_dev, 0x20, gamma, sizeof gamma); in setgamma()
2219 reg_w(gspca_dev, 0x01, reg0102, 2); in sd_start()
2220 reg_w(gspca_dev, 0x08, &sn9c1xx[8], 2); in sd_start()
2221 reg_w(gspca_dev, 0x17, &sn9c1xx[0x17], 5); in sd_start()
2235 reg_w(gspca_dev, 0x9a, reg9a, 6); in sd_start()
2237 reg_w(gspca_dev, 0xd4, regd4, sizeof regd4); in sd_start()
[all …]
Dsn9c20x.c930 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, in reg_w() function
955 reg_w(gspca_dev, reg, &value, 1); in reg_w1()
962 reg_w(gspca_dev, 0x10c0, buffer, 8); in i2c_w()
1330 reg_w(gspca_dev, 0x10e1, cmatrix, 21); in set_cmatrix()
1356 reg_w(gspca_dev, 0x1190, gamma, 17); in set_gamma()
1552 reg_w(gspca_dev, 0x1100, &sd->jpeg_hdr[JPEG_QT0_OFFSET], 64); in set_quality()
1553 reg_w(gspca_dev, 0x1140, &sd->jpeg_hdr[JPEG_QT1_OFFSET], 64); in set_quality()
1811 reg_w(gspca_dev, bridge_init[i][0], &value, 1); in sd_init()
1823 reg_w(gspca_dev, 0x10c0, i2c_init, 9); in sd_init()
2039 reg_w(gspca_dev, 0x1100, &sd->jpeg_hdr[JPEG_QT0_OFFSET], 64); in sd_start()
[all …]
Dsq930x.c436 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function
591 reg_w(gspca_dev, 0x0100 | SQ930_CTRL_GPIO, in gpio_set()
599 reg_w(gspca_dev, 0x0300 | SQ930_CTRL_GPIO, in gpio_set()
892 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0); in send_stop()
934 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0x0000); in sd_start()
Detoms.c183 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
367 reg_w(gspca_dev, 0x62, FormLine, 6); in Et_init2()
393 reg_w(gspca_dev, ET_G_RED, RGBG, 6); in setcontrast()
531 reg_w(gspca_dev, ET_G_RED, GainRGBG, 6); in Et_init1()

12