Lines Matching defs:state
49 void sa1111_pcmcia_socket_state(struct soc_pcmcia_socket *skt, struct pcmcia_state *state)
56 state->detect = status & PCSR_S0_DETECT ? 0 : 1;
57 state->ready = status & PCSR_S0_READY ? 1 : 0;
58 state->bvd1 = status & PCSR_S0_BVD1 ? 1 : 0;
59 state->bvd2 = status & PCSR_S0_BVD2 ? 1 : 0;
60 state->wrprot = status & PCSR_S0_WP ? 1 : 0;
61 state->vs_3v = status & PCSR_S0_VS1 ? 0 : 1;
62 state->vs_Xv = status & PCSR_S0_VS2 ? 0 : 1;
66 state->detect = status & PCSR_S1_DETECT ? 0 : 1;
67 state->ready = status & PCSR_S1_READY ? 1 : 0;
68 state->bvd1 = status & PCSR_S1_BVD1 ? 1 : 0;
69 state->bvd2 = status & PCSR_S1_BVD2 ? 1 : 0;
70 state->wrprot = status & PCSR_S1_WP ? 1 : 0;
71 state->vs_3v = status & PCSR_S1_VS1 ? 0 : 1;
72 state->vs_Xv = status & PCSR_S1_VS2 ? 0 : 1;
77 int sa1111_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state)
98 if (state->Vcc != 0)
100 if (state->Vcc == 50)
102 if (state->flags & SS_RESET)
104 if (state->flags & SS_OUTPUT_ENA)
182 * Initialise the suspend state.