Searched refs:seg_max (Results 1 – 5 of 5) sorted by relevance
197 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_seg_size() local199 if (seg_max > STEDMA40_MAX_SEG_SIZE) in d40_seg_size()200 seg_max -= max_w; in d40_seg_size()202 if (size <= seg_max) in d40_seg_size()205 if (size <= 2 * seg_max) in d40_seg_size()208 return seg_max; in d40_seg_size()
1002 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_size_2_dmalen() local1004 if (seg_max > STEDMA40_MAX_SEG_SIZE) in d40_size_2_dmalen()1005 seg_max -= max_w; in d40_size_2_dmalen()1010 if (size <= seg_max) in d40_size_2_dmalen()1013 dmalen = size / seg_max; in d40_size_2_dmalen()1014 if (dmalen * seg_max < size) in d40_size_2_dmalen()
340 blk_config->seg_max = cpu_to_vdpasim32(vdpasim, VDPASIM_BLK_SEG_MAX); in vdpasim_blk_get_config()
867 sg_elems = virtscsi_config_get(vdev, seg_max) ?: 1; in virtscsi_probe()
919 struct virtio_blk_config, seg_max, in virtblk_probe()