Lines Matching refs:event_data
225 char event_data[] __aligned(4); member
3599 struct SL_WH_TRIGGERS_EVENT_DATA_T *event_data) in mpt3sas_send_trigger_data_event() argument
3606 sz = sizeof(*event_data); in mpt3sas_send_trigger_data_event()
3612 memcpy(fw_event->event_data, event_data, sizeof(*event_data)); in mpt3sas_send_trigger_data_event()
4007 Mpi2EventDataSasTopologyChangeList_t *event_data) in _scsih_block_io_to_children_attached_directly() argument
4013 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_block_io_to_children_attached_directly()
4014 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_block_io_to_children_attached_directly()
4017 reason_code = event_data->PHY[i].PhyStatus & in _scsih_block_io_to_children_attached_directly()
4034 Mpi26EventDataPCIeTopologyChangeList_t *event_data) in _scsih_block_io_to_pcie_children_attached_directly() argument
4040 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_block_io_to_pcie_children_attached_directly()
4042 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_block_io_to_pcie_children_attached_directly()
4045 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_block_io_to_pcie_children_attached_directly()
4647 Mpi2EventDataSasTopologyChangeList_t *event_data) in _scsih_check_topo_delete_events() argument
4657 for (i = 0 ; i < event_data->NumEntries; i++) { in _scsih_check_topo_delete_events()
4658 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_check_topo_delete_events()
4661 reason_code = event_data->PHY[i].PhyStatus & in _scsih_check_topo_delete_events()
4667 expander_handle = le16_to_cpu(event_data->ExpanderDevHandle); in _scsih_check_topo_delete_events()
4669 _scsih_block_io_to_children_attached_directly(ioc, event_data); in _scsih_check_topo_delete_events()
4672 if (event_data->ExpStatus == in _scsih_check_topo_delete_events()
4686 } else if (event_data->ExpStatus == MPI2_EVENT_SAS_TOPO_ES_RESPONDING) in _scsih_check_topo_delete_events()
4687 _scsih_block_io_to_children_attached_directly(ioc, event_data); in _scsih_check_topo_delete_events()
4689 if (event_data->ExpStatus != MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING) in _scsih_check_topo_delete_events()
4699 fw_event->event_data; in _scsih_check_topo_delete_events()
4728 Mpi26EventDataPCIeTopologyChangeList_t *event_data) in _scsih_check_pcie_topo_remove_events() argument
4736 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_check_pcie_topo_remove_events()
4738 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_check_pcie_topo_remove_events()
4741 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_check_pcie_topo_remove_events()
4746 switch_handle = le16_to_cpu(event_data->SwitchDevHandle); in _scsih_check_pcie_topo_remove_events()
4749 ioc, event_data); in _scsih_check_pcie_topo_remove_events()
4753 if ((event_data->SwitchStatus in _scsih_check_pcie_topo_remove_events()
4755 (event_data->SwitchStatus == in _scsih_check_pcie_topo_remove_events()
4758 ioc, event_data); in _scsih_check_pcie_topo_remove_events()
4760 if (event_data->SwitchStatus != MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING) in _scsih_check_pcie_topo_remove_events()
4771 fw_event->event_data; in _scsih_check_pcie_topo_remove_events()
4850 Mpi2EventDataIrConfigChangeList_t *event_data) in _scsih_check_ir_config_unhide_events() argument
4864 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_check_ir_config_unhide_events()
4865 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_check_ir_config_unhide_events()
4866 if (le32_to_cpu(event_data->Flags) & in _scsih_check_ir_config_unhide_events()
4880 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_check_ir_config_unhide_events()
4881 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_check_ir_config_unhide_events()
4882 if (le32_to_cpu(event_data->Flags) & in _scsih_check_ir_config_unhide_events()
4897 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_check_ir_config_unhide_events()
4898 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_check_ir_config_unhide_events()
4933 Mpi2EventDataIrVolume_t *event_data) in _scsih_check_volume_delete_events() argument
4937 if (event_data->ReasonCode != MPI2_EVENT_IR_VOLUME_RC_STATE_CHANGED) in _scsih_check_volume_delete_events()
4939 state = le32_to_cpu(event_data->NewValue); in _scsih_check_volume_delete_events()
4943 le16_to_cpu(event_data->VolDevHandle)); in _scsih_check_volume_delete_events()
4954 Mpi2EventDataTemperature_t *event_data) in _scsih_temp_threshold_events() argument
4957 if (ioc->temp_sensors_count >= event_data->SensorNum) { in _scsih_temp_threshold_events()
4959 le16_to_cpu(event_data->Status) & 0x1 ? "0 " : " ", in _scsih_temp_threshold_events()
4960 le16_to_cpu(event_data->Status) & 0x2 ? "1 " : " ", in _scsih_temp_threshold_events()
4961 le16_to_cpu(event_data->Status) & 0x4 ? "2 " : " ", in _scsih_temp_threshold_events()
4962 le16_to_cpu(event_data->Status) & 0x8 ? "3 " : " ", in _scsih_temp_threshold_events()
4963 event_data->SensorNum); in _scsih_temp_threshold_events()
4965 event_data->CurrentTemperature); in _scsih_temp_threshold_events()
5624 Mpi2EventDataSasDeviceStatusChange_t *event_data; in _scsih_smart_predicted_fault() local
5665 event_data = (Mpi2EventDataSasDeviceStatusChange_t *) in _scsih_smart_predicted_fault()
5667 event_data->ReasonCode = MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA; in _scsih_smart_predicted_fault()
5668 event_data->ASC = 0x5D; in _scsih_smart_predicted_fault()
5669 event_data->DevHandle = cpu_to_le16(handle); in _scsih_smart_predicted_fault()
5670 event_data->SASAddress = cpu_to_le64(sas_target_priv_data->sas_address); in _scsih_smart_predicted_fault()
7490 Mpi2EventDataSasTopologyChangeList_t *event_data) in _scsih_sas_topology_change_event_debug() argument
7499 switch (event_data->ExpStatus) { in _scsih_sas_topology_change_event_debug()
7520 le16_to_cpu(event_data->ExpanderDevHandle), in _scsih_sas_topology_change_event_debug()
7521 le16_to_cpu(event_data->EnclosureHandle), in _scsih_sas_topology_change_event_debug()
7522 event_data->StartPhyNum, event_data->NumEntries); in _scsih_sas_topology_change_event_debug()
7523 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_sas_topology_change_event_debug()
7524 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event_debug()
7527 phy_number = event_data->StartPhyNum + i; in _scsih_sas_topology_change_event_debug()
7528 reason_code = event_data->PHY[i].PhyStatus & in _scsih_sas_topology_change_event_debug()
7550 link_rate = event_data->PHY[i].LinkRate >> 4; in _scsih_sas_topology_change_event_debug()
7551 prev_link_rate = event_data->PHY[i].LinkRate & 0xF; in _scsih_sas_topology_change_event_debug()
7579 Mpi2EventDataSasTopologyChangeList_t *event_data = in _scsih_sas_topology_change_event() local
7581 fw_event->event_data; in _scsih_sas_topology_change_event()
7584 _scsih_sas_topology_change_event_debug(ioc, event_data); in _scsih_sas_topology_change_event()
7599 parent_handle = le16_to_cpu(event_data->ExpanderDevHandle); in _scsih_sas_topology_change_event()
7600 port = mpt3sas_get_port_by_id(ioc, event_data->PhysicalPort, 0); in _scsih_sas_topology_change_event()
7603 if (event_data->ExpStatus == MPI2_EVENT_SAS_TOPO_ES_ADDED) in _scsih_sas_topology_change_event()
7624 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_sas_topology_change_event()
7632 phy_number = event_data->StartPhyNum + i; in _scsih_sas_topology_change_event()
7635 reason_code = event_data->PHY[i].PhyStatus & in _scsih_sas_topology_change_event()
7637 if ((event_data->PHY[i].PhyStatus & in _scsih_sas_topology_change_event()
7641 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event()
7644 link_rate = event_data->PHY[i].LinkRate >> 4; in _scsih_sas_topology_change_event()
7645 prev_link_rate = event_data->PHY[i].LinkRate & 0xF; in _scsih_sas_topology_change_event()
7688 if (event_data->ExpStatus == MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING && in _scsih_sas_topology_change_event()
7703 Mpi2EventDataSasDeviceStatusChange_t *event_data) in _scsih_sas_device_status_change_event_debug() argument
7707 switch (event_data->ReasonCode) { in _scsih_sas_device_status_change_event_debug()
7752 reason_str, le16_to_cpu(event_data->DevHandle), in _scsih_sas_device_status_change_event_debug()
7753 (u64)le64_to_cpu(event_data->SASAddress), in _scsih_sas_device_status_change_event_debug()
7754 le16_to_cpu(event_data->TaskTag)); in _scsih_sas_device_status_change_event_debug()
7755 if (event_data->ReasonCode == MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA) in _scsih_sas_device_status_change_event_debug()
7757 event_data->ASC, event_data->ASCQ); in _scsih_sas_device_status_change_event_debug()
7769 Mpi2EventDataSasDeviceStatusChange_t *event_data) in _scsih_sas_device_status_change_event() argument
7782 if (event_data->ReasonCode != in _scsih_sas_device_status_change_event()
7784 event_data->ReasonCode != in _scsih_sas_device_status_change_event()
7789 sas_address = le64_to_cpu(event_data->SASAddress); in _scsih_sas_device_status_change_event()
7792 mpt3sas_get_port_by_id(ioc, event_data->PhysicalPort, 0)); in _scsih_sas_device_status_change_event()
7801 if (event_data->ReasonCode == in _scsih_sas_device_status_change_event()
8237 Mpi26EventDataPCIeTopologyChangeList_t *event_data) in _scsih_pcie_topology_change_event_debug() argument
8246 switch (event_data->SwitchStatus) { in _scsih_pcie_topology_change_event_debug()
8267 le16_to_cpu(event_data->SwitchDevHandle), in _scsih_pcie_topology_change_event_debug()
8268 le16_to_cpu(event_data->EnclosureHandle), in _scsih_pcie_topology_change_event_debug()
8269 event_data->StartPortNum, event_data->NumEntries); in _scsih_pcie_topology_change_event_debug()
8270 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_pcie_topology_change_event_debug()
8272 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_pcie_topology_change_event_debug()
8275 port_number = event_data->StartPortNum + i; in _scsih_pcie_topology_change_event_debug()
8276 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_pcie_topology_change_event_debug()
8297 link_rate = event_data->PortEntry[i].CurrentPortInfo & in _scsih_pcie_topology_change_event_debug()
8299 prev_link_rate = event_data->PortEntry[i].PreviousPortInfo & in _scsih_pcie_topology_change_event_debug()
8325 Mpi26EventDataPCIeTopologyChangeList_t *event_data = in _scsih_pcie_topology_change_event() local
8326 (Mpi26EventDataPCIeTopologyChangeList_t *) fw_event->event_data; in _scsih_pcie_topology_change_event()
8330 _scsih_pcie_topology_change_event_debug(ioc, event_data); in _scsih_pcie_topology_change_event()
8342 for (i = 0; i < event_data->NumEntries; i++) { in _scsih_pcie_topology_change_event()
8350 reason_code = event_data->PortEntry[i].PortStatus; in _scsih_pcie_topology_change_event()
8352 le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle); in _scsih_pcie_topology_change_event()
8356 link_rate = event_data->PortEntry[i].CurrentPortInfo in _scsih_pcie_topology_change_event()
8358 prev_link_rate = event_data->PortEntry[i].PreviousPortInfo in _scsih_pcie_topology_change_event()
8393 event_data->PortEntry[i].PortStatus &= 0xF0; in _scsih_pcie_topology_change_event()
8394 event_data->PortEntry[i].PortStatus |= in _scsih_pcie_topology_change_event()
8410 event_data->PortEntry[i].PortStatus |= in _scsih_pcie_topology_change_event()
8429 Mpi26EventDataPCIeDeviceStatusChange_t *event_data) in _scsih_pcie_device_status_change_event_debug() argument
8433 switch (event_data->ReasonCode) { in _scsih_pcie_device_status_change_event_debug()
8477 reason_str, le16_to_cpu(event_data->DevHandle), in _scsih_pcie_device_status_change_event_debug()
8478 (u64)le64_to_cpu(event_data->WWID), in _scsih_pcie_device_status_change_event_debug()
8479 le16_to_cpu(event_data->TaskTag)); in _scsih_pcie_device_status_change_event_debug()
8480 if (event_data->ReasonCode == MPI26_EVENT_PCIDEV_STAT_RC_SMART_DATA) in _scsih_pcie_device_status_change_event_debug()
8482 event_data->ASC, event_data->ASCQ); in _scsih_pcie_device_status_change_event_debug()
8501 Mpi26EventDataPCIeDeviceStatusChange_t *event_data = in _scsih_pcie_device_status_change_event() local
8502 (Mpi26EventDataPCIeDeviceStatusChange_t *)fw_event->event_data; in _scsih_pcie_device_status_change_event()
8505 event_data); in _scsih_pcie_device_status_change_event()
8507 if (event_data->ReasonCode != in _scsih_pcie_device_status_change_event()
8509 event_data->ReasonCode != in _scsih_pcie_device_status_change_event()
8514 wwid = le64_to_cpu(event_data->WWID); in _scsih_pcie_device_status_change_event()
8524 if (event_data->ReasonCode == in _scsih_pcie_device_status_change_event()
8545 Mpi2EventDataSasEnclDevStatusChange_t *event_data) in _scsih_sas_enclosure_dev_status_change_event_debug() argument
8549 switch (event_data->ReasonCode) { in _scsih_sas_enclosure_dev_status_change_event_debug()
8564 le16_to_cpu(event_data->EnclosureHandle), in _scsih_sas_enclosure_dev_status_change_event_debug()
8565 (u64)le64_to_cpu(event_data->EnclosureLogicalID), in _scsih_sas_enclosure_dev_status_change_event_debug()
8566 le16_to_cpu(event_data->StartSlot)); in _scsih_sas_enclosure_dev_status_change_event_debug()
8581 Mpi2EventDataSasEnclDevStatusChange_t *event_data = in _scsih_sas_enclosure_dev_status_change_event() local
8582 (Mpi2EventDataSasEnclDevStatusChange_t *)fw_event->event_data; in _scsih_sas_enclosure_dev_status_change_event()
8584 u16 enclosure_handle = le16_to_cpu(event_data->EnclosureHandle); in _scsih_sas_enclosure_dev_status_change_event()
8589 fw_event->event_data); in _scsih_sas_enclosure_dev_status_change_event()
8597 switch (event_data->ReasonCode) { in _scsih_sas_enclosure_dev_status_change_event()
8653 Mpi2EventDataSasBroadcastPrimitive_t *event_data = in _scsih_sas_broadcast_primitive_event() local
8655 fw_event->event_data; in _scsih_sas_broadcast_primitive_event()
8664 __func__, event_data->PhyNum, event_data->PortWidth); in _scsih_sas_broadcast_primitive_event()
8809 Mpi2EventDataSasDiscovery_t *event_data = in _scsih_sas_discovery_event() local
8810 (Mpi2EventDataSasDiscovery_t *) fw_event->event_data; in _scsih_sas_discovery_event()
8814 event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED ? in _scsih_sas_discovery_event()
8816 if (event_data->DiscoveryStatus) in _scsih_sas_discovery_event()
8818 le32_to_cpu(event_data->DiscoveryStatus)); in _scsih_sas_discovery_event()
8822 if (event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED && in _scsih_sas_discovery_event()
8844 Mpi25EventDataSasDeviceDiscoveryError_t *event_data = in _scsih_sas_device_discovery_error_event() local
8845 (Mpi25EventDataSasDeviceDiscoveryError_t *)fw_event->event_data; in _scsih_sas_device_discovery_error_event()
8847 switch (event_data->ReasonCode) { in _scsih_sas_device_discovery_error_event()
8850 le16_to_cpu(event_data->DevHandle), in _scsih_sas_device_discovery_error_event()
8851 (u64)le64_to_cpu(event_data->SASAddress), in _scsih_sas_device_discovery_error_event()
8852 event_data->PhysicalPort); in _scsih_sas_device_discovery_error_event()
8856 le16_to_cpu(event_data->DevHandle), in _scsih_sas_device_discovery_error_event()
8857 (u64)le64_to_cpu(event_data->SASAddress), in _scsih_sas_device_discovery_error_event()
8858 event_data->PhysicalPort); in _scsih_sas_device_discovery_error_event()
8875 Mpi26EventDataPCIeEnumeration_t *event_data = in _scsih_pcie_enumeration_event() local
8876 (Mpi26EventDataPCIeEnumeration_t *)fw_event->event_data; in _scsih_pcie_enumeration_event()
8882 (event_data->ReasonCode == MPI26_EVENT_PCIE_ENUM_RC_STARTED) ? in _scsih_pcie_enumeration_event()
8884 event_data->Flags); in _scsih_pcie_enumeration_event()
8885 if (event_data->EnumerationStatus) in _scsih_pcie_enumeration_event()
8887 le32_to_cpu(event_data->EnumerationStatus)); in _scsih_pcie_enumeration_event()
9248 Mpi2EventDataIrConfigChangeList_t *event_data) in _scsih_sas_ir_config_change_event_debug() argument
9255 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_sas_ir_config_change_event_debug()
9258 le32_to_cpu(event_data->Flags) & MPI2_EVENT_IR_CHANGE_FLAGS_FOREIGN_CONFIG ? in _scsih_sas_ir_config_change_event_debug()
9260 event_data->NumElements); in _scsih_sas_ir_config_change_event_debug()
9261 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_sas_ir_config_change_event_debug()
9331 Mpi2EventDataIrConfigChangeList_t *event_data = in _scsih_sas_ir_config_change_event() local
9333 fw_event->event_data; in _scsih_sas_ir_config_change_event()
9337 _scsih_sas_ir_config_change_event_debug(ioc, event_data); in _scsih_sas_ir_config_change_event()
9339 foreign_config = (le32_to_cpu(event_data->Flags) & in _scsih_sas_ir_config_change_event()
9342 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; in _scsih_sas_ir_config_change_event()
9345 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_sas_ir_config_change_event()
9354 for (i = 0; i < event_data->NumElements; i++, element++) { in _scsih_sas_ir_config_change_event()
9404 Mpi2EventDataIrVolume_t *event_data = in _scsih_sas_ir_volume_event() local
9405 (Mpi2EventDataIrVolume_t *) fw_event->event_data; in _scsih_sas_ir_volume_event()
9410 if (event_data->ReasonCode != MPI2_EVENT_IR_VOLUME_RC_STATE_CHANGED) in _scsih_sas_ir_volume_event()
9413 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_volume_event()
9414 state = le32_to_cpu(event_data->NewValue); in _scsih_sas_ir_volume_event()
9419 le32_to_cpu(event_data->PreviousValue), in _scsih_sas_ir_volume_event()
9485 Mpi2EventDataIrPhysicalDisk_t *event_data = in _scsih_sas_ir_physical_disk_event() local
9486 (Mpi2EventDataIrPhysicalDisk_t *) fw_event->event_data; in _scsih_sas_ir_physical_disk_event()
9492 if (event_data->ReasonCode != MPI2_EVENT_IR_PHYSDISK_RC_STATE_CHANGED) in _scsih_sas_ir_physical_disk_event()
9495 handle = le16_to_cpu(event_data->PhysDiskDevHandle); in _scsih_sas_ir_physical_disk_event()
9496 state = le32_to_cpu(event_data->NewValue); in _scsih_sas_ir_physical_disk_event()
9502 le32_to_cpu(event_data->PreviousValue), in _scsih_sas_ir_physical_disk_event()
9564 Mpi2EventDataIrOperationStatus_t *event_data) in _scsih_sas_ir_operation_status_event_debug() argument
9568 switch (event_data->RAIDOperation) { in _scsih_sas_ir_operation_status_event_debug()
9591 le16_to_cpu(event_data->VolDevHandle), in _scsih_sas_ir_operation_status_event_debug()
9592 event_data->PercentComplete); in _scsih_sas_ir_operation_status_event_debug()
9605 Mpi2EventDataIrOperationStatus_t *event_data = in _scsih_sas_ir_operation_status_event() local
9607 fw_event->event_data; in _scsih_sas_ir_operation_status_event()
9615 event_data); in _scsih_sas_ir_operation_status_event()
9618 if (event_data->RAIDOperation == MPI2_EVENT_IR_RAIDOP_RESYNC) { in _scsih_sas_ir_operation_status_event()
9621 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_operation_status_event()
9625 event_data->PercentComplete; in _scsih_sas_ir_operation_status_event()
10708 fw_event->event_data); in _mpt3sas_fw_work()
10759 fw_event->event_data); in _mpt3sas_fw_work()
10999 memcpy(fw_event->event_data, mpi_reply->EventData, sz); in mpt3sas_scsih_event_callback()