Lines Matching refs:megasas_instance

135 int megasas_transition_to_ready(struct megasas_instance *instance, int ocr);
136 static int megasas_get_pd_list(struct megasas_instance *instance);
137 static int megasas_ld_list_query(struct megasas_instance *instance,
139 static int megasas_issue_init_mfi(struct megasas_instance *instance);
140 static int megasas_register_aen(struct megasas_instance *instance,
142 static void megasas_get_pd_info(struct megasas_instance *instance,
145 megasas_set_ld_removed_by_fw(struct megasas_instance *instance);
224 megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd,
227 megasas_read_fw_status_reg_gen2(struct megasas_instance *instance);
229 megasas_adp_reset_gen2(struct megasas_instance *instance,
233 megasas_init_adapter_mfi(struct megasas_instance *instance);
235 megasas_build_and_issue_cmd(struct megasas_instance *instance,
239 wait_and_poll(struct megasas_instance *instance, struct megasas_cmd *cmd,
242 static int megasas_get_ld_vf_affiliation(struct megasas_instance *instance,
245 megasas_set_dma_mask(struct megasas_instance *instance);
247 megasas_alloc_ctrl_mem(struct megasas_instance *instance);
249 megasas_free_ctrl_mem(struct megasas_instance *instance);
251 megasas_alloc_ctrl_dma_buffers(struct megasas_instance *instance);
253 megasas_free_ctrl_dma_buffers(struct megasas_instance *instance);
255 megasas_init_ctrl_params(struct megasas_instance *instance);
257 u32 megasas_readl(struct megasas_instance *instance, in megasas_readl()
287 void megasas_set_dma_settings(struct megasas_instance *instance, in megasas_set_dma_settings()
305 megasas_issue_dcmd(struct megasas_instance *instance, struct megasas_cmd *cmd) in megasas_issue_dcmd()
318 struct megasas_cmd *megasas_get_cmd(struct megasas_instance in megasas_get_cmd()
344 megasas_return_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd) in megasas_return_cmd()
422 megasas_decode_evt(struct megasas_instance *instance) in megasas_decode_evt()
459 megasas_enable_intr_xscale(struct megasas_instance *instance) in megasas_enable_intr_xscale()
475 megasas_disable_intr_xscale(struct megasas_instance *instance) in megasas_disable_intr_xscale()
491 megasas_read_fw_status_reg_xscale(struct megasas_instance *instance) in megasas_read_fw_status_reg_xscale()
500 megasas_clear_intr_xscale(struct megasas_instance *instance) in megasas_clear_intr_xscale()
537 megasas_fire_cmd_xscale(struct megasas_instance *instance, in megasas_fire_cmd_xscale()
556 megasas_adp_reset_xscale(struct megasas_instance *instance, in megasas_adp_reset_xscale()
598 megasas_check_reset_xscale(struct megasas_instance *instance, in megasas_check_reset_xscale()
639 megasas_enable_intr_ppc(struct megasas_instance *instance) in megasas_enable_intr_ppc()
657 megasas_disable_intr_ppc(struct megasas_instance *instance) in megasas_disable_intr_ppc()
673 megasas_read_fw_status_reg_ppc(struct megasas_instance *instance) in megasas_read_fw_status_reg_ppc()
683 megasas_clear_intr_ppc(struct megasas_instance *instance) in megasas_clear_intr_ppc()
719 megasas_fire_cmd_ppc(struct megasas_instance *instance, in megasas_fire_cmd_ppc()
738 megasas_check_reset_ppc(struct megasas_instance *instance, in megasas_check_reset_ppc()
768 megasas_enable_intr_skinny(struct megasas_instance *instance) in megasas_enable_intr_skinny()
786 megasas_disable_intr_skinny(struct megasas_instance *instance) in megasas_disable_intr_skinny()
802 megasas_read_fw_status_reg_skinny(struct megasas_instance *instance) in megasas_read_fw_status_reg_skinny()
812 megasas_clear_intr_skinny(struct megasas_instance *instance) in megasas_clear_intr_skinny()
858 megasas_fire_cmd_skinny(struct megasas_instance *instance, in megasas_fire_cmd_skinny()
879 megasas_check_reset_skinny(struct megasas_instance *instance, in megasas_check_reset_skinny()
915 megasas_enable_intr_gen2(struct megasas_instance *instance) in megasas_enable_intr_gen2()
934 megasas_disable_intr_gen2(struct megasas_instance *instance) in megasas_disable_intr_gen2()
950 megasas_read_fw_status_reg_gen2(struct megasas_instance *instance) in megasas_read_fw_status_reg_gen2()
960 megasas_clear_intr_gen2(struct megasas_instance *instance) in megasas_clear_intr_gen2()
999 megasas_fire_cmd_gen2(struct megasas_instance *instance, in megasas_fire_cmd_gen2()
1018 megasas_adp_reset_gen2(struct megasas_instance *instance, in megasas_adp_reset_gen2()
1079 megasas_check_reset_gen2(struct megasas_instance *instance, in megasas_check_reset_gen2()
1122 megasas_issue_polled(struct megasas_instance *instance, struct megasas_cmd *cmd) in megasas_issue_polled()
1152 megasas_issue_blocked_cmd(struct megasas_instance *instance, in megasas_issue_blocked_cmd()
1194 megasas_issue_blocked_abort_cmd(struct megasas_instance *instance, in megasas_issue_blocked_abort_cmd()
1262 megasas_make_sgl32(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl32()
1291 megasas_make_sgl64(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl64()
1320 megasas_make_sgl_skinny(struct megasas_instance *instance, in megasas_make_sgl_skinny()
1349 static u32 megasas_get_frame_count(struct megasas_instance *instance, in megasas_get_frame_count()
1410 megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_build_dcdb()
1509 megasas_build_ldio(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_build_ldio()
1674 megasas_dump_pending_frames(struct megasas_instance *instance) in megasas_dump_pending_frames()
1741 megasas_build_and_issue_cmd(struct megasas_instance *instance, in megasas_build_and_issue_cmd()
1788 struct megasas_instance *instance; in megasas_queue_command()
1792 instance = (struct megasas_instance *) in megasas_queue_command()
1864 static struct megasas_instance *megasas_lookup_instance(u16 host_no) in megasas_lookup_instance()
1895 struct megasas_instance *instance; in megasas_set_dynamic_target_properties()
1972 struct megasas_instance *instance; in megasas_set_nvme_device_properties()
1975 instance = (struct megasas_instance *)sdev->host->hostdata; in megasas_set_nvme_device_properties()
1999 struct megasas_instance *instance; in megasas_set_fw_assisted_qd()
2047 struct megasas_instance *instance; in megasas_set_static_target_properties()
2072 struct megasas_instance *instance; in megasas_slave_configure()
2112 struct megasas_instance *instance ; in megasas_slave_alloc()
2157 struct megasas_instance *instance; in megasas_slave_destroy()
2183 static void megasas_complete_outstanding_ioctls(struct megasas_instance *instance) in megasas_complete_outstanding_ioctls()
2216 void megaraid_sas_kill_hba(struct megasas_instance *instance) in megaraid_sas_kill_hba()
2253 megasas_check_and_restore_queue_depth(struct megasas_instance *instance) in megasas_check_and_restore_queue_depth()
2282 struct megasas_instance *instance = in megasas_complete_cmd_dpc()
2283 (struct megasas_instance *)instance_addr; in megasas_complete_cmd_dpc()
2330 void megasas_start_timer(struct megasas_instance *instance) in megasas_start_timer()
2340 megasas_internal_reset_defer_cmds(struct megasas_instance *instance);
2345 static void megasas_do_ocr(struct megasas_instance *instance) in megasas_do_ocr()
2361 static int megasas_get_ld_vf_affiliation_111(struct megasas_instance *instance, in megasas_get_ld_vf_affiliation_111()
2467 static int megasas_get_ld_vf_affiliation_12(struct megasas_instance *instance, in megasas_get_ld_vf_affiliation_12()
2633 static int megasas_get_ld_vf_affiliation(struct megasas_instance *instance, in megasas_get_ld_vf_affiliation()
2646 int megasas_sriov_start_heartbeat(struct megasas_instance *instance, in megasas_sriov_start_heartbeat()
2721 struct megasas_instance *instance = in megasas_sriov_heartbeat_handler()
2745 static int megasas_wait_for_outstanding(struct megasas_instance *instance) in megasas_wait_for_outstanding()
2902 struct megasas_instance *instance; in megasas_generic_reset()
2904 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_generic_reset()
2933 struct megasas_instance *instance; in megasas_reset_timer()
2941 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_timer()
3004 struct megasas_instance *instance; in megasas_dump_fusion_io()
3006 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_dump_fusion_io()
3063 struct megasas_instance *instance; in megasas_reset_bus_host()
3065 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_bus_host()
3097 struct megasas_instance *instance; in megasas_task_abort()
3099 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_task_abort()
3119 struct megasas_instance *instance; in megasas_reset_target()
3121 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_target()
3179 struct megasas_instance *instance; in megasas_map_queues()
3183 instance = (struct megasas_instance *)shost->hostdata; in megasas_map_queues()
3229 megasas_service_aen(struct megasas_instance *instance, struct megasas_cmd *cmd) in megasas_service_aen()
3272 struct megasas_instance *instance = in fw_crash_buffer_store()
3273 (struct megasas_instance *) shost->hostdata; in fw_crash_buffer_store()
3291 struct megasas_instance *instance = in fw_crash_buffer_show()
3292 (struct megasas_instance *) shost->hostdata; in fw_crash_buffer_show()
3336 struct megasas_instance *instance = in fw_crash_buffer_size_show()
3337 (struct megasas_instance *) shost->hostdata; in fw_crash_buffer_size_show()
3348 struct megasas_instance *instance = in fw_crash_state_store()
3349 (struct megasas_instance *) shost->hostdata; in fw_crash_state_store()
3383 struct megasas_instance *instance = in fw_crash_state_show()
3384 (struct megasas_instance *) shost->hostdata; in fw_crash_state_show()
3401 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in ldio_outstanding_show()
3411 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in fw_cmds_outstanding_show()
3421 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in enable_sdev_max_qd_show()
3431 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in enable_sdev_max_qd_store()
3463 struct megasas_instance *instance = in dump_system_regs_show()
3464 (struct megasas_instance *)shost->hostdata; in dump_system_regs_show()
3474 struct megasas_instance *instance = in raid_map_id_show()
3475 (struct megasas_instance *)shost->hostdata; in raid_map_id_show()
3541 megasas_complete_int_cmd(struct megasas_instance *instance, in megasas_complete_int_cmd()
3562 megasas_complete_abort(struct megasas_instance *instance, in megasas_complete_abort()
3573 megasas_set_ld_removed_by_fw(struct megasas_instance *instance) in megasas_set_ld_removed_by_fw()
3599 megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd, in megasas_complete_cmd()
3816 megasas_issue_pending_cmds_again(struct megasas_instance *instance) in megasas_issue_pending_cmds_again()
3909 megasas_internal_reset_defer_cmds(struct megasas_instance *instance) in megasas_internal_reset_defer_cmds()
3946 struct megasas_instance *instance = in process_fw_state_change_wq()
3947 container_of(work, struct megasas_instance, work_init); in process_fw_state_change_wq()
4018 megasas_deplete_reply_queue(struct megasas_instance *instance, in megasas_deplete_reply_queue()
4092 struct megasas_instance *instance = irq_context->instance; in megasas_isr()
4117 megasas_transition_to_ready(struct megasas_instance *instance, int ocr) in megasas_transition_to_ready()
4287 static void megasas_teardown_frame_pool(struct megasas_instance *instance) in megasas_teardown_frame_pool()
4331 static int megasas_create_frame_pool(struct megasas_instance *instance) in megasas_create_frame_pool()
4417 void megasas_free_cmds(struct megasas_instance *instance) in megasas_free_cmds()
4454 int megasas_alloc_cmds(struct megasas_instance *instance) in megasas_alloc_cmds()
4521 dcmd_timeout_ocr_possible(struct megasas_instance *instance) { in dcmd_timeout_ocr_possible()
4534 megasas_get_pd_info(struct megasas_instance *instance, struct scsi_device *sdev) in megasas_get_pd_info()
4620 megasas_get_pd_list(struct megasas_instance *instance) in megasas_get_pd_list()
4755 megasas_get_ld_list(struct megasas_instance *instance) in megasas_get_ld_list()
4872 megasas_ld_list_query(struct megasas_instance *instance, u8 query_type) in megasas_ld_list_query()
4993 megasas_host_device_list_query(struct megasas_instance *instance, in megasas_host_device_list_query()
5117 static void megasas_update_ext_vd_details(struct megasas_instance *instance) in megasas_update_ext_vd_details()
5180 void megasas_get_snapdump_properties(struct megasas_instance *instance) in megasas_get_snapdump_properties()
5265 megasas_get_ctrl_info(struct megasas_instance *instance) in megasas_get_ctrl_info()
5418 int megasas_set_crash_dump_params(struct megasas_instance *instance, in megasas_set_crash_dump_params()
5483 megasas_issue_init_mfi(struct megasas_instance *instance) in megasas_issue_init_mfi()
5553 megasas_init_adapter_mfi(struct megasas_instance *instance) in megasas_init_adapter_mfi()
5648 void megasas_setup_irq_poll(struct megasas_instance *instance) in megasas_setup_irq_poll()
5675 megasas_setup_irqs_ioapic(struct megasas_instance *instance) in megasas_setup_irqs_ioapic()
5707 megasas_setup_irqs_msix(struct megasas_instance *instance, u8 is_probe) in megasas_setup_irqs_msix()
5753 megasas_destroy_irqs(struct megasas_instance *instance) { in megasas_destroy_irqs()
5787 megasas_setup_jbod_map(struct megasas_instance *instance) in megasas_setup_jbod_map()
5837 static void megasas_setup_reply_map(struct megasas_instance *instance) in megasas_setup_reply_map()
5875 int megasas_get_device_list(struct megasas_instance *instance) in megasas_get_device_list()
5903 megasas_set_high_iops_queue_affinity_and_hint(struct megasas_instance *instance) in megasas_set_high_iops_queue_affinity_and_hint()
5920 __megasas_alloc_irq_vectors(struct megasas_instance *instance) in __megasas_alloc_irq_vectors()
5949 megasas_alloc_irq_vectors(struct megasas_instance *instance) in megasas_alloc_irq_vectors()
6014 static int megasas_init_fw(struct megasas_instance *instance) in megasas_init_fw()
6552 static void megasas_release_mfi(struct megasas_instance *instance) in megasas_release_mfi()
6580 megasas_get_seq_num(struct megasas_instance *instance, in megasas_get_seq_num()
6654 megasas_register_aen(struct megasas_instance *instance, u32 seq_num, in megasas_register_aen()
6796 megasas_get_target_prop(struct megasas_instance *instance, in megasas_get_target_prop()
6876 static int megasas_start_aen(struct megasas_instance *instance) in megasas_start_aen()
6905 static int megasas_io_attach(struct megasas_instance *instance) in megasas_io_attach()
7005 megasas_set_dma_mask(struct megasas_instance *instance) in megasas_set_dma_mask()
7070 static inline void megasas_set_adapter_type(struct megasas_instance *instance) in megasas_set_adapter_type()
7110 static inline int megasas_alloc_mfi_ctrl_mem(struct megasas_instance *instance) in megasas_alloc_mfi_ctrl_mem()
7138 static int megasas_alloc_ctrl_mem(struct megasas_instance *instance) in megasas_alloc_ctrl_mem()
7169 static inline void megasas_free_ctrl_mem(struct megasas_instance *instance) in megasas_free_ctrl_mem()
7195 int megasas_alloc_ctrl_dma_buffers(struct megasas_instance *instance) in megasas_alloc_ctrl_dma_buffers()
7331 void megasas_free_ctrl_dma_buffers(struct megasas_instance *instance) in megasas_free_ctrl_dma_buffers()
7406 static inline void megasas_init_ctrl_params(struct megasas_instance *instance) in megasas_init_ctrl_params()
7462 struct megasas_instance *instance; in megasas_probe_one()
7506 sizeof(struct megasas_instance)); in megasas_probe_one()
7513 instance = (struct megasas_instance *)host->hostdata; in megasas_probe_one()
7639 static void megasas_flush_cache(struct megasas_instance *instance) in megasas_flush_cache()
7681 static void megasas_shutdown_controller(struct megasas_instance *instance, in megasas_shutdown_controller()
7735 struct megasas_instance *instance; in megasas_suspend()
7786 struct megasas_instance *instance; in megasas_resume()
7926 megasas_wait_for_adapter_operational(struct megasas_instance *instance) in megasas_wait_for_adapter_operational()
7962 struct megasas_instance *instance; in megasas_detach_one()
8097 struct megasas_instance *instance = pci_get_drvdata(pdev); in megasas_shutdown()
8193 struct megasas_instance *local_instance; in megasas_set_crash_dump_params_ioctl()
8230 megasas_mgmt_fw_ioctl(struct megasas_instance *instance, in megasas_mgmt_fw_ioctl()
8517 struct megasas_instance *instance; in megasas_mgmt_ioctl_fw()
8572 struct megasas_instance *instance; in megasas_mgmt_ioctl_aen()
8757 int megasas_update_device_list(struct megasas_instance *instance, in megasas_update_device_list()
8790 void megasas_add_remove_devices(struct megasas_instance *instance, in megasas_add_remove_devices()
8874 struct megasas_instance *instance = ev->instance; in megasas_aen_polling()