Lines Matching defs:state
69 void sa1111_pcmcia_socket_state(struct soc_pcmcia_socket *skt, struct pcmcia_state *state)
76 state->detect = status & PCSR_S0_DETECT ? 0 : 1;
77 state->ready = status & PCSR_S0_READY ? 1 : 0;
78 state->bvd1 = status & PCSR_S0_BVD1 ? 1 : 0;
79 state->bvd2 = status & PCSR_S0_BVD2 ? 1 : 0;
80 state->wrprot = status & PCSR_S0_WP ? 1 : 0;
81 state->vs_3v = status & PCSR_S0_VS1 ? 0 : 1;
82 state->vs_Xv = status & PCSR_S0_VS2 ? 0 : 1;
86 state->detect = status & PCSR_S1_DETECT ? 0 : 1;
87 state->ready = status & PCSR_S1_READY ? 1 : 0;
88 state->bvd1 = status & PCSR_S1_BVD1 ? 1 : 0;
89 state->bvd2 = status & PCSR_S1_BVD2 ? 1 : 0;
90 state->wrprot = status & PCSR_S1_WP ? 1 : 0;
91 state->vs_3v = status & PCSR_S1_VS1 ? 0 : 1;
92 state->vs_Xv = status & PCSR_S1_VS2 ? 0 : 1;
97 int sa1111_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state)
118 if (state->Vcc != 0)
120 if (state->Vcc == 50)
122 if (state->flags & SS_RESET)
124 if (state->flags & SS_OUTPUT_ENA)
210 * Initialise the suspend state.