Lines Matching defs:sgl_count
861 * we hit the vec/seg limit, so check if our sgl_count is
899 int sgl_count = 0;
907 sgl_count = iov_iter_npages(iter, 0xffff);
908 if (sgl_count > max_sgls) {
909 pr_err("%s: requested sgl_count: %d exceeds pre-allocated"
910 " max_sgls: %d\n", __func__, sgl_count, max_sgls);
913 return sgl_count;
1000 int sgl_count, ret;
1003 sgl_count = vhost_scsi_calc_sgls(prot_iter, prot_bytes,
1005 if (sgl_count < 0)
1006 return sgl_count;
1009 ret = sg_alloc_table_chained(&cmd->prot_table, sgl_count,
1015 cmd->tvc_prot_sgl_count = sgl_count;
1029 sgl_count = vhost_scsi_calc_sgls(data_iter, data_bytes,
1031 if (sgl_count < 0)
1032 return sgl_count;
1035 ret = sg_alloc_table_chained(&cmd->table, sgl_count, cmd->table.sgl,
1040 cmd->tvc_sgl_count = sgl_count;