Lines Matching refs:yl
376 u32 yl, yr; in dsp_bf_encrypt() local
390 yl = dsp_audio_law2seven[bf_data_in[0]]; in dsp_bf_encrypt()
391 yl = (yl << 7) | dsp_audio_law2seven[bf_data_in[1]]; in dsp_bf_encrypt()
392 yl = (yl << 7) | dsp_audio_law2seven[bf_data_in[2]]; in dsp_bf_encrypt()
393 yl = (yl << 7) | dsp_audio_law2seven[bf_data_in[3]]; in dsp_bf_encrypt()
396 yl = (yl << 4) | (nibble >> 3); in dsp_bf_encrypt()
406 EROUND(yr, yl, 0); in dsp_bf_encrypt()
407 EROUND(yl, yr, 1); in dsp_bf_encrypt()
408 EROUND(yr, yl, 2); in dsp_bf_encrypt()
409 EROUND(yl, yr, 3); in dsp_bf_encrypt()
410 EROUND(yr, yl, 4); in dsp_bf_encrypt()
411 EROUND(yl, yr, 5); in dsp_bf_encrypt()
412 EROUND(yr, yl, 6); in dsp_bf_encrypt()
413 EROUND(yl, yr, 7); in dsp_bf_encrypt()
414 EROUND(yr, yl, 8); in dsp_bf_encrypt()
415 EROUND(yl, yr, 9); in dsp_bf_encrypt()
416 EROUND(yr, yl, 10); in dsp_bf_encrypt()
417 EROUND(yl, yr, 11); in dsp_bf_encrypt()
418 EROUND(yr, yl, 12); in dsp_bf_encrypt()
419 EROUND(yl, yr, 13); in dsp_bf_encrypt()
420 EROUND(yr, yl, 14); in dsp_bf_encrypt()
421 EROUND(yl, yr, 15); in dsp_bf_encrypt()
422 yl ^= P[16]; in dsp_bf_encrypt()
426 cs = yl ^ (yl >> 3) ^ (yl >> 6) ^ (yl >> 9) ^ (yl >> 12) ^ (yl >> 15) in dsp_bf_encrypt()
427 ^ (yl >> 18) ^ (yl >> 21) ^ (yl >> 24) ^ (yl >> 27) ^ (yl >> 30) in dsp_bf_encrypt()
436 bf_crypt_out[0] = (yl >> 25) | 0x80; in dsp_bf_encrypt()
437 bf_crypt_out[1] = (yl >> 18) & 0x7f; in dsp_bf_encrypt()
438 bf_crypt_out[2] = (yl >> 11) & 0x7f; in dsp_bf_encrypt()
439 bf_crypt_out[3] = (yl >> 4) & 0x7f; in dsp_bf_encrypt()
440 bf_crypt_out[4] = ((yl << 3) & 0x78) | ((yr >> 29) & 0x07); in dsp_bf_encrypt()
468 u32 yl, yr; in dsp_bf_decrypt() local
488 yl = bf_crypt_inring[j++ & 15]; in dsp_bf_decrypt()
489 yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ in dsp_bf_decrypt()
490 yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ in dsp_bf_decrypt()
491 yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ in dsp_bf_decrypt()
494 yl = (yl << 4) | (nibble >> 3); in dsp_bf_decrypt()
504 cs = yl ^ (yl >> 3) ^ (yl >> 6) ^ (yl >> 9) ^ (yl >> 12) ^ (yl >> 15) in dsp_bf_decrypt()
505 ^ (yl >> 18) ^ (yl >> 21) ^ (yl >> 24) ^ (yl >> 27) ^ (yl >> 30) in dsp_bf_decrypt()
521 yl ^= P[16]; in dsp_bf_decrypt()
522 DROUND(yl, yr, 15); in dsp_bf_decrypt()
523 DROUND(yr, yl, 14); in dsp_bf_decrypt()
524 DROUND(yl, yr, 13); in dsp_bf_decrypt()
525 DROUND(yr, yl, 12); in dsp_bf_decrypt()
526 DROUND(yl, yr, 11); in dsp_bf_decrypt()
527 DROUND(yr, yl, 10); in dsp_bf_decrypt()
528 DROUND(yl, yr, 9); in dsp_bf_decrypt()
529 DROUND(yr, yl, 8); in dsp_bf_decrypt()
530 DROUND(yl, yr, 7); in dsp_bf_decrypt()
531 DROUND(yr, yl, 6); in dsp_bf_decrypt()
532 DROUND(yl, yr, 5); in dsp_bf_decrypt()
533 DROUND(yr, yl, 4); in dsp_bf_decrypt()
534 DROUND(yl, yr, 3); in dsp_bf_decrypt()
535 DROUND(yr, yl, 2); in dsp_bf_decrypt()
536 DROUND(yl, yr, 1); in dsp_bf_decrypt()
537 DROUND(yr, yl, 0); in dsp_bf_decrypt()
540 bf_data_out[0] = dsp_audio_seven2law[(yl >> 25) & 0x7f]; in dsp_bf_decrypt()
541 bf_data_out[1] = dsp_audio_seven2law[(yl >> 18) & 0x7f]; in dsp_bf_decrypt()
542 bf_data_out[2] = dsp_audio_seven2law[(yl >> 11) & 0x7f]; in dsp_bf_decrypt()
543 bf_data_out[3] = dsp_audio_seven2law[(yl >> 4) & 0x7f]; in dsp_bf_decrypt()
544 bf_data_out[4] = dsp_audio_seven2law[((yl << 3) & 0x78) | in dsp_bf_decrypt()
565 u32 yl = src[0]; in encrypt_block() local
568 EROUND(yr, yl, 0); in encrypt_block()
569 EROUND(yl, yr, 1); in encrypt_block()
570 EROUND(yr, yl, 2); in encrypt_block()
571 EROUND(yl, yr, 3); in encrypt_block()
572 EROUND(yr, yl, 4); in encrypt_block()
573 EROUND(yl, yr, 5); in encrypt_block()
574 EROUND(yr, yl, 6); in encrypt_block()
575 EROUND(yl, yr, 7); in encrypt_block()
576 EROUND(yr, yl, 8); in encrypt_block()
577 EROUND(yl, yr, 9); in encrypt_block()
578 EROUND(yr, yl, 10); in encrypt_block()
579 EROUND(yl, yr, 11); in encrypt_block()
580 EROUND(yr, yl, 12); in encrypt_block()
581 EROUND(yl, yr, 13); in encrypt_block()
582 EROUND(yr, yl, 14); in encrypt_block()
583 EROUND(yl, yr, 15); in encrypt_block()
585 yl ^= P[16]; in encrypt_block()
589 dst[1] = yl; in encrypt_block()