Lines Matching defs:state

249  * cs_init - Initialize CS internal structures, databases, and state,
486 set_socket.State = (unsigned)~0; /* clear latched state bits */
1517 if (!(cw->state & CW_CIS)) {
1519 "cs_init_cis_window: socket %d invalid CIS window state 0x%x\n",
1520 sp->socket_num, cw->state);
1575 sw.state = (WS_ENABLED | WS_EXACT_MAPIN);
1595 cw->state = 0; /* XXX do we really want to do this? */
1600 set_page.state = PS_ENABLED;
1602 set_page.state |= PS_ATTRIBUTE;
1606 cw->state = 0; /* XXX do we really want to do this? */
1824 * Note that if we return an error, there is no state that can be cleaned
2693 set_socket.State = (unsigned)~0; /* clear latched state bits */
2888 * necessary, so setup the per-client state.
2963 set_socket.State = (unsigned)~0; /* clear latched state bits */
4107 * Note that if gs is not NULL, the current card state will be returned
4109 * current card state and the state will come from both the
4248 set_socket.State = get_socket.state;
4257 * The caller wants the current card state; we just read
4361 * state. Set the CS_RES_IGNORE_NO_CARD so that even
4380 * Assign the "live" card state to the "real" card state. If there's
4395 gs->SocketState = cs_sbm2cse(get_socket.state);
4446 * cs_sbm2cse - converts SBM_xxx state to CS event bits
4462 cs_sbm2cse(uint32_t state)
4469 if (state & SBM_WP)
4471 if (state & SBM_BVD1)
4473 if (state & SBM_BVD2)
4475 if (state & SBM_RDYBSY)
4477 if (state & SBM_LOCKED)
4479 if (state & SBM_EJECT)
4481 if (state & SBM_INSERT)
4483 if (state & SBM_CD)
4721 cw->state |= (CW_ALLOCATED | CW_MEM);
4731 cw->state = 0;
4817 cw->state &= ~CW_WIN_IN_USE;
4932 sw.state = gw.state;
4936 sw.state = 0;
4965 set_page.state = get_page.state;
4968 set_page.state = 0;
4973 sw.state |= WS_ENABLED;
4974 set_page.state |= PS_ENABLED;
4976 sw.state &= ~WS_ENABLED;
4977 set_page.state &= ~PS_ENABLED;
4982 sw.state |= WS_16BIT;
4984 sw.state &= ~WS_16BIT;
4996 set_page.state |= PS_ATTRIBUTE;
4998 set_page.state &= ~PS_ATTRIBUTE;
5107 set_page.state = get_page.state;
5144 if ((cw->state & CW_ALLOCATED) && (cw->state & CW_MEM))
5577 set_window.state = (WS_ENABLED | WS_16BIT |
5612 cw->state |= (CW_ALLOCATED | CW_IO);
6015 cw->state = (cw->state & CW_WINDOW_VALID) | (CW_ALLOCATED | CW_IO);
6056 cw->state &= CW_WINDOW_VALID;
6072 set_window.state = get_window.state & ~WS_ENABLED;
6101 set_window.state = (WS_ENABLED | WS_IO |
6640 (get_socket.state & SBM_WP)) {
6871 * COR state since the PCMCIA spec only requires us to maintain
8086 cw->state |= (CW_CIS | CW_ALLOCATED);
8203 set_socket.State = (unsigned)~0; /* clear latched state bits */
8423 if (cw->state & CW_WINDOW_VALID)
8500 cwpp->state = CW_WINDOW_VALID;