Searched refs:seg_max (Results 1 – 8 of 8) sorted by relevance
198 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_seg_size() local200 if (seg_max > STEDMA40_MAX_SEG_SIZE) in d40_seg_size()201 seg_max -= max_w; in d40_seg_size()203 if (size <= seg_max) in d40_seg_size()206 if (size <= 2 * seg_max) in d40_seg_size()209 return seg_max; in d40_seg_size()
1025 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_size_2_dmalen() local1027 if (seg_max > STEDMA40_MAX_SEG_SIZE) in d40_size_2_dmalen()1028 seg_max -= max_w; in d40_size_2_dmalen()1033 if (size <= seg_max) in d40_size_2_dmalen()1036 dmalen = size / seg_max; in d40_size_2_dmalen()1037 if (dmalen * seg_max < size) in d40_size_2_dmalen()
107 __virtio32 seg_max; member
66 __virtio32 seg_max; member
374 blk_config->seg_max = cpu_to_vdpasim32(vdpasim, VDPASIM_BLK_SEG_MAX); in vdpasim_blk_get_config()
931 sg_elems = virtscsi_config_get(vdev, seg_max) ?: 1; in virtscsi_probe()
1259 struct virtio_blk_config, seg_max, in virtblk_read_limits()
997 val_u32 = __virtio32_to_cpu(true, config->seg_max); in vdpa_dev_blk_seg_max_config_fill()