Lines Matching refs:ncmd

551 	struct NCR5380_cmd *ncmd = scsi_cmd_priv(cmd);  in NCR5380_queue_command()  local
580 list_add(&ncmd->list, &hostdata->unissued); in NCR5380_queue_command()
582 list_add_tail(&ncmd->list, &hostdata->unissued); in NCR5380_queue_command()
622 struct NCR5380_cmd *ncmd; in dequeue_next_cmd() local
626 list_for_each_entry(ncmd, &hostdata->unissued, list) { in dequeue_next_cmd()
627 cmd = NCR5380_to_scmd(ncmd); in dequeue_next_cmd()
632 list_del(&ncmd->list); in dequeue_next_cmd()
640 ncmd = list_first_entry(&hostdata->autosense, in dequeue_next_cmd()
642 list_del(&ncmd->list); in dequeue_next_cmd()
643 cmd = NCR5380_to_scmd(ncmd); in dequeue_next_cmd()
656 struct NCR5380_cmd *ncmd = scsi_cmd_priv(cmd); in requeue_cmd() local
660 list_add(&ncmd->list, &hostdata->autosense); in requeue_cmd()
663 list_add(&ncmd->list, &hostdata->unissued); in requeue_cmd()
1667 struct NCR5380_cmd *ncmd = scsi_cmd_priv(cmd); in NCR5380_information_transfer() local
1813 list_add_tail(&ncmd->list, in NCR5380_information_transfer()
1845 list_add(&ncmd->list, &hostdata->disconnected); in NCR5380_information_transfer()
2006 struct NCR5380_cmd *ncmd; in NCR5380_reselect() local
2097 list_for_each_entry(ncmd, &hostdata->disconnected, list) { in NCR5380_reselect()
2098 struct scsi_cmnd *cmd = NCR5380_to_scmd(ncmd); in NCR5380_reselect()
2102 list_del(&ncmd->list); in NCR5380_reselect()
2164 struct NCR5380_cmd *ncmd; in list_find_cmd() local
2166 list_for_each_entry(ncmd, haystack, list) in list_find_cmd()
2167 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd()
2182 struct NCR5380_cmd *ncmd = scsi_cmd_priv(needle); in list_del_cmd() local
2184 list_del(&ncmd->list); in list_del_cmd()
2304 struct NCR5380_cmd *ncmd; in bus_reset_cleanup() local
2323 list_for_each_entry(ncmd, &hostdata->disconnected, list) { in bus_reset_cleanup()
2324 struct scsi_cmnd *cmd = NCR5380_to_scmd(ncmd); in bus_reset_cleanup()
2331 list_for_each_entry(ncmd, &hostdata->autosense, list) { in bus_reset_cleanup()
2332 struct scsi_cmnd *cmd = NCR5380_to_scmd(ncmd); in bus_reset_cleanup()
2364 struct NCR5380_cmd *ncmd; in NCR5380_host_reset() local
2374 list_for_each_entry(ncmd, &hostdata->unissued, list) { in NCR5380_host_reset()
2375 struct scsi_cmnd *scmd = NCR5380_to_scmd(ncmd); in NCR5380_host_reset()