Lines Matching refs:mpr_softc
178 struct mpr_softc;
187 typedef void mpr_evt_callback_t(struct mpr_softc *, uintptr_t,
189 typedef void mpr_command_callback_t(struct mpr_softc *, struct mpr_command *cm);
211 struct mpr_softc *cm_sc;
274 struct mpr_softc *softc;
280 struct mpr_softc *sc;
299 struct mpr_softc { struct
485 void (*callback)(struct mpr_softc *, struct mpr_config_params *); argument
497 mpr_regread(struct mpr_softc *sc, uint32_t offset) in mpr_regread()
503 mpr_regwrite(struct mpr_softc *sc, uint32_t offset, uint32_t val) in mpr_regwrite()
512 mpr_free_reply(struct mpr_softc *sc, uint32_t busaddr) in mpr_free_reply()
521 mpr_alloc_chain(struct mpr_softc *sc) in mpr_alloc_chain()
536 mpr_free_chain(struct mpr_softc *sc, struct mpr_chain *chain) in mpr_free_chain()
546 mpr_alloc_prp_page(struct mpr_softc *sc) in mpr_alloc_prp_page()
561 mpr_free_prp_page(struct mpr_softc *sc, struct mpr_prp_page *prp_page) in mpr_free_prp_page()
568 mpr_free_command(struct mpr_softc *sc, struct mpr_command *cm) in mpr_free_command()
605 mpr_alloc_command(struct mpr_softc *sc) in mpr_alloc_command()
622 mpr_free_high_priority_command(struct mpr_softc *sc, struct mpr_command *cm) in mpr_free_high_priority_command()
646 mpr_alloc_high_priority_command(struct mpr_softc *sc) in mpr_alloc_high_priority_command()
663 mpr_lock(struct mpr_softc *sc) in mpr_lock()
669 mpr_unlock(struct mpr_softc *sc) in mpr_unlock()
731 mpr_mask_intr(struct mpr_softc *sc) in mpr_mask_intr()
741 mpr_unmask_intr(struct mpr_softc *sc) in mpr_unmask_intr()
750 int mpr_pci_setup_interrupts(struct mpr_softc *sc);
751 void mpr_pci_free_interrupts(struct mpr_softc *sc);
752 int mpr_pci_restore(struct mpr_softc *sc);
754 void mpr_get_tunables(struct mpr_softc *sc);
755 int mpr_attach(struct mpr_softc *sc);
756 int mpr_free(struct mpr_softc *sc);
760 int mpr_register_events(struct mpr_softc *, uint8_t *, mpr_evt_callback_t *,
762 int mpr_restart(struct mpr_softc *);
763 int mpr_update_events(struct mpr_softc *, struct mpr_event_handle *, uint8_t *);
764 int mpr_deregister_events(struct mpr_softc *, struct mpr_event_handle *);
765 void mpr_build_nvme_prp(struct mpr_softc *sc, struct mpr_command *cm,
771 int mpr_attach_sas(struct mpr_softc *sc);
772 int mpr_detach_sas(struct mpr_softc *sc);
773 int mpr_read_config_page(struct mpr_softc *, struct mpr_config_params *);
774 int mpr_write_config_page(struct mpr_softc *, struct mpr_config_params *);
778 int mpr_attach_user(struct mpr_softc *);
779 void mpr_detach_user(struct mpr_softc *);
780 void mprsas_record_event(struct mpr_softc *sc,
783 int mpr_map_command(struct mpr_softc *sc, struct mpr_command *cm);
784 int mpr_wait_command(struct mpr_softc *sc, struct mpr_command **cm, int timeout,
786 int mpr_request_polled(struct mpr_softc *sc, struct mpr_command **cm);
788 int mpr_config_get_bios_pg3(struct mpr_softc *sc, Mpi2ConfigReply_t
790 int mpr_config_get_raid_volume_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t
792 int mpr_config_get_ioc_pg8(struct mpr_softc *sc, Mpi2ConfigReply_t *,
794 int mpr_config_get_iounit_pg8(struct mpr_softc *sc,
796 int mpr_config_get_sas_device_pg0(struct mpr_softc *, Mpi2ConfigReply_t *,
798 int mpr_config_get_pcie_device_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t
800 int mpr_config_get_pcie_device_pg2(struct mpr_softc *sc, Mpi2ConfigReply_t
802 int mpr_config_get_dpm_pg0(struct mpr_softc *, Mpi2ConfigReply_t *,
804 int mpr_config_get_raid_volume_pg1(struct mpr_softc *sc,
807 int mpr_config_get_volume_wwid(struct mpr_softc *sc, u16 volume_handle,
809 int mpr_config_get_raid_pd_pg0(struct mpr_softc *sc,
812 void mprsas_ir_shutdown(struct mpr_softc *sc);
814 int mpr_reinit(struct mpr_softc *sc);
815 void mprsas_handle_reinit(struct mpr_softc *sc);
817 void mpr_base_static_config_pages(struct mpr_softc *sc);
819 int mpr_mapping_initialize(struct mpr_softc *);
820 void mpr_mapping_topology_change_event(struct mpr_softc *,
822 void mpr_mapping_pcie_topology_change_event(struct mpr_softc *sc,
824 void mpr_mapping_free_memory(struct mpr_softc *sc);
825 int mpr_config_set_dpm_pg0(struct mpr_softc *, Mpi2ConfigReply_t *,
827 void mpr_mapping_exit(struct mpr_softc *);
829 int mpr_mapping_allocate_memory(struct mpr_softc *sc);
830 unsigned int mpr_mapping_get_tid(struct mpr_softc *, uint64_t , u16);
831 unsigned int mpr_mapping_get_tid_from_handle(struct mpr_softc *sc,
833 unsigned int mpr_mapping_get_raid_tid(struct mpr_softc *sc, u64 wwid,
835 unsigned int mpr_mapping_get_raid_tid_from_handle(struct mpr_softc *sc,
837 void mpr_mapping_enclosure_dev_status_change_event(struct mpr_softc *,
839 void mpr_mapping_ir_config_change_event(struct mpr_softc *sc,
842 void mprsas_evt_handler(struct mpr_softc *sc, uintptr_t data,
846 int mprsas_startup(struct mpr_softc *sc);
849 void mprsas_realloc_targets(struct mpr_softc *sc, int maxtargets);
850 struct mpr_command * mprsas_alloc_tm(struct mpr_softc *sc);
851 void mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm);
853 int mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm,