/drivers/media/usb/gspca/ |
D | xirlink_cit.c | 55 struct gspca_dev gspca_dev; /* !! must be the first item */ member 71 static void sd_stop0(struct gspca_dev *gspca_dev); 680 static int cit_write_reg(struct gspca_dev *gspca_dev, u16 value, u16 index) in cit_write_reg() argument 682 struct usb_device *udev = gspca_dev->dev; in cit_write_reg() 695 static int cit_read_reg(struct gspca_dev *gspca_dev, u16 index, int verbose) in cit_read_reg() argument 697 struct usb_device *udev = gspca_dev->dev; in cit_read_reg() 698 __u8 *buf = gspca_dev->usb_buf; in cit_read_reg() 725 static void cit_send_FF_04_02(struct gspca_dev *gspca_dev) in cit_send_FF_04_02() argument 727 cit_write_reg(gspca_dev, 0x00FF, 0x0127); in cit_send_FF_04_02() 728 cit_write_reg(gspca_dev, 0x0004, 0x0124); in cit_send_FF_04_02() [all …]
|
D | spca506.c | 34 struct gspca_dev gspca_dev; /* !! must be the first item */ member 77 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 82 usb_control_msg(gspca_dev->dev, in reg_r() 83 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_r() 87 index, gspca_dev->usb_buf, length, in reg_r() 104 static void spca506_Initi2c(struct gspca_dev *gspca_dev) in spca506_Initi2c() argument 106 reg_w(gspca_dev->dev, 0x07, SAA7113_I2C_BASE_WRITE, 0x0004); in spca506_Initi2c() 109 static void spca506_WriteI2c(struct gspca_dev *gspca_dev, __u16 valeur, in spca506_WriteI2c() argument 114 reg_w(gspca_dev->dev, 0x07, reg, 0x0001); in spca506_WriteI2c() 115 reg_w(gspca_dev->dev, 0x07, valeur, 0x0000); in spca506_WriteI2c() [all …]
|
D | etoms.c | 33 struct gspca_dev gspca_dev; /* !! must be the first item */ member 160 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 164 struct usb_device *dev = gspca_dev->dev; in reg_r() 176 index, gspca_dev->usb_buf, len, 500); in reg_r() 178 index, gspca_dev->usb_buf[0]); in reg_r() 181 static void reg_w_val(struct gspca_dev *gspca_dev, in reg_w_val() argument 185 struct usb_device *dev = gspca_dev->dev; in reg_w_val() 187 gspca_dev->usb_buf[0] = val; in reg_w_val() 193 index, gspca_dev->usb_buf, 1, 500); in reg_w_val() 196 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument [all …]
|
D | conex.c | 38 struct gspca_dev gspca_dev; /* !! must be the first item */ member 70 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 74 struct usb_device *dev = gspca_dev->dev; in reg_r() 86 index, gspca_dev->usb_buf, len, in reg_r() 89 index, gspca_dev->usb_buf[0]); in reg_r() 93 static void reg_w_val(struct gspca_dev *gspca_dev, in reg_w_val() argument 97 struct usb_device *dev = gspca_dev->dev; in reg_w_val() 99 gspca_dev->usb_buf[0] = val; in reg_w_val() 105 index, gspca_dev->usb_buf, 1, 500); in reg_w_val() 108 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument [all …]
|
D | stk014.c | 36 struct gspca_dev gspca_dev; /* !! must be the first item */ member 54 static u8 reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 57 struct usb_device *dev = gspca_dev->dev; in reg_r() 60 if (gspca_dev->usb_err < 0) in reg_r() 67 gspca_dev->usb_buf, 1, in reg_r() 71 gspca_dev->usb_err = ret; in reg_r() 74 return gspca_dev->usb_buf[0]; in reg_r() 78 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument 81 struct usb_device *dev = gspca_dev->dev; in reg_w() 84 if (gspca_dev->usb_err < 0) in reg_w() [all …]
|
D | spca500.c | 37 struct gspca_dev gspca_dev; /* !! must be the first item */ member 318 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 322 usb_control_msg(gspca_dev->dev, in reg_r() 323 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_r() 327 index, gspca_dev->usb_buf, length, 500); in reg_r() 330 static int reg_w(struct gspca_dev *gspca_dev, in reg_w() argument 336 ret = usb_control_msg(gspca_dev->dev, in reg_w() 337 usb_sndctrlpipe(gspca_dev->dev, 0), in reg_w() 347 static int reg_r_12(struct gspca_dev *gspca_dev, in reg_r_12() argument 354 gspca_dev->usb_buf[1] = 0; in reg_r_12() [all …]
|
D | ov534_9.c | 52 struct gspca_dev gspca_dev; /* !! must be the first item */ member 1119 static void reg_w_i(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w_i() argument 1121 struct usb_device *udev = gspca_dev->dev; in reg_w_i() 1124 if (gspca_dev->usb_err < 0) in reg_w_i() 1126 gspca_dev->usb_buf[0] = val; in reg_w_i() 1131 0x00, reg, gspca_dev->usb_buf, 1, CTRL_TIMEOUT); in reg_w_i() 1134 gspca_dev->usb_err = ret; in reg_w_i() 1138 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w() argument 1141 reg_w_i(gspca_dev, reg, val); in reg_w() 1144 static u8 reg_r(struct gspca_dev *gspca_dev, u16 reg) in reg_r() argument [all …]
|
D | topro.c | 124 struct gspca_dev gspca_dev; /* !! must be the first item */ member 984 static void reg_w(struct gspca_dev *gspca_dev, u8 index, u8 value) in reg_w() argument 986 struct usb_device *dev = gspca_dev->dev; in reg_w() 989 if (gspca_dev->usb_err < 0) in reg_w() 997 gspca_dev->usb_err = ret; in reg_w() 1002 static void reg_r(struct gspca_dev *gspca_dev, u8 index) in reg_r() argument 1004 struct usb_device *dev = gspca_dev->dev; in reg_r() 1007 if (gspca_dev->usb_err < 0) in reg_r() 1012 0, index, gspca_dev->usb_buf, 1, 500); in reg_r() 1015 gspca_dev->usb_err = ret; in reg_r() [all …]
|
D | stk1135.c | 38 struct gspca_dev gspca_dev; /* !! must be the first item */ member 59 static u8 reg_r(struct gspca_dev *gspca_dev, u16 index) in reg_r() argument 61 struct usb_device *dev = gspca_dev->dev; in reg_r() 64 if (gspca_dev->usb_err < 0) in reg_r() 71 gspca_dev->usb_buf, 1, in reg_r() 74 PDEBUG(D_USBI, "reg_r 0x%x=0x%02x", index, gspca_dev->usb_buf[0]); in reg_r() 77 gspca_dev->usb_err = ret; in reg_r() 81 return gspca_dev->usb_buf[0]; in reg_r() 85 static void reg_w(struct gspca_dev *gspca_dev, u16 index, u8 val) in reg_w() argument 88 struct usb_device *dev = gspca_dev->dev; in reg_w() [all …]
|
D | spca1528.c | 34 struct gspca_dev gspca_dev; /* !! must be the first item */ member 62 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 70 struct usb_device *dev = gspca_dev->dev; in reg_r() 73 if (gspca_dev->usb_err < 0) in reg_r() 80 gspca_dev->usb_buf, len, in reg_r() 83 gspca_dev->usb_buf[0]); in reg_r() 86 gspca_dev->usb_err = ret; in reg_r() 90 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument 95 struct usb_device *dev = gspca_dev->dev; in reg_w() 98 if (gspca_dev->usb_err < 0) in reg_w() [all …]
|
D | gspca.c | 66 static void PDEBUG_MODE(struct gspca_dev *gspca_dev, int debug, char *txt, in PDEBUG_MODE() argument 121 struct gspca_dev *gspca_dev = (struct gspca_dev *) urb->context; in int_irq() local 127 if (gspca_dev->sd_desc->int_pkt_scan(gspca_dev, in int_irq() 155 static int gspca_input_connect(struct gspca_dev *dev) in gspca_input_connect() 192 static int alloc_and_submit_int_urb(struct gspca_dev *gspca_dev, in alloc_and_submit_int_urb() argument 208 dev = gspca_dev->dev; in alloc_and_submit_int_urb() 225 int_irq, (void *)gspca_dev, interval); in alloc_and_submit_int_urb() 232 gspca_dev->int_urb = urb; in alloc_and_submit_int_urb() 246 static void gspca_input_create_urb(struct gspca_dev *gspca_dev) in gspca_input_create_urb() argument 253 if (gspca_dev->sd_desc->int_pkt_scan) { in gspca_input_create_urb() [all …]
|
D | pac7311.c | 77 struct gspca_dev gspca_dev; /* !! must be the first item */ member 164 static void reg_w_buf(struct gspca_dev *gspca_dev, in reg_w_buf() argument 170 if (gspca_dev->usb_err < 0) in reg_w_buf() 172 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w_buf() 173 ret = usb_control_msg(gspca_dev->dev, in reg_w_buf() 174 usb_sndctrlpipe(gspca_dev->dev, 0), in reg_w_buf() 178 index, gspca_dev->usb_buf, len, in reg_w_buf() 183 gspca_dev->usb_err = ret; in reg_w_buf() 188 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument 194 if (gspca_dev->usb_err < 0) in reg_w() [all …]
|
D | sunplus.c | 37 struct gspca_dev gspca_dev; /* !! must be the first item */ member 247 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 258 if (gspca_dev->usb_err < 0) in reg_r() 260 ret = usb_control_msg(gspca_dev->dev, in reg_r() 261 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_r() 266 len ? gspca_dev->usb_buf : NULL, len, in reg_r() 270 gspca_dev->usb_err = ret; in reg_r() 275 static void reg_w_1(struct gspca_dev *gspca_dev, in reg_w_1() argument 283 if (gspca_dev->usb_err < 0) in reg_w_1() 285 gspca_dev->usb_buf[0] = byte; in reg_w_1() [all …]
|
D | stv0680.c | 42 struct gspca_dev gspca_dev; /* !! must be the first item */ member 49 static int stv_sndctrl(struct gspca_dev *gspca_dev, int set, u8 req, u16 val, in stv_sndctrl() argument 59 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl() 63 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl() 67 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl() 71 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl() 75 ret = usb_control_msg(gspca_dev->dev, pipe, in stv_sndctrl() 77 val, 0, gspca_dev->usb_buf, size, 500); in stv_sndctrl() 86 static int stv0680_handle_error(struct gspca_dev *gspca_dev, int ret) in stv0680_handle_error() argument 88 stv_sndctrl(gspca_dev, 0, 0x80, 0, 0x02); /* Get Last Error */ in stv0680_handle_error() [all …]
|
D | ov534.c | 59 struct gspca_dev gspca_dev; /* !! must be the first item */ member 92 static int sd_start(struct gspca_dev *gspca_dev); 93 static void sd_stopN(struct gspca_dev *gspca_dev); 608 static void ov534_reg_write(struct gspca_dev *gspca_dev, u16 reg, u8 val) in ov534_reg_write() argument 610 struct usb_device *udev = gspca_dev->dev; in ov534_reg_write() 613 if (gspca_dev->usb_err < 0) in ov534_reg_write() 617 gspca_dev->usb_buf[0] = val; in ov534_reg_write() 622 0x00, reg, gspca_dev->usb_buf, 1, CTRL_TIMEOUT); in ov534_reg_write() 625 gspca_dev->usb_err = ret; in ov534_reg_write() 629 static u8 ov534_reg_read(struct gspca_dev *gspca_dev, u16 reg) in ov534_reg_read() argument [all …]
|
D | spca561.c | 38 struct gspca_dev gspca_dev; /* !! must be the first item */ member 288 static void reg_w_val(struct gspca_dev *gspca_dev, __u16 index, __u8 value) in reg_w_val() argument 291 struct usb_device *dev = gspca_dev->dev; in reg_w_val() 302 static void write_vector(struct gspca_dev *gspca_dev, in write_vector() argument 309 reg_w_val(gspca_dev, data[i][1], data[i][0]); in write_vector() 315 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 318 usb_control_msg(gspca_dev->dev, in reg_r() 319 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_r() 323 index, gspca_dev->usb_buf, length, 500); in reg_r() 327 static void reg_w_buf(struct gspca_dev *gspca_dev, in reg_w_buf() argument [all …]
|
D | pac7302.c | 114 struct gspca_dev gspca_dev; /* !! must be the first item */ member 246 static void reg_w_buf(struct gspca_dev *gspca_dev, in reg_w_buf() argument 252 if (gspca_dev->usb_err < 0) in reg_w_buf() 254 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w_buf() 255 ret = usb_control_msg(gspca_dev->dev, in reg_w_buf() 256 usb_sndctrlpipe(gspca_dev->dev, 0), in reg_w_buf() 260 index, gspca_dev->usb_buf, len, in reg_w_buf() 265 gspca_dev->usb_err = ret; in reg_w_buf() 270 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument 276 if (gspca_dev->usb_err < 0) in reg_w() [all …]
|
D | sonixj.c | 36 struct gspca_dev gspca_dev; /* !! must be the first item */ member 1155 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 1160 if (gspca_dev->usb_err < 0) in reg_r() 1167 ret = usb_control_msg(gspca_dev->dev, in reg_r() 1168 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_r() 1172 gspca_dev->usb_buf, len, in reg_r() 1174 PDEBUG(D_USBI, "reg_r [%02x] -> %02x", value, gspca_dev->usb_buf[0]); in reg_r() 1177 gspca_dev->usb_err = ret; in reg_r() 1181 static void reg_w1(struct gspca_dev *gspca_dev, in reg_w1() argument 1187 if (gspca_dev->usb_err < 0) in reg_w1() [all …]
|
D | mars.c | 37 struct gspca_dev gspca_dev; /* !! must be the first item */ member 51 static void setbrightness(struct gspca_dev *gspca_dev, s32 val); 52 static void setcolors(struct gspca_dev *gspca_dev, s32 val); 53 static void setgamma(struct gspca_dev *gspca_dev, s32 val); 54 static void setsharpness(struct gspca_dev *gspca_dev, s32 val); 81 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument 86 if (gspca_dev->usb_err < 0) in reg_w() 89 ret = usb_bulk_msg(gspca_dev->dev, in reg_w() 90 usb_sndbulkpipe(gspca_dev->dev, 4), in reg_w() 91 gspca_dev->usb_buf, in reg_w() [all …]
|
D | tv8532.c | 31 struct gspca_dev gspca_dev; /* !! must be the first item */ member 119 static void reg_w1(struct gspca_dev *gspca_dev, in reg_w1() argument 122 gspca_dev->usb_buf[0] = value; in reg_w1() 123 usb_control_msg(gspca_dev->dev, in reg_w1() 124 usb_sndctrlpipe(gspca_dev->dev, 0), in reg_w1() 128 index, gspca_dev->usb_buf, 1, 500); in reg_w1() 132 static void reg_w2(struct gspca_dev *gspca_dev, in reg_w2() argument 135 gspca_dev->usb_buf[0] = value; in reg_w2() 136 gspca_dev->usb_buf[1] = value >> 8; in reg_w2() 137 usb_control_msg(gspca_dev->dev, in reg_w2() [all …]
|
D | mr97310a.c | 87 struct gspca_dev gspca_dev; /* !! must be the first item */ member 106 static void sd_stopN(struct gspca_dev *gspca_dev); 137 static int mr_write(struct gspca_dev *gspca_dev, int len) in mr_write() argument 141 rc = usb_bulk_msg(gspca_dev->dev, in mr_write() 142 usb_sndbulkpipe(gspca_dev->dev, 4), in mr_write() 143 gspca_dev->usb_buf, len, NULL, 500); in mr_write() 146 gspca_dev->usb_buf[0], rc); in mr_write() 151 static int mr_read(struct gspca_dev *gspca_dev, int len) in mr_read() argument 155 rc = usb_bulk_msg(gspca_dev->dev, in mr_read() 156 usb_rcvbulkpipe(gspca_dev->dev, 3), in mr_read() [all …]
|
D | nw80x.c | 37 struct gspca_dev gspca_dev; /* !! must be the first item */ member 1539 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument 1544 struct usb_device *dev = gspca_dev->dev; in reg_w() 1547 if (gspca_dev->usb_err < 0) in reg_w() 1554 memcpy(gspca_dev->usb_buf, data, len); in reg_w() 1560 gspca_dev->usb_buf, in reg_w() 1565 gspca_dev->usb_err = ret; in reg_w() 1570 static void reg_r(struct gspca_dev *gspca_dev, in reg_r() argument 1574 struct usb_device *dev = gspca_dev->dev; in reg_r() 1577 if (gspca_dev->usb_err < 0) in reg_r() [all …]
|
D | se401.c | 57 struct gspca_dev gspca_dev; /* !! must be the first item */ member 76 static void se401_write_req(struct gspca_dev *gspca_dev, u16 req, u16 value, in se401_write_req() argument 81 if (gspca_dev->usb_err < 0) in se401_write_req() 84 err = usb_control_msg(gspca_dev->dev, in se401_write_req() 85 usb_sndctrlpipe(gspca_dev->dev, 0), req, in se401_write_req() 92 gspca_dev->usb_err = err; in se401_write_req() 96 static void se401_read_req(struct gspca_dev *gspca_dev, u16 req, int silent) in se401_read_req() argument 100 if (gspca_dev->usb_err < 0) in se401_read_req() 105 gspca_dev->usb_err = -ENOBUFS; in se401_read_req() 109 err = usb_control_msg(gspca_dev->dev, in se401_read_req() [all …]
|
D | sn9c20x.c | 70 struct gspca_dev gspca_dev; member 909 static void reg_r(struct gspca_dev *gspca_dev, u16 reg, u16 length) in reg_r() argument 911 struct usb_device *dev = gspca_dev->dev; in reg_r() 914 if (gspca_dev->usb_err < 0) in reg_r() 921 gspca_dev->usb_buf, in reg_r() 926 gspca_dev->usb_err = result; in reg_r() 930 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, in reg_w() argument 933 struct usb_device *dev = gspca_dev->dev; in reg_w() 936 if (gspca_dev->usb_err < 0) in reg_w() 938 memcpy(gspca_dev->usb_buf, buffer, length); in reg_w() [all …]
|
/drivers/media/usb/gspca/gl860/ |
D | gl860-mi1320.c | 176 static int mi1320_init_at_startup(struct gspca_dev *gspca_dev); 177 static int mi1320_configure_alt(struct gspca_dev *gspca_dev); 178 static int mi1320_init_pre_alt(struct gspca_dev *gspca_dev); 179 static int mi1320_init_post_alt(struct gspca_dev *gspca_dev); 180 static void mi1320_post_unset_alt(struct gspca_dev *gspca_dev); 181 static int mi1320_sensor_settings(struct gspca_dev *gspca_dev); 182 static int mi1320_camera_settings(struct gspca_dev *gspca_dev); 185 void mi1320_init_settings(struct gspca_dev *gspca_dev) in mi1320_init_settings() argument 187 struct sd *sd = (struct sd *) gspca_dev; in mi1320_init_settings() 222 static void common(struct gspca_dev *gspca_dev) in common() argument [all …]
|