Home
last modified time | relevance | path

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

/drivers/media/usb/gspca/
Dspca500.c330 static int reg_w(struct gspca_dev *gspca_dev, in reg_w() function
395 ret = reg_w(gspca_dev, data[i][0], data[i][2], data[i][1]); in write_vector()
413 err = reg_w(gspca_dev, request, ybase + i, qtable[0][i]); in spca50x_setup_qtable()
420 err = reg_w(gspca_dev, request, cbase + i, qtable[1][i]); in spca50x_setup_qtable()
439 reg_w(gspca_dev, 0x00, 0x8167, 0x5a); in spca500_clksmart310_init()
442 reg_w(gspca_dev, 0x00, 0x8168, 0x22); in spca500_clksmart310_init()
443 reg_w(gspca_dev, 0x00, 0x816a, 0xc0); in spca500_clksmart310_init()
444 reg_w(gspca_dev, 0x00, 0x816b, 0x0b); in spca500_clksmart310_init()
445 reg_w(gspca_dev, 0x00, 0x8169, 0x25); in spca500_clksmart310_init()
446 reg_w(gspca_dev, 0x00, 0x8157, 0x5b); in spca500_clksmart310_init()
[all …]
Dspca506.c91 static void reg_w(struct usb_device *dev, in reg_w() function
106 reg_w(gspca_dev->dev, 0x07, SAA7113_I2C_BASE_WRITE, 0x0004); in spca506_Initi2c()
114 reg_w(gspca_dev->dev, 0x07, reg, 0x0001); in spca506_WriteI2c()
115 reg_w(gspca_dev->dev, 0x07, valeur, 0x0000); in spca506_WriteI2c()
145 reg_w(gspca_dev->dev, 0x08, videomask, 0x0000); in spca506_SetNormeInput()
182 reg_w(dev, 0x04, (0x18 | (code & 0x07)), 0x0000); in spca506_Setsize()
184 reg_w(dev, 0x04, 0x41, 0x0001); in spca506_Setsize()
185 reg_w(dev, 0x04, 0x00, 0x0002); in spca506_Setsize()
187 reg_w(dev, 0x04, 0x00, 0x0003); in spca506_Setsize()
190 reg_w(dev, 0x04, 0x00, 0x0004); in spca506_Setsize()
[all …]
Dw996Xcf.c64 static void reg_w(struct sd *sd, u16 index, u16 value);
159 reg_w(sd, 0x39, 0x0010); /* JPEG clock enable */ in w9968cf_upload_quantizationtables()
164 reg_w(sd, 0x40 + i, a); in w9968cf_upload_quantizationtables()
165 reg_w(sd, 0x60 + i, b); in w9968cf_upload_quantizationtables()
167 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(sd, 0x01, 0x0010); /* serial bus, SDS high */ in w9968cf_configure()
347 reg_w(sd, 0x01, 0x0000); /* serial bus, SDS low */ in w9968cf_configure()
[all …]
Dpac7311.c188 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
214 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq()
300 reg_w(gspca_dev, 0xff, 0x04); in setcontrast()
301 reg_w(gspca_dev, 0x10, val); in setcontrast()
303 reg_w(gspca_dev, 0x11, 0x01); in setcontrast()
308 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setgain()
309 reg_w(gspca_dev, 0x0e, 0x00); in setgain()
310 reg_w(gspca_dev, 0x0f, gspca_dev->gain->maximum - val + 1); in setgain()
313 reg_w(gspca_dev, 0x11, 0x01); in setgain()
318 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setexposure()
[all …]
Dtopro.c984 static void reg_w(struct gspca_dev *gspca_dev, u8 index, u8 value) in reg_w() function
1023 reg_w(gspca_dev, p->reg, p->val); in reg_w_buf()
1032 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_w()
1033 reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index); in i2c_w()
1034 reg_w(gspca_dev, TP6800_R13_SIF_TX_DATA, value); in i2c_w()
1035 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x01); in i2c_w()
1042 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_w()
1060 reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index); in i2c_r()
1061 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x02); in i2c_r()
1074 reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00); in i2c_r()
[all …]
Dconex.c108 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
211 reg_w(gspca_dev, 0x006b, cx11646_fw1[i], 3); in cx11646_fw()
249 reg_w(gspca_dev, 0x0020, reg20, 8); in cx_sensor()
250 reg_w(gspca_dev, 0x0028, reg28, 8); in cx_sensor()
251 reg_w(gspca_dev, 0x0010, reg10, 2); in cx_sensor()
256 reg_w(gspca_dev, 0x0071, reg71a, 4); in cx_sensor()
259 reg_w(gspca_dev, 0x0071, reg71b, 4); in cx_sensor()
263 reg_w(gspca_dev, 0x0071, reg71c, 4); in cx_sensor()
266 reg_w(gspca_dev, 0x0071, reg71d, 4); in cx_sensor()
269 reg_w(gspca_dev, 0x007b, reg7b, 6); in cx_sensor()
[all …]
Dstk014.c78 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
107 reg_w(gspca_dev, 0x634, (ads >> 16) & 0xff); in rcv_val()
108 reg_w(gspca_dev, 0x635, (ads >> 8) & 0xff); in rcv_val()
109 reg_w(gspca_dev, 0x636, ads & 0xff); in rcv_val()
110 reg_w(gspca_dev, 0x637, 0); in rcv_val()
111 reg_w(gspca_dev, 0x638, 4); /* len & 0xff */ in rcv_val()
112 reg_w(gspca_dev, 0x639, 0); /* len >> 8 */ in rcv_val()
113 reg_w(gspca_dev, 0x63a, 0); in rcv_val()
114 reg_w(gspca_dev, 0x63b, 0); in rcv_val()
115 reg_w(gspca_dev, 0x630, 5); in rcv_val()
[all …]
Dpac7302.c271 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
297 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq()
395 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setbrightcont()
405 reg_w(gspca_dev, 0xa2 + i, v); in setbrightcont()
407 reg_w(gspca_dev, 0xdc, 0x01); in setbrightcont()
419 reg_w(gspca_dev, 0xff, 0x03); /* page 3 */ in setcolors()
420 reg_w(gspca_dev, 0x11, 0x01); in setcolors()
421 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setcolors()
425 reg_w(gspca_dev, 0x0f + 2 * i, (v >> 8) & 0x07); in setcolors()
426 reg_w(gspca_dev, 0x0f + 2 * i + 1, v); in setcolors()
[all …]
Dov519.c2035 static void reg_w(struct sd *sd, u16 index, u16 value) in reg_w() function
2171 reg_w(sd, index, value); in reg_w_mask()
2210 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov511_i2c_w()
2213 reg_w(sd, R51x_I2C_DATA, value); in ov511_i2c_w()
2216 reg_w(sd, R511_I2C_CTL, 0x01); in ov511_i2c_w()
2242 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov511_i2c_r()
2245 reg_w(sd, R511_I2C_CTL, 0x03); in ov511_i2c_r()
2258 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
2269 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r()
2282 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r()
[all …]
Dvc032x.c2960 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
2982 reg_w(gspca_dev, 0xa0, address, 0xb33a); in read_sensor_register()
2983 reg_w(gspca_dev, 0xa0, 0x02, 0xb339); in read_sensor_register()
3016 reg_w(gspca_dev, 0xa0, 0x01, 0xb301); in vc032x_probe_sensor()
3017 reg_w(gspca_dev, 0x89, 0xf0ff, 0xffff); in vc032x_probe_sensor()
3032 reg_w(gspca_dev, 0xa0, 0x02, 0xb334); in vc032x_probe_sensor()
3033 reg_w(gspca_dev, 0xa0, ptsensor_info->m1, 0xb300); in vc032x_probe_sensor()
3034 reg_w(gspca_dev, 0xa0, ptsensor_info->m2, 0xb300); in vc032x_probe_sensor()
3035 reg_w(gspca_dev, 0xa0, 0x01, 0xb308); in vc032x_probe_sensor()
3036 reg_w(gspca_dev, 0xa0, 0x0c, 0xb309); in vc032x_probe_sensor()
[all …]
Dmars.c81 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
111 reg_w(gspca_dev, 4); in mi_w()
118 reg_w(gspca_dev, 2); in setbrightness()
126 reg_w(gspca_dev, 3); in setcolors()
133 reg_w(gspca_dev, 2); in setgamma()
140 reg_w(gspca_dev, 2); in setsharpness()
153 reg_w(gspca_dev, 2); in setilluminators()
265 reg_w(gspca_dev, 2); in sd_start()
287 reg_w(gspca_dev, 11); in sd_start()
292 reg_w(gspca_dev, 2); in sd_start()
[all …]
Dzc3xx.c5570 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
5598 reg_w(gspca_dev, reg, 0x0092); in i2c_read()
5599 reg_w(gspca_dev, 0x02, 0x0090); /* <- read command */ in i2c_read()
5618 reg_w(gspca_dev, reg, 0x92); in i2c_write()
5619 reg_w(gspca_dev, valL, 0x93); in i2c_write()
5620 reg_w(gspca_dev, valH, 0x94); in i2c_write()
5621 reg_w(gspca_dev, 0x01, 0x90); /* <- write command */ in i2c_write()
5635 reg_w(gspca_dev, action->val, action->idx); in usb_exchange()
5709 reg_w(gspca_dev, matrix[i], 0x010a + i); in setmatrix()
5721 reg_w(gspca_dev, sharpness_tb[val][0], 0x01c6); in setsharpness()
[all …]
Dov534_9.c869 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w() function
933 reg_w(gspca_dev, OV534_REG_SUBADDR, reg); in sccb_read()
934 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_WRITE_2); in sccb_read()
938 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_READ_2); in sccb_read()
950 reg_w(gspca_dev, (*data)[0], (*data)[1]); in reg_w_array()
980 reg_w(gspca_dev, 0x21, data); in set_led()
988 reg_w(gspca_dev, 0x23, data); in set_led()
993 reg_w(gspca_dev, 0x21, data); in set_led()
1145 reg_w(gspca_dev, 0xe7, 0x3a); in sd_init()
1146 reg_w(gspca_dev, 0xe0, 0x08); in sd_init()
[all …]
Dt613.c319 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
435 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init()
446 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init()
484 reg_w(gspca_dev, reg_to_write); in setcontrast()
492 reg_w(gspca_dev, reg_to_write); in setcolors()
539 reg_w(gspca_dev, reg_to_write); in setsharpness()
652 reg_w(gspca_dev, 0x6c80); in sd_init()
659 reg_w(gspca_dev, (sensor->reg80 << 8) + 0x80); in sd_init()
660 reg_w(gspca_dev, (sensor->reg80 << 8) + 0x80); in sd_init()
661 reg_w(gspca_dev, (sensor->reg8e << 8) + 0x8e); in sd_init()
[all …]
Dspca1528.c90 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
211 reg_w(gspca_dev, 0x00, 0x0001, 0x2067); in sd_init()
212 reg_w(gspca_dev, 0x00, 0x00d0, 0x206b); in sd_init()
213 reg_w(gspca_dev, 0x00, 0x0000, 0x206c); in sd_init()
214 reg_w(gspca_dev, 0x00, 0x0001, 0x2069); in sd_init()
216 reg_w(gspca_dev, 0x00, 0x00c0, 0x206b); in sd_init()
217 reg_w(gspca_dev, 0x00, 0x0000, 0x206c); in sd_init()
218 reg_w(gspca_dev, 0x00, 0x0001, 0x2069); in sd_init()
236 reg_w(gspca_dev, 0xc5, 0x0003, 0x0000); in sd_isoc_init()
269 reg_w(gspca_dev, 0x31, 0x0000, 0x0004); /* start request */ in sd_start()
[all …]
Dkonica.c90 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function
135 reg_w(gspca_dev, 1, 0x0b); in konica_stream_on()
140 reg_w(gspca_dev, 0, 0x0b); in konica_stream_off()
171 reg_w(gspca_dev, 0, 0x0d); in sd_init()
194 reg_w(gspca_dev, n, 0x08); in sd_start()
386 reg_w(gspca_dev, ctrl->val, BRIGHTNESS_REG); in sd_s_ctrl()
391 reg_w(gspca_dev, ctrl->val, CONTRAST_REG); in sd_s_ctrl()
396 reg_w(gspca_dev, ctrl->val, SATURATION_REG); in sd_s_ctrl()
401 reg_w(gspca_dev, ctrl->val, WHITEBAL_REG); in sd_s_ctrl()
406 reg_w(gspca_dev, ctrl->val, SHARPNESS_REG); in sd_s_ctrl()
Dnw80x.c1539 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
1606 reg_w(gspca_dev, 0x0600, data + 1, len - 1); in i2c_w()
1607 reg_w(gspca_dev, 0x0600, data, len); in i2c_w()
1610 reg_w(gspca_dev, 0x0502, val, 2); in i2c_w()
1612 reg_w(gspca_dev, 0x0501, val, 1); in i2c_w()
1637 reg_w(gspca_dev, reg, cmd, len); in reg_w_buf()
1665 reg_w(gspca_dev, 0x1026, &val, 1); in setgain()
1672 reg_w(gspca_dev, 0x101d, v, 2); /* SIF reg0/1 (AGC) */ in setgain()
1685 reg_w(gspca_dev, 0x1019, v, 1); in setexposure()
1693 reg_w(gspca_dev, 0x101b, v, 2); in setexposure()
[all …]
Dsonixb.c472 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
507 reg_w(gspca_dev, 0x08, buf, 8); in i2c_w()
679 reg_w(gspca_dev, 0x05, buf, 3); in setgain()
684 reg_w(gspca_dev, 0x10, buf, 2); in setgain()
713 reg_w(gspca_dev, 0x19, &reg, 1); in setexposure()
959 reg_w(gspca_dev, 0x01, &stop, 1); in sd_init()
1183 reg_w(gspca_dev, 0x01, &regs[0x01], 1); in sd_start()
1185 reg_w(gspca_dev, 0x17, &regs[0x17], 1); in sd_start()
1187 reg_w(gspca_dev, 0x01, &regs[0x01], in sd_start()
1215 reg_w(gspca_dev, 0x15, &regs[0x15], 2); in sd_start()
[all …]
Dbenq.c46 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
135 reg_w(gspca_dev, 0x003c, 0x0003); in sd_stopN()
136 reg_w(gspca_dev, 0x003c, 0x0004); in sd_stopN()
137 reg_w(gspca_dev, 0x003c, 0x0005); in sd_stopN()
138 reg_w(gspca_dev, 0x003c, 0x0006); in sd_stopN()
139 reg_w(gspca_dev, 0x003c, 0x0007); in sd_stopN()
Dsonixj.c1204 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
1602 reg_w(gspca_dev, 0x01, regGpio, 2); in sd_init()
1865 reg_w(gspca_dev, 0x84, contrast, sizeof contrast); in setcontrast()
1893 reg_w(gspca_dev, 0x8a, reg8a, sizeof reg8a); in setcolors()
1950 reg_w(gspca_dev, 0x20, gamma, sizeof gamma); in setgamma()
2225 reg_w(gspca_dev, 0x01, reg0102, 2); in sd_start()
2226 reg_w(gspca_dev, 0x08, &sn9c1xx[8], 2); in sd_start()
2227 reg_w(gspca_dev, 0x17, &sn9c1xx[0x17], 5); in sd_start()
2241 reg_w(gspca_dev, 0x9a, reg9a, 6); in sd_start()
2243 reg_w(gspca_dev, 0xd4, regd4, sizeof regd4); in sd_start()
[all …]
Dsn9c20x.c947 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, in reg_w() function
972 reg_w(gspca_dev, reg, &value, 1); in reg_w1()
979 reg_w(gspca_dev, 0x10c0, buffer, 8); in i2c_w()
1347 reg_w(gspca_dev, 0x10e1, cmatrix, 21); in set_cmatrix()
1373 reg_w(gspca_dev, 0x1190, gamma, 17); in set_gamma()
1563 reg_w(gspca_dev, 0x1100, &sd->jpeg_hdr[JPEG_QT0_OFFSET], 64); in set_quality()
1564 reg_w(gspca_dev, 0x1140, &sd->jpeg_hdr[JPEG_QT1_OFFSET], 64); in set_quality()
1830 reg_w(gspca_dev, bridge_init[i][0], &value, 1); in sd_init()
1842 reg_w(gspca_dev, 0x10c0, i2c_init, 9); in sd_init()
2059 reg_w(gspca_dev, 0x1100, &sd->jpeg_hdr[JPEG_QT0_OFFSET], 64); in sd_start()
[all …]
Dsq930x.c444 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function
599 reg_w(gspca_dev, 0x0100 | SQ930_CTRL_GPIO, in gpio_set()
607 reg_w(gspca_dev, 0x0300 | SQ930_CTRL_GPIO, in gpio_set()
899 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0); in send_stop()
940 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0x0000); in sd_start()
Detoms.c196 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function
379 reg_w(gspca_dev, 0x62, FormLine, 6); in Et_init2()
405 reg_w(gspca_dev, ET_G_RED, RGBG, 6); in setcontrast()
545 reg_w(gspca_dev, ET_G_RED, GainRGBG, 6); in Et_init1()
/drivers/net/wireless/ipw2x00/
Dipw2200.h385 u32 reg_w; /**< 'write' reg (queue head), addr in domain 1 */ member
Dipw2200.c3779 q->reg_w = write; in ipw_queue_init()
5093 ipw_write32(priv, q->reg_w, q->first_empty); in ipw_queue_tx_hcmd()
10391 ipw_write32(priv, q->reg_w, q->first_empty); in ipw_tx_skb()