Lines Matching refs:cancel_cmd
2857 struct pmcraid_cmd *cancel_cmd; in pmcraid_abort_cmd() local
2862 cancel_cmd = pmcraid_get_free_cmd(pinstance); in pmcraid_abort_cmd()
2864 if (cancel_cmd == NULL) { in pmcraid_abort_cmd()
2869 pmcraid_prepare_cancel_cmd(cancel_cmd, cmd); in pmcraid_abort_cmd()
2875 init_completion(&cancel_cmd->wait_for_completion); in pmcraid_abort_cmd()
2876 cancel_cmd->completion_req = 1; in pmcraid_abort_cmd()
2879 le32_to_cpu(cancel_cmd->ioa_cb->ioarcb.response_handle) >> 2, in pmcraid_abort_cmd()
2880 cancel_cmd->ioa_cb->ioarcb.cdb[0], in pmcraid_abort_cmd()
2881 le32_to_cpu(cancel_cmd->ioa_cb->ioarcb.resource_handle)); in pmcraid_abort_cmd()
2883 pmcraid_send_cmd(cancel_cmd, in pmcraid_abort_cmd()
2887 return cancel_cmd; in pmcraid_abort_cmd()
2899 static int pmcraid_abort_complete(struct pmcraid_cmd *cancel_cmd) in pmcraid_abort_complete() argument
2904 wait_for_completion(&cancel_cmd->wait_for_completion); in pmcraid_abort_complete()
2905 res = cancel_cmd->res; in pmcraid_abort_complete()
2906 cancel_cmd->res = NULL; in pmcraid_abort_complete()
2907 ioasc = le32_to_cpu(cancel_cmd->ioa_cb->ioasa.ioasc); in pmcraid_abort_complete()
2922 pmcraid_return_cmd(cancel_cmd); in pmcraid_abort_complete()
2943 struct pmcraid_cmd *cancel_cmd = NULL; in pmcraid_eh_abort_handler() local
2993 cancel_cmd = pmcraid_abort_cmd(cmd); in pmcraid_eh_abort_handler()
2998 if (cancel_cmd) { in pmcraid_eh_abort_handler()
2999 cancel_cmd->res = cmd->scsi_cmd->device->hostdata; in pmcraid_eh_abort_handler()
3000 rc = pmcraid_abort_complete(cancel_cmd); in pmcraid_eh_abort_handler()