/** * @brief This method releases resource for a framework domain. * * @param[in] fw_controller This parameter specifies the framework * controller, its associated domain's resources are to be released. * @param[in] fw_domain This parameter specifies the framework * domain whose resources are to be released. */ void scif_sas_domain_release_resource( SCIF_SAS_CONTROLLER_T * fw_controller, SCIF_SAS_DOMAIN_T * fw_domain ) { if (fw_domain->operation.timer != NULL) { scif_cb_timer_destroy(fw_controller, fw_domain->operation.timer); fw_domain->operation.timer = NULL; } }
/** * @brief This methods takes care of destruction of an internal request about its * "internal" related feature, including the memory recycling and timer. * * @param[in] fw_controller The framework controller object. * @param[in] fw_internal_io The internal io to be completed. * * @return none */ void scif_sas_internal_io_request_destruct( SCIF_SAS_CONTROLLER_T * fw_controller, SCIF_SAS_INTERNAL_IO_REQUEST_T * fw_internal_io ) { if (fw_internal_io->internal_io_timer != NULL) { scif_cb_timer_destroy(fw_controller, fw_internal_io->internal_io_timer); fw_internal_io->internal_io_timer = NULL; } scif_sas_controller_free_internal_request(fw_controller, fw_internal_io); }
void scic_cb_timer_destroy( SCI_CONTROLLER_HANDLE_T controller, void * timer ) { SCIF_SAS_CONTROLLER_T * fw_controller = (SCIF_SAS_CONTROLLER_T *) sci_object_get_association(controller); if (timer != NULL) { scif_cb_timer_destroy(fw_controller, timer); timer = NULL; } }