Home
last modified time | relevance | path

Searched refs:reg_w (Results 1 - 25 of 54) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/media/usb/gspca/
H A Dw996Xcf.c50 static void reg_w(struct sd *sd, u16 index, u16 value);
93 /* We don't use reg_w here, as that would cause all writes when in w9968cf_write_sb()
158 reg_w(sd, 0x39, 0x0010); /* JPEG clock enable */ in w9968cf_upload_quantizationtables()
163 reg_w(sd, 0x40 + i, a); in w9968cf_upload_quantizationtables()
164 reg_w(sd, 0x60 + i, b); in w9968cf_upload_quantizationtables()
166 reg_w(sd, 0x39, 0x0012); /* JPEG encoder enable */ in w9968cf_upload_quantizationtables()
343 reg_w(sd, 0x00, 0xff00); /* power-down */ in w9968cf_configure()
344 reg_w(sd, 0x00, 0xbf17); /* reset everything */ in w9968cf_configure()
345 reg_w(sd, 0x00, 0xbf10); /* normal operation */ in w9968cf_configure()
346 reg_w(s in w9968cf_configure()
[all...]
H A 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(de in spca506_Setsize()
[all...]
H A Dstk1135.c73 static void reg_w(struct gspca_dev *gspca_dev, u16 index, u8 val) in reg_w() function
88 gspca_dbg(gspca_dev, D_USBO, "reg_w 0x%x:=0x%02x\n", index, val); in reg_w()
90 pr_err("reg_w 0x%x err %d\n", index, ret); in reg_w()
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_de in stk1135_configure_clock()
[all...]
H A Dpac7311.c175 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
191 pr_err("reg_w() failed index 0x%02x, value 0x%02x, error %d\n", in reg_w()
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_de in setgain()
[all...]
H A 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_de in spca500_clksmart310_init()
[all...]
H A Dstk014.c65 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
82 pr_err("reg_w err %d\n", ret); in reg_w()
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_de in rcv_val()
[all...]
H A Dpac7302.c256 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
272 pr_err("reg_w() failed i: %02x v: %02x error %d\n", in reg_w()
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_de in setcolors()
[all...]
H A Dtouptek.c203 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function
209 "reg_w bReq=0x0B, bReqT=0xC0, wVal=0x%04X, wInd=0x%04X\n\n", in reg_w()
215 gspca_err(gspca_dev, "Failed reg_w(0x0B, 0xC0, 0x%04X, 0x%04X) w/ rc %d\n", in reg_w()
221 gspca_err(gspca_dev, "Bad reply to reg_w(0x0B, 0xC0, 0x%04X, 0x%04X\n", in reg_w()
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_de in setbgain()
[all...]
H A 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_de in sd_start()
[all...]
H A Dov519.c1989 static void reg_w(struct sd *sd, u16 index, u16 value) in reg_w() function
2032 gspca_err(gspca_dev, "reg_w %02x failed %d\n", index, ret); in reg_w()
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(s in ov511_i2c_r()
[all...]
H A Dconex.c95 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
103 gspca_err(gspca_dev, "reg_w: buffer overflow\n"); in reg_w()
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_de in cx_sensor()
[all...]
H A Dspca1528.c82 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
99 pr_err("reg_w err %d\n", ret); in reg_w()
124 pr_err("reg_w err %d\n", ret); in reg_wb()
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_de in sd_init()
[all...]
H A Dbenq.c33 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
50 pr_err("reg_w err %d\n", ret); in reg_w()
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()
/kernel/linux/linux-6.6/drivers/media/usb/gspca/
H A Dw996Xcf.c49 static void reg_w(struct sd *sd, u16 index, u16 value);
92 /* We don't use reg_w here, as that would cause all writes when in w9968cf_write_sb()
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(s in w9968cf_configure()
[all...]
H A 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(de in spca506_Setsize()
[all...]
H A Dstk1135.c73 static void reg_w(struct gspca_dev *gspca_dev, u16 index, u8 val) in reg_w() function
88 gspca_dbg(gspca_dev, D_USBO, "reg_w 0x%x:=0x%02x\n", index, val); in reg_w()
90 pr_err("reg_w 0x%x err %d\n", index, ret); in reg_w()
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_de in stk1135_configure_clock()
[all...]
H A Dpac7311.c175 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
191 pr_err("reg_w() failed index 0x%02x, value 0x%02x, error %d\n", in reg_w()
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_de in setgain()
[all...]
H A 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_de in spca500_clksmart310_init()
[all...]
H A Dstk014.c65 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
82 pr_err("reg_w err %d\n", ret); in reg_w()
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_de in rcv_val()
[all...]
H A Dpac7302.c256 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
272 pr_err("reg_w() failed i: %02x v: %02x error %d\n", in reg_w()
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_de in setcolors()
[all...]
H A Dtouptek.c203 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function
209 "reg_w bReq=0x0B, bReqT=0xC0, wVal=0x%04X, wInd=0x%04X\n\n", in reg_w()
215 gspca_err(gspca_dev, "Failed reg_w(0x0B, 0xC0, 0x%04X, 0x%04X) w/ rc %d\n", in reg_w()
221 gspca_err(gspca_dev, "Bad reply to reg_w(0x0B, 0xC0, 0x%04X, 0x%04X\n", in reg_w()
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_de in setbgain()
[all...]
H A 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_de in sd_start()
[all...]
H A Dov519.c1989 static void reg_w(struct sd *sd, u16 index, u16 value) in reg_w() function
2032 gspca_err(gspca_dev, "reg_w %02x failed %d\n", index, ret); in reg_w()
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(s in ov511_i2c_r()
[all...]
H A Dconex.c95 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
103 gspca_err(gspca_dev, "reg_w: buffer overflow\n"); in reg_w()
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_de in cx_sensor()
[all...]
H A Dspca1528.c82 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
99 pr_err("reg_w err %d\n", ret); in reg_w()
124 pr_err("reg_w err %d\n", ret); in reg_wb()
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_de in sd_init()
[all...]

Completed in 28 milliseconds

123