Lines Matching refs:cr3
68 #define SOP_0 0x00 /* 5 CR4 CR3 CR2 CR1 */
74 #define SOP_6 0x06 /* 2 CR3 */
109 /* CR3 */
370 sc->sc_shadow.cr3 =
371 (sc->sc_shadow.cr3 & ~CR3_OPMODE_MASK) |
374 sc->sc_shadow.cr3 =
375 (sc->sc_shadow.cr3 & ~CR3_OPMODE_MASK) |
402 printf("%s: %s, gr %04x gx %04x cr3 %02x cr4 %02x mute %d\n",
406 sc->sc_shadow.cr3, sc->sc_shadow.cr4, sc->sc_shadow.output_mute);
437 if (sc->sc_active.cr3 != sc->sc_shadow.cr3) {
438 cmd[0] = sc->sc_shadow.cr3;
441 sc->sc_active.cr3 = sc->sc_shadow.cr3;
444 if ((sc->sc_active.cr3 & CR3_OPMODE_MASK) != CR3_OPMODE_NORMAL)
658 #error Please rework the cr3 handling logic.
662 * The mapping between the available inputs and outputs, and CR3, is as
689 * Convert logical port enable settings to a valid CR3 value.
718 * Convert CR3 to an enabled ports mask.
721 arcofi_cr3_to_portmask(uint cr3, int output_mute)
724 switch (cr3 & CR3_AFEC_MASK) {
737 if ((cr3 & CR3_MIC_G_MASK) == CR3_MIC_X_INPUT)
771 portmask = arcofi_cr3_to_portmask(sc->sc_shadow.cr3,
774 printf("%s: %s cr3 %02x -> mask %02x\n",
776 sc->sc_shadow.cr3, portmask);
816 sc->sc_shadow.cr3 = (sc->sc_shadow.cr3 & CR3_OPMODE_MASK) |
820 printf("%s: %s mask %02x -> cr3 %02x m %d\n",
822 portmask, sc->sc_shadow.cr3, sc->sc_shadow.output_mute);
854 portmask = arcofi_cr3_to_portmask(sc->sc_shadow.cr3,
857 printf("%s: %s cr3 %02x -> mask %02x\n",
859 sc->sc_shadow.cr3, portmask);
1144 sc->sc_active.cr3 =
1172 cmd[1] = sc->sc_active.cr3;