• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/lib/

Lines Matching refs:size

23 unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
30 if (offset >= size)
31 return size;
32 size -= result;
37 if (size < BITS_PER_LONG)
41 size -= BITS_PER_LONG;
44 while (size & ~(BITS_PER_LONG-1)) {
48 size -= BITS_PER_LONG;
50 if (!size)
55 tmp &= (~0UL >> (BITS_PER_LONG - size));
57 return result + size; /* Nope. */
67 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size,
74 if (offset >= size)
75 return size;
76 size -= result;
81 if (size < BITS_PER_LONG)
85 size -= BITS_PER_LONG;
88 while (size & ~(BITS_PER_LONG-1)) {
92 size -= BITS_PER_LONG;
94 if (!size)
99 tmp |= ~0UL << size;
101 return result + size; /* Nope. */
112 unsigned long find_first_bit(const unsigned long *addr, unsigned long size)
118 while (size & ~(BITS_PER_LONG-1)) {
122 size -= BITS_PER_LONG;
124 if (!size)
127 tmp = (*p) & (~0UL >> (BITS_PER_LONG - size));
129 return result + size; /* Nope. */
138 unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size)
144 while (size & ~(BITS_PER_LONG-1)) {
148 size -= BITS_PER_LONG;
150 if (!size)
153 tmp = (*p) | (~0UL << size);
155 return result + size; /* Nope. */
189 long size, unsigned long offset)
195 if (offset >= size)
196 return size;
197 size -= result;
202 if (size < BITS_PER_LONG)
206 size -= BITS_PER_LONG;
210 while (size & ~(BITS_PER_LONG - 1)) {
214 size -= BITS_PER_LONG;
216 if (!size)
220 tmp |= ~0UL << size;
222 return result + size; /* Nope. Skip ffz */
233 long size, unsigned long offset)
239 if (offset >= size)
240 return size;
241 size -= result;
246 if (size < BITS_PER_LONG)
250 size -= BITS_PER_LONG;
254 while (size & ~(BITS_PER_LONG - 1)) {
259 size -= BITS_PER_LONG;
261 if (!size)
265 tmp &= (~0UL >> (BITS_PER_LONG - size));
267 return result + size; /* Nope. */