Lines Matching refs:events

283 	 *	thread to sequence the delivery of events to all clients on
1962 * from the client; since we are the only source of events,
1989 * Determine if we should give artificial card insertion events and
1997 * events (if the client's card is currently in the
2423 * number for all events except the PCE_SS_READY event.
2425 * The PCE_SS_INIT_STATE, PCE_ADD_SOCKET and PCE_DROP_SOCKET events
2426 * are never called at high priority. These events return
2437 * Card Services events, and the only standard Card Services
2440 * handler. All other events are just queued up and the socket
2442 * Note that CS_EVENT_CARD_INSERTION events are not set in the clients'
2458 * Handle special SS<->CS events
2513 * Convert SS events to CS events; handle the PRR if necessary.
2515 sp->events |= ss_to_cs_events(sp, event);
2522 * events.
2528 * through each client to set up the client events as well as
2545 client->events |= ((sp->events & ~CS_EVENT_CARD_INSERTION) &
2551 "events 0x%x flags 0x%x\n",
2553 (int)client->events,
2559 * Handle the suspend and card removal events
2561 * these events at high-priority.
2563 if (client->events & CS_EVENT_PM_SUSPEND) {
2568 client->events &= ~CS_EVENT_PM_SUSPEND;
2571 if (client->events & CS_EVENT_CARD_REMOVAL) {
2580 * removal events as well.
2584 client->events |= CS_EVENT_CARD_REMOVAL_LOWP;
2587 client->events &= ~CS_EVENT_CARD_REMOVAL;
2605 if (sp->events)
2610 * to be woken up and any remaining events to be sent to
2623 * cs_card_insertion - handle card insertion and card ready events
2627 * insertion and card ready events are pretty closely intertwined,
2628 * we handle both here. For card ready events that are not the
2682 * events, then reset the socket.
2710 * Clear the ready and ready_timeout events since they are now
2716 sp->events &= ~(CS_EVENT_CARD_READY | CS_EVENT_READY_TIMEOUT);
2739 "for %d mS sp->events 0x%x\n",
2740 sp->socket_num, cs_reset_timeout_time, (int)sp->events);
2749 if (sp->events & CS_EVENT_CARD_REMOVAL) {
2779 if ((sp->events & CS_EVENT_CARD_READY) ||
2809 * for card ready events in conjunction with a card insertion.
2816 * The only events that we want to see now are card removal
2817 * events.
2870 if (sp->events & CS_EVENT_CARD_REMOVAL) {
2906 client->events |= (CS_EVENT_CARD_INSERTION &
2919 * cs_card_removal - handle card removal events
2954 * Disable all socket events except for CARD_INSERTION events.
3007 * ss_to_cs_events - convert Socket Services events to Card Services event
3011 * This function returns a bit mask of events.
3014 * events to prevent spurious insertion and removal events from being
3032 * no sense to keep any insertion or ready events,
3034 * insertion events in the per-client event field.
3036 sp->events &= ~(CS_EVENT_CARD_INSERTION |
3094 * Note that we really only expect one of the two events to be asserted when
3127 sp->events |= CS_EVENT_READY_TIMEOUT;
3206 * Go through each socket and dispatch the appropriate events.
3292 cmn_err(CE_CONT, "cs_event_thread: socket %d sp->events 0x%x\n",
3294 (int)sp->events);
3299 * Handle CS_EVENT_CARD_INSERTION events
3301 if (sp->events & CS_EVENT_CARD_INSERTION) {
3303 sp->events &= ~CS_EVENT_CARD_INSERTION;
3311 if ((sp->events & CS_EVENT_CARD_REMOVAL) == 0) {
3326 * Handle CS_EVENT_CARD_READY and CS_EVENT_READY_TIMEOUT events
3328 if (sp->events & (CS_EVENT_CARD_READY | CS_EVENT_READY_TIMEOUT)) {
3330 sp->events &= ~(CS_EVENT_CARD_READY | CS_EVENT_READY_TIMEOUT);
3341 * Handle CS_EVENT_SS_UPDATED events
3343 if (sp->events & CS_EVENT_SS_UPDATED) {
3345 sp->events &= ~CS_EVENT_SS_UPDATED;
3351 * Handle CS_EVENT_STATUS_CHANGE events
3353 if (sp->events & CS_EVENT_STATUS_CHANGE) {
3358 sp->events &= ~CS_EVENT_STATUS_CHANGE;
3361 * Go through each client and add any events that we saw to
3364 * Remove any events that may be pending for this client if
3366 * want to see those events anymore. This handles the
3376 * Read the PRR (if it exists) and check for any events.
3382 * clear it before adding any current events.
3388 client->events = ((client->events | revent) &
3409 * through each client to set up the client events as well
3431 while (client->events) {
3433 switch (event = CS_BIT_GET(client->events, bit)) {
3436 * events, even if there is no card of
3450 * events without receiving intervening
3451 * CS_EVENT_CARD_REMOVAL events.
3483 * The hardware card removal events are handed
3501 * Write protect events require the info field
3544 CS_BIT_CLEAR(client->events, bit);
3547 } /* while (client->events) */
3560 * Handle CS_EVENT_CARD_REMOVAL events
3562 if (sp->events & CS_EVENT_CARD_REMOVAL) {
3564 sp->events &= ~CS_EVENT_CARD_REMOVAL;
3593 * want to get all events for all clients, irrespective of
3725 sp->events |= CS_EVENT_SS_UPDATED;
3741 * any events pending from RegisterClient to
3790 * the client; since we are the only source of events, any
3797 * If RegisterClient left us some events to process, set these
3798 * events up here.
3801 client->events |= client->pending_events;
3806 "driver_name = [%s] events = 0x%x\n",
3809 (int)client->events);
3818 * to generate the appropriate events.
3825 * Wakeup the event thread if there are any client events to process.
3827 if (client->events) {
3833 "driver_name = [%s] events = 0x%x\n",
3836 (int)client->events);
3901 * it's event handler for any events until RequestSocketMask
3910 * to generate the appropriate events.
4070 * to generate the appropriate events.
4081 * cs_read_event_status - handles PRR events and returns card status
4084 * *client - client to check events on
4087 * with CS-format events; it is NOT necessary
4183 * events on CS_EVENT_STATUS_CHANGE events
4500 * We always want to see card detect and status change events.
4513 * events.
7860 sp->events |= csc->Events;
7869 * Setup the events that we want to send to the client.
7871 cp->events |= (csc->Events &
7951 * to attach and thus no other PCE_ADD_SOCKET events will occur.
8193 * card insertion events, so enable them. Turn off power
8674 * If this client is not handling CS_EVENT_CLIENT_INFO events,
8689 client->events |= CS_EVENT_CLIENT_INFO;