Lines Matching defs:size
108 * @size must be integral times of unsigned long.
115 unsigned long size, unsigned long offset)
118 unsigned long result = size;
121 if (offset >= size)
122 return size;
124 size -= (offset & ~(BITS_PER_LONG - 1));
134 if (size < BITS_PER_LONG)
135 tmp &= (~0UL << (BITS_PER_LONG - size));
139 if (size <= BITS_PER_LONG)
141 size -= BITS_PER_LONG;
147 return result - size + __reverse_ffs(tmp);
151 unsigned long size, unsigned long offset)
154 unsigned long result = size;
157 if (offset >= size)
158 return size;
160 size -= (offset & ~(BITS_PER_LONG - 1));
171 if (size < BITS_PER_LONG)
172 tmp |= ~0UL >> size;
176 if (size <= BITS_PER_LONG)
178 size -= BITS_PER_LONG;
184 return result - size + __reverse_ffz(tmp);
1196 unsigned long offset, size, max_blocks = sbi->blocks_per_seg;
1205 size = GET_BLKOFF_FROM_SEG0(sbi, end);
1207 size = max_blocks;
1209 offset = find_rev_next_bit(map, size, offset);
1210 f2fs_bug_on(sbi, offset != size);