Lines Matching defs:event

733  * On the first HBA instance attach the sata event thread is initialized.
984 * When the last HBA instance is detached, the event daemon is terminated.
1086 * Disable sata event daemon processing for this HBA
1091 * Remove event daemon thread, if it is last HBA instance.
1389 /* Block event processing for this port */
1540 /* Is the port locked by event processing daemon ? */
1549 /* Block event processing for this port */
2786 * the return. HBA should report reset event for the device.
3412 inq->inq_aenc = 0; /* Async event notification cap. */
3599 * asynchronous event processing should fetch and refresh Identify Device
10887 * Instruct event daemon to try the target
11135 * Instruct event daemon to retry the cleanup
12080 * Instruct event daemon to try the target
14432 * is inserted/re-inserted. The event daemon will repeatedly try to unconfigure
14731 * event processing does not interfere with each other!
15388 * Instruct the event daemon to try the
15781 * If any port is locked by event processing, fail the whole operation.
17574 /* Signal event thread to go away */
17588 "cannot terminate event daemon thread");
17605 * SATA HBA event notification function.
17609 * A warning message is generated for each event type.
17611 * event flag(s)is set for an affected entity and the event thread is
17614 * NOTE: Since more than one event may be reported at the same time, one
17615 * cannot determine a sequence of events when opposite event are reported, eg.
17616 * LINK_LOST and LINK_ESTABLISHED. Actual port status during event processing
17623 sata_hba_event_notify(dev_info_t *dip, sata_device_t *sata_device, int event)
17637 "sata_hba_event_notify: invalid port event 0x%x ";
17639 "sata_hba_event_notify: invalid device event 0x%x ";
17643 * There is a possibility that an event will be generated on HBA
17674 * If event relates to port or device, check port state.
17675 * Port has to be initialized, or we cannot accept an event.
17692 "event 0x%x", cportinfo->cport_dev_type,
17693 cport, event));
17713 "available at port %d:%d, ignore event 0x%x",
17714 cport, pmport, event));
17727 "ignore event 0x%x", cport, pmport,
17728 SATA_NUM_PMPORTS(sata_hba_inst, cport), event));
17744 "event 0x%x", cport, pmport, event));
17757 /* qualify this event(s) */
17758 if ((event & SATA_EVNT_PORT_EVENTS) == 0) {
17759 /* Invalid event for the device port */
17761 event & SATA_EVNT_PORT_EVENTS);
17766 /* Controller's device port event */
17770 event & SATA_EVNT_PORT_EVENTS;
17777 /* Port multiplier's device port event */
17780 event & SATA_EVNT_PORT_EVENTS;
17790 * here rather than in the event daemon, because there may be
17793 linkevent = event &
17798 /* This is likely event combination */
17822 if (event & SATA_EVNT_DEVICE_ATTACHED) {
17828 if (event & SATA_EVNT_DEVICE_DETACHED) {
17834 if (event & SATA_EVNT_PWR_LEVEL_CHANGED) {
17841 if ((event & ~SATA_EVNT_PORT_EVENTS) != 0) {
17844 event & ~SATA_EVNT_PORT_EVENTS);
17851 /* qualify this event */
17852 if ((event & SATA_EVNT_DEVICE_RESET) == 0) {
17853 /* Invalid event for a device */
17855 event & SATA_EVNT_DEVICE_RESET);
17859 /* drive event */
17862 if (event & SATA_EVNT_DEVICE_RESET) {
17872 if ((event & ~SATA_EVNT_DEVICE_RESET) != 0) {
17873 /* Invalid event for a device */
17875 event & ~SATA_EVNT_DRIVE_EVENTS);
17881 /* qualify this event */
17882 if ((event & (SATA_EVNT_DEVICE_RESET |
17884 /* Invalid event for a port multiplier */
17886 event & SATA_EVNT_DEVICE_RESET);
17893 if (event & SATA_EVNT_DEVICE_RESET) {
17903 if (event & SATA_EVNT_PMULT_LINK_CHANGED) {
17922 if ((event & SATA_EVNT_CONTROLLER_EVENTS) == 0 ||
17923 (event & ~SATA_EVNT_CONTROLLER_EVENTS) != 0) {
17924 /* Invalid event for the controller */
17926 "sata_hba_event_notify: invalid event 0x%x for "
17928 event & SATA_EVNT_CONTROLLER_EVENTS));
17932 /* This may be a frequent and not interesting event */
17953 sata_event_pending |= SATA_EVNT_MAIN; /* global event indicator */
17956 /* Tickle event thread */
18007 "SATA event daemon started\n", NULL);
18027 /* Got the controller with pending event */
18062 * Go to sleep/suspend itself and wake up either because new event or
18108 * Specific HBA instance event processing.
18110 * NOTE: At the moment, device event processing is limited to hard disks
18124 "Processing controller %d event(s)",
18145 * get an event. Check if port info is initialized.
18162 * controller and main event flag, so that
18195 * Got port event.
18196 * We need some hierarchy of event processing as they
18239 * Scan port multiplier and all its sub-ports event flags.
18275 /* Have device event */
18289 * Specific port multiplier instance event processing. At the moment, device
18290 * event processing is limited to link/attach event only.
18292 * NOTE: power management event is not supported yet.
18307 "Processing pmult event(s) on cport %d of controller %d",
18316 * Reset event (of port multiplier) has higher priority because the
18399 /* Release port multiplier event flags. */
18418 * Got port multiplier port event.
18419 * We need some hierarchy of event processing as they
18445 /* Checking drive event(s). */
18454 /* Have device event */
18468 "[DONE] pmult event(s) on cport %d of controller %d",
18474 * Not implemented at this time - event is ignored.
18490 * Not implemented at this time - event is ignored.
18503 /* Reset event flag */
18520 /* Reset event flag first */
18522 /* If the port is in SHUTDOWN or FAILED state, ignore this event. */
18538 * - reset event reported,
18539 * - reset event being processed,
18560 * state, ignore reset event.
18602 "No device reset event!!!!", NULL);
18609 /* Something is weird - new device reset event */
18617 /* Clear event flag */
18652 * No device to process, anymore. Some other event processing
18756 * No point of retrying - device failed or some other event
18825 * state, ignore reset event.
18856 "No device reset event!!!!", NULL);
18863 /* Something is weird - new device reset event */
18871 /* Clear event flag */
18906 * No device to process, anymore. Some other event processing
19000 * No point of retrying - some other event processing
19035 * Every link established event may involve device reset (due to
19037 * set device reset event for an attached device (if any).
19040 * The link established event processing varies, depending on the state
19042 * If the link is not active, the link established event is ignored.
19044 * the link established event triggers device attach event processing.
19045 * Else, link established event triggers device reset event processing.
19047 * The link lost event processing varies, depending on a HBA hotplugging
19049 * If the link is active, the lost link event is ignored.
19050 * If HBA cannot detect device removal, the lost link event triggers
19051 * device detached event processing after link lost timeout.
19052 * Else, the event is ignored.
19068 "Processing port %d link event(s)", saddr->cport);
19074 /* Reset event flags first */
19123 /* Ignore event */
19125 "Ignoring port %d link established event - "
19132 "Processing port %d link established event",
19163 * Link established event
19164 * triggers device reset event.
19191 /* Ignore event */
19193 "Ignoring port %d link lost event - link is up",
19200 "Processing port %d link lost event",
19207 * device detach event.
19215 /* just keep link lost event */
19224 /* trigger device detach event */
19231 "device detached event",
19234 /* keep link lost event */
19274 "Processing port %d:%d link event(s)",
19281 /* Reset event flags first */
19336 /* Ignore event */
19338 "Ignoring port %d:%d link established event - "
19345 "Processing port %d:%d link established event",
19377 * Link established event
19378 * triggers device reset event.
19406 "Processing port %d:%d link lost event",
19412 /* Ignore event */
19414 "Ignoring port %d:%d link lost event - link is up",
19421 * device detach event.
19429 /* just keep link lost event */
19438 /* trigger device detach event */
19445 "device detached event",
19448 /* keep link lost event */
19502 /* Clear event flag */
19505 /* If the port is in SHUTDOWN or FAILED state, ignore detach event. */
19550 * Device is still attached - ignore detach event.
19685 /* Clear event flag */
19688 /* If the port is in SHUTDOWN or FAILED state, ignore detach event. */
19732 * Device is still attached - ignore detach event.
19805 /* Clear attach event flag first */
19808 /* If the port is in SHUTDOWN or FAILED state, ignore event. */
19868 * No device - ignore attach event.
19908 * reinstate attach event.
19914 /* OK, restore attach event */
19934 /* Restore attach event */
20047 * Instruct event daemon to retry the
20111 /* Clear attach event flag first */
20114 /* If the port is in SHUTDOWN or FAILED state, ignore event. */
20173 * No device - ignore attach event.
20211 * reinstate attach event.
20217 /* OK, restore attach event */
20236 /* Restore attach event */
20309 * Instruct event daemon to retry the
20365 * If the target node cannot be removed, the event flag is left intact,
20366 * so that event daemon may re-run this function later.
20456 * If the device cannot be onlined, the event flag is left intact,
20457 * so that event daemon may re-run this function later.
20478 * Check if device is present and recognized. If not, reset event.
20493 * the event for later processing.
20520 * but reset the event.
20526 * If there is any reset-related event, remove it. We are
20652 * Set internal event instructing event daemon to try