Searched refs:seg_max (Results 1 – 5 of 5) sorted by relevance
189 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE << min_w, 1 << max_w); in d40_seg_size() local191 if (seg_max > STEDMA40_MAX_SEG_SIZE) in d40_seg_size()192 seg_max -= (1 << max_w); in d40_seg_size()194 if (size <= seg_max) in d40_seg_size()197 if (size <= 2 * seg_max) in d40_seg_size()200 return seg_max; in d40_seg_size()
686 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE << min_w, 1 << max_w); in d40_size_2_dmalen() local688 if (seg_max > STEDMA40_MAX_SEG_SIZE) in d40_size_2_dmalen()689 seg_max -= (1 << max_w); in d40_size_2_dmalen()694 if (size <= seg_max) in d40_size_2_dmalen()697 dmalen = size / seg_max; in d40_size_2_dmalen()698 if (dmalen * seg_max < size) in d40_size_2_dmalen()
28 __u32 seg_max; member
309 offsetof(struct virtio_blk_config, seg_max), in virtblk_probe()
1749 conf.seg_max = cpu_to_le32(VIRTQUEUE_NUM - 2); in setup_block_file()