Lines Matching defs:cn

193 static void	ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn);
194 static void ciss_notify_logical(struct ciss_softc *sc, struct ciss_notify *cn);
195 static void ciss_notify_physical(struct ciss_softc *sc, struct ciss_notify *cn);
3690 struct ciss_notify *cn;
3697 cn = (struct ciss_notify *)cr->cr_data;
3723 if (cn->message[0] != 0)
3724 ciss_printf(sc, "*** %.80s\n", cn->message);
3727 cn->class, cn->subclass, cn->detail);
3733 if ((cn->class == CISS_NOTIFY_NOTIFIER) &&
3734 (cn->subclass == CISS_NOTIFY_NOTIFIER_STATUS) &&
3735 (cn->detail == 1)) {
4019 ciss_notify_logical(struct ciss_softc *sc, struct ciss_notify *cn)
4026 bus = cn->device.physical.bus;
4027 target = cn->data.logical_status.logical_drive;
4030 switch (cn->subclass) {
4032 switch (cn->detail) {
4036 cn->data.logical_status.logical_drive, ld->cl_name,
4037 ciss_name_ldrive_status(cn->data.logical_status.previous_state),
4038 ciss_name_ldrive_status(cn->data.logical_status.new_state),
4039 cn->data.logical_status.spare_state,
4045 ostatus = ciss_decode_ldrive_status(cn->data.logical_status.previous_state);
4046 ld->cl_status = ciss_decode_ldrive_status(cn->data.logical_status.new_state);
4048 ld->cl_lstatus->status = cn->data.logical_status.new_state;
4063 cn->data.logical_status.logical_drive, ld->cl_name);
4067 ld->cl_status = ciss_decode_ldrive_status(cn->data.logical_status.new_state);
4074 cn->data.rebuild_aborted.logical_drive,
4076 (cn->detail == 2) ? "read" : "write");
4082 if (cn->detail == 0) {
4084 cn->data.io_error.logical_drive,
4086 cn->data.io_error.failure_bus,
4087 cn->data.io_error.failure_drive);
4093 if (cn->detail == 0)
4095 cn->data.consistency_completed.logical_drive,
4105 ciss_notify_physical(struct ciss_softc *sc, struct ciss_notify *cn)
4113 ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn)
4118 switch (cn->subclass) {
4121 bus = CISS_BIG_MAP_BUS(sc, cn->data.drive.big_physical_drive_number);
4123 CISS_BIG_MAP_TARGET(sc, cn->data.drive.big_physical_drive_number);
4125 if (cn->detail == 0) {
4147 ciss_printf(sc, "Unknown hotplug event %d\n", cn->subclass);
4164 struct ciss_notify *cn;
4184 cn = (struct ciss_notify *)cr->cr_data;
4186 switch (cn->class) {
4188 ciss_notify_hotplug(sc, cn);
4191 ciss_notify_logical(sc, cn);
4194 ciss_notify_physical(sc, cn);