Lines Matching refs:MPT3SAS_ADAPTER
901 struct MPT3SAS_ADAPTER *ioc;
917 typedef int (*MPT_BUILD_SG_SCMD)(struct MPT3SAS_ADAPTER *ioc,
919 typedef void (*MPT_BUILD_SG)(struct MPT3SAS_ADAPTER *ioc, void *psge,
922 typedef void (*MPT_BUILD_ZERO_LEN_SGE)(struct MPT3SAS_ADAPTER *ioc,
926 typedef void (*NVME_BUILD_PRP)(struct MPT3SAS_ADAPTER *ioc, u16 smid,
932 typedef void (*PUT_SMID_IO_FP_HIP) (struct MPT3SAS_ADAPTER *ioc, u16 smid,
934 typedef void (*PUT_SMID_DEFAULT) (struct MPT3SAS_ADAPTER *ioc, u16 smid);
940 typedef u8 (*GET_MSIX_INDEX) (struct MPT3SAS_ADAPTER *ioc,
996 typedef void (*MPT3SAS_FLUSH_RUNNING_CMDS)(struct MPT3SAS_ADAPTER *ioc);
1172 struct MPT3SAS_ADAPTER { struct
1462 typedef u8 (*MPT_CALLBACK)(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, argument
1481 void mpt3sas_base_start_watchdog(struct MPT3SAS_ADAPTER *ioc);
1482 void mpt3sas_base_stop_watchdog(struct MPT3SAS_ADAPTER *ioc);
1484 int mpt3sas_base_attach(struct MPT3SAS_ADAPTER *ioc);
1485 void mpt3sas_base_detach(struct MPT3SAS_ADAPTER *ioc);
1486 int mpt3sas_base_map_resources(struct MPT3SAS_ADAPTER *ioc);
1487 void mpt3sas_base_free_resources(struct MPT3SAS_ADAPTER *ioc);
1488 void mpt3sas_free_enclosure_list(struct MPT3SAS_ADAPTER *ioc);
1489 int mpt3sas_base_hard_reset_handler(struct MPT3SAS_ADAPTER *ioc,
1492 void *mpt3sas_base_get_msg_frame(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1493 void *mpt3sas_base_get_sense_buffer(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1494 __le32 mpt3sas_base_get_sense_buffer_dma(struct MPT3SAS_ADAPTER *ioc,
1496 void *mpt3sas_base_get_pcie_sgl(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1497 dma_addr_t mpt3sas_base_get_pcie_sgl_dma(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1498 void mpt3sas_base_sync_reply_irqs(struct MPT3SAS_ADAPTER *ioc);
1500 void mpt3sas_base_put_smid_fast_path(struct MPT3SAS_ADAPTER *ioc, u16 smid,
1502 void mpt3sas_base_put_smid_hi_priority(struct MPT3SAS_ADAPTER *ioc, u16 smid,
1504 void mpt3sas_base_put_smid_nvme_encap(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1505 void mpt3sas_base_put_smid_default(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1507 u16 mpt3sas_base_get_smid_hpr(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx);
1508 u16 mpt3sas_base_get_smid_scsiio(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx,
1510 void mpt3sas_base_clear_st(struct MPT3SAS_ADAPTER *ioc,
1513 u16 mpt3sas_base_get_smid(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx);
1514 void mpt3sas_base_free_smid(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1519 u8 mpt3sas_base_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
1521 u8 mpt3sas_port_enable_done(struct MPT3SAS_ADAPTER *ioc, u16 smid,
1523 void *mpt3sas_base_get_reply_virt_addr(struct MPT3SAS_ADAPTER *ioc,
1526 u32 mpt3sas_base_get_iocstate(struct MPT3SAS_ADAPTER *ioc, int cooked);
1528 void mpt3sas_base_fault_info(struct MPT3SAS_ADAPTER *ioc , u16 fault_code);
1529 int mpt3sas_base_sas_iounit_control(struct MPT3SAS_ADAPTER *ioc,
1532 int mpt3sas_base_scsi_enclosure_processor(struct MPT3SAS_ADAPTER *ioc,
1535 void mpt3sas_base_validate_event_type(struct MPT3SAS_ADAPTER *ioc,
1538 void mpt3sas_halt_firmware(struct MPT3SAS_ADAPTER *ioc);
1540 void mpt3sas_base_update_missing_delay(struct MPT3SAS_ADAPTER *ioc,
1543 int mpt3sas_port_enable(struct MPT3SAS_ADAPTER *ioc);
1546 mpt3sas_wait_for_commands_to_complete(struct MPT3SAS_ADAPTER *ioc);
1548 u8 mpt3sas_base_check_cmd_timeout(struct MPT3SAS_ADAPTER *ioc,
1550 int mpt3sas_wait_for_ioc(struct MPT3SAS_ADAPTER *ioc, int wait_count);
1553 struct scsi_cmnd *mpt3sas_scsih_scsi_lookup_get(struct MPT3SAS_ADAPTER *ioc,
1555 u8 mpt3sas_scsih_event_callback(struct MPT3SAS_ADAPTER *ioc, u8 msix_index,
1557 void mpt3sas_scsih_pre_reset_handler(struct MPT3SAS_ADAPTER *ioc);
1558 void mpt3sas_scsih_after_reset_handler(struct MPT3SAS_ADAPTER *ioc);
1559 void mpt3sas_scsih_reset_done_handler(struct MPT3SAS_ADAPTER *ioc);
1561 int mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, u64 lun,
1563 int mpt3sas_scsih_issue_locked_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle,
1567 void mpt3sas_scsih_set_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle);
1568 void mpt3sas_scsih_clear_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle);
1569 void mpt3sas_expander_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address);
1570 void mpt3sas_device_remove_by_sas_address(struct MPT3SAS_ADAPTER *ioc,
1572 u8 mpt3sas_check_for_pending_internal_cmds(struct MPT3SAS_ADAPTER *ioc,
1576 struct MPT3SAS_ADAPTER *ioc, u16 handle);
1578 struct MPT3SAS_ADAPTER *ioc, u64 sas_address);
1580 struct MPT3SAS_ADAPTER *ioc, u64 sas_address);
1582 struct MPT3SAS_ADAPTER *ioc, u64 sas_address);
1583 struct _sas_device *mpt3sas_get_sdev_by_handle(struct MPT3SAS_ADAPTER *ioc,
1585 struct _pcie_device *mpt3sas_get_pdev_by_handle(struct MPT3SAS_ADAPTER *ioc,
1588 void mpt3sas_port_enable_complete(struct MPT3SAS_ADAPTER *ioc);
1590 mpt3sas_raid_device_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle);
1594 u8 mpt3sas_config_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
1596 int mpt3sas_config_get_number_hba_phys(struct MPT3SAS_ADAPTER *ioc,
1598 int mpt3sas_config_get_manufacturing_pg0(struct MPT3SAS_ADAPTER *ioc,
1600 int mpt3sas_config_get_manufacturing_pg7(struct MPT3SAS_ADAPTER *ioc,
1603 int mpt3sas_config_get_manufacturing_pg10(struct MPT3SAS_ADAPTER *ioc,
1607 int mpt3sas_config_get_manufacturing_pg11(struct MPT3SAS_ADAPTER *ioc,
1610 int mpt3sas_config_set_manufacturing_pg11(struct MPT3SAS_ADAPTER *ioc,
1614 int mpt3sas_config_get_bios_pg2(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1616 int mpt3sas_config_get_bios_pg3(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1618 int mpt3sas_config_get_iounit_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1620 int mpt3sas_config_get_sas_device_pg0(struct MPT3SAS_ADAPTER *ioc,
1623 int mpt3sas_config_get_sas_device_pg1(struct MPT3SAS_ADAPTER *ioc,
1626 int mpt3sas_config_get_pcie_device_pg0(struct MPT3SAS_ADAPTER *ioc,
1629 int mpt3sas_config_get_pcie_device_pg2(struct MPT3SAS_ADAPTER *ioc,
1632 int mpt3sas_config_get_sas_iounit_pg0(struct MPT3SAS_ADAPTER *ioc,
1635 int mpt3sas_config_get_iounit_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1637 int mpt3sas_config_get_iounit_pg3(struct MPT3SAS_ADAPTER *ioc,
1639 int mpt3sas_config_set_iounit_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1641 int mpt3sas_config_get_iounit_pg8(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1643 int mpt3sas_config_get_sas_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
1646 int mpt3sas_config_set_sas_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
1649 int mpt3sas_config_get_ioc_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1651 int mpt3sas_config_set_ioc_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1653 int mpt3sas_config_get_ioc_pg8(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1655 int mpt3sas_config_get_expander_pg0(struct MPT3SAS_ADAPTER *ioc,
1658 int mpt3sas_config_get_expander_pg1(struct MPT3SAS_ADAPTER *ioc,
1661 int mpt3sas_config_get_enclosure_pg0(struct MPT3SAS_ADAPTER *ioc,
1664 int mpt3sas_config_get_phy_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1666 int mpt3sas_config_get_phy_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
1668 int mpt3sas_config_get_raid_volume_pg1(struct MPT3SAS_ADAPTER *ioc,
1671 int mpt3sas_config_get_number_pds(struct MPT3SAS_ADAPTER *ioc, u16 handle,
1673 int mpt3sas_config_get_raid_volume_pg0(struct MPT3SAS_ADAPTER *ioc,
1676 int mpt3sas_config_get_phys_disk_pg0(struct MPT3SAS_ADAPTER *ioc,
1679 int mpt3sas_config_get_volume_handle(struct MPT3SAS_ADAPTER *ioc, u16 pd_handle,
1681 int mpt3sas_config_get_volume_wwid(struct MPT3SAS_ADAPTER *ioc,
1689 u8 mpt3sas_ctl_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
1691 void mpt3sas_ctl_pre_reset_handler(struct MPT3SAS_ADAPTER *ioc);
1692 void mpt3sas_ctl_after_reset_handler(struct MPT3SAS_ADAPTER *ioc);
1693 void mpt3sas_ctl_reset_done_handler(struct MPT3SAS_ADAPTER *ioc);
1694 u8 mpt3sas_ctl_event_callback(struct MPT3SAS_ADAPTER *ioc,
1696 void mpt3sas_ctl_add_to_event_log(struct MPT3SAS_ADAPTER *ioc,
1699 void mpt3sas_enable_diag_buffer(struct MPT3SAS_ADAPTER *ioc,
1701 int mpt3sas_send_diag_release(struct MPT3SAS_ADAPTER *ioc, u8 buffer_type,
1706 u8 mpt3sas_transport_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
1708 struct _sas_port *mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc,
1710 void mpt3sas_transport_port_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address,
1712 int mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
1714 int mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc,
1717 void mpt3sas_transport_update_links(struct MPT3SAS_ADAPTER *ioc,
1722 void mpt3sas_send_trigger_data_event(struct MPT3SAS_ADAPTER *ioc,
1724 void mpt3sas_process_trigger_data(struct MPT3SAS_ADAPTER *ioc,
1726 void mpt3sas_trigger_master(struct MPT3SAS_ADAPTER *ioc,
1728 void mpt3sas_trigger_event(struct MPT3SAS_ADAPTER *ioc, u16 event,
1730 void mpt3sas_trigger_scsi(struct MPT3SAS_ADAPTER *ioc, u8 sense_key,
1732 void mpt3sas_trigger_mpi(struct MPT3SAS_ADAPTER *ioc, u16 ioc_status,
1736 u8 mpt3sas_get_num_volumes(struct MPT3SAS_ADAPTER *ioc);
1737 void mpt3sas_init_warpdrive_properties(struct MPT3SAS_ADAPTER *ioc,
1740 mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd,