AACOK
"shutting down aac %s", (rval == AACOK) ? "ok" : "fail");
return (AACOK);
&slot_idx) == AACOK)
AACOK) {
int rval = AACOK;
int rval = AACOK;
return (AACOK); /* card type detected */
return (AACOK);
&status)) != AACOK) {
return (AACOK);
0, 0, 0, 0, NULL)) == AACOK) {
return (AACOK);
AAC_FIB_SIZEOF(struct aac_adapter_info)) != AACOK) {
!= AACOK) {
rval = AACOK;
if (rval != AACOK || ddi_get32(acc, &c_resp->Status) != 0) {
if ((rval != AACOK) || (ddi_get32(acc, &resp->Status) != 0)) {
return (AACOK);
if ((rval == AACOK) && (resp_status == 0) && (ct_status == CT_OK)) {
if ((rval == AACOK) && (resp_status == 0) &&
if (aac_alloc_comm_space(softs) != AACOK)
if (aac_setup_comm_space(softs) != AACOK) {
if (aac_get_fw_debug_buffer(softs) != AACOK)
if ((softs->total_slots == 0) && (aac_create_slots(softs) != AACOK)) {
if (aac_get_adapter_info(softs, NULL, &sinf) == AACOK) {
if (aac_probe_containers(softs) != AACOK) {
if (aac_get_bus_info(softs, &bus_max, &tgt_max) != AACOK) {
return (AACOK);
return (AACOK);
return (AACOK);
return (AACOK);
rval = AACOK;
return (AACOK);
if (rval_uid != AACOK) {
return (AACOK);
return (AACOK);
return (AACOK);
return (AACOK);
&status)) != AACOK) {
if (aac_common_attach(softs) != AACOK)
if (aac_dma_sync_ac(acp) != AACOK) {
return (AACOK);
if (aac_cmd_dma_alloc(softs, acp, bp, flags, callback, arg) == AACOK)
if (aac_dma_sync_ac(acp) != AACOK)
return (AACOK);
if (aac_do_quiesce(softs) == AACOK)
return (AACOK);
if (aac_do_unquiesce(softs) == AACOK)
return (AACOK);
return (AACOK);
return (AACOK);
if (rval != AACOK) {
if (aac_bind_io(softs, acp) == AACOK) {
if (aac_dma_sync_ac(acp) != AACOK) {
return (AACOK);
if (aac_alloc_fib(softs, slotp) != AACOK)
return (AACOK);
if (aac_bind_io(softs, acp) == AACOK)
if (aac_do_poll_io(softs, acp) == AACOK)
if (aac_do_sync_io(softs, acp) == AACOK)
return (AACOK);
return (AACOK);
return (AACOK);
return (AACOK);
if (rval != AACOK)
return (AACOK);
if (aac_parse_devname(arg, &tgt, &lun) != AACOK) {
return (AACOK);
0, 0, 0, 0, NULL) == AACOK) {
return (AACOK);
if (aac_hba_setup(softs) != AACOK)
0) != AACOK) {