Lines Matching defs:ord
545 * gets mapped to (returns) @ord value 3 in this example, that means
552 int i, ord;
558 ord = 0;
561 ord++;
565 return ord;
569 * bitmap_ord_to_pos(buf, ord, bits)
571 * @ord: ordinal bit position (n-th set bit, n >= 0)
574 * Map the ordinal offset of bit @ord in @buf to its position in @buf.
575 * Value of @ord should be in range 0 <= @ord < weight(buf), else
578 * If for example, just bits 4 through 7 are set in @buf, then @ord
580 * and all other @ord values return undefined values. When @ord value 3
586 static int bitmap_ord_to_pos(const unsigned long *buf, int ord, int bits)
590 if (ord >= 0 && ord < bits) {
594 i < bits && ord > 0;
596 ord--;
597 if (i < bits && ord == 0)