Lines Matching refs:status
230 static char *aac_get_status_string(u32 status);
356 * Query config status, and commit the configuration if needed.
360 int status = 0;
376 status = aac_fib_send(ContainerCommand,
382 if (status < 0) {
388 "aac_get_config_status: response=%d status=%d action=%d\n",
390 le32_to_cpu(reply->status),
393 (le32_to_cpu(reply->status) != CT_OK) ||
396 status = -EINVAL;
400 if (status >= 0)
404 if (status >= 0) {
413 status = aac_fib_send(ContainerCommand,
421 if (status >= 0)
429 if (status != -ERESTARTSYS)
431 return status;
454 int status = 0;
468 status = aac_fib_send(ContainerCommand,
474 if (status >= 0) {
485 if (status != -ERESTARTSYS)
511 status = aac_probe_container(dev, index);
513 if (status < 0) {
518 return status;
536 if ((le32_to_cpu(get_name_reply->status) == CT_OK)
570 int status;
591 status = aac_fib_send(ContainerCommand,
602 if (status == -EINPROGRESS)
605 printk(KERN_WARNING "aac_get_container_name: aac_fib_send failed with status: %d.\n", status);
643 if ((le32_to_cpu(dresp->status) == ST_OK) &&
686 int status;
691 if ((le32_to_cpu(dresp->status) == ST_OK) &&
716 status = aac_fib_send(ContainerCommand,
726 if (status < 0 && status != -EINPROGRESS) {
728 dresp->status = cpu_to_le32(ST_OK);
736 int status = -ENOMEM;
756 status = aac_fib_send(ContainerCommand,
766 if (status == -EINPROGRESS)
769 if (status < 0) {
775 if (status < 0) {
785 return status;
810 int status;
828 status = scsicmd->SCp.Status;
830 return status;
993 if (le32_to_cpu(get_serial_reply->status) == CT_OK) {
1106 int status;
1123 status = aac_fib_send(ContainerCommand,
1134 if (status == -EINPROGRESS)
1137 printk(KERN_WARNING "aac_get_container_serial: aac_fib_send failed with status: %d.\n", status);
2365 switch (le32_to_cpu(readreply->status)) {
2391 printk(KERN_WARNING "io_callback: io failed, status = %d\n",
2392 le32_to_cpu(readreply->status));
2413 int status;
2491 status = aac_adapter_read(cmd_fibcontext, scsicmd, lba, count);
2496 if (status == -EINPROGRESS)
2499 printk(KERN_WARNING "aac_read: aac_fib_send failed with status: %d.\n", status);
2515 int status;
2583 status = aac_adapter_write(cmd_fibcontext, scsicmd, lba, count, fua);
2588 if (status == -EINPROGRESS)
2591 printk(KERN_WARNING "aac_write: aac_fib_send failed with status: %d\n", status);
2617 if (le32_to_cpu(synchronizereply->status) == CT_OK)
2625 "synchronize_callback: synchronize failed, status = %d\n",
2626 le32_to_cpu(synchronizereply->status));
2644 int status;
2672 status = aac_fib_send(ContainerCommand,
2683 if (status == -EINPROGRESS)
2687 "aac_synchronize: aac_fib_send failed with status: %d.\n", status);
2711 int status;
2749 status = aac_fib_send(ContainerCommand,
2760 if (status == -EINPROGRESS)
3434 * First check the fib status
3437 if (le32_to_cpu(srbreply->status) != ST_OK) {
3440 pr_warn("aac_srb_callback: srb failed, status = %d\n",
3441 le32_to_cpu(srbreply->status));
3452 * Next check the srb status
3546 pr_info("aacraid: SRB ERROR(%u) %s scsi cmd 0x%x -scsi status 0x%x\n",
3586 pr_warn("aac_srb_callback: check condition, status = %d len=%d\n",
3587 le32_to_cpu(srbreply->status), len);
3594 * OR in the scsi status (already shifted up a bit)
3606 scsicmd->result = err->status;
3610 switch (err->status) {
3644 switch (err->status) {
3754 int status;
3769 status = aac_adapter_scsi(cmd_fibcontext, scsicmd);
3774 if (status == -EINPROGRESS)
3777 printk(KERN_WARNING "aac_srb: aac_fib_send failed with status: %d\n", status);
3795 int status;
3813 status = aac_adapter_hba(cmd_fibcontext, scsicmd);
3818 if (status == -EINPROGRESS)
3821 pr_warn("aac_hba_cmd_req: aac_fib_send failed with status: %d\n",
3822 status);
4149 u32 status;
4189 char *aac_get_status_string(u32 status)
4194 if (srb_status_info[i].status == status)