Lines Matching defs:bits
321 * info should be filled. All bits 0 is not possible as
322 * there is at least one of the mode bits set.
332 * are not reflected by the facilities bits.
334 * modify the function bits based on the type.
812 * Returns the bitmask with exactly the bits set as given by the hex
815 static int hex2bitmap(const char *str, unsigned long *bitmap, int bits)
819 /* bits needs to be a multiple of 8 */
820 if (bits & 0x07)
828 for (i = 0; isxdigit(*str) && i < bits; str++) {
849 * 0...bits-1; the leading + or - is required. Here are some examples:
857 * +0-255,-128 = first bits 0-255 will be set, then bit 128 will be
858 * cleared again. All other bits are unmodified.
860 static int modify_bitmap(const char *str, unsigned long *bitmap, int bits)
865 /* bits needs to be a multiple of 8 */
866 if (bits & 0x07)
874 if (str == np || a >= bits)
879 if (str == np || a > z || z >= bits)
896 unsigned long *bitmap, int bits,
902 /* bits needs to be a multiple of 8 */
903 if (bits & 0x07)
906 size = BITS_TO_LONGS(bits)*sizeof(unsigned long);
917 rc = modify_bitmap(str, newmap, bits);
920 rc = hex2bitmap(str, newmap, bits);