Lines Matching +full:0 +full:xffff
55 MODULE_PARM_DESC(video_nr, "video device to register (0=/dev/video0, etc)");
71 memset(mem, 0, size); in rvmalloc()
73 while (size > 0) { in rvmalloc()
88 while ((long) size > 0) { in rvfree()
108 memset(meye.mchip_ptable, 0, sizeof(meye.mchip_ptable)); in ptable_alloc()
119 meye.mchip_dmahandle = 0; in ptable_alloc()
124 for (i = 0; i < MCHIP_NB_PAGES; i++) { in ptable_alloc()
133 for (j = 0; j < i; ++j) { in ptable_alloc()
145 meye.mchip_dmahandle = 0; in ptable_alloc()
151 return 0; in ptable_alloc()
160 for (i = 0; i < MCHIP_NB_PAGES; i++) { in ptable_free()
175 memset(meye.mchip_ptable, 0, sizeof(meye.mchip_ptable)); in ptable_free()
177 meye.mchip_dmahandle = 0; in ptable_free()
185 for (i = 0; i < (size / PAGE_SIZE) * PAGE_SIZE; i += PAGE_SIZE) { in ptable_copy()
188 start = 0; in ptable_copy()
201 0xdbff, 0x4300, 0xff00, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
202 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
203 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
204 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
205 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
206 0xdbff, 0x4300, 0xff01, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
207 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
208 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
209 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
210 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
213 0xdbff, 0x4300, 0x5000, 0x3c37, 0x3c46, 0x5032, 0x4146, 0x5a46, in jpeg_quantisation_tables()
214 0x5055, 0x785f, 0x82c8, 0x6e78, 0x786e, 0xaff5, 0x91b9, 0xffc8, in jpeg_quantisation_tables()
215 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
216 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
217 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
218 0xdbff, 0x4300, 0x5501, 0x5a5a, 0x6978, 0xeb78, 0x8282, 0xffeb, in jpeg_quantisation_tables()
219 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
220 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
221 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
222 0xffff, 0xffff, 0xffff, in jpeg_quantisation_tables()
225 0xdbff, 0x4300, 0x2800, 0x1e1c, 0x1e23, 0x2819, 0x2123, 0x2d23, in jpeg_quantisation_tables()
226 0x282b, 0x3c30, 0x4164, 0x373c, 0x3c37, 0x587b, 0x495d, 0x9164, in jpeg_quantisation_tables()
227 0x9980, 0x8f96, 0x8c80, 0xa08a, 0xe6b4, 0xa0c3, 0xdaaa, 0x8aad, in jpeg_quantisation_tables()
228 0xc88c, 0xcbff, 0xeeda, 0xfff5, 0xffff, 0xc19b, 0xffff, 0xfaff, in jpeg_quantisation_tables()
229 0xe6ff, 0xfffd, 0xfff8, in jpeg_quantisation_tables()
230 0xdbff, 0x4300, 0x2b01, 0x2d2d, 0x353c, 0x763c, 0x4141, 0xf876, in jpeg_quantisation_tables()
231 0x8ca5, 0xf8a5, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, in jpeg_quantisation_tables()
232 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, in jpeg_quantisation_tables()
233 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, 0xf8f8, in jpeg_quantisation_tables()
234 0xf8f8, 0xf8f8, 0xfff8, in jpeg_quantisation_tables()
237 0xdbff, 0x4300, 0x1b00, 0x1412, 0x1417, 0x1b11, 0x1617, 0x1e17, in jpeg_quantisation_tables()
238 0x1b1c, 0x2820, 0x2b42, 0x2528, 0x2825, 0x3a51, 0x303d, 0x6042, in jpeg_quantisation_tables()
239 0x6555, 0x5f64, 0x5d55, 0x6a5b, 0x9978, 0x6a81, 0x9071, 0x5b73, in jpeg_quantisation_tables()
240 0x855d, 0x86b5, 0x9e90, 0xaba3, 0xabad, 0x8067, 0xc9bc, 0xa6ba, in jpeg_quantisation_tables()
241 0x99c7, 0xaba8, 0xffa4, in jpeg_quantisation_tables()
242 0xdbff, 0x4300, 0x1c01, 0x1e1e, 0x2328, 0x4e28, 0x2b2b, 0xa44e, in jpeg_quantisation_tables()
243 0x5d6e, 0xa46e, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, in jpeg_quantisation_tables()
244 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, in jpeg_quantisation_tables()
245 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, 0xa4a4, in jpeg_quantisation_tables()
246 0xa4a4, 0xa4a4, 0xffa4, in jpeg_quantisation_tables()
249 0xdbff, 0x4300, 0x1400, 0x0f0e, 0x0f12, 0x140d, 0x1012, 0x1712, in jpeg_quantisation_tables()
250 0x1415, 0x1e18, 0x2132, 0x1c1e, 0x1e1c, 0x2c3d, 0x242e, 0x4932, in jpeg_quantisation_tables()
251 0x4c40, 0x474b, 0x4640, 0x5045, 0x735a, 0x5062, 0x6d55, 0x4556, in jpeg_quantisation_tables()
252 0x6446, 0x6588, 0x776d, 0x817b, 0x8182, 0x604e, 0x978d, 0x7d8c, in jpeg_quantisation_tables()
253 0x7396, 0x817e, 0xff7c, in jpeg_quantisation_tables()
254 0xdbff, 0x4300, 0x1501, 0x1717, 0x1a1e, 0x3b1e, 0x2121, 0x7c3b, in jpeg_quantisation_tables()
255 0x4653, 0x7c53, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, in jpeg_quantisation_tables()
256 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, in jpeg_quantisation_tables()
257 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, 0x7c7c, in jpeg_quantisation_tables()
258 0x7c7c, 0x7c7c, 0xff7c, in jpeg_quantisation_tables()
261 0xdbff, 0x4300, 0x1000, 0x0c0b, 0x0c0e, 0x100a, 0x0d0e, 0x120e, in jpeg_quantisation_tables()
262 0x1011, 0x1813, 0x1a28, 0x1618, 0x1816, 0x2331, 0x1d25, 0x3a28, in jpeg_quantisation_tables()
263 0x3d33, 0x393c, 0x3833, 0x4037, 0x5c48, 0x404e, 0x5744, 0x3745, in jpeg_quantisation_tables()
264 0x5038, 0x516d, 0x5f57, 0x6762, 0x6768, 0x4d3e, 0x7971, 0x6470, in jpeg_quantisation_tables()
265 0x5c78, 0x6765, 0xff63, in jpeg_quantisation_tables()
266 0xdbff, 0x4300, 0x1101, 0x1212, 0x1518, 0x2f18, 0x1a1a, 0x632f, in jpeg_quantisation_tables()
267 0x3842, 0x6342, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, in jpeg_quantisation_tables()
268 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, in jpeg_quantisation_tables()
269 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, 0x6363, in jpeg_quantisation_tables()
270 0x6363, 0x6363, 0xff63, in jpeg_quantisation_tables()
273 0xdbff, 0x4300, 0x0d00, 0x0a09, 0x0a0b, 0x0d08, 0x0a0b, 0x0e0b, in jpeg_quantisation_tables()
274 0x0d0e, 0x130f, 0x1520, 0x1213, 0x1312, 0x1c27, 0x171e, 0x2e20, in jpeg_quantisation_tables()
275 0x3129, 0x2e30, 0x2d29, 0x332c, 0x4a3a, 0x333e, 0x4636, 0x2c37, in jpeg_quantisation_tables()
276 0x402d, 0x4157, 0x4c46, 0x524e, 0x5253, 0x3e32, 0x615a, 0x505a, in jpeg_quantisation_tables()
277 0x4a60, 0x5251, 0xff4f, in jpeg_quantisation_tables()
278 0xdbff, 0x4300, 0x0e01, 0x0e0e, 0x1113, 0x2613, 0x1515, 0x4f26, in jpeg_quantisation_tables()
279 0x2d35, 0x4f35, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, in jpeg_quantisation_tables()
280 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, in jpeg_quantisation_tables()
281 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, 0x4f4f, in jpeg_quantisation_tables()
282 0x4f4f, 0x4f4f, 0xff4f, in jpeg_quantisation_tables()
285 0xdbff, 0x4300, 0x0a00, 0x0707, 0x0708, 0x0a06, 0x0808, 0x0b08, in jpeg_quantisation_tables()
286 0x0a0a, 0x0e0b, 0x1018, 0x0d0e, 0x0e0d, 0x151d, 0x1116, 0x2318, in jpeg_quantisation_tables()
287 0x251f, 0x2224, 0x221f, 0x2621, 0x372b, 0x262f, 0x3429, 0x2129, in jpeg_quantisation_tables()
288 0x3022, 0x3141, 0x3934, 0x3e3b, 0x3e3e, 0x2e25, 0x4944, 0x3c43, in jpeg_quantisation_tables()
289 0x3748, 0x3e3d, 0xff3b, in jpeg_quantisation_tables()
290 0xdbff, 0x4300, 0x0a01, 0x0b0b, 0x0d0e, 0x1c0e, 0x1010, 0x3b1c, in jpeg_quantisation_tables()
291 0x2228, 0x3b28, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, in jpeg_quantisation_tables()
292 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, in jpeg_quantisation_tables()
293 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, 0x3b3b, in jpeg_quantisation_tables()
294 0x3b3b, 0x3b3b, 0xff3b, in jpeg_quantisation_tables()
297 0xdbff, 0x4300, 0x0600, 0x0504, 0x0506, 0x0604, 0x0506, 0x0706, in jpeg_quantisation_tables()
298 0x0607, 0x0a08, 0x0a10, 0x090a, 0x0a09, 0x0e14, 0x0c0f, 0x1710, in jpeg_quantisation_tables()
299 0x1814, 0x1718, 0x1614, 0x1a16, 0x251d, 0x1a1f, 0x231b, 0x161c, in jpeg_quantisation_tables()
300 0x2016, 0x202c, 0x2623, 0x2927, 0x292a, 0x1f19, 0x302d, 0x282d, in jpeg_quantisation_tables()
301 0x2530, 0x2928, 0xff28, in jpeg_quantisation_tables()
302 0xdbff, 0x4300, 0x0701, 0x0707, 0x080a, 0x130a, 0x0a0a, 0x2813, in jpeg_quantisation_tables()
303 0x161a, 0x281a, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, in jpeg_quantisation_tables()
304 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, in jpeg_quantisation_tables()
305 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, 0x2828, in jpeg_quantisation_tables()
306 0x2828, 0x2828, 0xff28, in jpeg_quantisation_tables()
309 0xdbff, 0x4300, 0x0300, 0x0202, 0x0203, 0x0302, 0x0303, 0x0403, in jpeg_quantisation_tables()
310 0x0303, 0x0504, 0x0508, 0x0405, 0x0504, 0x070a, 0x0607, 0x0c08, in jpeg_quantisation_tables()
311 0x0c0a, 0x0b0c, 0x0b0a, 0x0d0b, 0x120e, 0x0d10, 0x110e, 0x0b0e, in jpeg_quantisation_tables()
312 0x100b, 0x1016, 0x1311, 0x1514, 0x1515, 0x0f0c, 0x1817, 0x1416, in jpeg_quantisation_tables()
313 0x1218, 0x1514, 0xff14, in jpeg_quantisation_tables()
314 0xdbff, 0x4300, 0x0301, 0x0404, 0x0405, 0x0905, 0x0505, 0x1409, in jpeg_quantisation_tables()
315 0x0b0d, 0x140d, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, in jpeg_quantisation_tables()
316 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, in jpeg_quantisation_tables()
317 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, 0x1414, in jpeg_quantisation_tables()
318 0x1414, 0x1414, 0xff14, in jpeg_quantisation_tables()
321 0xdbff, 0x4300, 0x0100, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
322 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
323 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
324 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
325 0x0101, 0x0101, 0xff01, in jpeg_quantisation_tables()
326 0xdbff, 0x4300, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
327 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
328 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
329 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_quantisation_tables()
330 0x0101, 0x0101, 0xff01, in jpeg_quantisation_tables()
333 if (quality < 0 || quality > 10) { in jpeg_quantisation_tables()
347 0xC4FF, 0xB500, 0x0010, 0x0102, 0x0303, 0x0402, 0x0503, 0x0405, in jpeg_huffman_tables()
348 0x0004, 0x0100, 0x017D, 0x0302, 0x0400, 0x0511, 0x2112, 0x4131, in jpeg_huffman_tables()
349 0x1306, 0x6151, 0x2207, 0x1471, 0x8132, 0xA191, 0x2308, 0xB142, in jpeg_huffman_tables()
350 0x15C1, 0xD152, 0x24F0, 0x6233, 0x8272, 0x0A09, 0x1716, 0x1918, in jpeg_huffman_tables()
351 0x251A, 0x2726, 0x2928, 0x342A, 0x3635, 0x3837, 0x3A39, 0x4443, in jpeg_huffman_tables()
352 0x4645, 0x4847, 0x4A49, 0x5453, 0x5655, 0x5857, 0x5A59, 0x6463, in jpeg_huffman_tables()
353 0x6665, 0x6867, 0x6A69, 0x7473, 0x7675, 0x7877, 0x7A79, 0x8483, in jpeg_huffman_tables()
354 0x8685, 0x8887, 0x8A89, 0x9392, 0x9594, 0x9796, 0x9998, 0xA29A, in jpeg_huffman_tables()
355 0xA4A3, 0xA6A5, 0xA8A7, 0xAAA9, 0xB3B2, 0xB5B4, 0xB7B6, 0xB9B8, in jpeg_huffman_tables()
356 0xC2BA, 0xC4C3, 0xC6C5, 0xC8C7, 0xCAC9, 0xD3D2, 0xD5D4, 0xD7D6, in jpeg_huffman_tables()
357 0xD9D8, 0xE1DA, 0xE3E2, 0xE5E4, 0xE7E6, 0xE9E8, 0xF1EA, 0xF3F2, in jpeg_huffman_tables()
358 0xF5F4, 0xF7F6, 0xF9F8, 0xFFFA, in jpeg_huffman_tables()
359 0xC4FF, 0xB500, 0x0011, 0x0102, 0x0402, 0x0304, 0x0704, 0x0405, in jpeg_huffman_tables()
360 0x0004, 0x0201, 0x0077, 0x0201, 0x1103, 0x0504, 0x3121, 0x1206, in jpeg_huffman_tables()
361 0x5141, 0x6107, 0x1371, 0x3222, 0x0881, 0x4214, 0xA191, 0xC1B1, in jpeg_huffman_tables()
362 0x2309, 0x5233, 0x15F0, 0x7262, 0x0AD1, 0x2416, 0xE134, 0xF125, in jpeg_huffman_tables()
363 0x1817, 0x1A19, 0x2726, 0x2928, 0x352A, 0x3736, 0x3938, 0x433A, in jpeg_huffman_tables()
364 0x4544, 0x4746, 0x4948, 0x534A, 0x5554, 0x5756, 0x5958, 0x635A, in jpeg_huffman_tables()
365 0x6564, 0x6766, 0x6968, 0x736A, 0x7574, 0x7776, 0x7978, 0x827A, in jpeg_huffman_tables()
366 0x8483, 0x8685, 0x8887, 0x8A89, 0x9392, 0x9594, 0x9796, 0x9998, in jpeg_huffman_tables()
367 0xA29A, 0xA4A3, 0xA6A5, 0xA8A7, 0xAAA9, 0xB3B2, 0xB5B4, 0xB7B6, in jpeg_huffman_tables()
368 0xB9B8, 0xC2BA, 0xC4C3, 0xC6C5, 0xC8C7, 0xCAC9, 0xD3D2, 0xD5D4, in jpeg_huffman_tables()
369 0xD7D6, 0xD9D8, 0xE2DA, 0xE4E3, 0xE6E5, 0xE8E7, 0xEAE9, 0xF3F2, in jpeg_huffman_tables()
370 0xF5F4, 0xF7F6, 0xF9F8, 0xFFFA, in jpeg_huffman_tables()
371 0xC4FF, 0x1F00, 0x0000, 0x0501, 0x0101, 0x0101, 0x0101, 0x0000, in jpeg_huffman_tables()
372 0x0000, 0x0000, 0x0000, 0x0201, 0x0403, 0x0605, 0x0807, 0x0A09, in jpeg_huffman_tables()
373 0xFF0B, in jpeg_huffman_tables()
374 0xC4FF, 0x1F00, 0x0001, 0x0103, 0x0101, 0x0101, 0x0101, 0x0101, in jpeg_huffman_tables()
375 0x0000, 0x0000, 0x0000, 0x0201, 0x0403, 0x0605, 0x0807, 0x0A09, in jpeg_huffman_tables()
376 0xFF0B in jpeg_huffman_tables()
406 for (i = 0; i < MCHIP_REG_TIMEOUT; i++) { in mchip_sync()
417 } else if (reg > 0x80) { in mchip_sync()
418 u32 mask = (reg < 0x100) ? MCHIP_HIC_STATUS_MCC_RDY in mchip_sync()
420 for (i = 0; i < MCHIP_REG_TIMEOUT; i++) { in mchip_sync()
429 "meye: mchip_sync() timeout on reg 0x%x status=0x%x\n", in mchip_sync()
482 for (i = 0; i < length; i++) in mchip_load_tables()
486 for (i = 0; i < length; i++) in mchip_load_tables()
494 mchip_set(MCHIP_VRJ_SIGNAL_ACTIVE_LEVEL, 0x1f); in mchip_vrj_setup()
496 mchip_set(MCHIP_VRJ_IRQ_FLAG, 0xa0); in mchip_vrj_setup()
500 mchip_set(MCHIP_VRJ_NUM_COMPONENTS, 0x1b); in mchip_vrj_setup()
501 mchip_set(MCHIP_VRJ_LIMIT_COMPRESSED_LO, 0xFFFF); in mchip_vrj_setup()
502 mchip_set(MCHIP_VRJ_LIMIT_COMPRESSED_HI, 0xFFFF); in mchip_vrj_setup()
503 mchip_set(MCHIP_VRJ_COMP_DATA_FORMAT, 0xC); in mchip_vrj_setup()
504 mchip_set(MCHIP_VRJ_RESTART_INTERVAL, 0); in mchip_vrj_setup()
505 mchip_set(MCHIP_VRJ_SOF1, 0x601); in mchip_vrj_setup()
506 mchip_set(MCHIP_VRJ_SOF2, 0x1502); in mchip_vrj_setup()
507 mchip_set(MCHIP_VRJ_SOF3, 0x1503); in mchip_vrj_setup()
508 mchip_set(MCHIP_VRJ_SOF4, 0x1596); in mchip_vrj_setup()
509 mchip_set(MCHIP_VRJ_SOS, 0x0ed0); in mchip_vrj_setup()
520 for (i = 0; i < 4; i++) in mchip_dma_setup()
521 mchip_set(MCHIP_MM_FIR(i), 0); in mchip_dma_setup()
522 meye.mchip_fnum = 0; in mchip_dma_setup()
531 return 0; in mchip_dma_alloc()
538 mchip_dma_setup(0); in mchip_dma_free()
552 for (i = 0; i < 20; ++i) { in mchip_hic_stop()
554 mchip_delay(MCHIP_HIC_CMD, 0); in mchip_hic_stop()
555 for (j = 0; j < 100; ++j) { in mchip_hic_stop()
582 mchip_set(MCHIP_MM_FIR(meye.mchip_fnum), 0); in mchip_free_frame()
593 pt_id = (v >> 17) & 0x3FF; in mchip_cont_read_frame()
605 pt_start = (v >> 19) & 0xFF; in mchip_comp_read_frame()
606 pt_end = (v >> 11) & 0xFF; in mchip_comp_read_frame()
607 trailer = (v >> 1) & 0x3FF; in mchip_comp_read_frame()
626 * (all ?) of those cases, the final EOI (0xff 0xd9) marker in mchip_comp_read_frame()
633 for (i = fsize - 1; i > 0 && buf[i] == 0xff; i--) ; in mchip_comp_read_frame()
635 if (i < 2 || buf[i - 1] != 0xff || buf[i] != 0xd9) in mchip_comp_read_frame()
655 mchip_delay(MCHIP_HIC_CMD, 0); in mchip_take_picture()
657 for (i = 0; i < 100; ++i) { in mchip_take_picture()
673 mchip_delay(MCHIP_HIC_CMD, 0); in mchip_get_picture()
674 for (i = 0; i < 100; ++i) { in mchip_get_picture()
679 for (i = 0; i < 4; ++i) { in mchip_get_picture()
702 mchip_delay(MCHIP_HIC_CMD, 0); in mchip_continuous_start()
711 mchip_vrj_setup(0x3f); in mchip_compress_frame()
717 mchip_delay(MCHIP_HIC_CMD, 0); in mchip_compress_frame()
718 for (i = 0; i < 100; ++i) { in mchip_compress_frame()
724 for (i = 0; i < 4; ++i) { in mchip_compress_frame()
735 #if 0
739 mchip_vrj_setup(0x3f);
745 mchip_delay(MCHIP_HIC_CMD, 0);
755 mchip_vrj_setup(0x3f); in mchip_cont_compression_start()
765 mchip_delay(MCHIP_HIC_CMD, 0); in mchip_cont_compression_start()
838 if (test_and_set_bit(0, &meye.in_use)) in meye_open()
845 clear_bit(0, &meye.in_use); in meye_open()
849 for (i = 0; i < MEYE_MAX_BUFNBRS; i++) in meye_open()
860 clear_bit(0, &meye.in_use); in meye_release()
867 return 0; in meyeioc_g_params()
899 return 0; in meyeioc_s_params()
910 if (*nb < 0) { in meyeioc_qbuf_capt()
913 return 0; in meyeioc_qbuf_capt()
929 return 0; in meyeioc_qbuf_capt()
936 if (*i < 0 || *i >= gbuffers) in meyeioc_sync()
964 return 0; in meyeioc_sync()
972 if (meye.grab_buffer[0].state != MEYE_BUF_UNUSED) in meyeioc_stillcapt()
976 meye.grab_buffer[0].state = MEYE_BUF_USING; in meyeioc_stillcapt()
982 meye.grab_buffer[0].state = MEYE_BUF_DONE; in meyeioc_stillcapt()
985 return 0; in meyeioc_stillcapt()
993 if (meye.grab_buffer[0].state != MEYE_BUF_UNUSED) in meyeioc_stilljcapt()
997 meye.grab_buffer[0].state = MEYE_BUF_USING; in meyeioc_stilljcapt()
1005 meye.grab_buffer[0].state = MEYE_BUF_DONE; in meyeioc_stilljcapt()
1007 return 0; in meyeioc_stilljcapt()
1016 return 0; in vidioc_querycap()
1021 if (i->index != 0) in vidioc_enum_input()
1027 return 0; in vidioc_enum_input()
1032 *i = 0; in vidioc_g_input()
1033 return 0; in vidioc_g_input()
1038 if (i != 0) in vidioc_s_input()
1041 return 0; in vidioc_s_input()
1095 return 0; in meye_s_ctrl()
1104 if (f->index == 0) { in vidioc_enum_fmt_vid_cap()
1106 f->flags = 0; in vidioc_enum_fmt_vid_cap()
1113 return 0; in vidioc_enum_fmt_vid_cap()
1140 f->fmt.pix.colorspace = 0; in vidioc_try_fmt_vid_cap()
1142 return 0; in vidioc_try_fmt_vid_cap()
1165 return 0; in vidioc_g_fmt_vid_cap()
1189 meye.params.subsample = 0; in vidioc_s_fmt_vid_cap()
1205 f->fmt.pix.colorspace = 0; in vidioc_s_fmt_vid_cap()
1207 return 0; in vidioc_s_fmt_vid_cap()
1220 return 0; in vidioc_reqbufs()
1225 for (i = 0; i < gbuffers; i++) in vidioc_reqbufs()
1244 for (i = 0; i < gbuffers; i++) in vidioc_reqbufs()
1245 meye.vma_use_count[i] = 0; in vidioc_reqbufs()
1249 return 0; in vidioc_reqbufs()
1275 return 0; in vidioc_querybuf()
1297 return 0; in vidioc_qbuf()
1309 if (kfifo_len(&meye.doneq) == 0 && file->f_flags & O_NONBLOCK) { in vidioc_dqbuf()
1315 kfifo_len(&meye.doneq) != 0) < 0) { in vidioc_dqbuf()
1343 return 0; in vidioc_dqbuf()
1364 return 0; in vidioc_streamon()
1374 for (i = 0; i < MEYE_MAX_BUFNBRS; i++) in vidioc_streamoff()
1378 return 0; in vidioc_streamoff()
1460 for (i = 0; i < gbuffers; i++) in meye_mmap()
1461 meye.vma_use_count[i] = 0; in meye_mmap()
1465 while (size > 0) { in meye_mmap()
1476 size = 0; in meye_mmap()
1486 return 0; in meye_mmap()
1535 mchip_set(MCHIP_MM_INTA, 0x0); in meye_suspend()
1536 return 0; in meye_suspend()
1543 mchip_delay(MCHIP_HIC_CMD, 0); in meye_resume()
1560 return 0; in meye_resume()
1601 if (ret < 0) { in meye_probe()
1639 mchip_adr = pci_resource_start(meye.mchip_dev,0); in meye_probe()
1644 if (!request_mem_region(pci_resource_start(meye.mchip_dev, 0), in meye_probe()
1645 pci_resource_len(meye.mchip_dev, 0), in meye_probe()
1671 mchip_delay(MCHIP_HIC_CMD, 0); in meye_probe()
1688 V4L2_CID_BRIGHTNESS, 0, 63, 1, 32); in meye_probe()
1690 V4L2_CID_HUE, 0, 63, 1, 32); in meye_probe()
1692 V4L2_CID_CONTRAST, 0, 63, 1, 32); in meye_probe()
1694 V4L2_CID_SATURATION, 0, 63, 1, 32); in meye_probe()
1697 V4L2_CID_SHARPNESS, 0, 63, 1, 32); in meye_probe()
1700 V4L2_CID_JPEG_COMPRESSION_QUALITY, 0, 10, 1, 8); in meye_probe()
1711 video_nr) < 0) { in meye_probe()
1721 return 0; in meye_probe()
1729 release_mem_region(pci_resource_start(meye.mchip_dev, 0), in meye_probe()
1730 pci_resource_len(meye.mchip_dev, 0)); in meye_probe()
1734 sony_pic_camera_command(SONY_PIC_COMMAND_SETCAMERA, 0); in meye_probe()
1754 mchip_set(MCHIP_MM_INTA, 0x0); in meye_remove()
1760 release_mem_region(pci_resource_start(meye.mchip_dev, 0), in meye_remove()
1761 pci_resource_len(meye.mchip_dev, 0)); in meye_remove()
1765 sony_pic_camera_command(SONY_PIC_COMMAND_SETCAMERA, 0); in meye_remove()
1781 { PCI_VDEVICE(KAWASAKI, PCI_DEVICE_ID_MCHIP_KL5A72002), 0 },