Lines Matching refs:scsi_cmnd
135 scsi_host_free_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) in scsi_host_free_command()
153 static struct scsi_cmnd *
157 struct scsi_cmnd *cmd; in scsi_host_alloc_command()
192 static struct scsi_cmnd *
195 struct scsi_cmnd *cmd = scsi_host_alloc_command(shost, gfp_mask); in __scsi_get_command()
203 struct scsi_cmnd, list); in __scsi_get_command()
231 struct scsi_cmnd *scsi_get_command(struct scsi_device *dev, gfp_t gfp_mask) in scsi_get_command()
233 struct scsi_cmnd *cmd = __scsi_get_command(dev->host, gfp_mask); in scsi_get_command()
254 static void __scsi_put_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) in __scsi_put_command()
279 void scsi_put_command(struct scsi_cmnd *cmd) in scsi_put_command()
346 size_t cmd_size = sizeof(struct scsi_cmnd) + hostt->cmd_size; in scsi_get_host_cmd_pool()
428 struct scsi_cmnd *cmd; in scsi_setup_command_freelist()
464 struct scsi_cmnd *cmd; in scsi_destroy_command_freelist()
466 cmd = list_entry(shost->free_list.next, struct scsi_cmnd, list); in scsi_destroy_command_freelist()
475 void scsi_log_send(struct scsi_cmnd *cmd) in scsi_log_send()
501 void scsi_log_completion(struct scsi_cmnd *cmd, int disposition) in scsi_log_completion()
544 void scsi_cmd_get_serial(struct Scsi_Host *host, struct scsi_cmnd *cmd) in scsi_cmd_get_serial()
560 void scsi_finish_command(struct scsi_cmnd *cmd) in scsi_finish_command()