Lines Matching defs:size
92 * @size must be integral times of unsigned long.
99 unsigned long size, unsigned long offset)
102 unsigned long result = size;
105 if (offset >= size)
106 return size;
108 size -= (offset & ~(BITS_PER_LONG - 1));
118 if (size < BITS_PER_LONG)
119 tmp &= (~0UL << (BITS_PER_LONG - size));
123 if (size <= BITS_PER_LONG)
125 size -= BITS_PER_LONG;
131 return result - size + __reverse_ffs(tmp);
135 unsigned long size, unsigned long offset)
138 unsigned long result = size;
141 if (offset >= size)
142 return size;
144 size -= (offset & ~(BITS_PER_LONG - 1));
155 if (size < BITS_PER_LONG)
156 tmp |= ~0UL >> size;
160 if (size <= BITS_PER_LONG)
162 size -= BITS_PER_LONG;
168 return result - size + __reverse_ffz(tmp);
1135 unsigned long offset, size, max_blocks = sbi->blocks_per_seg;
1144 size = GET_BLKOFF_FROM_SEG0(sbi, end);
1146 size = max_blocks;
1148 offset = __find_rev_next_bit(map, size, offset);
1149 f2fs_bug_on(sbi, offset != size);