Home
last modified time | relevance | path

Searched refs:mps_softc (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/dev/mps/
H A Dmpsvar.h184 struct mps_softc;
193 typedef void mps_evt_callback_t(struct mps_softc *, uintptr_t,
195 typedef void mps_command_callback_t(struct mps_softc *, struct mps_command *cm);
211 struct mps_softc *cm_sc;
275 struct mps_softc *softc;
281 struct mps_softc *sc;
300 struct mps_softc { struct
487 void (*callback)(struct mps_softc *, struct mps_config_params *); argument
499 mps_regread(struct mps_softc *sc, uint32_t offset) in mps_regread()
505 mps_regwrite(struct mps_softc *sc, uint32_t offset, uint32_t val) in mps_regwrite()
[all …]
H A Dmps_table.h47 void mps_print_iocfacts(struct mps_softc *, MPI2_IOC_FACTS_REPLY *);
48 void mps_print_portfacts(struct mps_softc *, MPI2_PORT_FACTS_REPLY *);
49 void mps_print_evt_generic(struct mps_softc *, MPI2_EVENT_NOTIFICATION_REPLY *);
50 void mps_print_sasdev0(struct mps_softc *, MPI2_CONFIG_PAGE_SAS_DEV_0 *);
51 void mps_print_evt_sas(struct mps_softc *, MPI2_EVENT_NOTIFICATION_REPLY *);
52 void mps_print_expander1(struct mps_softc *, MPI2_CONFIG_PAGE_EXPANDER_1 *);
53 void mps_print_sasphy0(struct mps_softc *, MPI2_CONFIG_PAGE_SAS_PHY_0 *);
54 void mps_print_sgl(struct mps_softc *, struct mps_command *, int);
55 void mps_print_scsiio_cmd(struct mps_softc *, struct mps_command *);
H A Dmps_pci.c68 static void mps_pci_free(struct mps_softc *);
69 static int mps_alloc_msix(struct mps_softc *sc, int msgs);
70 static int mps_alloc_msi(struct mps_softc *sc, int msgs);
71 static int mps_pci_alloc_interrupts(struct mps_softc *sc);
86 sizeof(struct mps_softc)
186 struct mps_softc *sc; in mps_pci_attach()
233 mps_pci_alloc_interrupts(struct mps_softc *sc) in mps_pci_alloc_interrupts()
282 mps_pci_setup_interrupts(struct mps_softc *sc) in mps_pci_setup_interrupts()
335 struct mps_softc *sc; in mps_pci_detach()
348 mps_pci_free_interrupts(struct mps_softc *s
[all...]
H A Dmps.c81 static int mps_diag_reset(struct mps_softc *sc, int sleep_flag);
82 static int mps_init_queues(struct mps_softc *sc);
83 static void mps_resize_queues(struct mps_softc *sc);
84 static int mps_message_unit_reset(struct mps_softc *sc, int sleep_flag);
85 static int mps_transition_operational(struct mps_softc *sc);
86 static int mps_iocfacts_allocate(struct mps_softc *sc, uint8_t attaching);
87 static void mps_iocfacts_free(struct mps_softc *sc);
89 static int mps_send_iocinit(struct mps_softc *sc);
90 static int mps_alloc_queues(struct mps_softc *sc);
91 static int mps_alloc_hw_queues(struct mps_softc *sc);
[all …]
H A Dmps_user.c130 static int mps_user_read_cfg_header(struct mps_softc *,
132 static int mps_user_read_cfg_page(struct mps_softc *,
134 static int mps_user_read_extcfg_header(struct mps_softc *,
136 static int mps_user_read_extcfg_page(struct mps_softc *,
138 static int mps_user_write_cfg_page(struct mps_softc *,
142 static int mps_user_command(struct mps_softc *, struct mps_usr_command *);
144 static int mps_user_pass_thru(struct mps_softc *sc, mps_pass_thru_t *data);
145 static void mps_user_get_adapter_data(struct mps_softc *sc,
147 static void mps_user_read_pci_info(struct mps_softc *sc,
149 static uint8_t mps_get_fw_diag_buffer_number(struct mps_softc *sc,
[all …]
H A Dmps_mapping.c112 _mapping_commit_enc_entry(struct mps_softc *sc, in _mapping_commit_enc_entry()
175 _mapping_commit_map_entry(struct mps_softc *sc, in _mapping_commit_map_entry()
245 _mapping_get_ir_maprange(struct mps_softc *sc, u32 *start_idx, u32 *end_idx) in _mapping_get_ir_maprange()
269 _mapping_get_enc_idx_from_id(struct mps_softc *sc, u64 enc_id, in _mapping_get_enc_idx_from_id()
293 _mapping_get_enc_idx_from_handle(struct mps_softc *sc, u16 handle) in _mapping_get_enc_idx_from_handle()
318 _mapping_get_high_missing_et_idx(struct mps_softc *sc) in _mapping_get_high_missing_et_idx()
345 _mapping_get_high_missing_mt_idx(struct mps_softc *sc) in _mapping_get_high_missing_mt_idx()
384 _mapping_get_ir_mt_idx_from_wwid(struct mps_softc *sc, u64 wwid) in _mapping_get_ir_mt_idx_from_wwid()
406 _mapping_get_mt_idx_from_id(struct mps_softc *sc, u64 dev_id) in _mapping_get_mt_idx_from_id()
427 _mapping_get_ir_mt_idx_from_handle(struct mps_softc *sc, u16 volHandle) in _mapping_get_ir_mt_idx_from_handle()
[all …]
H A Dmps_sas_lsi.c116 static void mpssas_fw_work(struct mps_softc *sc,
118 static void mpssas_fw_event_free(struct mps_softc *,
120 static int mpssas_add_device(struct mps_softc *sc, u16 handle, u8 linkrate);
121 static int mpssas_get_sata_identify(struct mps_softc *sc, u16 handle,
124 static void mpssas_ata_id_complete(struct mps_softc *, struct mps_command *);
125 static void mpssas_ata_id_timeout(struct mps_softc *, struct mps_command *);
126 int mpssas_get_sas_address_for_sata_disk(struct mps_softc *sc,
128 static int mpssas_volume_add(struct mps_softc *sc,
130 static void mpssas_SSU_to_SATA_devices(struct mps_softc *sc, int howto);
135 mpssas_evt_handler(struct mps_softc *sc, uintptr_t data, in mpssas_evt_handler()
[all …]
H A Dmps_sas.c112 static void mpssas_remove_device(struct mps_softc *, struct mps_command *);
113 static void mpssas_remove_complete(struct mps_softc *, struct mps_command *);
116 static int mpssas_send_abort(struct mps_softc *sc, struct mps_command *tm,
119 static void mpssas_abort_complete(struct mps_softc *sc, struct mps_command *cm);
123 static void mpssas_scsiio_complete(struct mps_softc *, struct mps_command *);
125 static void mpssas_smpio_complete(struct mps_softc *sc, struct mps_command *cm);
129 static void mpssas_resetdev_complete(struct mps_softc *, struct mps_command *);
132 static int mpssas_send_portenable(struct mps_softc *sc);
133 static void mpssas_portenable_complete(struct mps_softc *sc,
214 mpssas_alloc_tm(struct mps_softc *sc) in mpssas_alloc_tm()
[all …]
H A Dmps_table.c250 mps_print_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) in mps_print_iocfacts()
291 mps_print_portfacts(struct mps_softc *sc, MPI2_PORT_FACTS_REPLY *facts) in mps_print_portfacts()
301 mps_print_evt_generic(struct mps_softc *sc, MPI2_EVENT_NOTIFICATION_REPLY *event) in mps_print_evt_generic()
313 mps_print_sasdev0(struct mps_softc *sc, MPI2_CONFIG_PAGE_SAS_DEV_0 *buf) in mps_print_sasdev0()
342 mps_print_evt_sas(struct mps_softc *sc, MPI2_EVENT_NOTIFICATION_REPLY *event) in mps_print_evt_sas()
450 mps_print_expander1(struct mps_softc *sc, MPI2_CONFIG_PAGE_EXPANDER_1 *buf) in mps_print_expander1()
490 mps_print_sasphy0(struct mps_softc *sc, MPI2_CONFIG_PAGE_SAS_PHY_0 *buf) in mps_print_sasphy0()
516 mps_print_sgl(struct mps_softc *sc, struct mps_command *cm, int offset) in mps_print_sgl()
556 mps_print_scsiio_cmd(struct mps_softc *sc, struct mps_command *cm) in mps_print_scsiio_cmd()
H A Dmps_sas.h83 struct mps_softc *sc;
162 void mpssas_rescan_target(struct mps_softc *sc, struct mpssas_target *targ);
164 void mpssas_prepare_for_tm(struct mps_softc *sc, struct mps_command *tm,
H A Dmps_config.c70 mps_config_get_ioc_pg8(struct mps_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mps_config_get_ioc_pg8()
202 mps_config_get_man_pg10(struct mps_softc *sc, Mpi2ConfigReply_t *mpi_reply) in mps_config_get_man_pg10()
355 mps_base_static_config_pages(struct mps_softc *sc) in mps_base_static_config_pages()
379 mps_wd_config_pages(struct mps_softc *sc) in mps_wd_config_pages()
562 mps_config_get_dpm_pg0(struct mps_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mps_config_get_dpm_pg0()
700 int mps_config_set_dpm_pg0(struct mps_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mps_config_set_dpm_pg0()
840 mps_config_get_sas_device_pg0(struct mps_softc *sc, Mpi2ConfigReply_t in mps_config_get_sas_device_pg0()
975 mps_config_get_bios_pg3(struct mps_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mps_config_get_bios_pg3()
1107 mps_config_get_raid_volume_pg0(struct mps_softc *sc, Mpi2ConfigReply_t in mps_config_get_raid_volume_pg0()
1238 mps_config_get_raid_volume_pg1(struct mps_softc *sc, Mpi2ConfigReply_t in mps_config_get_raid_volume_pg1()
[all …]
H A Dmps_mapping.h71 mpssas_get_sas_address_for_sata_disk(struct mps_softc *ioc,