Lines Matching refs:mpr_softc
78 static int mpr_diag_reset(struct mpr_softc *sc, int sleep_flag);
79 static int mpr_init_queues(struct mpr_softc *sc);
80 static void mpr_resize_queues(struct mpr_softc *sc);
81 static int mpr_message_unit_reset(struct mpr_softc *sc, int sleep_flag);
82 static int mpr_transition_operational(struct mpr_softc *sc);
83 static int mpr_iocfacts_allocate(struct mpr_softc *sc, uint8_t attaching);
84 static void mpr_iocfacts_free(struct mpr_softc *sc);
86 static int mpr_send_iocinit(struct mpr_softc *sc);
87 static int mpr_alloc_queues(struct mpr_softc *sc);
88 static int mpr_alloc_hw_queues(struct mpr_softc *sc);
89 static int mpr_alloc_replies(struct mpr_softc *sc);
90 static int mpr_alloc_requests(struct mpr_softc *sc);
91 static int mpr_alloc_nvme_prp_pages(struct mpr_softc *sc);
92 static int mpr_attach_log(struct mpr_softc *sc);
93 static __inline void mpr_complete_command(struct mpr_softc *sc,
95 static void mpr_dispatch_event(struct mpr_softc *sc, uintptr_t data,
97 static void mpr_config_complete(struct mpr_softc *sc, struct mpr_command *cm);
99 static int mpr_reregister_events(struct mpr_softc *sc);
100 static void mpr_enqueue_request(struct mpr_softc *sc, struct mpr_command *cm);
101 static int mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts);
102 static int mpr_wait_db_ack(struct mpr_softc *sc, int timeout, int sleep_flag);
142 mpr_diag_reset(struct mpr_softc *sc,int sleep_flag) in mpr_diag_reset()
235 mpr_message_unit_reset(struct mpr_softc *sc, int sleep_flag) in mpr_message_unit_reset()
259 mpr_transition_ready(struct mpr_softc *sc) in mpr_transition_ready()
337 mpr_transition_operational(struct mpr_softc *sc) in mpr_transition_operational()
365 mpr_resize_queues(struct mpr_softc *sc) in mpr_resize_queues()
464 mpr_iocfacts_allocate(struct mpr_softc *sc, uint8_t attaching) in mpr_iocfacts_allocate()
733 mpr_iocfacts_free(struct mpr_softc *sc) in mpr_iocfacts_free()
815 mpr_reinit(struct mpr_softc *sc) in mpr_reinit()
910 mpr_wait_db_ack(struct mpr_softc *sc, int timeout, int sleep_flag) in mpr_wait_db_ack()
957 mpr_wait_db_int(struct mpr_softc *sc) in mpr_wait_db_int()
972 mpr_request_sync(struct mpr_softc *sc, void *req, MPI2_DEFAULT_REPLY *reply, in mpr_request_sync()
1095 mpr_enqueue_request(struct mpr_softc *sc, struct mpr_command *cm) in mpr_enqueue_request()
1132 mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) in mpr_get_iocfacts()
1154 mpr_send_iocinit(struct mpr_softc *sc) in mpr_send_iocinit()
1261 mpr_alloc_queues(struct mpr_softc *sc) in mpr_alloc_queues()
1284 mpr_alloc_hw_queues(struct mpr_softc *sc) in mpr_alloc_hw_queues()
1341 mpr_alloc_replies(struct mpr_softc *sc) in mpr_alloc_replies()
1385 struct mpr_softc *sc = arg; in mpr_load_chains_cb()
1409 mpr_alloc_requests(struct mpr_softc *sc) in mpr_alloc_requests()
1568 mpr_alloc_nvme_prp_pages(struct mpr_softc *sc) in mpr_alloc_nvme_prp_pages()
1637 mpr_init_queues(struct mpr_softc *sc) in mpr_init_queues()
1667 mpr_get_tunables(struct mpr_softc *sc) in mpr_get_tunables()
1751 mpr_setup_sysctl(struct mpr_softc *sc) in mpr_setup_sysctl()
1878 struct mpr_softc *sc; in mpr_dump_reqs()
1886 sc = (struct mpr_softc *)arg1; in mpr_dump_reqs()
1930 mpr_attach(struct mpr_softc *sc) in mpr_attach()
2008 struct mpr_softc *sc; in mpr_startup()
2010 sc = (struct mpr_softc *)arg; in mpr_startup()
2033 struct mpr_softc *sc; in mpr_periodic()
2036 sc = (struct mpr_softc *)arg; in mpr_periodic()
2054 mpr_log_evt_handler(struct mpr_softc *sc, uintptr_t data, in mpr_log_evt_handler()
2081 mpr_attach_log(struct mpr_softc *sc) in mpr_attach_log()
2096 mpr_detach_log(struct mpr_softc *sc) in mpr_detach_log()
2109 mpr_free(struct mpr_softc *sc) in mpr_free()
2162 mpr_complete_command(struct mpr_softc *sc, struct mpr_command *cm) in mpr_complete_command()
2196 mpr_sas_log_info(struct mpr_softc *sc , u32 log_info) in mpr_sas_log_info()
2241 mpr_display_reply_info(struct mpr_softc *sc, uint8_t *reply) in mpr_display_reply_info()
2255 struct mpr_softc *sc; in mpr_intr()
2258 sc = (struct mpr_softc *)data; in mpr_intr()
2282 struct mpr_softc *sc; in mpr_intr_msi()
2284 sc = (struct mpr_softc *)data; in mpr_intr_msi()
2299 struct mpr_softc *sc; in mpr_intr_locked()
2306 sc = (struct mpr_softc *)data; in mpr_intr_locked()
2452 mpr_dispatch_event(struct mpr_softc *sc, uintptr_t data, in mpr_dispatch_event()
2479 mpr_reregister_events_complete(struct mpr_softc *sc, struct mpr_command *cm) in mpr_reregister_events_complete()
2499 mpr_register_events(struct mpr_softc *sc, uint8_t *mask, in mpr_register_events()
2522 mpr_update_events(struct mpr_softc *sc, struct mpr_event_handle *handle, in mpr_update_events()
2578 mpr_reregister_events(struct mpr_softc *sc) in mpr_reregister_events()
2623 mpr_deregister_events(struct mpr_softc *sc, struct mpr_event_handle *handle) in mpr_deregister_events()
2680 mpr_build_nvme_prp(struct mpr_softc *sc, struct mpr_command *cm, in mpr_build_nvme_prp()
2876 mpr_check_pcie_native_sgl(struct mpr_softc *sc, struct mpr_command *cm, in mpr_check_pcie_native_sgl()
3152 struct mpr_softc *sc = cm->cm_sc; in mpr_add_chain()
3432 struct mpr_softc *sc; in mpr_data_cb()
3528 mpr_map_command(struct mpr_softc *sc, struct mpr_command *cm) in mpr_map_command()
3557 mpr_wait_command(struct mpr_softc *sc, struct mpr_command **cmp, int timeout, in mpr_wait_command()
3628 mpr_request_polled(struct mpr_softc *sc, struct mpr_command **cmp) in mpr_request_polled()
3684 mpr_read_config_page(struct mpr_softc *sc, struct mpr_config_params *params) in mpr_read_config_page()
3755 mpr_write_config_page(struct mpr_softc *sc, struct mpr_config_params *params) in mpr_write_config_page()
3761 mpr_config_complete(struct mpr_softc *sc, struct mpr_command *cm) in mpr_config_complete()