Lines Matching refs:mpr_softc

212 struct mpr_softc;
221 typedef void mpr_evt_callback_t(struct mpr_softc *, uintptr_t,
223 typedef void mpr_command_callback_t(struct mpr_softc *, struct mpr_command *cm);
245 struct mpr_softc *cm_sc;
310 struct mpr_softc *softc;
316 struct mpr_softc *sc;
335 struct mpr_softc { struct
524 void (*callback)(struct mpr_softc *, struct mpr_config_params *); argument
536 mpr_regread(struct mpr_softc *sc, uint32_t offset) in mpr_regread()
549 mpr_regwrite(struct mpr_softc *sc, uint32_t offset, uint32_t val) in mpr_regwrite()
558 mpr_free_reply(struct mpr_softc *sc, uint32_t busaddr) in mpr_free_reply()
567 mpr_alloc_chain(struct mpr_softc *sc) in mpr_alloc_chain()
582 mpr_free_chain(struct mpr_softc *sc, struct mpr_chain *chain) in mpr_free_chain()
592 mpr_alloc_prp_page(struct mpr_softc *sc) in mpr_alloc_prp_page()
607 mpr_free_prp_page(struct mpr_softc *sc, struct mpr_prp_page *prp_page) in mpr_free_prp_page()
614 mpr_free_command(struct mpr_softc *sc, struct mpr_command *cm) in mpr_free_command()
652 mpr_alloc_command(struct mpr_softc *sc) in mpr_alloc_command()
672 mpr_free_high_priority_command(struct mpr_softc *sc, struct mpr_command *cm) in mpr_free_high_priority_command()
700 mpr_alloc_high_priority_command(struct mpr_softc *sc) in mpr_alloc_high_priority_command()
720 mpr_lock(struct mpr_softc *sc) in mpr_lock()
726 mpr_unlock(struct mpr_softc *sc) in mpr_unlock()
792 mpr_mask_intr(struct mpr_softc *sc) in mpr_mask_intr()
802 mpr_unmask_intr(struct mpr_softc *sc) in mpr_unmask_intr()
811 int mpr_pci_setup_interrupts(struct mpr_softc *sc);
812 void mpr_pci_free_interrupts(struct mpr_softc *sc);
813 int mpr_pci_restore(struct mpr_softc *sc);
815 void mpr_get_tunables(struct mpr_softc *sc);
816 int mpr_attach(struct mpr_softc *sc);
817 int mpr_free(struct mpr_softc *sc);
821 int mpr_register_events(struct mpr_softc *, uint8_t *, mpr_evt_callback_t *,
823 int mpr_restart(struct mpr_softc *);
824 int mpr_update_events(struct mpr_softc *, struct mpr_event_handle *, uint8_t *);
825 int mpr_deregister_events(struct mpr_softc *, struct mpr_event_handle *);
826 void mpr_build_nvme_prp(struct mpr_softc *sc, struct mpr_command *cm,
832 int mpr_attach_sas(struct mpr_softc *sc);
833 int mpr_detach_sas(struct mpr_softc *sc);
834 int mpr_read_config_page(struct mpr_softc *, struct mpr_config_params *);
835 int mpr_write_config_page(struct mpr_softc *, struct mpr_config_params *);
839 int mpr_attach_user(struct mpr_softc *);
840 void mpr_detach_user(struct mpr_softc *);
841 void mprsas_record_event(struct mpr_softc *sc,
844 int mpr_map_command(struct mpr_softc *sc, struct mpr_command *cm);
845 int mpr_wait_command(struct mpr_softc *sc, struct mpr_command **cm, int timeout,
847 int mpr_request_polled(struct mpr_softc *sc, struct mpr_command **cm);
849 int mpr_config_get_bios_pg3(struct mpr_softc *sc, Mpi2ConfigReply_t
851 int mpr_config_get_raid_volume_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t
853 int mpr_config_get_ioc_pg8(struct mpr_softc *sc, Mpi2ConfigReply_t *,
855 int mpr_config_get_iounit_pg8(struct mpr_softc *sc,
857 int mpr_config_get_sas_device_pg0(struct mpr_softc *, Mpi2ConfigReply_t *,
859 int mpr_config_get_pcie_device_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t
861 int mpr_config_get_pcie_device_pg2(struct mpr_softc *sc, Mpi2ConfigReply_t
863 int mpr_config_get_dpm_pg0(struct mpr_softc *, Mpi2ConfigReply_t *,
865 int mpr_config_get_raid_volume_pg1(struct mpr_softc *sc,
868 int mpr_config_get_volume_wwid(struct mpr_softc *sc, u16 volume_handle,
870 int mpr_config_get_raid_pd_pg0(struct mpr_softc *sc,
873 int mpr_config_get_man_pg11(struct mpr_softc *sc, Mpi2ConfigReply_t *mpi_reply,
875 void mprsas_ir_shutdown(struct mpr_softc *sc, int howto);
877 int mpr_reinit(struct mpr_softc *sc);
878 void mprsas_handle_reinit(struct mpr_softc *sc);
880 void mpr_base_static_config_pages(struct mpr_softc *sc);
882 int mpr_mapping_initialize(struct mpr_softc *);
883 void mpr_mapping_topology_change_event(struct mpr_softc *,
885 void mpr_mapping_pcie_topology_change_event(struct mpr_softc *sc,
887 void mpr_mapping_free_memory(struct mpr_softc *sc);
888 int mpr_config_set_dpm_pg0(struct mpr_softc *, Mpi2ConfigReply_t *,
890 void mpr_mapping_exit(struct mpr_softc *);
892 int mpr_mapping_allocate_memory(struct mpr_softc *sc);
893 unsigned int mpr_mapping_get_tid(struct mpr_softc *, uint64_t , u16);
894 unsigned int mpr_mapping_get_tid_from_handle(struct mpr_softc *sc,
896 unsigned int mpr_mapping_get_raid_tid(struct mpr_softc *sc, u64 wwid,
898 unsigned int mpr_mapping_get_raid_tid_from_handle(struct mpr_softc *sc,
900 void mpr_mapping_enclosure_dev_status_change_event(struct mpr_softc *,
902 void mpr_mapping_ir_config_change_event(struct mpr_softc *sc,
905 void mprsas_evt_handler(struct mpr_softc *sc, uintptr_t data,
909 int mprsas_startup(struct mpr_softc *sc);
912 void mprsas_realloc_targets(struct mpr_softc *sc, int maxtargets);
913 struct mpr_command * mprsas_alloc_tm(struct mpr_softc *sc);
914 void mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm);
916 int mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm,