Lines Matching refs:event_data
226 char event_data[] __aligned(4); member
3609 struct SL_WH_TRIGGERS_EVENT_DATA_T *event_data) in mpt3sas_send_trigger_data_event() argument
3616 sz = sizeof(*event_data); in mpt3sas_send_trigger_data_event()
3622 memcpy(fw_event->event_data, event_data, sizeof(*event_data)); in mpt3sas_send_trigger_data_event()
4017 Mpi2EventDataSasTopologyChangeList_t *event_data) in _scsih_block_io_to_children_attached_directly() argument
4023 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_block_io_to_children_attached_directly()
4024 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_block_io_to_children_attached_directly()
4027 reason_code = event_data->PHY[i].PhyStatus & in _scsih_block_io_to_children_attached_directly()
4044 Mpi26EventDataPCIeTopologyChangeList_t *event_data) in _scsih_block_io_to_pcie_children_attached_directly() argument
4050 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_block_io_to_pcie_children_attached_directly()
4052 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_block_io_to_pcie_children_attached_directly()
4055 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_block_io_to_pcie_children_attached_directly()
4657 Mpi2EventDataSasTopologyChangeList_t *event_data) in _scsih_check_topo_delete_events() argument
4667 for (i = 0 ; i < event_data->NumEntries; i++) { in _scsih_check_topo_delete_events()
4668 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_check_topo_delete_events()
4671 reason_code = event_data->PHY[i].PhyStatus & in _scsih_check_topo_delete_events()
4677 expander_handle = le16_to_cpu(event_data->ExpanderDevHandle); in _scsih_check_topo_delete_events()
4679 _scsih_block_io_to_children_attached_directly(ioc, event_data); in _scsih_check_topo_delete_events()
4682 if (event_data->ExpStatus == in _scsih_check_topo_delete_events()
4696 } else if (event_data->ExpStatus == MPI2_EVENT_SAS_TOPO_ES_RESPONDING) in _scsih_check_topo_delete_events()
4697 _scsih_block_io_to_children_attached_directly(ioc, event_data); in _scsih_check_topo_delete_events()
4699 if (event_data->ExpStatus != MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING) in _scsih_check_topo_delete_events()
4709 fw_event->event_data; in _scsih_check_topo_delete_events()
4738 Mpi26EventDataPCIeTopologyChangeList_t *event_data) in _scsih_check_pcie_topo_remove_events() argument
4746 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_check_pcie_topo_remove_events()
4748 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_check_pcie_topo_remove_events()
4751 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_check_pcie_topo_remove_events()
4756 switch_handle = le16_to_cpu(event_data->SwitchDevHandle); in _scsih_check_pcie_topo_remove_events()
4759 ioc, event_data); in _scsih_check_pcie_topo_remove_events()
4763 if ((event_data->SwitchStatus in _scsih_check_pcie_topo_remove_events()
4765 (event_data->SwitchStatus == in _scsih_check_pcie_topo_remove_events()
4768 ioc, event_data); in _scsih_check_pcie_topo_remove_events()
4770 if (event_data->SwitchStatus != MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING) in _scsih_check_pcie_topo_remove_events()
4781 fw_event->event_data; in _scsih_check_pcie_topo_remove_events()
4860 Mpi2EventDataIrConfigChangeList_t *event_data) in _scsih_check_ir_config_unhide_events() argument
4874 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_check_ir_config_unhide_events()
4875 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_check_ir_config_unhide_events()
4876 if (le32_to_cpu(event_data->Flags) & in _scsih_check_ir_config_unhide_events()
4890 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_check_ir_config_unhide_events()
4891 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_check_ir_config_unhide_events()
4892 if (le32_to_cpu(event_data->Flags) & in _scsih_check_ir_config_unhide_events()
4907 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_check_ir_config_unhide_events()
4908 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_check_ir_config_unhide_events()
4943 Mpi2EventDataIrVolume_t *event_data) in _scsih_check_volume_delete_events() argument
4947 if (event_data->ReasonCode != MPI2_EVENT_IR_VOLUME_RC_STATE_CHANGED) in _scsih_check_volume_delete_events()
4949 state = le32_to_cpu(event_data->NewValue); in _scsih_check_volume_delete_events()
4953 le16_to_cpu(event_data->VolDevHandle)); in _scsih_check_volume_delete_events()
4964 Mpi2EventDataTemperature_t *event_data) in _scsih_temp_threshold_events() argument
4967 if (ioc->temp_sensors_count >= event_data->SensorNum) { in _scsih_temp_threshold_events()
4969 le16_to_cpu(event_data->Status) & 0x1 ? "0 " : " ", in _scsih_temp_threshold_events()
4970 le16_to_cpu(event_data->Status) & 0x2 ? "1 " : " ", in _scsih_temp_threshold_events()
4971 le16_to_cpu(event_data->Status) & 0x4 ? "2 " : " ", in _scsih_temp_threshold_events()
4972 le16_to_cpu(event_data->Status) & 0x8 ? "3 " : " ", in _scsih_temp_threshold_events()
4973 event_data->SensorNum); in _scsih_temp_threshold_events()
4975 event_data->CurrentTemperature); in _scsih_temp_threshold_events()
5621 Mpi2EventDataSasDeviceStatusChange_t *event_data; in _scsih_smart_predicted_fault() local
5662 event_data = (Mpi2EventDataSasDeviceStatusChange_t *) in _scsih_smart_predicted_fault()
5664 event_data->ReasonCode = MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA; in _scsih_smart_predicted_fault()
5665 event_data->ASC = 0x5D; in _scsih_smart_predicted_fault()
5666 event_data->DevHandle = cpu_to_le16(handle); in _scsih_smart_predicted_fault()
5667 event_data->SASAddress = cpu_to_le64(sas_target_priv_data->sas_address); in _scsih_smart_predicted_fault()
7437 Mpi2EventDataSasTopologyChangeList_t *event_data) in _scsih_sas_topology_change_event_debug() argument
7446 switch (event_data->ExpStatus) { in _scsih_sas_topology_change_event_debug()
7467 le16_to_cpu(event_data->ExpanderDevHandle), in _scsih_sas_topology_change_event_debug()
7468 le16_to_cpu(event_data->EnclosureHandle), in _scsih_sas_topology_change_event_debug()
7469 event_data->StartPhyNum, event_data->NumEntries); in _scsih_sas_topology_change_event_debug()
7470 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_sas_topology_change_event_debug()
7471 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event_debug()
7474 phy_number = event_data->StartPhyNum + i; in _scsih_sas_topology_change_event_debug()
7475 reason_code = event_data->PHY[i].PhyStatus & in _scsih_sas_topology_change_event_debug()
7497 link_rate = event_data->PHY[i].LinkRate >> 4; in _scsih_sas_topology_change_event_debug()
7498 prev_link_rate = event_data->PHY[i].LinkRate & 0xF; in _scsih_sas_topology_change_event_debug()
7526 Mpi2EventDataSasTopologyChangeList_t *event_data = in _scsih_sas_topology_change_event() local
7528 fw_event->event_data; in _scsih_sas_topology_change_event()
7531 _scsih_sas_topology_change_event_debug(ioc, event_data); in _scsih_sas_topology_change_event()
7546 parent_handle = le16_to_cpu(event_data->ExpanderDevHandle); in _scsih_sas_topology_change_event()
7547 port = mpt3sas_get_port_by_id(ioc, event_data->PhysicalPort, 0); in _scsih_sas_topology_change_event()
7550 if (event_data->ExpStatus == MPI2_EVENT_SAS_TOPO_ES_ADDED) in _scsih_sas_topology_change_event()
7571 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_sas_topology_change_event()
7579 phy_number = event_data->StartPhyNum + i; in _scsih_sas_topology_change_event()
7582 reason_code = event_data->PHY[i].PhyStatus & in _scsih_sas_topology_change_event()
7584 if ((event_data->PHY[i].PhyStatus & in _scsih_sas_topology_change_event()
7588 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event()
7591 link_rate = event_data->PHY[i].LinkRate >> 4; in _scsih_sas_topology_change_event()
7592 prev_link_rate = event_data->PHY[i].LinkRate & 0xF; in _scsih_sas_topology_change_event()
7635 if (event_data->ExpStatus == MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING && in _scsih_sas_topology_change_event()
7650 Mpi2EventDataSasDeviceStatusChange_t *event_data) in _scsih_sas_device_status_change_event_debug() argument
7654 switch (event_data->ReasonCode) { in _scsih_sas_device_status_change_event_debug()
7699 reason_str, le16_to_cpu(event_data->DevHandle), in _scsih_sas_device_status_change_event_debug()
7700 (u64)le64_to_cpu(event_data->SASAddress), in _scsih_sas_device_status_change_event_debug()
7701 le16_to_cpu(event_data->TaskTag)); in _scsih_sas_device_status_change_event_debug()
7702 if (event_data->ReasonCode == MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA) in _scsih_sas_device_status_change_event_debug()
7704 event_data->ASC, event_data->ASCQ); in _scsih_sas_device_status_change_event_debug()
7716 Mpi2EventDataSasDeviceStatusChange_t *event_data) in _scsih_sas_device_status_change_event() argument
7729 if (event_data->ReasonCode != in _scsih_sas_device_status_change_event()
7731 event_data->ReasonCode != in _scsih_sas_device_status_change_event()
7736 sas_address = le64_to_cpu(event_data->SASAddress); in _scsih_sas_device_status_change_event()
7739 mpt3sas_get_port_by_id(ioc, event_data->PhysicalPort, 0)); in _scsih_sas_device_status_change_event()
7748 if (event_data->ReasonCode == in _scsih_sas_device_status_change_event()
8184 Mpi26EventDataPCIeTopologyChangeList_t *event_data) in _scsih_pcie_topology_change_event_debug() argument
8193 switch (event_data->SwitchStatus) { in _scsih_pcie_topology_change_event_debug()
8214 le16_to_cpu(event_data->SwitchDevHandle), in _scsih_pcie_topology_change_event_debug()
8215 le16_to_cpu(event_data->EnclosureHandle), in _scsih_pcie_topology_change_event_debug()
8216 event_data->StartPortNum, event_data->NumEntries); in _scsih_pcie_topology_change_event_debug()
8217 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_pcie_topology_change_event_debug()
8219 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_pcie_topology_change_event_debug()
8222 port_number = event_data->StartPortNum + i; in _scsih_pcie_topology_change_event_debug()
8223 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_pcie_topology_change_event_debug()
8244 link_rate = event_data->PortEntry[i].CurrentPortInfo & in _scsih_pcie_topology_change_event_debug()
8246 prev_link_rate = event_data->PortEntry[i].PreviousPortInfo & in _scsih_pcie_topology_change_event_debug()
8272 Mpi26EventDataPCIeTopologyChangeList_t *event_data = in _scsih_pcie_topology_change_event() local
8273 (Mpi26EventDataPCIeTopologyChangeList_t *) fw_event->event_data; in _scsih_pcie_topology_change_event()
8277 _scsih_pcie_topology_change_event_debug(ioc, event_data); in _scsih_pcie_topology_change_event()
8289 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_pcie_topology_change_event()
8297 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_pcie_topology_change_event()
8299 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_pcie_topology_change_event()
8303 link_rate = event_data->PortEntry[i].CurrentPortInfo in _scsih_pcie_topology_change_event()
8305 prev_link_rate = event_data->PortEntry[i].PreviousPortInfo in _scsih_pcie_topology_change_event()
8340 event_data->PortEntry[i].PortStatus &= 0xF0; in _scsih_pcie_topology_change_event()
8341 event_data->PortEntry[i].PortStatus |= in _scsih_pcie_topology_change_event()
8357 event_data->PortEntry[i].PortStatus |= in _scsih_pcie_topology_change_event()
8376 Mpi26EventDataPCIeDeviceStatusChange_t *event_data) in _scsih_pcie_device_status_change_event_debug() argument
8380 switch (event_data->ReasonCode) { in _scsih_pcie_device_status_change_event_debug()
8424 reason_str, le16_to_cpu(event_data->DevHandle), in _scsih_pcie_device_status_change_event_debug()
8425 (u64)le64_to_cpu(event_data->WWID), in _scsih_pcie_device_status_change_event_debug()
8426 le16_to_cpu(event_data->TaskTag)); in _scsih_pcie_device_status_change_event_debug()
8427 if (event_data->ReasonCode == MPI26_EVENT_PCIDEV_STAT_RC_SMART_DATA) in _scsih_pcie_device_status_change_event_debug()
8429 event_data->ASC, event_data->ASCQ); in _scsih_pcie_device_status_change_event_debug()
8448 Mpi26EventDataPCIeDeviceStatusChange_t *event_data = in _scsih_pcie_device_status_change_event() local
8449 (Mpi26EventDataPCIeDeviceStatusChange_t *)fw_event->event_data; in _scsih_pcie_device_status_change_event()
8452 event_data); in _scsih_pcie_device_status_change_event()
8454 if (event_data->ReasonCode != in _scsih_pcie_device_status_change_event()
8456 event_data->ReasonCode != in _scsih_pcie_device_status_change_event()
8461 wwid = le64_to_cpu(event_data->WWID); in _scsih_pcie_device_status_change_event()
8471 if (event_data->ReasonCode == in _scsih_pcie_device_status_change_event()
8492 Mpi2EventDataSasEnclDevStatusChange_t *event_data) in _scsih_sas_enclosure_dev_status_change_event_debug() argument
8496 switch (event_data->ReasonCode) { in _scsih_sas_enclosure_dev_status_change_event_debug()
8511 le16_to_cpu(event_data->EnclosureHandle), in _scsih_sas_enclosure_dev_status_change_event_debug()
8512 (u64)le64_to_cpu(event_data->EnclosureLogicalID), in _scsih_sas_enclosure_dev_status_change_event_debug()
8513 le16_to_cpu(event_data->StartSlot)); in _scsih_sas_enclosure_dev_status_change_event_debug()
8528 Mpi2EventDataSasEnclDevStatusChange_t *event_data = in _scsih_sas_enclosure_dev_status_change_event() local
8529 (Mpi2EventDataSasEnclDevStatusChange_t *)fw_event->event_data; in _scsih_sas_enclosure_dev_status_change_event()
8531 u16 enclosure_handle = le16_to_cpu(event_data->EnclosureHandle); in _scsih_sas_enclosure_dev_status_change_event()
8536 fw_event->event_data); in _scsih_sas_enclosure_dev_status_change_event()
8544 switch (event_data->ReasonCode) { in _scsih_sas_enclosure_dev_status_change_event()
8600 Mpi2EventDataSasBroadcastPrimitive_t *event_data = in _scsih_sas_broadcast_primitive_event() local
8602 fw_event->event_data; in _scsih_sas_broadcast_primitive_event()
8611 __func__, event_data->PhyNum, event_data->PortWidth); in _scsih_sas_broadcast_primitive_event()
8756 Mpi2EventDataSasDiscovery_t *event_data = in _scsih_sas_discovery_event() local
8757 (Mpi2EventDataSasDiscovery_t *) fw_event->event_data; in _scsih_sas_discovery_event()
8761 event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED ? in _scsih_sas_discovery_event()
8763 if (event_data->DiscoveryStatus) in _scsih_sas_discovery_event()
8765 le32_to_cpu(event_data->DiscoveryStatus)); in _scsih_sas_discovery_event()
8769 if (event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED && in _scsih_sas_discovery_event()
8791 Mpi25EventDataSasDeviceDiscoveryError_t *event_data = in _scsih_sas_device_discovery_error_event() local
8792 (Mpi25EventDataSasDeviceDiscoveryError_t *)fw_event->event_data; in _scsih_sas_device_discovery_error_event()
8794 switch (event_data->ReasonCode) { in _scsih_sas_device_discovery_error_event()
8797 le16_to_cpu(event_data->DevHandle), in _scsih_sas_device_discovery_error_event()
8798 (u64)le64_to_cpu(event_data->SASAddress), in _scsih_sas_device_discovery_error_event()
8799 event_data->PhysicalPort); in _scsih_sas_device_discovery_error_event()
8803 le16_to_cpu(event_data->DevHandle), in _scsih_sas_device_discovery_error_event()
8804 (u64)le64_to_cpu(event_data->SASAddress), in _scsih_sas_device_discovery_error_event()
8805 event_data->PhysicalPort); in _scsih_sas_device_discovery_error_event()
8822 Mpi26EventDataPCIeEnumeration_t *event_data = in _scsih_pcie_enumeration_event() local
8823 (Mpi26EventDataPCIeEnumeration_t *)fw_event->event_data; in _scsih_pcie_enumeration_event()
8829 (event_data->ReasonCode == MPI26_EVENT_PCIE_ENUM_RC_STARTED) ? in _scsih_pcie_enumeration_event()
8831 event_data->Flags); in _scsih_pcie_enumeration_event()
8832 if (event_data->EnumerationStatus) in _scsih_pcie_enumeration_event()
8834 le32_to_cpu(event_data->EnumerationStatus)); in _scsih_pcie_enumeration_event()
9195 Mpi2EventDataIrConfigChangeList_t *event_data) in _scsih_sas_ir_config_change_event_debug() argument
9202 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_sas_ir_config_change_event_debug()
9205 le32_to_cpu(event_data->Flags) & MPI2_EVENT_IR_CHANGE_FLAGS_FOREIGN_CONFIG ? in _scsih_sas_ir_config_change_event_debug()
9207 event_data->NumElements); in _scsih_sas_ir_config_change_event_debug()
9208 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_sas_ir_config_change_event_debug()
9278 Mpi2EventDataIrConfigChangeList_t *event_data = in _scsih_sas_ir_config_change_event() local
9280 fw_event->event_data; in _scsih_sas_ir_config_change_event()
9284 _scsih_sas_ir_config_change_event_debug(ioc, event_data); in _scsih_sas_ir_config_change_event()
9286 foreign_config = (le32_to_cpu(event_data->Flags) & in _scsih_sas_ir_config_change_event()
9289 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_sas_ir_config_change_event()
9292 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_sas_ir_config_change_event()
9301 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_sas_ir_config_change_event()
9351 Mpi2EventDataIrVolume_t *event_data = in _scsih_sas_ir_volume_event() local
9352 (Mpi2EventDataIrVolume_t *) fw_event->event_data; in _scsih_sas_ir_volume_event()
9357 if (event_data->ReasonCode != MPI2_EVENT_IR_VOLUME_RC_STATE_CHANGED) in _scsih_sas_ir_volume_event()
9360 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_volume_event()
9361 state = le32_to_cpu(event_data->NewValue); in _scsih_sas_ir_volume_event()
9366 le32_to_cpu(event_data->PreviousValue), in _scsih_sas_ir_volume_event()
9432 Mpi2EventDataIrPhysicalDisk_t *event_data = in _scsih_sas_ir_physical_disk_event() local
9433 (Mpi2EventDataIrPhysicalDisk_t *) fw_event->event_data; in _scsih_sas_ir_physical_disk_event()
9439 if (event_data->ReasonCode != MPI2_EVENT_IR_PHYSDISK_RC_STATE_CHANGED) in _scsih_sas_ir_physical_disk_event()
9442 handle = le16_to_cpu(event_data->PhysDiskDevHandle); in _scsih_sas_ir_physical_disk_event()
9443 state = le32_to_cpu(event_data->NewValue); in _scsih_sas_ir_physical_disk_event()
9449 le32_to_cpu(event_data->PreviousValue), in _scsih_sas_ir_physical_disk_event()
9511 Mpi2EventDataIrOperationStatus_t *event_data) in _scsih_sas_ir_operation_status_event_debug() argument
9515 switch (event_data->RAIDOperation) { in _scsih_sas_ir_operation_status_event_debug()
9538 le16_to_cpu(event_data->VolDevHandle), in _scsih_sas_ir_operation_status_event_debug()
9539 event_data->PercentComplete); in _scsih_sas_ir_operation_status_event_debug()
9552 Mpi2EventDataIrOperationStatus_t *event_data = in _scsih_sas_ir_operation_status_event() local
9554 fw_event->event_data; in _scsih_sas_ir_operation_status_event()
9562 event_data); in _scsih_sas_ir_operation_status_event()
9565 if (event_data->RAIDOperation == MPI2_EVENT_IR_RAIDOP_RESYNC) { in _scsih_sas_ir_operation_status_event()
9568 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_operation_status_event()
9572 event_data->PercentComplete; in _scsih_sas_ir_operation_status_event()
10668 fw_event->event_data); in _mpt3sas_fw_work()
10719 fw_event->event_data); in _mpt3sas_fw_work()
10959 memcpy(fw_event->event_data, mpi_reply->EventData, sz); in mpt3sas_scsih_event_callback()