Lines Matching refs:sgl_count
669 int sgl_count = 0; in vhost_scsi_calc_sgls() local
677 sgl_count = iov_iter_npages(iter, 0xffff); in vhost_scsi_calc_sgls()
678 if (sgl_count > max_sgls) { in vhost_scsi_calc_sgls()
680 " max_sgls: %d\n", __func__, sgl_count, max_sgls); in vhost_scsi_calc_sgls()
683 return sgl_count; in vhost_scsi_calc_sgls()
714 int sgl_count, ret; in vhost_scsi_mapal() local
718 sgl_count = vhost_scsi_calc_sgls(prot_iter, prot_bytes, in vhost_scsi_mapal()
720 if (sgl_count < 0) in vhost_scsi_mapal()
721 return sgl_count; in vhost_scsi_mapal()
723 sg_init_table(cmd->tvc_prot_sgl, sgl_count); in vhost_scsi_mapal()
724 cmd->tvc_prot_sgl_count = sgl_count; in vhost_scsi_mapal()
736 sgl_count = vhost_scsi_calc_sgls(data_iter, data_bytes, in vhost_scsi_mapal()
738 if (sgl_count < 0) in vhost_scsi_mapal()
739 return sgl_count; in vhost_scsi_mapal()
741 sg_init_table(cmd->tvc_sgl, sgl_count); in vhost_scsi_mapal()
742 cmd->tvc_sgl_count = sgl_count; in vhost_scsi_mapal()