Home
last modified time | relevance | path

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

123

/drivers/media/usb/gspca/
Dxirlink_cit.c55 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 …]
Dspca506.c34 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 …]
Dconex.c38 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 …]
Detoms.c33 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 …]
Dstk014.c36 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 …]
Dspca500.c37 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 …]
Dtopro.c124 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 …]
Dov534_9.c52 struct gspca_dev gspca_dev; /* !! must be the first item */ member
850 static void reg_w_i(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w_i() argument
852 struct usb_device *udev = gspca_dev->dev; in reg_w_i()
855 if (gspca_dev->usb_err < 0) in reg_w_i()
857 gspca_dev->usb_buf[0] = val; in reg_w_i()
862 0x00, reg, gspca_dev->usb_buf, 1, CTRL_TIMEOUT); in reg_w_i()
865 gspca_dev->usb_err = ret; in reg_w_i()
869 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, u8 val) in reg_w() argument
872 reg_w_i(gspca_dev, reg, val); in reg_w()
875 static u8 reg_r(struct gspca_dev *gspca_dev, u16 reg) in reg_r() argument
[all …]
Dspca1528.c34 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 …]
Dgspca.c66 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 …]
Dpac7311.c77 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 …]
Dsunplus.c37 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 …]
Dstv0680.c42 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 …]
Dov534.c59 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 …]
Dspca561.c38 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 …]
Dpac7302.c115 struct gspca_dev gspca_dev; /* !! must be the first item */ member
247 static void reg_w_buf(struct gspca_dev *gspca_dev, in reg_w_buf() argument
253 if (gspca_dev->usb_err < 0) in reg_w_buf()
255 memcpy(gspca_dev->usb_buf, buffer, len); in reg_w_buf()
256 ret = usb_control_msg(gspca_dev->dev, in reg_w_buf()
257 usb_sndctrlpipe(gspca_dev->dev, 0), in reg_w_buf()
261 index, gspca_dev->usb_buf, len, in reg_w_buf()
266 gspca_dev->usb_err = ret; in reg_w_buf()
271 static void reg_w(struct gspca_dev *gspca_dev, in reg_w() argument
277 if (gspca_dev->usb_err < 0) in reg_w()
[all …]
Dsonixj.c36 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 …]
Dmars.c37 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 …]
Dtv8532.c31 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 …]
Dmr97310a.c87 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 …]
Dnw80x.c37 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 …]
Dse401.c57 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 …]
Dsn9c20x.c71 struct gspca_dev gspca_dev; member
926 static void reg_r(struct gspca_dev *gspca_dev, u16 reg, u16 length) in reg_r() argument
928 struct usb_device *dev = gspca_dev->dev; in reg_r()
931 if (gspca_dev->usb_err < 0) in reg_r()
938 gspca_dev->usb_buf, in reg_r()
943 gspca_dev->usb_err = result; in reg_r()
947 static void reg_w(struct gspca_dev *gspca_dev, u16 reg, in reg_w() argument
950 struct usb_device *dev = gspca_dev->dev; in reg_w()
953 if (gspca_dev->usb_err < 0) in reg_w()
955 memcpy(gspca_dev->usb_buf, buffer, length); in reg_w()
[all …]
/drivers/media/usb/gspca/gl860/
Dgl860-mi1320.c176 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 …]
Dgl860-mi2020.c283 static int mi2020_init_at_startup(struct gspca_dev *gspca_dev);
284 static int mi2020_configure_alt(struct gspca_dev *gspca_dev);
285 static int mi2020_init_pre_alt(struct gspca_dev *gspca_dev);
286 static int mi2020_init_post_alt(struct gspca_dev *gspca_dev);
287 static void mi2020_post_unset_alt(struct gspca_dev *gspca_dev);
288 static int mi2020_camera_settings(struct gspca_dev *gspca_dev);
291 void mi2020_init_settings(struct gspca_dev *gspca_dev) in mi2020_init_settings() argument
293 struct sd *sd = (struct sd *) gspca_dev; in mi2020_init_settings()
328 static void common(struct gspca_dev *gspca_dev) in common() argument
330 fetch_validx(gspca_dev, tbl_common_0B, ARRAY_SIZE(tbl_common_0B)); in common()
[all …]

123