Lines Matching refs:fusion
349 struct fusion_context *fusion = instance->ctrl_context; in megasas_return_cmd() local
359 if (fusion) { in megasas_return_cmd()
361 cmd_fusion = fusion->cmd_list[blk_tags]; in megasas_return_cmd()
369 if (!fusion && reset_devices) in megasas_return_cmd()
1896 struct fusion_context *fusion; in megasas_set_dynamic_target_properties() local
1903 fusion = instance->ctrl_context; in megasas_set_dynamic_target_properties()
1906 if (!fusion || !mr_device_priv_data) in megasas_set_dynamic_target_properties()
1912 local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)]; in megasas_set_dynamic_target_properties()
1930 pd_sync = (void *)fusion->pd_seq_sync in megasas_set_dynamic_target_properties()
2188 struct fusion_context *fusion = instance->ctrl_context; in megasas_complete_outstanding_ioctls() local
2191 if (fusion) { in megasas_complete_outstanding_ioctls()
2193 cmd_fusion = fusion->cmd_list[i]; in megasas_complete_outstanding_ioctls()
3605 struct fusion_context *fusion = instance->ctrl_context; in megasas_complete_cmd() local
3716 fusion->fast_path_io = 0; in megasas_complete_cmd()
3743 fusion->fast_path_io = 1; in megasas_complete_cmd()
3745 fusion->fast_path_io = 0; in megasas_complete_cmd()
5119 struct fusion_context *fusion; in megasas_update_ext_vd_details() local
5122 fusion = instance->ctrl_context; in megasas_update_ext_vd_details()
5124 if (!fusion) in megasas_update_ext_vd_details()
5153 fusion->current_map_sz = ventura_map_sz; in megasas_update_ext_vd_details()
5154 fusion->max_map_sz = ventura_map_sz; in megasas_update_ext_vd_details()
5156 fusion->old_map_sz = in megasas_update_ext_vd_details()
5159 fusion->new_map_sz = sizeof(struct MR_FW_RAID_MAP_EXT); in megasas_update_ext_vd_details()
5161 fusion->max_map_sz = in megasas_update_ext_vd_details()
5162 max(fusion->old_map_sz, fusion->new_map_sz); in megasas_update_ext_vd_details()
5165 fusion->current_map_sz = fusion->new_map_sz; in megasas_update_ext_vd_details()
5167 fusion->current_map_sz = fusion->old_map_sz; in megasas_update_ext_vd_details()
5170 fusion->drv_map_sz = sizeof(struct MR_DRV_RAID_MAP_ALL); in megasas_update_ext_vd_details()
5790 struct fusion_context *fusion = instance->ctrl_context; in megasas_setup_jbod_map() local
5798 if (reset_devices || !fusion || in megasas_setup_jbod_map()
5807 if (fusion->pd_seq_sync[0]) in megasas_setup_jbod_map()
5811 fusion->pd_seq_sync[i] = dma_alloc_coherent in megasas_setup_jbod_map()
5813 &fusion->pd_seq_phys[i], GFP_KERNEL); in megasas_setup_jbod_map()
5814 if (!fusion->pd_seq_sync[i]) { in megasas_setup_jbod_map()
5820 pd_seq_map_sz, fusion->pd_seq_sync[0], in megasas_setup_jbod_map()
5821 fusion->pd_seq_phys[0]); in megasas_setup_jbod_map()
5822 fusion->pd_seq_sync[0] = NULL; in megasas_setup_jbod_map()
6025 struct fusion_context *fusion; in megasas_init_fw() local
6030 fusion = instance->ctrl_context; in megasas_init_fw()
6122 fusion = instance->ctrl_context; in megasas_init_fw()
6137 fusion->pcie_bw_limitation = true; in megasas_init_fw()
6140 fusion->r56_div_offload = true; in megasas_init_fw()
6154 if (fusion) { in megasas_init_fw()
6256 fusion->pcie_bw_limitation = true; in megasas_init_fw()
6369 fusion->stream_detect_by_ld = in megasas_init_fw()
6373 if (!fusion->stream_detect_by_ld) { in megasas_init_fw()
6379 fusion->stream_detect_by_ld[i] = in megasas_init_fw()
6382 if (!fusion->stream_detect_by_ld[i]) { in megasas_init_fw()
6386 kfree(fusion->stream_detect_by_ld[j]); in megasas_init_fw()
6387 kfree(fusion->stream_detect_by_ld); in megasas_init_fw()
6388 fusion->stream_detect_by_ld = NULL; in megasas_init_fw()
6391 fusion->stream_detect_by_ld[i]->mru_bit_map in megasas_init_fw()
6420 struct fusion_context *fusion = instance->ctrl_context; in megasas_init_fw() local
6422 fusion->fast_path_io = 1; in megasas_init_fw()
6424 fusion->fast_path_io = 0; in megasas_init_fw()
7198 struct fusion_context *fusion = instance->ctrl_context; in megasas_alloc_ctrl_dma_buffers() local
7210 if (fusion) { in megasas_alloc_ctrl_dma_buffers()
7211 fusion->ioc_init_request = in megasas_alloc_ctrl_dma_buffers()
7214 &fusion->ioc_init_request_phys, in megasas_alloc_ctrl_dma_buffers()
7217 if (!fusion->ioc_init_request) { in megasas_alloc_ctrl_dma_buffers()
7334 struct fusion_context *fusion = instance->ctrl_context; in megasas_free_ctrl_dma_buffers() local
7341 if (fusion && fusion->ioc_init_request) in megasas_free_ctrl_dma_buffers()
7344 fusion->ioc_init_request, in megasas_free_ctrl_dma_buffers()
7345 fusion->ioc_init_request_phys); in megasas_free_ctrl_dma_buffers()
7963 struct fusion_context *fusion; in megasas_detach_one() local
7972 fusion = instance->ctrl_context; in megasas_detach_one()
8028 kfree(fusion->stream_detect_by_ld[i]); in megasas_detach_one()
8029 kfree(fusion->stream_detect_by_ld); in megasas_detach_one()
8030 fusion->stream_detect_by_ld = NULL; in megasas_detach_one()
8040 if (fusion->ld_map[i]) in megasas_detach_one()
8042 fusion->max_map_sz, in megasas_detach_one()
8043 fusion->ld_map[i], in megasas_detach_one()
8044 fusion->ld_map_phys[i]); in megasas_detach_one()
8045 if (fusion->ld_drv_map[i]) { in megasas_detach_one()
8046 if (is_vmalloc_addr(fusion->ld_drv_map[i])) in megasas_detach_one()
8047 vfree(fusion->ld_drv_map[i]); in megasas_detach_one()
8049 free_pages((ulong)fusion->ld_drv_map[i], in megasas_detach_one()
8050 fusion->drv_map_pages); in megasas_detach_one()
8053 if (fusion->pd_seq_sync[i]) in megasas_detach_one()
8056 fusion->pd_seq_sync[i], in megasas_detach_one()
8057 fusion->pd_seq_phys[i]); in megasas_detach_one()