ap_state
void ap_state(apd_t *, cfga_stat_t *, cfga_stat_t *);
ap_state(a, &rs, &os);
ap_state(a, &rs, &os);
devctl_ap_state_t ap_state;
(void *)&ap_state);
*apstate = ap_state;
devctl_ap_state_t ap_state;
ap_state.ap_rstate = cbp->rstate;
ap_state.ap_ostate = cbp->ostate;
ap_state.ap_condition = cbp->condition;
ap_state.ap_last_change = 0;
ap_state.ap_error_code = 0;
ap_state.ap_in_transition = 0; /* AP is not busy */
ap_state.ap_in_transition = 1; /* AP is busy */
if (ndi_dc_return_ap_state(&ap_state, dcp) != NDI_SUCCESS)
ap_state.ap_rstate = slotinfop->rstate;
ap_state.ap_ostate = slotinfop->ostate;
ap_state.ap_condition = slotinfop->condition;
ap_state.ap_last_change = slotinfop->last_change;
ap_state.ap_error_code = 0; /* XXX */
ap_state.ap_in_transition = 0; /* AP is not busy */
ap_state.ap_in_transition = 1; /* AP is busy */
if (ndi_dc_return_ap_state(&ap_state, dcp) != NDI_SUCCESS)
devctl_ap_state_t ap_state;
ibnex_figure_ap_devstate(ibnex_node_data_t *nodep, devctl_ap_state_t *ap_state)
ap_state->ap_rstate = AP_RSTATE_CONNECTED;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_UNKNOWN;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_UNKNOWN;
ap_state->ap_ostate = AP_OSTATE_CONFIGURED;
ap_state->ap_condition = AP_COND_OK;
ap_state->ap_last_change = (time_t)-1;
ap_state->ap_error_code = 0;
ap_state->ap_in_transition = 0;
ibnex_figure_ib_apid_devstate(devctl_ap_state_t *ap_state)
ap_state->ap_rstate = AP_RSTATE_CONNECTED;
ap_state->ap_condition = AP_COND_OK;
ap_state->ap_ostate = (ibt_get_hca_list(NULL) == 0) ?
ap_state->ap_last_change = (time_t)-1;
ap_state->ap_error_code = 0;
ap_state->ap_in_transition = 0;
devctl_ap_state_t ap_state;
ibnex_figure_ib_apid_devstate(&ap_state);
ibnex_figure_ap_devstate(nodep, &ap_state);
if (ndi_dc_return_ap_state(&ap_state, dcp) != NDI_SUCCESS) {
(statep->ap_state == IBCM_AP_STATE_LAP_SENT))) {
statep->ap_state = IBCM_AP_STATE_MRA_LAP_RCVD;
(statep->ap_state == IBCM_AP_STATE_MRA_LAP_RCVD)) {
(statep->ap_state != statep->timer_stored_ap_state))) {
"ap_state %x", statep, statep->state, statep->ap_state);
} else if ((statep->ap_state == IBCM_AP_STATE_LAP_SENT) ||
(statep->ap_state == IBCM_AP_STATE_MRA_LAP_RCVD)) {
statep->ap_state = IBCM_AP_STATE_TIMED_OUT;
statep->ap_state = IBCM_AP_STATE_IDLE;
if (statep->ap_state == IBCM_AP_STATE_LAP_SENT)
if (statep->ap_state == IBCM_AP_STATE_MRA_LAP_RCVD)
statep->ap_state = IBCM_AP_STATE_IDLE;
} else if (statep->ap_state == IBCM_AP_STATE_TIMED_OUT) {
statep->ap_state = IBCM_AP_STATE_IDLE;
statep, statep->state, statep->ap_state);
(statep->ap_state == IBCM_AP_STATE_IDLE) &&
statep->ap_state = IBCM_AP_STATE_LAP_RCVD;
((statep->ap_state == IBCM_AP_STATE_LAP_SENT) ||
(statep->ap_state == IBCM_AP_STATE_MRA_LAP_RCVD)))) {
statep->ap_state = IBCM_AP_STATE_APR_RCVD;
statep->ap_state = IBCM_AP_STATE_IDLE;
statep->ap_state);
if ((statep->ap_state == IBCM_AP_STATE_LAP_RCVD) ||
(statep->ap_state == IBCM_AP_STATE_APR_RCVD) ||
(statep->ap_state == IBCM_AP_STATE_MRA_LAP_SENT) ||
(statep->ap_state == IBCM_AP_STATE_TIMED_OUT)) {
while (statep->ap_state != IBCM_AP_STATE_IDLE)
} else if ((statep->ap_state == IBCM_AP_STATE_LAP_SENT) ||
(statep->ap_state == IBCM_AP_STATE_MRA_LAP_RCVD)) {
statep->ap_state = IBCM_AP_STATE_IDLE;
} else if (statep->ap_state == IBCM_AP_STATE_LAP_RCVD) {
statep->ap_state = IBCM_AP_STATE_MRA_LAP_RCVD;
statep->ap_state, statep->mode);
statep->ap_state, statep->mode);
if ((statep->ap_state != IBCM_AP_STATE_LAP_RCVD) &&
(statep->ap_state != IBCM_AP_STATE_MRA_LAP_SENT))
(statep->ap_state != IBCM_AP_STATE_IDLE)) {
statep->ap_state = IBCM_AP_STATE_LAP_SENT;
statep->timer_stored_ap_state = statep->ap_state;
devctl_ap_state_t ap_state;
sata_cfgadm_state(sata_hba_inst, comp_port, &ap_state);
ap_state.ap_last_change = (time_t)-1;
ap_state.ap_error_code = 0;
ap_state.ap_in_transition = 0;
if (ndi_dc_return_ap_state(&ap_state, dcp) != NDI_SUCCESS) {
devctl_ap_state_t *ap_state)
ap_state->ap_rstate = AP_RSTATE_DISCONNECTED;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_FAILED;
ap_state->ap_condition = AP_COND_UNKNOWN;
ap_state->ap_rstate = AP_RSTATE_DISCONNECTED;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_FAILED;
ap_state->ap_condition = AP_COND_UNKNOWN;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_OK;
ap_state->ap_rstate = AP_RSTATE_EMPTY;
ap_state->ap_rstate = AP_RSTATE_DISCONNECTED;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_FAILED;
ap_state->ap_condition = AP_COND_UNKNOWN;
ap_state->ap_ostate = AP_OSTATE_CONFIGURED;
ap_state->ap_rstate = AP_RSTATE_CONNECTED;
ap_state->ap_condition = AP_COND_OK;
ap_state->ap_rstate = AP_RSTATE_CONNECTED;
ap_state->ap_condition = AP_COND_UNUSABLE;
ap_state->ap_condition =
ap_state->ap_condition =
ap_state->ap_condition =
ap_state->ap_ostate =
ap_state->ap_ostate =
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_UNKNOWN;
ap_state->ap_rstate = AP_RSTATE_CONNECTED;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_OK;
ap_state->ap_rstate = AP_RSTATE_CONNECTED;
ap_state->ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state->ap_condition = AP_COND_UNKNOWN;
devctl_ap_state_t ap_state;
ap_state.ap_rstate = AP_RSTATE_DISCONNECTED;
ap_state.ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state.ap_condition = AP_COND_OK;
ap_state.ap_rstate = AP_RSTATE_CONNECTED;
ap_state.ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state.ap_condition = AP_COND_OK;
ap_state.ap_rstate = AP_RSTATE_CONNECTED;
ap_state.ap_ostate = AP_OSTATE_CONFIGURED;
ap_state.ap_condition = AP_COND_OK;
ap_state.ap_rstate = AP_RSTATE_EMPTY;
ap_state.ap_ostate = AP_OSTATE_CONFIGURED;
ap_state.ap_condition = AP_COND_UNUSABLE;
ap_state.ap_rstate = AP_RSTATE_EMPTY;
ap_state.ap_ostate = AP_OSTATE_UNCONFIGURED;
ap_state.ap_condition = AP_COND_OK;
ap_state.ap_last_change = (time_t)-1;
ap_state.ap_error_code = 0;
ap_state.ap_in_transition = 0;
ap_state.ap_ostate,
ap_state.ap_rstate, ap_state.ap_condition);
if (ndi_dc_return_ap_state(&ap_state, dcp) != NDI_SUCCESS) {
ibcm_ap_state_t ap_state;
uint8_t ap_state[AMR_8LD_MAXPHYSDRIVES];