Lines Matching refs:fw_controller

88    SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller;  in scif_controller_construct()  local
104 &fw_controller->parent, in scif_controller_construct()
107 fw_controller->mdes, in scif_controller_construct()
109 sci_controller_get_memory_descriptor_list_handle(fw_controller->core_object) in scif_controller_construct()
112 scif_sas_controller_initialize_state_logging(fw_controller); in scif_controller_construct()
114 sci_object_set_association(fw_controller, user_object); in scif_controller_construct()
117 fw_library->core_object, fw_controller->core_object, fw_controller in scif_controller_construct()
127 (SCI_OBJECT_HANDLE_T) fw_controller->core_object, fw_controller in scif_controller_construct()
131 &fw_controller->parent.state_machine, in scif_controller_construct()
145 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_initialize() local
158 return fw_controller->state_handlers->initialize_handler( in scif_controller_initialize()
159 &fw_controller->parent in scif_controller_initialize()
169 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_get_suggested_start_timeout() local
178 return scic_controller_get_suggested_start_timeout(fw_controller->core_object); in scif_controller_get_suggested_start_timeout()
188 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_start() local
201 return fw_controller->state_handlers-> in scif_controller_start()
202 start_handler(&fw_controller->parent, timeout); in scif_controller_start()
212 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_stop() local
225 return fw_controller->state_handlers-> in scif_controller_stop()
226 stop_handler(&fw_controller->parent, timeout); in scif_controller_stop()
236 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_reset() local
249 return fw_controller->state_handlers-> in scif_controller_reset()
250 reset_handler(&fw_controller->parent); in scif_controller_reset()
259 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_get_scic_handle() local
261 return fw_controller->core_object; in scif_controller_get_scic_handle()
273 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_start_io() local
284 sci_pool_empty(fw_controller->hprq.pool) in scif_controller_start_io()
288 status = fw_controller->state_handlers->start_io_handler( in scif_controller_start_io()
310 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_start_task() local
330 status = fw_controller->state_handlers->start_task_handler( in scif_controller_start_task()
351 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_complete_io() local
360 return fw_controller->state_handlers->complete_io_handler( in scif_controller_complete_io()
375 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_complete_task() local
392 return fw_controller->state_handlers->complete_task_handler( in scif_controller_complete_task()
407 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_get_domain_handle() local
416 *domain_handle = &fw_controller->domains[port_index]; in scif_controller_get_domain_handle()
433 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_build_mdl() argument
438 &fw_controller->mdes[SCIF_SAS_MDE_INTERNAL_IO], in scif_sas_controller_build_mdl()
440 fw_controller->internal_request_entries * in scif_sas_controller_build_mdl()
453 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_controller_set_mode() local
457 (fw_controller->parent.state_machine.current_state_id in scif_controller_set_mode()
459 || (fw_controller->parent.state_machine.current_state_id in scif_controller_set_mode()
466 fw_controller->internal_request_entries = in scif_controller_set_mode()
467 MIN(fw_controller->internal_request_entries, SCIF_SAS_MAX_INTERNAL_REQUEST_COUNT); in scif_controller_set_mode()
468 scif_sas_controller_build_mdl(fw_controller); in scif_controller_set_mode()
472 fw_controller->internal_request_entries = in scif_controller_set_mode()
473 MIN(fw_controller->internal_request_entries, SCIF_SAS_MIN_INTERNAL_REQUEST_COUNT); in scif_controller_set_mode()
474 scif_sas_controller_build_mdl(fw_controller); in scif_controller_set_mode()
493 return scic_controller_set_mode(fw_controller->core_object, mode); in scif_controller_set_mode()
524 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_user_parameters_set() local
558 memcpy((&fw_controller->user_parameters), scif_parms, sizeof(*scif_parms)); in scif_user_parameters_set()
581 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_is_overriding_interrupt_coalescence() argument
588 if(fw_controller->domains[index].parent.state_machine.current_state_id == in scif_sas_controller_is_overriding_interrupt_coalescence()
602 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T * )controller; in scif_controller_set_interrupt_coalescence() local
608 if (scif_sas_controller_is_overriding_interrupt_coalescence(fw_controller)) in scif_controller_set_interrupt_coalescence()
616 fw_controller->core_object, &curr_coalesce_number, &curr_coalesce_timeout); in scif_controller_set_interrupt_coalescence()
621 fw_controller->core_object, coalesce_number, coalesce_timeout); in scif_controller_set_interrupt_coalescence()
625 fw_controller->saved_interrupt_coalesce_number = (U16)coalesce_number; in scif_controller_set_interrupt_coalescence()
626 fw_controller->saved_interrupt_coalesce_timeout = coalesce_timeout; in scif_controller_set_interrupt_coalescence()
631 fw_controller->core_object, curr_coalesce_number, curr_coalesce_timeout); in scif_controller_set_interrupt_coalescence()
640 fw_controller->core_object, coalesce_number, coalesce_timeout); in scif_controller_set_interrupt_coalescence()
669 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_save_interrupt_coalescence() argument
672 if ( !scif_sas_controller_is_overriding_interrupt_coalescence(fw_controller)) in scif_sas_controller_save_interrupt_coalescence()
678 fw_controller->core_object, in scif_sas_controller_save_interrupt_coalescence()
679 (U32*)&(fw_controller->saved_interrupt_coalesce_number), in scif_sas_controller_save_interrupt_coalescence()
680 &(fw_controller->saved_interrupt_coalesce_timeout) in scif_sas_controller_save_interrupt_coalescence()
684 scic_controller_set_interrupt_coalescence(fw_controller->core_object,0,0); in scif_sas_controller_save_interrupt_coalescence()
699 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_restore_interrupt_coalescence() argument
702 if ( !scif_sas_controller_is_overriding_interrupt_coalescence(fw_controller)) in scif_sas_controller_restore_interrupt_coalescence()
704 fw_controller->core_object, in scif_sas_controller_restore_interrupt_coalescence()
705 fw_controller->saved_interrupt_coalesce_number, in scif_sas_controller_restore_interrupt_coalescence()
706 fw_controller->saved_interrupt_coalesce_timeout in scif_sas_controller_restore_interrupt_coalescence()
719 SCIF_SAS_CONTROLLER_T *fw_controller = (SCIF_SAS_CONTROLLER_T*) in scic_cb_controller_start_complete() local
735 &fw_controller->parent.state_machine, in scic_cb_controller_start_complete()
740 scif_cb_controller_start_complete(fw_controller, completion_status); in scic_cb_controller_start_complete()
750 SCIF_SAS_CONTROLLER_T *fw_controller = (SCIF_SAS_CONTROLLER_T*) in scic_cb_controller_stop_complete() local
763 &fw_controller->parent.state_machine, in scic_cb_controller_stop_complete()
770 &fw_controller->parent.state_machine, in scic_cb_controller_stop_complete()
775 scif_cb_controller_stop_complete(fw_controller, completion_status); in scic_cb_controller_stop_complete()
786 SCIF_SAS_CONTROLLER_T *fw_controller = (SCIF_SAS_CONTROLLER_T*) in scic_cb_controller_error() local
789 fw_controller->parent.error = error; in scic_cb_controller_error()
799 &fw_controller->parent.state_machine, in scic_cb_controller_error()
830 SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T*) controller; in scif_sas_controller_continue_io() local
832 return fw_controller->state_handlers->continue_io_handler( in scif_sas_controller_continue_io()
850 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_destruct() argument
854 sci_base_object_get_logger(fw_controller), in scif_sas_controller_destruct()
857 fw_controller in scif_sas_controller_destruct()
874 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_allocate_internal_request() argument
879 if( !sci_pool_empty(fw_controller->internal_request_memory_pool) ) in scif_sas_controller_allocate_internal_request()
882 fw_controller->internal_request_memory_pool, internal_io_address in scif_sas_controller_allocate_internal_request()
903 SCIF_SAS_CONTROLLER_T * fw_controller, in scif_sas_controller_free_internal_request() argument
908 sci_base_object_get_logger(fw_controller), in scif_sas_controller_free_internal_request()
911 fw_controller, fw_internal_request_buffer in scif_sas_controller_free_internal_request()
915 if( !sci_pool_full(fw_controller->internal_request_memory_pool) ) in scif_sas_controller_free_internal_request()
918 fw_controller->internal_request_memory_pool, in scif_sas_controller_free_internal_request()
933 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_start_high_priority_io() argument
941 sci_base_object_get_logger(fw_controller), in scif_sas_controller_start_high_priority_io()
944 fw_controller in scif_sas_controller_start_high_priority_io()
947 while ( !sci_pool_empty(fw_controller->hprq.pool) ) in scif_sas_controller_start_high_priority_io()
949 sci_pool_get(fw_controller->hprq.pool, io_address); in scif_sas_controller_start_high_priority_io()
953 status = fw_controller->state_handlers->start_high_priority_io_handler( in scif_sas_controller_start_high_priority_io()
954 (SCI_BASE_CONTROLLER_T*) fw_controller, in scif_sas_controller_start_high_priority_io()
974 SCIF_SAS_CONTROLLER_T *fw_controller in scif_sas_controller_sufficient_resource() argument
984 fw_domain = &fw_controller->domains[domain_index]; in scif_sas_controller_sufficient_resource()
988 high_priority_io_count = sci_pool_count(fw_controller->hprq.pool); in scif_sas_controller_sufficient_resource()
1009 SCIF_SAS_CONTROLLER_T *fw_controller, in scif_sas_controller_complete_high_priority_io() argument
1015 sci_base_object_get_logger(fw_controller), in scif_sas_controller_complete_high_priority_io()
1018 fw_controller, remote_device, io_request in scif_sas_controller_complete_high_priority_io()
1022 return fw_controller->state_handlers->complete_high_priority_io_handler( in scif_sas_controller_complete_high_priority_io()
1023 (SCI_BASE_CONTROLLER_T*) fw_controller, in scif_sas_controller_complete_high_priority_io()
1039 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_allocate_smp_phy() argument
1045 sci_base_object_get_logger(fw_controller), in scif_sas_controller_allocate_smp_phy()
1048 fw_controller in scif_sas_controller_allocate_smp_phy()
1051 if( !sci_fast_list_is_empty(&fw_controller->smp_phy_memory_list) ) in scif_sas_controller_allocate_smp_phy()
1054 sci_fast_list_remove_head(&fw_controller->smp_phy_memory_list); in scif_sas_controller_allocate_smp_phy()
1078 SCIF_SAS_CONTROLLER_T * fw_controller, in scif_sas_controller_free_smp_phy() argument
1083 sci_base_object_get_logger(fw_controller), in scif_sas_controller_free_smp_phy()
1086 fw_controller, smp_phy in scif_sas_controller_free_smp_phy()
1091 &fw_controller->smp_phy_memory_list, in scif_sas_controller_free_smp_phy()
1111 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_clear_affiliation() argument
1119 sci_base_object_get_logger(fw_controller), in scif_sas_controller_clear_affiliation()
1122 fw_controller in scif_sas_controller_clear_affiliation()
1125 index = fw_controller->current_domain_to_clear_affiliation; in scif_sas_controller_clear_affiliation()
1129 fw_domain = &fw_controller->domains[index]; in scif_sas_controller_clear_affiliation()
1140 scif_sas_controller_continue_to_stop(fw_controller); in scif_sas_controller_clear_affiliation()
1189 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_release_resource() argument
1196 sci_base_object_get_logger(fw_controller), in scif_sas_controller_release_resource()
1199 fw_controller in scif_sas_controller_release_resource()
1205 fw_domain = &fw_controller->domains[index]; in scif_sas_controller_release_resource()
1207 scif_sas_domain_release_resource(fw_controller, fw_domain); in scif_sas_controller_release_resource()
1225 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_initialize_state_logging() argument
1229 &fw_controller->parent.state_machine_logger, in scif_sas_controller_initialize_state_logging()
1230 &fw_controller->parent.state_machine, in scif_sas_controller_initialize_state_logging()
1231 &fw_controller->parent.parent, in scif_sas_controller_initialize_state_logging()
1247 SCIF_SAS_CONTROLLER_T * fw_controller in scif_sas_controller_deinitialize_state_logging() argument
1251 &fw_controller->parent.state_machine_logger, in scif_sas_controller_deinitialize_state_logging()
1252 &fw_controller->parent.state_machine in scif_sas_controller_deinitialize_state_logging()