Lines Matching refs:this_len
75 int this_len; in __fill_random_buf() local
79 this_len = sizeof(int64_t); in __fill_random_buf()
82 this_len = sizeof(int32_t); in __fill_random_buf()
85 this_len = sizeof(int16_t); in __fill_random_buf()
88 this_len = sizeof(int8_t); in __fill_random_buf()
90 ptr += this_len; in __fill_random_buf()
91 len -= this_len; in __fill_random_buf()
140 unsigned int this_len; in __fill_random_buf_percentage() local
157 this_len = (segment * (100 - percentage)) / 100; in __fill_random_buf_percentage()
158 if (this_len > len) in __fill_random_buf_percentage()
159 this_len = len; in __fill_random_buf_percentage()
161 __fill_random_buf(buf, this_len, seed); in __fill_random_buf_percentage()
163 len -= this_len; in __fill_random_buf_percentage()
166 buf += this_len; in __fill_random_buf_percentage()
168 if (this_len > len) in __fill_random_buf_percentage()
169 this_len = len; in __fill_random_buf_percentage()
170 else if (len - this_len <= sizeof(long)) in __fill_random_buf_percentage()
171 this_len = len; in __fill_random_buf_percentage()
174 fill_pattern(buf, this_len, pattern, pbytes); in __fill_random_buf_percentage()
176 memset(buf, 0, this_len); in __fill_random_buf_percentage()
178 len -= this_len; in __fill_random_buf_percentage()
179 buf += this_len; in __fill_random_buf_percentage()