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()
1975 struct megasas_instance *instance; in megasas_set_nvme_device_properties()
1978 instance = (struct megasas_instance *)sdev->host->hostdata; in megasas_set_nvme_device_properties()
2000 struct megasas_instance *instance; in megasas_set_fw_assisted_qd()
2048 struct megasas_instance *instance; in megasas_set_static_target_properties()
2075 struct megasas_instance *instance; in megasas_device_configure()
2115 struct megasas_instance *instance ; in megasas_slave_alloc()
2160 struct megasas_instance *instance; in megasas_slave_destroy()
2186 static void megasas_complete_outstanding_ioctls(struct megasas_instance *instance) in megasas_complete_outstanding_ioctls()
2219 void megaraid_sas_kill_hba(struct megasas_instance *instance) in megaraid_sas_kill_hba()
2256 megasas_check_and_restore_queue_depth(struct megasas_instance *instance) in megasas_check_and_restore_queue_depth()
2285 struct megasas_instance *instance = in megasas_complete_cmd_dpc()
2286 (struct megasas_instance *)instance_addr; in megasas_complete_cmd_dpc()
2333 void megasas_start_timer(struct megasas_instance *instance) in megasas_start_timer()
2343 megasas_internal_reset_defer_cmds(struct megasas_instance *instance);
2348 static void megasas_do_ocr(struct megasas_instance *instance) in megasas_do_ocr()
2364 static int megasas_get_ld_vf_affiliation_111(struct megasas_instance *instance, in megasas_get_ld_vf_affiliation_111()
2470 static int megasas_get_ld_vf_affiliation_12(struct megasas_instance *instance, in megasas_get_ld_vf_affiliation_12()
2636 static int megasas_get_ld_vf_affiliation(struct megasas_instance *instance, in megasas_get_ld_vf_affiliation()
2649 int megasas_sriov_start_heartbeat(struct megasas_instance *instance, in megasas_sriov_start_heartbeat()
2724 struct megasas_instance *instance = in megasas_sriov_heartbeat_handler()
2748 static int megasas_wait_for_outstanding(struct megasas_instance *instance) in megasas_wait_for_outstanding()
2905 struct megasas_instance *instance; in megasas_generic_reset()
2907 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_generic_reset()
2935 struct megasas_instance *instance; in megasas_reset_timer()
2943 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_timer()
3006 struct megasas_instance *instance; in megasas_dump_fusion_io()
3008 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_dump_fusion_io()
3065 struct megasas_instance *instance; in megasas_reset_bus_host()
3067 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_bus_host()
3099 struct megasas_instance *instance; in megasas_task_abort()
3101 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_task_abort()
3121 struct megasas_instance *instance; in megasas_reset_target()
3123 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_target()
3181 struct megasas_instance *instance; in megasas_map_queues()
3185 instance = (struct megasas_instance *)shost->hostdata; in megasas_map_queues()
3231 megasas_service_aen(struct megasas_instance *instance, struct megasas_cmd *cmd) in megasas_service_aen()
3274 struct megasas_instance *instance = in fw_crash_buffer_store()
3275 (struct megasas_instance *) shost->hostdata; in fw_crash_buffer_store()
3292 struct megasas_instance *instance = in fw_crash_buffer_show()
3293 (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()
3382 struct megasas_instance *instance = in fw_crash_state_show()
3383 (struct megasas_instance *) shost->hostdata; in fw_crash_state_show()
3400 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in ldio_outstanding_show()
3410 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in fw_cmds_outstanding_show()
3420 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in enable_sdev_max_qd_show()
3430 struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; in enable_sdev_max_qd_store()
3462 struct megasas_instance *instance = in dump_system_regs_show()
3463 (struct megasas_instance *)shost->hostdata; in dump_system_regs_show()
3473 struct megasas_instance *instance = in raid_map_id_show()
3474 (struct megasas_instance *)shost->hostdata; in raid_map_id_show()
3540 megasas_complete_int_cmd(struct megasas_instance *instance, in megasas_complete_int_cmd()
3561 megasas_complete_abort(struct megasas_instance *instance, in megasas_complete_abort()
3572 megasas_set_ld_removed_by_fw(struct megasas_instance *instance) in megasas_set_ld_removed_by_fw()
3598 megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd, in megasas_complete_cmd()
3815 megasas_issue_pending_cmds_again(struct megasas_instance *instance) in megasas_issue_pending_cmds_again()
3908 megasas_internal_reset_defer_cmds(struct megasas_instance *instance) in megasas_internal_reset_defer_cmds()
3945 struct megasas_instance *instance = in process_fw_state_change_wq()
3946 container_of(work, struct megasas_instance, work_init); in process_fw_state_change_wq()
4017 megasas_deplete_reply_queue(struct megasas_instance *instance, in megasas_deplete_reply_queue()
4091 struct megasas_instance *instance = irq_context->instance; in megasas_isr()
4116 megasas_transition_to_ready(struct megasas_instance *instance, int ocr) in megasas_transition_to_ready()
4286 static void megasas_teardown_frame_pool(struct megasas_instance *instance) in megasas_teardown_frame_pool()
4330 static int megasas_create_frame_pool(struct megasas_instance *instance) in megasas_create_frame_pool()
4416 void megasas_free_cmds(struct megasas_instance *instance) in megasas_free_cmds()
4453 int megasas_alloc_cmds(struct megasas_instance *instance) in megasas_alloc_cmds()
4520 dcmd_timeout_ocr_possible(struct megasas_instance *instance) { in dcmd_timeout_ocr_possible()
4533 megasas_get_pd_info(struct megasas_instance *instance, struct scsi_device *sdev) in megasas_get_pd_info()
4619 megasas_get_pd_list(struct megasas_instance *instance) in megasas_get_pd_list()
4754 megasas_get_ld_list(struct megasas_instance *instance) in megasas_get_ld_list()
4871 megasas_ld_list_query(struct megasas_instance *instance, u8 query_type) in megasas_ld_list_query()
4992 megasas_host_device_list_query(struct megasas_instance *instance, in megasas_host_device_list_query()
5116 static void megasas_update_ext_vd_details(struct megasas_instance *instance) in megasas_update_ext_vd_details()
5179 void megasas_get_snapdump_properties(struct megasas_instance *instance) in megasas_get_snapdump_properties()
5264 megasas_get_ctrl_info(struct megasas_instance *instance) in megasas_get_ctrl_info()
5417 int megasas_set_crash_dump_params(struct megasas_instance *instance, in megasas_set_crash_dump_params()
5482 megasas_issue_init_mfi(struct megasas_instance *instance) in megasas_issue_init_mfi()
5552 megasas_init_adapter_mfi(struct megasas_instance *instance) in megasas_init_adapter_mfi()
5647 void megasas_setup_irq_poll(struct megasas_instance *instance) in megasas_setup_irq_poll()
5674 megasas_setup_irqs_ioapic(struct megasas_instance *instance) in megasas_setup_irqs_ioapic()
5706 megasas_setup_irqs_msix(struct megasas_instance *instance, u8 is_probe) in megasas_setup_irqs_msix()
5752 megasas_destroy_irqs(struct megasas_instance *instance) { in megasas_destroy_irqs()
5786 megasas_setup_jbod_map(struct megasas_instance *instance) in megasas_setup_jbod_map()
5836 static void megasas_setup_reply_map(struct megasas_instance *instance) in megasas_setup_reply_map()
5874 int megasas_get_device_list(struct megasas_instance *instance) in megasas_get_device_list()
5902 megasas_set_high_iops_queue_affinity_and_hint(struct megasas_instance *instance) in megasas_set_high_iops_queue_affinity_and_hint()
5919 __megasas_alloc_irq_vectors(struct megasas_instance *instance) in __megasas_alloc_irq_vectors()
5948 megasas_alloc_irq_vectors(struct megasas_instance *instance) in megasas_alloc_irq_vectors()
6013 static int megasas_init_fw(struct megasas_instance *instance) in megasas_init_fw()
6551 static void megasas_release_mfi(struct megasas_instance *instance) in megasas_release_mfi()
6579 megasas_get_seq_num(struct megasas_instance *instance, in megasas_get_seq_num()
6653 megasas_register_aen(struct megasas_instance *instance, u32 seq_num, in megasas_register_aen()
6795 megasas_get_target_prop(struct megasas_instance *instance, in megasas_get_target_prop()
6875 static int megasas_start_aen(struct megasas_instance *instance) in megasas_start_aen()
6904 static int megasas_io_attach(struct megasas_instance *instance) in megasas_io_attach()
7004 megasas_set_dma_mask(struct megasas_instance *instance) in megasas_set_dma_mask()
7069 static inline void megasas_set_adapter_type(struct megasas_instance *instance) in megasas_set_adapter_type()
7109 static inline int megasas_alloc_mfi_ctrl_mem(struct megasas_instance *instance) in megasas_alloc_mfi_ctrl_mem()
7137 static int megasas_alloc_ctrl_mem(struct megasas_instance *instance) in megasas_alloc_ctrl_mem()
7168 static inline void megasas_free_ctrl_mem(struct megasas_instance *instance) in megasas_free_ctrl_mem()
7194 int megasas_alloc_ctrl_dma_buffers(struct megasas_instance *instance) in megasas_alloc_ctrl_dma_buffers()
7330 void megasas_free_ctrl_dma_buffers(struct megasas_instance *instance) in megasas_free_ctrl_dma_buffers()
7405 static inline void megasas_init_ctrl_params(struct megasas_instance *instance) in megasas_init_ctrl_params()
7461 struct megasas_instance *instance; in megasas_probe_one()
7505 sizeof(struct megasas_instance)); in megasas_probe_one()
7512 instance = (struct megasas_instance *)host->hostdata; in megasas_probe_one()
7638 static void megasas_flush_cache(struct megasas_instance *instance) in megasas_flush_cache()
7680 static void megasas_shutdown_controller(struct megasas_instance *instance, in megasas_shutdown_controller()
7734 struct megasas_instance *instance; in megasas_suspend()
7785 struct megasas_instance *instance; in megasas_resume()
7925 megasas_wait_for_adapter_operational(struct megasas_instance *instance) in megasas_wait_for_adapter_operational()
7961 struct megasas_instance *instance; in megasas_detach_one()
8096 struct megasas_instance *instance = pci_get_drvdata(pdev); in megasas_shutdown()
8192 struct megasas_instance *local_instance; in megasas_set_crash_dump_params_ioctl()
8229 megasas_mgmt_fw_ioctl(struct megasas_instance *instance, in megasas_mgmt_fw_ioctl()
8516 struct megasas_instance *instance; in megasas_mgmt_ioctl_fw()
8571 struct megasas_instance *instance; in megasas_mgmt_ioctl_aen()
8756 int megasas_update_device_list(struct megasas_instance *instance, in megasas_update_device_list()
8789 void megasas_add_remove_devices(struct megasas_instance *instance, in megasas_add_remove_devices()
8873 struct megasas_instance *instance = ev->instance; in megasas_aen_polling()