Lines Matching defs:event

108  * event handling functions
282 * Setup the client type structure - this is used in the socket event
369 * don't get any more event callbacks.
422 * Tell the event handler thread that we want it to exit, then
1942 * when they call us for their event handler.
1955 * the client's event handler high priority mutex.
1961 * Set up the global event mask information; we copy this directly
1990 * a registration complete event. Since we don't differentiate
1992 * event notification, we modify the definition of the share/excl
1998 * socket) and a registration complete event.
2002 * insertion event nor a registration complete event
2005 * The client's event mask is not affected by the setting
2414 * ==== event handling section ====
2418 * cs_event - CS event hi-priority callback handler
2420 * This function gets called by SS and is passed the event type in
2421 * the "event" argument, and the socket number in the "sn"
2423 * number for all events except the PCE_SS_READY event.
2438 * event that it handles directly is the CS_EVENT_CARD_REMOVAL
2439 * event, which gets shuttled right into the client's event
2441 * event thread is woken up via the soft interrupt handler.
2443 * event field, since the CS card insertion/card ready processing
2444 * code is responsible for setting this event in a client's
2445 * event field.
2450 cs_event(event_t event, uint32_t sn, uint32_t arg)
2460 switch (event) {
2483 } /* switch (event) */
2493 if (event == PCE_CARD_INSERT)
2505 event2text.event = event;
2507 cmn_err(CE_CONT, "cs_event: event=%s (x%x), socket=0x%x\n",
2508 event2text.text, (int)event, (int)sn);
2515 sp->events |= ss_to_cs_events(sp, event);
2518 * We want to maintain the required event dispatching order as
2529 * call the client's event handler directly if we have a high
2530 * priority event that we need to tell the client about.
2603 * handler will wakeup this socket's event thread.
2629 * result of a card insertion event, we expect that the caller has
2631 * called unless we received a card ready event right after a card
2632 * insertion event, i.e. that the SOCKET_WAIT_FOR_READY flag in
2633 * sp->thread_state was set or if we get a CARD_READY event right
2634 * after a CARD_INSERTION event.
2637 * event - event to handle, one of:
2643 cs_card_insertion(cs_socket_t *sp, event_t event)
2651 * real card ready event.
2657 cmn_err(CE_CONT, "cs_card_insertion: event=0x%x, socket=0x%x\n",
2658 (int)event, sp->socket_num);
2665 if (event & CS_EVENT_CARD_INSERTION) {
2745 * If we have a pending CS_EVENT_CARD_REMOVAL event it
2753 "CS_EVENT_CARD_REMOVAL event "
2763 * If we got a card ready event after the reset, then don't
2767 * is, we probably won't get a card ready event.
2781 event = CS_EVENT_CARD_READY;
2811 if (event == CS_EVENT_CARD_READY) {
2864 * If we have a pending CS_EVENT_CARD_REMOVAL event it
2890 if (event == CS_EVENT_SS_UPDATED) {
2896 * the CS_EVENT_CARD_INSERTION event in each client's event
2898 * when a client gets a CS_EVENT_CARD_INSERTION event, the
2947 * ss_to_cs_events event mapping function.
2989 * handling the card removal event.
3007 * ss_to_cs_events - convert Socket Services events to Card Services event
3018 ss_to_cs_events(cs_socket_t *sp, event_t event)
3022 switch (event) {
3031 * If we're processing a removal event, it makes
3034 * insertion events in the per-client event field.
3043 * be a bogus READY event as the card is sliding out
3083 cmn_err(CE_CONT, "ss_to_cs_events: unknown event 0x%x\n",
3084 (int)event);
3086 } /* switch(event) */
3217 * waking up the socket event thread handler.
3238 * cs_event_thread - This is the per-socket event thread.
3307 * If we have a pending CS_EVENT_CARD_REMOVAL event it
3317 "CS_EVENT_CARD_REMOVAL event "
3362 * the client's event list if the client has that event
3363 * enabled in their event mask.
3365 * the client's event mask says that the client doesn't
3367 * case where the client had an event enabled in it's
3368 * event mask when the event came in but between that
3370 * disabled that event.
3400 * We want to maintain the required event dispatching order as
3410 * as call the client's event handler directly if we have
3411 * a high priority event that we need to tell the client
3429 event_t event;
3433 switch (event = CS_BIT_GET(client->events, bit)) {
3440 CLIENT_EVENT_CALLBACK(client, event,
3444 * The client only gets a card insertion event
3466 event, CS_EVENT_PRI_LOW);
3472 * priority CS_EVENT_CARD_REMOVAL event.
3486 * removal event is a software-generated
3487 * event.
3496 CLIENT_EVENT_CALLBACK(client, event,
3502 * of the client's event callback args to
3526 CLIENT_EVENT_CALLBACK(client, event,
3531 CLIENT_EVENT_CALLBACK(client, event,
3538 CLIENT_EVENT_CALLBACK(client, event,
3601 * client's global event mask or client event mask.
3638 * per-socket event thread.
3720 * Set the CS_EVENT_SS_UPDATED event for this socket so that the
3721 * event thread can continue any card insertion processing
3729 * Wake up this socket's event thread so that clients can
3740 * cs_request_socket_mask - set the client's event mask as well as causes
3789 * Set up the event mask information; we copy this directly from
3817 * Merge all the clients' event masks and set the socket
3825 * Wakeup the event thread if there are any client events to process.
3847 * cs_release_socket_mask - clear the client's event mask
3850 * not to get any more event callbacks.
3898 * Clear both the client event mask and the global event mask.
3901 * it's event handler for any events until RequestSocketMask
3909 * Merge all the clients' event masks and set the socket
3921 * cs_get_event_mask - return the event mask for this client
3960 * XXX - how can a client get their event masks if their card
3971 * We are only allowed to get the client event mask if a
3973 * are allowed to get the global event mask at any
3975 * The global event mask is initially set by the client
3976 * in the call to RegisterClient. The client event
3999 * cs_set_event_mask - set the event mask for this client
4047 * We are only allowed to set the client event mask if a
4049 * are allowed to set the global event mask at any
4051 * The global event mask is initially set by the client
4052 * in the call to RegisterClient. The client event
4069 * Merge all the clients' event masks and set the socket
4085 * *revent - pointer to event mask to update; if NULL, will
4174 * The caller wants the event changes sent back and
4175 * the PRR event change bits cleared.
4234 * event mask.
4259 * the event changed bits (if we're reading the PRR).
4415 * cs_cse2sbm - converts a CS event mask to an SS (SBM_XXX) event mask
4446 * cs_sbm2cse - converts SBM_xxx state to CS event bits
4490 * cs_merge_event_masks - merge the CS global socket event mask with the
4491 * passed client's event masks
4547 * cs_set_socket_event_mask - set the event mask for the socket
6532 * even though the event mask isn't complete yet, so we can
6534 * to make sure the event mask is correct.
6736 * socket event mask.
7532 * cs_event2text - returns text string(s) associated with the event; this
7536 * int event_source - specifies event type in event2text_t:
7537 * 0 - SS event
7538 * 1 - CS event
7545 event_t event;
7549 * If event_source is 0, this is a SS event
7552 for (event = 0; event < MAX_SS_EVENTS; event++) {
7553 if (cs_ss_event_text[event].ss_event == e2t->event) {
7554 (void) strcpy(e2t->text, cs_ss_event_text[event].text);
7562 * This is a CS event
7565 for (event = 0; event < MAX_CS_EVENTS; event++) {
7566 if (cs_ss_event_text[event].cs_event & e2t->event) {
7567 (void) strcat(e2t->text, cs_ss_event_text[event].text);
7570 } /* for (event) */
8192 * clears all event masks. We want to receive at least
8195 * we get a card insertion event.
8233 * Create the per-socket event handler thread.
8273 * Tell the socket event thread to exit and then wait for it
8509 * a PCE_SS_INIT_STATE/PCE_SS_STATE_INIT event
8643 * CS_EVENT_CLIENT_INFO event
8675 * then don't bother to even wake up the event thread.
8732 * CS_EVENT_CLIENT_INFO event