Home
last modified time | relevance | path

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

/freebsd/sys/dev/mpr/
H A Dmprvar.h212 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()
[all …]
H A Dmpr_table.h46 void mpr_print_iocfacts(struct mpr_softc *, MPI2_IOC_FACTS_REPLY *);
47 void mpr_print_portfacts(struct mpr_softc *, MPI2_PORT_FACTS_REPLY *);
48 void mpr_print_evt_generic(struct mpr_softc *, MPI2_EVENT_NOTIFICATION_REPLY *);
49 void mpr_print_sasdev0(struct mpr_softc *, MPI2_CONFIG_PAGE_SAS_DEV_0 *);
50 void mpr_print_evt_sas(struct mpr_softc *, MPI2_EVENT_NOTIFICATION_REPLY *);
51 void mpr_print_expander1(struct mpr_softc *, MPI2_CONFIG_PAGE_EXPANDER_1 *);
52 void mpr_print_sasphy0(struct mpr_softc *, MPI2_CONFIG_PAGE_SAS_PHY_0 *);
53 void mpr_print_sgl(struct mpr_softc *, struct mpr_command *, int);
54 void mpr_print_scsiio_cmd(struct mpr_softc *, struct mpr_command *);
H A Dmpr_pci.c67 static void mpr_pci_free(struct mpr_softc *);
68 static int mpr_alloc_msix(struct mpr_softc *sc, int msgs);
69 static int mpr_alloc_msi(struct mpr_softc *sc, int msgs);
70 static int mpr_pci_alloc_interrupts(struct mpr_softc *sc);
86 sizeof(struct mpr_softc)
219 struct mpr_softc *sc; in mpr_pci_attach()
287 mpr_pci_alloc_interrupts(struct mpr_softc *sc) in mpr_pci_alloc_interrupts()
336 mpr_pci_setup_interrupts(struct mpr_softc *sc) in mpr_pci_setup_interrupts()
388 struct mpr_softc *sc; in mpr_pci_detach()
401 mpr_pci_free_interrupts(struct mpr_softc *sc) in mpr_pci_free_interrupts()
[all …]
H A Dmpr.c84 static int mpr_diag_reset(struct mpr_softc *sc, int sleep_flag);
85 static int mpr_init_queues(struct mpr_softc *sc);
86 static void mpr_resize_queues(struct mpr_softc *sc);
87 static int mpr_message_unit_reset(struct mpr_softc *sc, int sleep_flag);
88 static int mpr_transition_operational(struct mpr_softc *sc);
89 static int mpr_iocfacts_allocate(struct mpr_softc *sc, uint8_t attaching);
90 static void mpr_iocfacts_free(struct mpr_softc *sc);
92 static int mpr_send_iocinit(struct mpr_softc *sc);
93 static int mpr_alloc_queues(struct mpr_softc *sc);
94 static int mpr_alloc_hw_queues(struct mpr_softc *sc);
[all …]
H A Dmpr_user.c129 static int mpr_user_read_cfg_header(struct mpr_softc *,
131 static int mpr_user_read_cfg_page(struct mpr_softc *,
133 static int mpr_user_read_extcfg_header(struct mpr_softc *,
135 static int mpr_user_read_extcfg_page(struct mpr_softc *,
137 static int mpr_user_write_cfg_page(struct mpr_softc *,
141 static int mpr_user_command(struct mpr_softc *, struct mpr_usr_command *);
143 static int mpr_user_pass_thru(struct mpr_softc *sc, mpr_pass_thru_t *data);
144 static void mpr_user_get_adapter_data(struct mpr_softc *sc,
146 static void mpr_user_read_pci_info(struct mpr_softc *sc, mpr_pci_info_t *data);
147 static uint8_t mpr_get_fw_diag_buffer_number(struct mpr_softc *sc,
[all …]
H A Dmpr_mapping.c111 _mapping_commit_enc_entry(struct mpr_softc *sc, in _mapping_commit_enc_entry()
174 _mapping_commit_map_entry(struct mpr_softc *sc, in _mapping_commit_map_entry()
244 _mapping_get_ir_maprange(struct mpr_softc *sc, u32 *start_idx, u32 *end_idx) in _mapping_get_ir_maprange()
268 _mapping_get_enc_idx_from_id(struct mpr_softc *sc, u64 enc_id, in _mapping_get_enc_idx_from_id()
292 _mapping_get_enc_idx_from_handle(struct mpr_softc *sc, u16 handle) in _mapping_get_enc_idx_from_handle()
317 _mapping_get_high_missing_et_idx(struct mpr_softc *sc) in _mapping_get_high_missing_et_idx()
344 _mapping_get_high_missing_mt_idx(struct mpr_softc *sc) in _mapping_get_high_missing_mt_idx()
383 _mapping_get_ir_mt_idx_from_wwid(struct mpr_softc *sc, u64 wwid) in _mapping_get_ir_mt_idx_from_wwid()
405 _mapping_get_mt_idx_from_id(struct mpr_softc *sc, u64 dev_id) in _mapping_get_mt_idx_from_id()
426 _mapping_get_ir_mt_idx_from_handle(struct mpr_softc *sc, u16 volHandle) in _mapping_get_ir_mt_idx_from_handle()
[all …]
H A Dmpr_sas_lsi.c116 static void mprsas_fw_work(struct mpr_softc *sc,
118 static void mprsas_fw_event_free(struct mpr_softc *,
120 static int mprsas_add_device(struct mpr_softc *sc, u16 handle, u8 linkrate);
121 static int mprsas_add_pcie_device(struct mpr_softc *sc, u16 handle,
123 static int mprsas_get_sata_identify(struct mpr_softc *sc, u16 handle,
126 static void mprsas_ata_id_complete(struct mpr_softc *, struct mpr_command *);
127 static void mprsas_ata_id_timeout(struct mpr_softc *, struct mpr_command *);
128 int mprsas_get_sas_address_for_sata_disk(struct mpr_softc *sc,
130 static int mprsas_volume_add(struct mpr_softc *sc,
132 static void mprsas_SSU_to_SATA_devices(struct mpr_softc *sc, int howto);
[all …]
H A Dmpr_sas.c117 static void mprsas_remove_device(struct mpr_softc *, struct mpr_command *);
118 static void mprsas_remove_complete(struct mpr_softc *, struct mpr_command *);
122 static void mprsas_abort_complete(struct mpr_softc *sc, struct mpr_command *cm);
124 static void mprsas_scsiio_complete(struct mpr_softc *, struct mpr_command *);
126 static void mprsas_resetdev_complete(struct mpr_softc *, struct mpr_command *);
127 static int mprsas_send_abort(struct mpr_softc *sc, struct mpr_command *tm,
131 static int mprsas_send_portenable(struct mpr_softc *sc);
132 static void mprsas_portenable_complete(struct mpr_softc *sc,
135 static void mprsas_smpio_complete(struct mpr_softc *sc, struct mpr_command *cm);
220 mprsas_alloc_tm(struct mpr_softc *sc) in mprsas_alloc_tm()
[all …]
H A Dmpr_table.c271 mpr_print_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) in mpr_print_iocfacts()
311 mpr_print_portfacts(struct mpr_softc *sc, MPI2_PORT_FACTS_REPLY *facts) in mpr_print_portfacts()
321 mpr_print_evt_generic(struct mpr_softc *sc, MPI2_EVENT_NOTIFICATION_REPLY *event) in mpr_print_evt_generic()
333 mpr_print_sasdev0(struct mpr_softc *sc, MPI2_CONFIG_PAGE_SAS_DEV_0 *buf) in mpr_print_sasdev0()
362 mpr_print_evt_sas(struct mpr_softc *sc, MPI2_EVENT_NOTIFICATION_REPLY *event) in mpr_print_evt_sas()
471 mpr_print_expander1(struct mpr_softc *sc, MPI2_CONFIG_PAGE_EXPANDER_1 *buf) in mpr_print_expander1()
511 mpr_print_sasphy0(struct mpr_softc *sc, MPI2_CONFIG_PAGE_SAS_PHY_0 *buf) in mpr_print_sasphy0()
537 mpr_print_sgl(struct mpr_softc *sc, struct mpr_command *cm, int offset) in mpr_print_sgl()
591 mpr_print_scsiio_cmd(struct mpr_softc *sc, struct mpr_command *cm) in mpr_print_scsiio_cmd()
H A Dmpr_sas.h88 struct mpr_softc *sc;
168 void mprsas_rescan_target(struct mpr_softc *sc, struct mprsas_target *targ);
170 void mprsas_prepare_for_tm(struct mpr_softc *sc, struct mpr_command *tm,
H A Dmpr_config.c70 mpr_config_get_ioc_pg8(struct mpr_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mpr_config_get_ioc_pg8()
202 mpr_config_get_iounit_pg8(struct mpr_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mpr_config_get_iounit_pg8()
335 mpr_config_get_man_pg11(struct mpr_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mpr_config_get_man_pg11()
463 mpr_base_static_config_pages(struct mpr_softc *sc) in mpr_base_static_config_pages()
523 mpr_config_get_dpm_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mpr_config_get_dpm_pg0()
661 int mpr_config_set_dpm_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mpr_config_set_dpm_pg0()
800 mpr_config_get_sas_device_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t in mpr_config_get_sas_device_pg0()
937 mpr_config_get_pcie_device_pg0(struct mpr_softc *sc, Mpi2ConfigReply_t in mpr_config_get_pcie_device_pg0()
1074 mpr_config_get_pcie_device_pg2(struct mpr_softc *sc, Mpi2ConfigReply_t in mpr_config_get_pcie_device_pg2()
1209 mpr_config_get_bios_pg3(struct mpr_softc *sc, Mpi2ConfigReply_t *mpi_reply, in mpr_config_get_bios_pg3()
[all …]
H A Dmpr_mapping.h118 mprsas_get_sas_address_for_sata_disk(struct mpr_softc *ioc,