/linux-2.6.39/drivers/media/video/gspca/ |
D | w996Xcf.c | 62 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() 338 reg_w(sd, 0x00, 0xff00); /* power-down */ in w9968cf_configure() 339 reg_w(sd, 0x00, 0xbf17); /* reset everything */ in w9968cf_configure() 340 reg_w(sd, 0x00, 0xbf10); /* normal operation */ in w9968cf_configure() 341 reg_w(sd, 0x01, 0x0010); /* serial bus, SDS high */ in w9968cf_configure() 342 reg_w(sd, 0x01, 0x0000); /* serial bus, SDS low */ in w9968cf_configure() [all …]
|
D | spca500.c | 387 static int reg_w(struct gspca_dev *gspca_dev, in reg_w() function 452 ret = reg_w(gspca_dev, data[i][0], data[i][2], data[i][1]); in write_vector() 470 err = reg_w(gspca_dev, request, ybase + i, qtable[0][i]); in spca50x_setup_qtable() 477 err = reg_w(gspca_dev, request, cbase + i, qtable[1][i]); in spca50x_setup_qtable() 496 reg_w(gspca_dev, 0x00, 0x8167, 0x5a); in spca500_clksmart310_init() 499 reg_w(gspca_dev, 0x00, 0x8168, 0x22); in spca500_clksmart310_init() 500 reg_w(gspca_dev, 0x00, 0x816a, 0xc0); in spca500_clksmart310_init() 501 reg_w(gspca_dev, 0x00, 0x816b, 0x0b); in spca500_clksmart310_init() 502 reg_w(gspca_dev, 0x00, 0x8169, 0x25); in spca500_clksmart310_init() 503 reg_w(gspca_dev, 0x00, 0x8157, 0x5b); in spca500_clksmart310_init() [all …]
|
D | spca506.c | 164 static void reg_w(struct usb_device *dev, in reg_w() function 179 reg_w(gspca_dev->dev, 0x07, SAA7113_I2C_BASE_WRITE, 0x0004); in spca506_Initi2c() 187 reg_w(gspca_dev->dev, 0x07, reg, 0x0001); in spca506_WriteI2c() 188 reg_w(gspca_dev->dev, 0x07, valeur, 0x0000); in spca506_WriteI2c() 218 reg_w(gspca_dev->dev, 0x08, videomask, 0x0000); in spca506_SetNormeInput() 255 reg_w(dev, 0x04, (0x18 | (code & 0x07)), 0x0000); in spca506_Setsize() 257 reg_w(dev, 0x04, 0x41, 0x0001); in spca506_Setsize() 258 reg_w(dev, 0x04, 0x00, 0x0002); in spca506_Setsize() 260 reg_w(dev, 0x04, 0x00, 0x0003); in spca506_Setsize() 263 reg_w(dev, 0x04, 0x00, 0x0004); in spca506_Setsize() [all …]
|
D | stk014.c | 148 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 177 reg_w(gspca_dev, 0x634, (ads >> 16) & 0xff); in rcv_val() 178 reg_w(gspca_dev, 0x635, (ads >> 8) & 0xff); in rcv_val() 179 reg_w(gspca_dev, 0x636, ads & 0xff); in rcv_val() 180 reg_w(gspca_dev, 0x637, 0); in rcv_val() 181 reg_w(gspca_dev, 0x638, 4); /* len & 0xff */ in rcv_val() 182 reg_w(gspca_dev, 0x639, 0); /* len >> 8 */ in rcv_val() 183 reg_w(gspca_dev, 0x63a, 0); in rcv_val() 184 reg_w(gspca_dev, 0x63b, 0); in rcv_val() 185 reg_w(gspca_dev, 0x630, 5); in rcv_val() [all …]
|
D | conex.c | 163 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 267 reg_w(gspca_dev, 0x006b, cx11646_fw1[i], 3); in cx11646_fw() 305 reg_w(gspca_dev, 0x0020, reg20, 8); in cx_sensor() 306 reg_w(gspca_dev, 0x0028, reg28, 8); in cx_sensor() 307 reg_w(gspca_dev, 0x0010, reg10, 8); in cx_sensor() 312 reg_w(gspca_dev, 0x0071, reg71a, 4); in cx_sensor() 315 reg_w(gspca_dev, 0x0071, reg71b, 4); in cx_sensor() 319 reg_w(gspca_dev, 0x0071, reg71c, 4); in cx_sensor() 322 reg_w(gspca_dev, 0x0071, reg71d, 4); in cx_sensor() 325 reg_w(gspca_dev, 0x007b, reg7b, 6); in cx_sensor() [all …]
|
D | pac7311.c | 286 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 312 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq() 412 reg_w(gspca_dev, 0xff, 0x04); in setcontrast() 413 reg_w(gspca_dev, 0x10, sd->contrast >> 4); in setcontrast() 415 reg_w(gspca_dev, 0x11, 0x01); in setcontrast() 427 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setgain() 428 reg_w(gspca_dev, 0x0e, 0x00); in setgain() 429 reg_w(gspca_dev, 0x0f, gain); in setgain() 432 reg_w(gspca_dev, 0x11, 0x01); in setgain() 449 reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ in setexposure() [all …]
|
D | ov519.c | 2103 static void reg_w(struct sd *sd, u16 index, u16 value) in reg_w() function 2236 reg_w(sd, index, value); in reg_w_mask() 2273 reg_w(sd, R51x_I2C_SADDR_3, reg); in ov511_i2c_w() 2276 reg_w(sd, R51x_I2C_DATA, value); in ov511_i2c_w() 2279 reg_w(sd, R511_I2C_CTL, 0x01); in ov511_i2c_w() 2304 reg_w(sd, R51x_I2C_SADDR_2, reg); in ov511_i2c_r() 2307 reg_w(sd, R511_I2C_CTL, 0x03); in ov511_i2c_r() 2320 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r() 2331 reg_w(sd, R511_I2C_CTL, 0x05); in ov511_i2c_r() 2344 reg_w(sd, R511_I2C_CTL, 0x10); in ov511_i2c_r() [all …]
|
D | pac7302.c | 418 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 444 reg_w(gspca_dev, seq[0], seq[1]); in reg_w_seq() 557 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setbrightcont() 567 reg_w(gspca_dev, 0xa2 + i, v); in setbrightcont() 569 reg_w(gspca_dev, 0xdc, 0x01); in setbrightcont() 582 reg_w(gspca_dev, 0xff, 0x03); /* page 3 */ in setcolors() 583 reg_w(gspca_dev, 0x11, 0x01); in setcolors() 584 reg_w(gspca_dev, 0xff, 0x00); /* page 0 */ in setcolors() 587 reg_w(gspca_dev, 0x0f + 2 * i, (v >> 8) & 0x07); in setcolors() 588 reg_w(gspca_dev, 0x0f + 2 * i + 1, v); in setcolors() [all …]
|
D | mars.c | 166 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 196 reg_w(gspca_dev, 4); in mi_w() 205 reg_w(gspca_dev, 2); in setbrightness() 217 reg_w(gspca_dev, 3); in setcolors() 226 reg_w(gspca_dev, 2); in setgamma() 235 reg_w(gspca_dev, 2); in setsharpness() 249 reg_w(gspca_dev, 2); in setilluminators() 290 reg_w(gspca_dev, 2); in sd_start() 312 reg_w(gspca_dev, 11); in sd_start() 317 reg_w(gspca_dev, 2); in sd_start() [all …]
|
D | zc3xx.c | 5736 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 5793 reg_w(gspca_dev, action->val, action->idx); in usb_exchange() 5867 reg_w(gspca_dev, matrix[i], 0x010a + i); in setmatrix() 5882 reg_w(gspca_dev, sharpness_tb[sharpness][0], 0x01c6); in setsharpness() 5886 reg_w(gspca_dev, sharpness_tb[sharpness][1], 0x01cb); in setsharpness() 5929 reg_w(gspca_dev, g, 0x0120 + i); /* gamma */ in setcontrast() 5943 reg_w(gspca_dev, gr[i], 0x0130 + i); /* gradient */ in setcontrast() 5982 reg_w(gspca_dev, QUANT_VAL, 0x0008); in setquality() 5984 reg_w(gspca_dev, frxt, 0x0007); in setquality() 5994 reg_w(gspca_dev, frxt, 0x0018); in setquality() [all …]
|
D | vc032x.c | 3217 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 3242 reg_w(gspca_dev, 0xa0, address, 0xb33a); in read_sensor_register() 3243 reg_w(gspca_dev, 0xa0, 0x02, 0xb339); in read_sensor_register() 3276 reg_w(gspca_dev, 0xa0, 0x01, 0xb301); in vc032x_probe_sensor() 3277 reg_w(gspca_dev, 0x89, 0xf0ff, 0xffff); in vc032x_probe_sensor() 3292 reg_w(gspca_dev, 0xa0, 0x02, 0xb334); in vc032x_probe_sensor() 3293 reg_w(gspca_dev, 0xa0, ptsensor_info->m1, 0xb300); in vc032x_probe_sensor() 3294 reg_w(gspca_dev, 0xa0, ptsensor_info->m2, 0xb300); in vc032x_probe_sensor() 3295 reg_w(gspca_dev, 0xa0, 0x01, 0xb308); in vc032x_probe_sensor() 3296 reg_w(gspca_dev, 0xa0, 0x0c, 0xb309); in vc032x_probe_sensor() [all …]
|
D | konica.c | 187 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function 231 reg_w(gspca_dev, 1, 0x0b); in konica_stream_on() 236 reg_w(gspca_dev, 0, 0x0b); in konica_stream_off() 271 reg_w(gspca_dev, 0, 0x0d); in sd_init() 293 reg_w(gspca_dev, sd->brightness, BRIGHTNESS_REG); in sd_start() 294 reg_w(gspca_dev, sd->whitebal, WHITEBAL_REG); in sd_start() 295 reg_w(gspca_dev, sd->contrast, CONTRAST_REG); in sd_start() 296 reg_w(gspca_dev, sd->saturation, SATURATION_REG); in sd_start() 297 reg_w(gspca_dev, sd->sharpness, SHARPNESS_REG); in sd_start() 300 reg_w(gspca_dev, n, 0x08); in sd_start() [all …]
|
D | t613.c | 550 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 666 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init() 677 reg_w(gspca_dev, 0x3c80); in om6802_sensor_init() 737 reg_w(gspca_dev, reg_to_write); in setcontrast() 746 reg_w(gspca_dev, reg_to_write); in setcolors() 787 reg_w(gspca_dev, reg80); in setawb() 788 reg_w(gspca_dev, reg80); in setawb() 807 reg_w(gspca_dev, (sd->red_gain << 8) + 0x87); in init_gains() 808 reg_w(gspca_dev, (sd->blue_gain << 8) + 0x88); in init_gains() 809 reg_w(gspca_dev, (sd->green_gain << 8) + 0x89); in init_gains() [all …]
|
D | ov534_9.c | 793 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w() function 856 reg_w(gspca_dev, OV534_REG_SUBADDR, reg); in sccb_read() 857 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_WRITE_2); in sccb_read() 861 reg_w(gspca_dev, OV534_REG_OPERATION, OV534_OP_READ_2); in sccb_read() 873 reg_w(gspca_dev, (*data)[0], (*data)[1]); in reg_w_array() 903 reg_w(gspca_dev, 0x21, data); in set_led() 911 reg_w(gspca_dev, 0x23, data); in set_led() 916 reg_w(gspca_dev, 0x21, data); in set_led() 1083 reg_w(gspca_dev, 0xe7, 0x3a); in sd_init() 1084 reg_w(gspca_dev, 0xe0, 0x08); in sd_init() [all …]
|
D | spca1528.c | 179 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 318 reg_w(gspca_dev, 0x00, 0x0001, 0x2067); in sd_init() 319 reg_w(gspca_dev, 0x00, 0x00d0, 0x206b); in sd_init() 320 reg_w(gspca_dev, 0x00, 0x0000, 0x206c); in sd_init() 321 reg_w(gspca_dev, 0x00, 0x0001, 0x2069); in sd_init() 323 reg_w(gspca_dev, 0x00, 0x00c0, 0x206b); in sd_init() 324 reg_w(gspca_dev, 0x00, 0x0000, 0x206c); in sd_init() 325 reg_w(gspca_dev, 0x00, 0x0001, 0x2069); in sd_init() 343 reg_w(gspca_dev, 0xc5, 0x0003, 0x0000); in sd_isoc_init() 380 reg_w(gspca_dev, 0x31, 0x0000, 0x0004); in sd_start() [all …]
|
D | nw80x.c | 1549 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 1616 reg_w(gspca_dev, 0x0600, data + 1, len - 1); in i2c_w() 1617 reg_w(gspca_dev, 0x0600, data, len); in i2c_w() 1620 reg_w(gspca_dev, 0x0502, val, 2); in i2c_w() 1622 reg_w(gspca_dev, 0x0501, val, 1); in i2c_w() 1647 reg_w(gspca_dev, reg, cmd, len); in reg_w_buf() 1679 reg_w(gspca_dev, 0x1026, &val, 1); in setgain() 1686 reg_w(gspca_dev, 0x101d, v, 2); /* SIF reg0/1 (AGC) */ in setgain() 1701 reg_w(gspca_dev, 0x1019, v, 1); in setexposure() 1709 reg_w(gspca_dev, 0x101b, v, 2); in setexposure() [all …]
|
D | sonixb.c | 563 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 590 reg_w(gspca_dev, 0x08, buffer, 8); in i2c_w() 607 reg_w(gspca_dev, 0x08, *buffer, 8); in i2c_w_vector() 777 reg_w(gspca_dev, 0x05, buf, 3); in setgain() 782 reg_w(gspca_dev, 0x10, buf, 2); in setgain() 817 reg_w(gspca_dev, 0x19, ®, 1); in setexposure() 1096 reg_w(gspca_dev, 0x01, &stop, 1); in sd_init() 1179 reg_w(gspca_dev, 0x01, ®s[0x01], 1); in sd_start() 1181 reg_w(gspca_dev, 0x17, ®s[0x17], 1); in sd_start() 1183 reg_w(gspca_dev, 0x01, ®s[0x01], in sd_start() [all …]
|
D | benq.c | 48 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 150 reg_w(gspca_dev, 0x003c, 0x0003); in sd_stopN() 151 reg_w(gspca_dev, 0x003c, 0x0004); in sd_stopN() 152 reg_w(gspca_dev, 0x003c, 0x0005); in sd_stopN() 153 reg_w(gspca_dev, 0x003c, 0x0006); in sd_stopN() 154 reg_w(gspca_dev, 0x003c, 0x0007); in sd_stopN()
|
D | sonixj.c | 1439 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 1841 reg_w(gspca_dev, 0x01, regGpio, 2); in sd_init() 2030 reg_w(gspca_dev, 0x84, contrast, sizeof contrast); in setcontrast() 2058 reg_w(gspca_dev, 0x8a, reg8a, sizeof reg8a); in setcolors() 2105 reg_w(gspca_dev, 0x20, gamma, sizeof gamma); in setgamma() 2354 reg_w(gspca_dev, 0x01, reg0102, 2); in sd_start() 2355 reg_w(gspca_dev, 0x08, &sn9c1xx[8], 2); in sd_start() 2356 reg_w(gspca_dev, 0x17, &sn9c1xx[0x17], 5); in sd_start() 2370 reg_w(gspca_dev, 0x9a, reg9a, 6); in sd_start() 2372 reg_w(gspca_dev, 0xd4, regd4, sizeof regd4); in sd_start() [all …]
|
D | sn9c20x.c | 1132 static int reg_w(struct gspca_dev *gspca_dev, u16 reg, in reg_w() function 1156 return reg_w(gspca_dev, reg, data, 1); in reg_w1() 1162 reg_w(gspca_dev, 0x10c0, buffer, 8); in i2c_w() 1565 return reg_w(gspca_dev, 0x10e1, cmatrix, 21); in set_cmatrix() 1593 return reg_w(gspca_dev, 0x1190, gamma, 17); in set_gamma() 2105 if (reg_w(gspca_dev, bridge_init[i][0], &value, 1) < 0) { in sd_init() 2116 if (reg_w(gspca_dev, 0x10c0, i2c_init, 9) < 0) { in sd_init() 2283 reg_w(gspca_dev, 0x1100, &sd->jpeg_hdr[JPEG_QT0_OFFSET], 64); in sd_start() 2284 reg_w(gspca_dev, 0x1140, &sd->jpeg_hdr[JPEG_QT1_OFFSET], 64); in sd_start() 2285 reg_w(gspca_dev, 0x10fb, CLR_WIN(width, height), 5); in sd_start() [all …]
|
D | sq930x.c | 476 static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index) in reg_w() function 633 reg_w(gspca_dev, 0x0100 | SQ930_CTRL_GPIO, in gpio_set() 641 reg_w(gspca_dev, 0x0300 | SQ930_CTRL_GPIO, in gpio_set() 943 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0); in send_stop() 984 reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0x0000); in sd_start()
|
D | etoms.c | 268 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() function 452 reg_w(gspca_dev, 0x62, FormLine, 6); in Et_init2() 482 reg_w(gspca_dev, ET_G_RED, RGBG, 6); in setcontrast() 622 reg_w(gspca_dev, ET_G_RED, GainRGBG, 6); in Et_init1()
|
/linux-2.6.39/drivers/net/wireless/ipw2x00/ |
D | ipw2200.h | 386 u32 reg_w; /**< 'write' reg (queue head), addr in domain 1 */ member
|
D | ipw2200.c | 3748 q->reg_w = write; in ipw_queue_init() 5069 ipw_write32(priv, q->reg_w, q->first_empty); in ipw_queue_tx_hcmd() 10378 ipw_write32(priv, q->reg_w, q->first_empty); in ipw_tx_skb()
|