Lines Matching refs:scsi_cmnd
181 scsi_host_free_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) in scsi_host_free_command()
199 static struct scsi_cmnd *
203 struct scsi_cmnd *cmd; in scsi_host_alloc_command()
238 static struct scsi_cmnd *
241 struct scsi_cmnd *cmd = scsi_host_alloc_command(shost, gfp_mask); in __scsi_get_command()
249 struct scsi_cmnd, list); in __scsi_get_command()
277 struct scsi_cmnd *scsi_get_command(struct scsi_device *dev, gfp_t gfp_mask) in scsi_get_command()
279 struct scsi_cmnd *cmd = __scsi_get_command(dev->host, gfp_mask); in scsi_get_command()
300 static void __scsi_put_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) in __scsi_put_command()
325 void scsi_put_command(struct scsi_cmnd *cmd) in scsi_put_command()
392 size_t cmd_size = sizeof(struct scsi_cmnd) + hostt->cmd_size; in scsi_get_host_cmd_pool()
474 struct scsi_cmnd *cmd; in scsi_setup_command_freelist()
510 struct scsi_cmnd *cmd; in scsi_destroy_command_freelist()
512 cmd = list_entry(shost->free_list.next, struct scsi_cmnd, list); in scsi_destroy_command_freelist()
521 void scsi_log_send(struct scsi_cmnd *cmd) in scsi_log_send()
547 void scsi_log_completion(struct scsi_cmnd *cmd, int disposition) in scsi_log_completion()
590 void scsi_cmd_get_serial(struct Scsi_Host *host, struct scsi_cmnd *cmd) in scsi_cmd_get_serial()
606 void scsi_finish_command(struct scsi_cmnd *cmd) in scsi_finish_command()