Lines Matching refs:retval
76 int retval; in jl2005c_write2() local
79 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_write2()
82 if (retval < 0) in jl2005c_write2()
84 gspca_dev->usb_buf[0], retval); in jl2005c_write2()
85 return retval; in jl2005c_write2()
91 int retval; in jl2005c_read1() local
93 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_read1()
96 if (retval < 0) in jl2005c_read1()
98 gspca_dev->usb_buf[0], retval); in jl2005c_read1()
99 return retval; in jl2005c_read1()
105 int retval; in jl2005c_read_reg() local
111 retval = jl2005c_write2(gspca_dev, instruction); in jl2005c_read_reg()
112 if (retval < 0) in jl2005c_read_reg()
113 return retval; in jl2005c_read_reg()
114 retval = jl2005c_read1(gspca_dev); in jl2005c_read_reg()
116 return retval; in jl2005c_read_reg()
122 int retval; in jl2005c_start_new_frame() local
127 retval = jl2005c_write2(gspca_dev, instruction); in jl2005c_start_new_frame()
128 if (retval < 0) in jl2005c_start_new_frame()
129 return retval; in jl2005c_start_new_frame()
134 retval = jl2005c_read_reg(gspca_dev, 0x7e); in jl2005c_start_new_frame()
135 if (retval < 0) in jl2005c_start_new_frame()
136 return retval; in jl2005c_start_new_frame()
138 retval = jl2005c_read_reg(gspca_dev, 0x7d); in jl2005c_start_new_frame()
139 if (retval < 0) in jl2005c_start_new_frame()
140 return retval; in jl2005c_start_new_frame()
145 return retval; in jl2005c_start_new_frame()
151 int retval; in jl2005c_write_reg() local
157 retval = jl2005c_write2(gspca_dev, instruction); in jl2005c_write_reg()
158 if (retval < 0) in jl2005c_write_reg()
159 return retval; in jl2005c_write_reg()
161 return retval; in jl2005c_write_reg()
168 int retval; in jl2005c_get_firmware_id() local
175 retval = jl2005c_read_reg(gspca_dev, regs_to_read[0]); in jl2005c_get_firmware_id()
178 if (retval < 0) in jl2005c_get_firmware_id()
179 return retval; in jl2005c_get_firmware_id()
182 retval = jl2005c_read_reg(gspca_dev, regs_to_read[i]); in jl2005c_get_firmware_id()
183 if (retval < 0) in jl2005c_get_firmware_id()
184 return retval; in jl2005c_get_firmware_id()
201 int retval = -1; in jl2005c_stream_start_vga_lg() local
213 retval = jl2005c_write2(gspca_dev, instruction[i]); in jl2005c_stream_start_vga_lg()
214 if (retval < 0) in jl2005c_stream_start_vga_lg()
215 return retval; in jl2005c_stream_start_vga_lg()
218 return retval; in jl2005c_stream_start_vga_lg()
224 int retval = -1; in jl2005c_stream_start_vga_small() local
236 retval = jl2005c_write2(gspca_dev, instruction[i]); in jl2005c_stream_start_vga_small()
237 if (retval < 0) in jl2005c_stream_start_vga_small()
238 return retval; in jl2005c_stream_start_vga_small()
241 return retval; in jl2005c_stream_start_vga_small()
247 int retval = -1; in jl2005c_stream_start_cif_lg() local
259 retval = jl2005c_write2(gspca_dev, instruction[i]); in jl2005c_stream_start_cif_lg()
260 if (retval < 0) in jl2005c_stream_start_cif_lg()
261 return retval; in jl2005c_stream_start_cif_lg()
264 return retval; in jl2005c_stream_start_cif_lg()
270 int retval = -1; in jl2005c_stream_start_cif_small() local
282 retval = jl2005c_write2(gspca_dev, instruction[i]); in jl2005c_stream_start_cif_small()
283 if (retval < 0) in jl2005c_stream_start_cif_small()
284 return retval; in jl2005c_stream_start_cif_small()
287 return retval; in jl2005c_stream_start_cif_small()