Home
last modified time | relevance | path

Searched refs:scsi_cmds (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/vhost/
Dscsi.c192 struct vhost_scsi_cmd *scsi_cmds; member
623 cmd = &svq->scsi_cmds[tag]; in vhost_scsi_get_cmd()
1488 if (!svq->scsi_cmds) in vhost_scsi_destroy_vq_cmds()
1492 tv_cmd = &svq->scsi_cmds[i]; in vhost_scsi_destroy_vq_cmds()
1500 kfree(svq->scsi_cmds); in vhost_scsi_destroy_vq_cmds()
1501 svq->scsi_cmds = NULL; in vhost_scsi_destroy_vq_cmds()
1511 if (svq->scsi_cmds) in vhost_scsi_setup_vq_cmds()
1519 svq->scsi_cmds = kcalloc(max_cmds, sizeof(*tv_cmd), GFP_KERNEL); in vhost_scsi_setup_vq_cmds()
1520 if (!svq->scsi_cmds) { in vhost_scsi_setup_vq_cmds()
1526 tv_cmd = &svq->scsi_cmds[i]; in vhost_scsi_setup_vq_cmds()
/kernel/linux/linux-5.10/drivers/scsi/
Dlibiscsi.c2645 int scsi_cmds, total_cmds = requested_cmds_max; in iscsi_host_get_max_scsi_cmds() local
2679 scsi_cmds = total_cmds - ISCSI_MGMT_CMDS_MAX; in iscsi_host_get_max_scsi_cmds()
2680 if (shost->can_queue && scsi_cmds > shost->can_queue) { in iscsi_host_get_max_scsi_cmds()
2688 return scsi_cmds; in iscsi_host_get_max_scsi_cmds()
2845 int cmd_i, scsi_cmds; in iscsi_session_setup() local
2856 scsi_cmds = iscsi_host_get_max_scsi_cmds(shost, cmds_max); in iscsi_session_setup()
2857 if (scsi_cmds < 0) in iscsi_session_setup()
2873 session->scsi_cmds_max = scsi_cmds; in iscsi_session_setup()
2874 session->cmds_max = scsi_cmds + ISCSI_MGMT_CMDS_MAX; in iscsi_session_setup()