Lines Matching refs:yl
371 u32 yl, yr; in dsp_bf_encrypt() local
385 yl = dsp_audio_law2seven[bf_data_in[0]]; in dsp_bf_encrypt()
386 yl = (yl << 7) | dsp_audio_law2seven[bf_data_in[1]]; in dsp_bf_encrypt()
387 yl = (yl << 7) | dsp_audio_law2seven[bf_data_in[2]]; in dsp_bf_encrypt()
388 yl = (yl << 7) | dsp_audio_law2seven[bf_data_in[3]]; in dsp_bf_encrypt()
391 yl = (yl << 4) | (nibble >> 3); in dsp_bf_encrypt()
401 EROUND(yr, yl, 0); in dsp_bf_encrypt()
402 EROUND(yl, yr, 1); in dsp_bf_encrypt()
403 EROUND(yr, yl, 2); in dsp_bf_encrypt()
404 EROUND(yl, yr, 3); in dsp_bf_encrypt()
405 EROUND(yr, yl, 4); in dsp_bf_encrypt()
406 EROUND(yl, yr, 5); in dsp_bf_encrypt()
407 EROUND(yr, yl, 6); in dsp_bf_encrypt()
408 EROUND(yl, yr, 7); in dsp_bf_encrypt()
409 EROUND(yr, yl, 8); in dsp_bf_encrypt()
410 EROUND(yl, yr, 9); in dsp_bf_encrypt()
411 EROUND(yr, yl, 10); in dsp_bf_encrypt()
412 EROUND(yl, yr, 11); in dsp_bf_encrypt()
413 EROUND(yr, yl, 12); in dsp_bf_encrypt()
414 EROUND(yl, yr, 13); in dsp_bf_encrypt()
415 EROUND(yr, yl, 14); in dsp_bf_encrypt()
416 EROUND(yl, yr, 15); in dsp_bf_encrypt()
417 yl ^= P[16]; in dsp_bf_encrypt()
421 cs = yl ^ (yl >> 3) ^ (yl >> 6) ^ (yl >> 9) ^ (yl >> 12) ^ (yl >> 15) in dsp_bf_encrypt()
422 ^ (yl >> 18) ^ (yl >> 21) ^ (yl >> 24) ^ (yl >> 27) ^ (yl >> 30) in dsp_bf_encrypt()
431 bf_crypt_out[0] = (yl >> 25) | 0x80; in dsp_bf_encrypt()
432 bf_crypt_out[1] = (yl >> 18) & 0x7f; in dsp_bf_encrypt()
433 bf_crypt_out[2] = (yl >> 11) & 0x7f; in dsp_bf_encrypt()
434 bf_crypt_out[3] = (yl >> 4) & 0x7f; in dsp_bf_encrypt()
435 bf_crypt_out[4] = ((yl << 3) & 0x78) | ((yr >> 29) & 0x07); in dsp_bf_encrypt()
463 u32 yl, yr; in dsp_bf_decrypt() local
483 yl = bf_crypt_inring[j++ & 15]; in dsp_bf_decrypt()
484 yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ in dsp_bf_decrypt()
485 yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ in dsp_bf_decrypt()
486 yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ in dsp_bf_decrypt()
489 yl = (yl << 4) | (nibble >> 3); in dsp_bf_decrypt()
499 cs = yl ^ (yl >> 3) ^ (yl >> 6) ^ (yl >> 9) ^ (yl >> 12) ^ (yl >> 15) in dsp_bf_decrypt()
500 ^ (yl >> 18) ^ (yl >> 21) ^ (yl >> 24) ^ (yl >> 27) ^ (yl >> 30) in dsp_bf_decrypt()
516 yl ^= P[16]; in dsp_bf_decrypt()
517 DROUND(yl, yr, 15); in dsp_bf_decrypt()
518 DROUND(yr, yl, 14); in dsp_bf_decrypt()
519 DROUND(yl, yr, 13); in dsp_bf_decrypt()
520 DROUND(yr, yl, 12); in dsp_bf_decrypt()
521 DROUND(yl, yr, 11); in dsp_bf_decrypt()
522 DROUND(yr, yl, 10); in dsp_bf_decrypt()
523 DROUND(yl, yr, 9); in dsp_bf_decrypt()
524 DROUND(yr, yl, 8); in dsp_bf_decrypt()
525 DROUND(yl, yr, 7); in dsp_bf_decrypt()
526 DROUND(yr, yl, 6); in dsp_bf_decrypt()
527 DROUND(yl, yr, 5); in dsp_bf_decrypt()
528 DROUND(yr, yl, 4); in dsp_bf_decrypt()
529 DROUND(yl, yr, 3); in dsp_bf_decrypt()
530 DROUND(yr, yl, 2); in dsp_bf_decrypt()
531 DROUND(yl, yr, 1); in dsp_bf_decrypt()
532 DROUND(yr, yl, 0); in dsp_bf_decrypt()
535 bf_data_out[0] = dsp_audio_seven2law[(yl >> 25) & 0x7f]; in dsp_bf_decrypt()
536 bf_data_out[1] = dsp_audio_seven2law[(yl >> 18) & 0x7f]; in dsp_bf_decrypt()
537 bf_data_out[2] = dsp_audio_seven2law[(yl >> 11) & 0x7f]; in dsp_bf_decrypt()
538 bf_data_out[3] = dsp_audio_seven2law[(yl >> 4) & 0x7f]; in dsp_bf_decrypt()
539 bf_data_out[4] = dsp_audio_seven2law[((yl << 3) & 0x78) | in dsp_bf_decrypt()
560 u32 yl = src[0]; in encrypt_block() local
563 EROUND(yr, yl, 0); in encrypt_block()
564 EROUND(yl, yr, 1); in encrypt_block()
565 EROUND(yr, yl, 2); in encrypt_block()
566 EROUND(yl, yr, 3); in encrypt_block()
567 EROUND(yr, yl, 4); in encrypt_block()
568 EROUND(yl, yr, 5); in encrypt_block()
569 EROUND(yr, yl, 6); in encrypt_block()
570 EROUND(yl, yr, 7); in encrypt_block()
571 EROUND(yr, yl, 8); in encrypt_block()
572 EROUND(yl, yr, 9); in encrypt_block()
573 EROUND(yr, yl, 10); in encrypt_block()
574 EROUND(yl, yr, 11); in encrypt_block()
575 EROUND(yr, yl, 12); in encrypt_block()
576 EROUND(yl, yr, 13); in encrypt_block()
577 EROUND(yr, yl, 14); in encrypt_block()
578 EROUND(yl, yr, 15); in encrypt_block()
580 yl ^= P[16]; in encrypt_block()
584 dst[1] = yl; in encrypt_block()