Searched refs:sgl_count (Results 1 – 2 of 2) sorted by relevance
/drivers/vhost/ |
D | scsi.c | 653 int sgl_count = 0; in vhost_scsi_calc_sgls() local 661 sgl_count = iov_iter_npages(iter, 0xffff); in vhost_scsi_calc_sgls() 662 if (sgl_count > max_sgls) { in vhost_scsi_calc_sgls() 664 " max_sgls: %d\n", __func__, sgl_count, max_sgls); in vhost_scsi_calc_sgls() 667 return sgl_count; in vhost_scsi_calc_sgls() 698 int sgl_count, ret; in vhost_scsi_mapal() local 702 sgl_count = vhost_scsi_calc_sgls(prot_iter, prot_bytes, in vhost_scsi_mapal() 704 if (sgl_count < 0) in vhost_scsi_mapal() 705 return sgl_count; in vhost_scsi_mapal() 707 sg_init_table(cmd->tvc_prot_sgl, sgl_count); in vhost_scsi_mapal() [all …]
|
/drivers/target/ |
D | target_core_transport.c | 1485 u32 sgl_count, struct scatterlist *sgl_bidi, u32 sgl_bidi_count) in transport_generic_map_mem_to_cmd() argument 1487 if (!sgl || !sgl_count) in transport_generic_map_mem_to_cmd() 1502 cmd->t_data_nents = sgl_count; in transport_generic_map_mem_to_cmd() 1542 struct scatterlist *sgl, u32 sgl_count, in target_submit_cmd_map_sgls() argument 1614 if (sgl_count != 0) { in target_submit_cmd_map_sgls() 1638 rc = transport_generic_map_mem_to_cmd(se_cmd, sgl, sgl_count, in target_submit_cmd_map_sgls()
|