Lines Matching +full:0 +full:x63

21  * The IP has 4 slots available for context switching, but only slot 0
286 0xFF, 0xD8
290 0xFF, 0xE0,
291 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00,
292 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x01,
293 0x00, 0x00
297 0xFF, 0xEE,
298 0x00, 0x0E, 0x41, 0x64, 0x6F, 0x62, 0x65,
299 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00
303 0xFF, 0xDB,
304 0x00, 0x84, 0x00, 0x10, 0x0B, 0x0C, 0x0E,
305 0x0C, 0x0A, 0x10, 0x0E, 0x0D, 0x0E, 0x12,
306 0x11, 0x10, 0x13, 0x18, 0x28, 0x1A, 0x18,
307 0x16, 0x16, 0x18, 0x31, 0x23, 0x25, 0x1D,
308 0x28, 0x3A, 0x33, 0x3D, 0x3C, 0x39, 0x33,
309 0x38, 0x37, 0x40, 0x48, 0x5C, 0x4E, 0x40,
310 0x44, 0x57, 0x45, 0x37, 0x38, 0x50, 0x6D,
311 0x51, 0x57, 0x5F, 0x62, 0x67, 0x68, 0x67,
312 0x3E, 0x4D, 0x71, 0x79, 0x70, 0x64, 0x78,
313 0x5C, 0x65, 0x67, 0x63, 0x01, 0x11, 0x12,
314 0x12, 0x18, 0x15, 0x18, 0x2F, 0x1A, 0x1A,
315 0x2F, 0x63, 0x42, 0x38, 0x42, 0x63, 0x63,
316 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
317 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
318 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
319 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
320 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
321 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
322 0x63, 0x63, 0x63, 0x63, 0x63, 0x63
326 0xFF, 0xDB,
327 0x01, 0x04,
328 0x10,
329 0x00, 0x80, 0x00, 0x58, 0x00, 0x60, 0x00, 0x70,
330 0x00, 0x60, 0x00, 0x50, 0x00, 0x80, 0x00, 0x70,
331 0x00, 0x68, 0x00, 0x70, 0x00, 0x90, 0x00, 0x88,
332 0x00, 0x80, 0x00, 0x98, 0x00, 0xC0, 0x01, 0x40,
333 0x00, 0xD0, 0x00, 0xC0, 0x00, 0xB0, 0x00, 0xB0,
334 0x00, 0xC0, 0x01, 0x88, 0x01, 0x18, 0x01, 0x28,
335 0x00, 0xE8, 0x01, 0x40, 0x01, 0xD0, 0x01, 0x98,
336 0x01, 0xE8, 0x01, 0xE0, 0x01, 0xC8, 0x01, 0x98,
337 0x01, 0xC0, 0x01, 0xB8, 0x02, 0x00, 0x02, 0x40,
338 0x02, 0xE0, 0x02, 0x70, 0x02, 0x00, 0x02, 0x20,
339 0x02, 0xB8, 0x02, 0x28, 0x01, 0xB8, 0x01, 0xC0,
340 0x02, 0x80, 0x03, 0x68, 0x02, 0x88, 0x02, 0xB8,
341 0x02, 0xF8, 0x03, 0x10, 0x03, 0x38, 0x03, 0x40,
342 0x03, 0x38, 0x01, 0xF0, 0x02, 0x68, 0x03, 0x88,
343 0x03, 0xC8, 0x03, 0x80, 0x03, 0x20, 0x03, 0xC0,
344 0x02, 0xE0, 0x03, 0x28, 0x03, 0x38, 0x03, 0x18,
345 0x11,
346 0x00, 0x88, 0x00, 0x90, 0x00, 0x90, 0x00, 0xC0,
347 0x00, 0xA8, 0x00, 0xC0, 0x01, 0x78, 0x00, 0xD0,
348 0x00, 0xD0, 0x01, 0x78, 0x03, 0x18, 0x02, 0x10,
349 0x01, 0xC0, 0x02, 0x10, 0x03, 0x18, 0x03, 0x18,
350 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
351 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
352 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
353 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
354 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
355 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
356 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
357 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
358 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
359 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
360 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
361 0x03, 0x18, 0x03, 0x18, 0x03, 0x18, 0x03, 0x18,
365 0xFF, 0xC0,
366 0x00, 0x14, 0x08, 0x00, 0x40, 0x00, 0x40,
367 0x04, 0x01, 0x11, 0x00, 0x02, 0x11, 0x01,
368 0x03, 0x11, 0x01, 0x04, 0x11, 0x01
372 0xFF, 0xC1,
373 0x00, 0x14, 0x08, 0x00, 0x40, 0x00, 0x40,
374 0x04, 0x01, 0x11, 0x00, 0x02, 0x11, 0x01,
375 0x03, 0x11, 0x01, 0x04, 0x11, 0x01
379 0xFF, 0xC4,
380 0x01, 0xA2, 0x00, 0x00, 0x01, 0x05, 0x01,
381 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00,
382 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
383 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
384 0x09, 0x0A, 0x0B, 0x10, 0x00, 0x02, 0x01,
385 0x03, 0x03, 0x02, 0x04, 0x03, 0x05, 0x05,
386 0x04, 0x04, 0x00, 0x00, 0x01, 0x7D, 0x01,
387 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12,
388 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61,
389 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91,
390 0xA1, 0x08, 0x23, 0x42, 0xB1, 0xC1, 0x15,
391 0x52, 0xD1, 0xF0, 0x24, 0x33, 0x62, 0x72,
392 0x82, 0x09, 0x0A, 0x16, 0x17, 0x18, 0x19,
393 0x1A, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A,
394 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A,
395 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
396 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,
397 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67,
398 0x68, 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76,
399 0x77, 0x78, 0x79, 0x7A, 0x83, 0x84, 0x85,
400 0x86, 0x87, 0x88, 0x89, 0x8A, 0x92, 0x93,
401 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A,
402 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8,
403 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6,
404 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4,
405 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2,
406 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9,
407 0xDA, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6,
408 0xE7, 0xE8, 0xE9, 0xEA, 0xF1, 0xF2, 0xF3,
409 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA,
410 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01,
411 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00,
412 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03,
413 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A,
414 0x0B, 0x11, 0x00, 0x02, 0x01, 0x02, 0x04,
415 0x04, 0x03, 0x04, 0x07, 0x05, 0x04, 0x04,
416 0x00, 0x01, 0x02, 0x77, 0x00, 0x01, 0x02,
417 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06,
418 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13,
419 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91,
420 0xA1, 0xB1, 0xC1, 0x09, 0x23, 0x33, 0x52,
421 0xF0, 0x15, 0x62, 0x72, 0xD1, 0x0A, 0x16,
422 0x24, 0x34, 0xE1, 0x25, 0xF1, 0x17, 0x18,
423 0x19, 0x1A, 0x26, 0x27, 0x28, 0x29, 0x2A,
424 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43,
425 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A,
426 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59,
427 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,
428 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77,
429 0x78, 0x79, 0x7A, 0x82, 0x83, 0x84, 0x85,
430 0x86, 0x87, 0x88, 0x89, 0x8A, 0x92, 0x93,
431 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A,
432 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8,
433 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6,
434 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4,
435 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2,
436 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9,
437 0xDA, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
438 0xE8, 0xE9, 0xEA, 0xF2, 0xF3, 0xF4, 0xF5,
439 0xF6, 0xF7, 0xF8, 0xF9, 0xFA
443 0xFF, 0xC4,
444 0x02, 0x2a, 0x00, 0x00, 0x01, 0x05, 0x01,
445 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
446 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01,
447 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
448 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
449 0x10, 0x00, 0x02, 0x01, 0x03, 0x03, 0x02,
450 0x04, 0x03, 0x05, 0x05, 0x02, 0x03, 0x02,
451 0x00, 0x00, 0xbf, 0x01, 0x02, 0x03, 0x00,
452 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41,
453 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71,
454 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08, 0x23,
455 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0,
456 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a,
457 0x16, 0x17, 0x18, 0x19, 0x1a, 0x25, 0x26,
458 0x27, 0x28, 0x29, 0x2a, 0x34, 0x35, 0x36,
459 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45,
460 0x46, 0x47, 0x48, 0x49, 0x4a, 0x53, 0x54,
461 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x63,
462 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a,
463 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,
464 0x7a, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88,
465 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96,
466 0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4,
467 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2,
468 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9,
469 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
470 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5,
471 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe1, 0xe2,
472 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9,
473 0xea, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6,
474 0xf7, 0xf8, 0xf9, 0xfa, 0x0b, 0x0c, 0x0d,
475 0x0e, 0x1b, 0x1c, 0x1d, 0x1e, 0x2b, 0x2c,
476 0x2d, 0x2e, 0x3b, 0x3c, 0x3d, 0x3e, 0x4b,
477 0x4c, 0x4d, 0x4e, 0x5b, 0x5c, 0x5d, 0x5e,
478 0x6b, 0x6c, 0x6d, 0x6e, 0x7b, 0x7c, 0x7d,
479 0x7e, 0x8b, 0x8c, 0x8d, 0x8e, 0x9b, 0x9c,
480 0x9d, 0x9e, 0xab, 0xac, 0xad, 0xae, 0xbb,
481 0xbc, 0xbd, 0xbe, 0xcb, 0xcc, 0xcd, 0xce,
482 0xdb, 0xdc, 0xdd, 0xde, 0xeb, 0xec, 0xed,
483 0xee, 0xfb, 0xfc, 0xfd, 0xfe, 0x01, 0x00,
484 0x01, 0x05, 0x01, 0x01, 0x01, 0x01, 0x01,
485 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00,
486 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
487 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c,
488 0x0d, 0x0e, 0x0f, 0x11, 0x00, 0x02, 0x01,
489 0x03, 0x03, 0x02, 0x04, 0x03, 0x05, 0x05,
490 0x02, 0x03, 0x02, 0x00, 0x00, 0xbf, 0x01,
491 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12,
492 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61,
493 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91,
494 0xa1, 0x08, 0x23, 0x42, 0xb1, 0xc1, 0x15,
495 0x52, 0xd1, 0xf0, 0x24, 0x33, 0x62, 0x72,
496 0x82, 0x09, 0x0a, 0x16, 0x17, 0x18, 0x19,
497 0x1a, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
498 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a,
499 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
500 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,
501 0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67,
502 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76,
503 0x77, 0x78, 0x79, 0x7a, 0x83, 0x84, 0x85,
504 0x86, 0x87, 0x88, 0x89, 0x8a, 0x92, 0x93,
505 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a,
506 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8,
507 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6,
508 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4,
509 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2,
510 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9,
511 0xda, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6,
512 0xe7, 0xe8, 0xe9, 0xea, 0xf1, 0xf2, 0xf3,
513 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa,
514 0x0b, 0x0c, 0x0d, 0x0e, 0x1b, 0x1c, 0x1d,
515 0x1e, 0x2b, 0x2c, 0x2d, 0x2e, 0x3b, 0x3c,
516 0x3d, 0x3e, 0x4b, 0x4c, 0x4d, 0x4e, 0x5b,
517 0x5c, 0x5d, 0x5e, 0x6b, 0x6c, 0x6d, 0x6e,
518 0x7b, 0x7c, 0x7d, 0x7e, 0x8b, 0x8c, 0x8d,
519 0x8e, 0x9b, 0x9c, 0x9d, 0x9e, 0xab, 0xac,
520 0xad, 0xae, 0xbb, 0xbc, 0xbd, 0xbe, 0xcb,
521 0xcc, 0xcd, 0xce, 0xdb, 0xdc, 0xdd, 0xde,
522 0xeb, 0xec, 0xed, 0xee, 0xfb, 0xfc, 0xfd,
523 0xfe,
527 0xFF, 0xDD,
528 0x00, 0x04, 0x00, 0x20
532 0xFF, 0xDA,
533 0x00, 0x0C, 0x04, 0x01, 0x00, 0x02, 0x11, 0x03,
534 0x11, 0x04, 0x11, 0x00, 0x3F, 0x00
538 0xFC, 0x5F, 0xA2, 0xBF, 0xCA, 0x73, 0xFE, 0xFE,
539 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x00,
540 0x28, 0xA0, 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02,
541 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x00, 0x28,
542 0xA0, 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A,
543 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x00, 0x28, 0xA0,
544 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x00,
545 0x28, 0xA0, 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02,
546 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x00, 0x28,
547 0xA0, 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A,
548 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x00
552 0xFF, 0xD9
576 MODULE_PARM_DESC(debug, "Debug level (0-3)");
587 *a = ((*a & 0x00FF) << 8) | ((*a & 0xFF00) >> 8); in _bswap16()
601 for (plane_no = 0; plane_no < buf->num_planes; plane_no++) { in print_mxc_buf()
603 if (len == 0) in print_mxc_buf()
623 int i, num = 0; in enum_fmt()
625 for (i = 0; i < n; ++i) { in enum_fmt()
643 return 0; in enum_fmt()
650 for (k = 0; k < MXC_JPEG_NUM_FORMATS; k++) { in mxc_jpeg_find_format()
704 desc->buf_base0 = vb2_dma_contig_plane_dma_addr(raw_buf, 0); in mxc_jpeg_addrs()
705 desc->buf_base1 = 0; in mxc_jpeg_addrs()
710 desc->buf_base1 = desc->buf_base0 + q_data->sizeimage[0]; in mxc_jpeg_addrs()
712 desc->stm_bufbase = vb2_dma_contig_plane_dma_addr(jpeg_buf, 0) + in mxc_jpeg_addrs()
860 return 0; in mxc_jpeg_get_plane_size()
929 dev_err(dev, "Encoder/decoder error, dec_ret = 0x%08x, status=0x%08x", in mxc_jpeg_dec_irq()
957 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload); in mxc_jpeg_dec_irq()
962 payload = mxc_jpeg_get_plane_size(q_data, 0); in mxc_jpeg_dec_irq()
963 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload); in mxc_jpeg_dec_irq()
964 vb2_set_plane_payload(&dst_buf->vb2_buf, 1, 0); in mxc_jpeg_dec_irq()
970 vb2_get_plane_payload(&dst_buf->vb2_buf, 0), in mxc_jpeg_dec_irq()
1014 sof->comp[0].v = 0x2; in mxc_jpeg_fixup_sof()
1015 sof->comp[0].h = 0x2; in mxc_jpeg_fixup_sof()
1020 sof->comp[0].v = 0x1; in mxc_jpeg_fixup_sof()
1021 sof->comp[0].h = 0x2; in mxc_jpeg_fixup_sof()
1084 sof_u8[sos_length - 1] = 0x0; in mxc_jpeg_fixup_sos()
1085 sof_u8[sos_length - 2] = 0x3f; in mxc_jpeg_fixup_sos()
1086 sof_u8[sos_length - 3] = 0x0; in mxc_jpeg_fixup_sos()
1099 * an offset which should be no less than 0x80 (128 bytes). in mxc_jpeg_setup_cfg_stream()
1101 unsigned int offset = 0x80; in mxc_jpeg_setup_cfg_stream()
1108 return 0; in mxc_jpeg_setup_cfg_stream()
1184 desc->next_descpt_ptr = 0; /* end of chain */ in mxc_jpeg_config_dec_desc()
1188 desc->stm_ctrl &= ~STM_CTRL_IMAGE_FORMAT(0xF); /* clear image format */ in mxc_jpeg_config_dec_desc()
1195 desc->line_pitch = q_data_cap->bytesperline[0]; in mxc_jpeg_config_dec_desc()
1196 mxc_jpeg_addrs(desc, dst_buf, src_buf, 0); in mxc_jpeg_config_dec_desc()
1197 mxc_jpeg_set_bufsize(desc, ALIGN(vb2_plane_size(src_buf, 0), 1024)); in mxc_jpeg_config_dec_desc()
1215 cfg_desc->buf_base0 = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in mxc_jpeg_config_dec_desc()
1216 cfg_desc->buf_base1 = 0; in mxc_jpeg_config_dec_desc()
1259 cfg_desc->buf_base1 = 0; in mxc_jpeg_config_enc_desc()
1260 cfg_desc->line_pitch = 0; in mxc_jpeg_config_enc_desc()
1261 cfg_desc->stm_bufbase = 0; /* no output expected */ in mxc_jpeg_config_enc_desc()
1262 cfg_desc->stm_bufsize = 0x0; in mxc_jpeg_config_enc_desc()
1263 cfg_desc->imgsize = 0; in mxc_jpeg_config_enc_desc()
1267 desc->next_descpt_ptr = 0; /* end of chain */ in mxc_jpeg_config_enc_desc()
1273 &h, h, MXC_JPEG_MAX_HEIGHT, q_data->fmt->v_align, 0); in mxc_jpeg_config_enc_desc()
1275 mxc_jpeg_set_line_pitch(desc, q_data->bytesperline[0]); in mxc_jpeg_config_enc_desc()
1276 mxc_jpeg_set_bufsize(desc, ALIGN(vb2_plane_size(dst_buf, 0), 1024)); in mxc_jpeg_config_enc_desc()
1280 desc->stm_ctrl = STM_CTRL_CONFIG_MOD(0) | in mxc_jpeg_config_enc_desc()
1287 mxc_jpeg_addrs(desc, src_buf, dst_buf, 0); in mxc_jpeg_config_enc_desc()
1303 for (i = 0; i < MXC_JPEG_NUM_FORMATS; i++) { in mxc_jpeg_get_sibling_format()
1358 (jpeg_src_buf->fmt->fourcc & 0xff), in mxc_jpeg_source_change()
1359 (jpeg_src_buf->fmt->fourcc >> 8) & 0xff, in mxc_jpeg_source_change()
1360 (jpeg_src_buf->fmt->fourcc >> 16) & 0xff, in mxc_jpeg_source_change()
1361 (jpeg_src_buf->fmt->fourcc >> 24) & 0xff); in mxc_jpeg_source_change()
1372 q_data_cap->crop.left = 0; in mxc_jpeg_source_change()
1373 q_data_cap->crop.top = 0; in mxc_jpeg_source_change()
1389 0); in mxc_jpeg_source_change()
1408 return ctx->source_change ? 0 : 1; in mxc_jpeg_job_ready()
1488 if (ctx->slot < 0) { in mxc_jpeg_device_run()
1510 print_mxc_buf(jpeg, &src_buf->vb2_buf, 0); in mxc_jpeg_device_run()
1529 if (ret < 0) in mxc_jpeg_decoder_cmd()
1533 return 0; in mxc_jpeg_decoder_cmd()
1538 if (ret < 0) in mxc_jpeg_decoder_cmd()
1550 return 0; in mxc_jpeg_decoder_cmd()
1562 if (ret < 0) in mxc_jpeg_encoder_cmd()
1567 return 0; in mxc_jpeg_encoder_cmd()
1572 if (ret < 0) in mxc_jpeg_encoder_cmd()
1573 return 0; in mxc_jpeg_encoder_cmd()
1583 return 0; in mxc_jpeg_encoder_cmd()
1600 /* Handle CREATE_BUFS situation - *nplanes != 0 */ in mxc_jpeg_queue_setup()
1604 for (i = 0; i < *nplanes; i++) { in mxc_jpeg_queue_setup()
1608 return 0; in mxc_jpeg_queue_setup()
1613 for (i = 0; i < *nplanes; i++) in mxc_jpeg_queue_setup()
1619 return 0; in mxc_jpeg_queue_setup()
1631 ctx->source_change = 0; in mxc_jpeg_start_streaming()
1633 q_data->sequence = 0; in mxc_jpeg_start_streaming()
1639 if (ret < 0) { in mxc_jpeg_start_streaming()
1644 return 0; in mxc_jpeg_start_streaming()
1690 * between 0..4, if they are not, let's patch them in mxc_jpeg_valid_comp_id()
1692 for (i = 0; i < sof->components_no; i++) in mxc_jpeg_valid_comp_id()
1694 valid = 0; in mxc_jpeg_valid_comp_id()
1700 for (i = 0; i < sof->components_no; i++) { in mxc_jpeg_valid_comp_id()
1719 * If the transform flag from APP14 marker is 0, images that are in mxc_jpeg_match_image_format()
1724 u8 is_rgb = header->app14_tf == V4L2_JPEG_APP14_TF_CMYK_RGB ? 1 : 0; in mxc_jpeg_match_image_format()
1736 u32 fourcc = 0; in mxc_jpeg_get_image_format()
1738 for (i = 0; i < MXC_JPEG_NUM_FORMATS; i++) { in mxc_jpeg_get_image_format()
1744 if (fourcc == 0) { in mxc_jpeg_get_image_format()
1761 q->bytesperline[0] = 0; in mxc_jpeg_bytesperline()
1762 q->bytesperline[1] = 0; in mxc_jpeg_bytesperline()
1768 q->bytesperline[0] = q->w_adjusted * DIV_ROUND_UP(precision, 8); in mxc_jpeg_bytesperline()
1769 q->bytesperline[1] = q->bytesperline[0]; in mxc_jpeg_bytesperline()
1771 q->bytesperline[0] = q->w_adjusted * DIV_ROUND_UP(precision, 8) * 2; in mxc_jpeg_bytesperline()
1772 q->bytesperline[1] = 0; in mxc_jpeg_bytesperline()
1774 q->bytesperline[0] = q->w_adjusted * DIV_ROUND_UP(precision, 8) * q->fmt->nc; in mxc_jpeg_bytesperline()
1775 q->bytesperline[1] = 0; in mxc_jpeg_bytesperline()
1778 q->bytesperline[0] = q->w_adjusted * DIV_ROUND_UP(precision, 8); in mxc_jpeg_bytesperline()
1779 q->bytesperline[1] = 0; in mxc_jpeg_bytesperline()
1787 if (!q->sizeimage[0]) in mxc_jpeg_sizeimage()
1788 q->sizeimage[0] = 6 * q->w * q->h; in mxc_jpeg_sizeimage()
1789 q->sizeimage[1] = 0; in mxc_jpeg_sizeimage()
1791 if (q->sizeimage[0] > MXC_JPEG_MAX_SIZEIMAGE) in mxc_jpeg_sizeimage()
1792 q->sizeimage[0] = MXC_JPEG_MAX_SIZEIMAGE; in mxc_jpeg_sizeimage()
1795 q->sizeimage[0] = ALIGN(q->sizeimage[0], 1024); in mxc_jpeg_sizeimage()
1797 q->sizeimage[0] = q->bytesperline[0] * q->h_adjusted; in mxc_jpeg_sizeimage()
1798 q->sizeimage[1] = 0; in mxc_jpeg_sizeimage()
1800 q->sizeimage[1] = q->sizeimage[0] / 2; in mxc_jpeg_sizeimage()
1814 u8 *src_addr = (u8 *)vb2_plane_vaddr(vb, 0); in mxc_jpeg_parse()
1815 u32 size = vb2_get_plane_payload(vb, 0); in mxc_jpeg_parse()
1818 memset(&header, 0, sizeof(header)); in mxc_jpeg_parse()
1820 if (ret < 0) { in mxc_jpeg_parse()
1826 jpeg_src_buf->dht_needed = (header.num_dht == 0); in mxc_jpeg_parse()
1830 if (q_data_out->w == 0 && q_data_out->h == 0) { in mxc_jpeg_parse()
1831 dev_warn(dev, "Invalid user resolution 0x0"); in mxc_jpeg_parse()
1864 dev_warn(dev, "JPEG component ids should be 0-3 or 1-4"); in mxc_jpeg_parse()
1871 if (fourcc == 0) in mxc_jpeg_parse()
1882 return 0; in mxc_jpeg_parse()
1929 return 0; in mxc_jpeg_buf_out_validate()
1946 for (i = 0; i < q_data->fmt->mem_planes; i++) { in mxc_jpeg_buf_prepare()
1955 vb2_set_plane_payload(vb, 0, 0); in mxc_jpeg_buf_prepare()
1956 vb2_set_plane_payload(vb, 1, 0); in mxc_jpeg_buf_prepare()
1958 return 0; in mxc_jpeg_buf_prepare()
2021 for (i = 0; i < 2; i++) { in mxc_jpeg_set_default_params()
2026 q[i]->crop.left = 0; in mxc_jpeg_set_default_params()
2027 q[i]->crop.top = 0; in mxc_jpeg_set_default_params()
2050 return 0; in mxc_jpeg_s_ctrl()
2091 int ret = 0; in mxc_jpeg_open()
2132 return 0; in mxc_jpeg_open()
2153 return 0; in mxc_jpeg_querycap()
2178 case 0: in mxc_jpeg_enum_fmt_vid_cap()
2180 ret = 0; in mxc_jpeg_enum_fmt_vid_cap()
2186 ret = 0; in mxc_jpeg_enum_fmt_vid_cap()
2209 return 0; in mxc_jpeg_enum_fmt_vid_out()
2265 (fourcc & 0xff), in mxc_jpeg_try_fmt()
2266 (fourcc >> 8) & 0xff, in mxc_jpeg_try_fmt()
2267 (fourcc >> 16) & 0xff, in mxc_jpeg_try_fmt()
2268 (fourcc >> 24) & 0xff); in mxc_jpeg_try_fmt()
2277 memset(pix_mp->reserved, 0, sizeof(pix_mp->reserved)); in mxc_jpeg_try_fmt()
2294 0); in mxc_jpeg_try_fmt()
2295 for (i = 0; i < pix_mp->num_planes; i++) { in mxc_jpeg_try_fmt()
2306 for (i = 0; i < pix_mp->num_planes; i++) { in mxc_jpeg_try_fmt()
2308 memset(pfmt->reserved, 0, sizeof(pfmt->reserved)); in mxc_jpeg_try_fmt()
2325 q_data->crop.left = 0; in mxc_jpeg_try_fmt()
2326 q_data->crop.top = 0; in mxc_jpeg_try_fmt()
2334 return 0; in mxc_jpeg_try_fmt()
2429 return 0; in mxc_jpeg_s_fmt_vid_out()
2436 return 0; in mxc_jpeg_s_fmt_vid_out()
2440 return 0; in mxc_jpeg_s_fmt_vid_out()
2441 memset(&fc, 0, sizeof(fc)); in mxc_jpeg_s_fmt_vid_out()
2481 for (i = 0; i < pix_mp->num_planes; i++) { in mxc_jpeg_g_fmt_vid()
2486 return 0; in mxc_jpeg_g_fmt_vid()
2506 s->r.left = 0; in mxc_jpeg_dec_g_selection()
2507 s->r.top = 0; in mxc_jpeg_dec_g_selection()
2515 return 0; in mxc_jpeg_dec_g_selection()
2531 s->r.left = 0; in mxc_jpeg_enc_g_selection()
2532 s->r.top = 0; in mxc_jpeg_enc_g_selection()
2543 return 0; in mxc_jpeg_enc_g_selection()
2575 q_data_out->crop.left = 0; in mxc_jpeg_s_selection()
2576 q_data_out->crop.top = 0; in mxc_jpeg_s_selection()
2580 return 0; in mxc_jpeg_s_selection()
2588 return v4l2_event_subscribe(fh, sub, 0, NULL); in mxc_jpeg_subscribe_event()
2655 return 0; in mxc_jpeg_release()
2676 for (i = 0; i < jpeg->num_domains; i++) { in mxc_jpeg_detach_pm_domains()
2698 if (jpeg->num_domains < 0) { in mxc_jpeg_attach_pm_domains()
2704 jpeg->num_domains = 0; in mxc_jpeg_attach_pm_domains()
2705 return 0; in mxc_jpeg_attach_pm_domains()
2718 for (i = 0; i < jpeg->num_domains; i++) { in mxc_jpeg_attach_pm_domains()
2734 return 0; in mxc_jpeg_attach_pm_domains()
2767 jpeg->base_reg = devm_platform_ioremap_resource(pdev, 0); in mxc_jpeg_probe()
2771 ret = of_property_read_u32_index(pdev->dev.of_node, "slot", 0, &jpeg->slot_data.slot); in mxc_jpeg_probe()
2773 jpeg->slot_data.slot = 0; in mxc_jpeg_probe()
2775 dec_irq = platform_get_irq(pdev, 0); in mxc_jpeg_probe()
2776 if (dec_irq < 0) { in mxc_jpeg_probe()
2781 0, pdev->name, jpeg); in mxc_jpeg_probe()
2794 if (ret < 0) { in mxc_jpeg_probe()
2801 if (ret < 0) { in mxc_jpeg_probe()
2870 return 0; in mxc_jpeg_probe()
2896 if (ret < 0) { in mxc_jpeg_runtime_resume()
2901 return 0; in mxc_jpeg_runtime_resume()
2910 return 0; in mxc_jpeg_runtime_suspend()
2929 if (ret < 0) in mxc_jpeg_resume()