Lines Matching refs:nr
25 static inline void __set_facility(unsigned long nr, void *facilities) in __set_facility() argument
29 if (nr >= MAX_FACILITY_BIT) in __set_facility()
31 ptr[nr >> 3] |= 0x80 >> (nr & 7); in __set_facility()
34 static inline void __clear_facility(unsigned long nr, void *facilities) in __clear_facility() argument
38 if (nr >= MAX_FACILITY_BIT) in __clear_facility()
40 ptr[nr >> 3] &= ~(0x80 >> (nr & 7)); in __clear_facility()
43 static inline int __test_facility(unsigned long nr, void *facilities) in __test_facility() argument
47 if (nr >= MAX_FACILITY_BIT) in __test_facility()
49 ptr = (unsigned char *) facilities + (nr >> 3); in __test_facility()
50 return (*ptr & (0x80 >> (nr & 7))) != 0; in __test_facility()
58 static inline int test_facility(unsigned long nr) in test_facility() argument
62 if (__builtin_constant_p(nr) && nr < sizeof(facilities_als) * 8) { in test_facility()
63 if (__test_facility(nr, &facilities_als)) in test_facility()
66 return __test_facility(nr, &stfle_fac_list); in test_facility()
90 unsigned long nr; in __stfle() local
98 nr = 4; /* bytes stored by stfl */ in __stfle()
101 nr = __stfle_asm(stfle_fac_list, size); in __stfle()
102 nr = min_t(unsigned long, (nr + 1) * 8, size * 8); in __stfle()
104 memset((char *) stfle_fac_list + nr, 0, size * 8 - nr); in __stfle()