Lines Matching defs:fw_device

98    SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T *)
114 fw_device->domain = fw_domain;
115 fw_device->destruct_when_stopped = FALSE;
116 //fw_device->parent.is_failed = FALSE;
117 fw_device->operation_status = SCI_SUCCESS;
118 fw_device->request_count = 0;
119 fw_device->task_request_count = 0;
120 fw_device->is_currently_discovered = TRUE;
121 fw_device->containing_device = NULL;
122 fw_device->device_port_width = 1;
123 fw_device->expander_phy_identifier = 0;
124 fw_device->destination_state =
126 fw_device->ea_target_reset_request_scheduled = NULL;
131 &fw_device->parent,
137 &fw_device->starting_substate_machine,
138 &fw_device->parent.parent,
144 &fw_device->ready_substate_machine,
145 &fw_device->parent.parent,
150 scif_sas_remote_device_initialize_state_logging(fw_device);
155 &fw_device->core_object
161 sci_object_set_association(fw_device->core_object, fw_device);
173 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T *)
177 sci_base_object_get_logger(fw_device),
185 if (scif_domain_get_device_by_sas_address(fw_device->domain, sas_address)
190 scic_port_get_properties(fw_device->domain->core_object, &properties);
197 SCI_GET_BITS_SET_COUNT(properties.phy_mask, fw_device->device_port_width);
199 status = scic_remote_device_da_construct(fw_device->core_object);
213 &fw_device->domain->remote_device_list, fw_device
218 scif_sas_stp_remote_device_construct(fw_device);
220 scif_sas_smp_remote_device_construct(fw_device);
223 sci_base_object_get_logger(fw_device),
226 fw_device->domain, sas_address->low, sas_address->high
229 status = fw_device->state_handlers->parent.start_handler(
230 &fw_device->parent
236 sci_base_object_get_logger(fw_device),
239 fw_device->domain, sas_address->low, sas_address->high, status
256 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T *)
261 fw_device->containing_device = fw_smp_device;
262 fw_device->expander_phy_identifier =
268 sci_base_object_get_logger(fw_device),
276 if (scif_domain_get_device_by_sas_address(fw_device->domain, sas_address)
281 status = scic_remote_device_ea_construct(fw_device->core_object, smp_response);
290 &fw_device->domain->remote_device_list, fw_device
294 scif_sas_smp_remote_device_construct(fw_device);
296 scif_sas_stp_remote_device_construct(fw_device);
299 sci_base_object_get_logger(fw_device),
302 fw_device->domain, sas_address->low, sas_address->high
306 if ( scic_remote_device_get_connection_rate(fw_device->core_object) !=
309 status = fw_device->state_handlers->parent.start_handler(
310 &fw_device->parent
317 sci_base_object_get_logger(fw_device),
320 fw_device->domain, sas_address->low, sas_address->high, status
333 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T*)
337 sci_base_object_get_logger(fw_device),
344 fw_device->domain->state_handlers->device_destruct_handler(
345 &fw_device->domain->parent, &fw_device->parent
351 return fw_device->state_handlers->parent.destruct_handler(
352 &fw_device->parent
362 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T*)
365 if ( (fw_device == NULL) || (fw_device->core_object == SCI_INVALID_HANDLE) )
369 sci_base_object_get_logger(fw_device),
372 fw_device
375 return fw_device->core_object;
386 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T*)
390 sci_base_object_get_logger(fw_device),
396 fw_device->state_handlers->start_complete_handler(
397 fw_device, completion_status
409 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T*)
413 sci_base_object_get_logger(fw_device),
419 fw_device->state_handlers->stop_complete_handler(
420 fw_device, completion_status
431 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T*)
434 fw_device->state_handlers->ready_handler(fw_device);
445 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T*)
448 fw_device->state_handlers->not_ready_handler(fw_device,reason_code);
457 SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T*)
461 scic_remote_device_get_protocols(fw_device->core_object, &protocols);
467 if (fw_device->protocol_device.stp_device.sati_device.capabilities
470 return fw_device->protocol_device.stp_device.sati_device.ncq_depth;
523 SCIF_SAS_REMOTE_DEVICE_T * fw_device
526 fw_device->parent.is_failed = TRUE;
528 &fw_device->parent.state_machine, SCI_BASE_REMOTE_DEVICE_STATE_STOPPING
560 * @param[in] fw_device, the target device to be hard reset.
565 SCIF_SAS_REMOTE_DEVICE_T * fw_device,
570 sci_base_object_get_logger(fw_device),
572 "scif_sas_remote_device_target_reset! fw_device:0x%x fw_request:0x%x\n",
573 fw_device, fw_request
576 if (fw_device->containing_device == NULL)
580 port = scif_domain_get_scic_port_handle(fw_device->domain);
586 scic_remote_device_get_suggested_reset_timeout(fw_device->core_object)
592 if ( fw_device->containing_device->protocol_device.smp_device.current_activity
598 sci_base_object_get_logger(fw_device),
600 "scif_sas_remote_device_target_reset DELAYED! fw_device:0x%x fw_request:0x%x\n",
601 fw_device, fw_request
604 fw_device->ea_target_reset_request_scheduled = fw_request;
610 fw_device->containing_device, fw_device, fw_request);
613 scic_remote_device_reset(fw_device->core_object);
620 * @param[in] fw_device, the target device to be hard reset.
626 SCIF_SAS_REMOTE_DEVICE_T * fw_device,
632 sci_base_object_get_logger(fw_device),
635 "fw_device:0x%x fw_request:0x%x completion_status 0x%x\n",
636 fw_device, fw_request, completion_status
640 fw_device->domain->controller,
641 fw_device,
646 scic_remote_device_reset_complete(fw_device->core_object);
649 if (fw_device->containing_device != NULL)
655 scif_sas_smp_remote_device_clear(fw_device->containing_device);
657 if( (next_device = scif_sas_domain_find_next_ea_target_reset(fw_device->domain))
671 if (fw_device->domain->parent.state_machine.current_state_id ==
674 SCIF_SAS_REMOTE_DEVICE_T * top_expander = fw_device->containing_device;
679 scif_sas_domain_start_smp_discover(fw_device->domain, top_expander);
686 fw_device->domain->controller, fw_device->domain );
695 fw_device->domain->controller, fw_device->domain );
701 SCIF_SAS_REMOTE_DEVICE_T * fw_device,
706 sci_base_object_get_logger(fw_device),
709 fw_device, new_port_width
712 fw_device->device_port_width = new_port_width;
716 if (fw_device->parent.state_machine.current_state_id == SCI_BASE_REMOTE_DEVICE_STATE_READY)
718 if (fw_device->device_port_width != 0)
722 &fw_device->parent.state_machine,
729 else if (fw_device->parent.state_machine.current_state_id ==
732 fw_device->destination_state =