Lines Matching refs:ncmd
567 struct NCR5380_cmd *ncmd = scsi_cmd_priv(cmd); in NCR5380_queue_command() local
596 list_add(&ncmd->list, &hostdata->unissued); in NCR5380_queue_command()
598 list_add_tail(&ncmd->list, &hostdata->unissued); in NCR5380_queue_command()
638 struct NCR5380_cmd *ncmd; in dequeue_next_cmd() local
642 list_for_each_entry(ncmd, &hostdata->unissued, list) { in dequeue_next_cmd()
643 cmd = NCR5380_to_scmd(ncmd); in dequeue_next_cmd()
648 list_del(&ncmd->list); in dequeue_next_cmd()
656 ncmd = list_first_entry(&hostdata->autosense, in dequeue_next_cmd()
658 list_del(&ncmd->list); in dequeue_next_cmd()
659 cmd = NCR5380_to_scmd(ncmd); in dequeue_next_cmd()
672 struct NCR5380_cmd *ncmd = scsi_cmd_priv(cmd); in requeue_cmd() local
676 list_add(&ncmd->list, &hostdata->autosense); in requeue_cmd()
679 list_add(&ncmd->list, &hostdata->unissued); in requeue_cmd()
1684 struct NCR5380_cmd *ncmd = scsi_cmd_priv(cmd); in NCR5380_information_transfer() local
1832 list_add_tail(&ncmd->list, in NCR5380_information_transfer()
1864 list_add(&ncmd->list, &hostdata->disconnected); in NCR5380_information_transfer()
2025 struct NCR5380_cmd *ncmd; in NCR5380_reselect() local
2116 list_for_each_entry(ncmd, &hostdata->disconnected, list) { in NCR5380_reselect()
2117 struct scsi_cmnd *cmd = NCR5380_to_scmd(ncmd); in NCR5380_reselect()
2121 list_del(&ncmd->list); in NCR5380_reselect()
2183 struct NCR5380_cmd *ncmd; in list_find_cmd() local
2185 list_for_each_entry(ncmd, haystack, list) in list_find_cmd()
2186 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd()
2201 struct NCR5380_cmd *ncmd = scsi_cmd_priv(needle); in list_del_cmd() local
2203 list_del(&ncmd->list); in list_del_cmd()
2323 struct NCR5380_cmd *ncmd; in bus_reset_cleanup() local
2342 list_for_each_entry(ncmd, &hostdata->disconnected, list) { in bus_reset_cleanup()
2343 struct scsi_cmnd *cmd = NCR5380_to_scmd(ncmd); in bus_reset_cleanup()
2350 list_for_each_entry(ncmd, &hostdata->autosense, list) { in bus_reset_cleanup()
2351 struct scsi_cmnd *cmd = NCR5380_to_scmd(ncmd); in bus_reset_cleanup()
2383 struct NCR5380_cmd *ncmd; in NCR5380_host_reset() local
2393 list_for_each_entry(ncmd, &hostdata->unissued, list) { in NCR5380_host_reset()
2394 struct scsi_cmnd *scmd = NCR5380_to_scmd(ncmd); in NCR5380_host_reset()