Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/vhost/
Dscsi.c182 struct vhost_scsi_cmd *scsi_cmds; member
612 cmd = &svq->scsi_cmds[tag]; in vhost_scsi_get_cmd()
1455 if (!svq->scsi_cmds) in vhost_scsi_destroy_vq_cmds()
1459 tv_cmd = &svq->scsi_cmds[i]; in vhost_scsi_destroy_vq_cmds()
1467 kfree(svq->scsi_cmds); in vhost_scsi_destroy_vq_cmds()
1468 svq->scsi_cmds = NULL; in vhost_scsi_destroy_vq_cmds()
1478 if (svq->scsi_cmds) in vhost_scsi_setup_vq_cmds()
1486 svq->scsi_cmds = kcalloc(max_cmds, sizeof(*tv_cmd), GFP_KERNEL); in vhost_scsi_setup_vq_cmds()
1487 if (!svq->scsi_cmds) { in vhost_scsi_setup_vq_cmds()
1493 tv_cmd = &svq->scsi_cmds[i]; in vhost_scsi_setup_vq_cmds()
/Linux-v6.1/drivers/scsi/
Dlibiscsi.c2822 int scsi_cmds, total_cmds = requested_cmds_max; in iscsi_host_get_max_scsi_cmds() local
2856 scsi_cmds = total_cmds - ISCSI_MGMT_CMDS_MAX; in iscsi_host_get_max_scsi_cmds()
2857 if (shost->can_queue && scsi_cmds > shost->can_queue) { in iscsi_host_get_max_scsi_cmds()
2865 return scsi_cmds; in iscsi_host_get_max_scsi_cmds()
3025 int cmd_i, scsi_cmds; in iscsi_session_setup() local
3036 scsi_cmds = iscsi_host_get_max_scsi_cmds(shost, cmds_max); in iscsi_session_setup()
3037 if (scsi_cmds < 0) in iscsi_session_setup()
3053 session->scsi_cmds_max = scsi_cmds; in iscsi_session_setup()
3054 session->cmds_max = scsi_cmds + ISCSI_MGMT_CMDS_MAX; in iscsi_session_setup()