Lines Matching refs:nr
18 static inline void __set_facility(unsigned long nr, void *facilities) in __set_facility() argument
22 if (nr >= MAX_FACILITY_BIT) in __set_facility()
24 ptr[nr >> 3] |= 0x80 >> (nr & 7); in __set_facility()
27 static inline void __clear_facility(unsigned long nr, void *facilities) in __clear_facility() argument
31 if (nr >= MAX_FACILITY_BIT) in __clear_facility()
33 ptr[nr >> 3] &= ~(0x80 >> (nr & 7)); in __clear_facility()
36 static inline int __test_facility(unsigned long nr, void *facilities) in __test_facility() argument
40 if (nr >= MAX_FACILITY_BIT) in __test_facility()
42 ptr = (unsigned char *) facilities + (nr >> 3); in __test_facility()
43 return (*ptr & (0x80 >> (nr & 7))) != 0; in __test_facility()
51 static inline int test_facility(unsigned long nr) in test_facility() argument
55 if (__builtin_constant_p(nr) && nr < sizeof(facilities_als) * 8) { in test_facility()
56 if (__test_facility(nr, &facilities_als)) in test_facility()
59 return __test_facility(nr, &S390_lowcore.stfle_fac_list); in test_facility()
81 unsigned long nr; in __stfle() local
86 nr = 4; /* bytes stored by stfl */ in __stfle()
90 nr = __stfle_asm(stfle_fac_list, size); in __stfle()
91 nr = min_t(unsigned long, (nr + 1) * 8, size * 8); in __stfle()
93 memset((char *) stfle_fac_list + nr, 0, size * 8 - nr); in __stfle()