Lines Matching refs:sgl_count
680 * we hit the vec/seg limit, so check if our sgl_count is
719 int sgl_count = 0;
727 sgl_count = iov_iter_npages(iter, 0xffff);
728 if (sgl_count > max_sgls) {
729 pr_err("%s: requested sgl_count: %d exceeds pre-allocated"
730 " max_sgls: %d\n", __func__, sgl_count, max_sgls);
733 return sgl_count;
819 int sgl_count, ret;
822 sgl_count = vhost_scsi_calc_sgls(prot_iter, prot_bytes,
824 if (sgl_count < 0)
825 return sgl_count;
827 sg_init_table(cmd->tvc_prot_sgl, sgl_count);
828 cmd->tvc_prot_sgl_count = sgl_count;
840 sgl_count = vhost_scsi_calc_sgls(data_iter, data_bytes,
842 if (sgl_count < 0)
843 return sgl_count;
845 sg_init_table(cmd->tvc_sgl, sgl_count);
846 cmd->tvc_sgl_count = sgl_count;