Lines Matching full:nr
24 static inline void __set_facility(unsigned long nr, void *facilities) in __set_facility() argument
28 if (nr >= MAX_FACILITY_BIT) in __set_facility()
30 ptr[nr >> 3] |= 0x80 >> (nr & 7); in __set_facility()
33 static inline void __clear_facility(unsigned long nr, void *facilities) in __clear_facility() argument
37 if (nr >= MAX_FACILITY_BIT) in __clear_facility()
39 ptr[nr >> 3] &= ~(0x80 >> (nr & 7)); in __clear_facility()
42 static __always_inline bool __test_facility(unsigned long nr, void *facilities) in __test_facility() argument
46 if (nr >= MAX_FACILITY_BIT) in __test_facility()
48 ptr = (unsigned char *) facilities + (nr >> 3); in __test_facility()
49 return (*ptr & (0x80 >> (nr & 7))) != 0; in __test_facility()
59 static __always_inline bool __test_facility_constant(unsigned long nr) in __test_facility_constant() argument
62 ALTERNATIVE("brcl 15,%l[l_no]", "brcl 0,0", ALT_FACILITY(%[nr])) in __test_facility_constant()
64 : [nr] "i" (nr) in __test_facility_constant()
77 static __always_inline bool test_facility(unsigned long nr) in test_facility() argument
81 if (!__is_defined(__DECOMPRESSOR) && __builtin_constant_p(nr)) { in test_facility()
82 if (nr < sizeof(facilities_als) * 8) { in test_facility()
83 if (__test_facility(nr, &facilities_als)) in test_facility()
86 return __test_facility_constant(nr); in test_facility()
88 return __test_facility(nr, &stfle_fac_list); in test_facility()
112 unsigned long nr; in __stfle() local
120 nr = 4; /* bytes stored by stfl */ in __stfle()
123 nr = __stfle_asm(stfle_fac_list, size); in __stfle()
124 nr = min_t(unsigned long, (nr + 1) * 8, size * 8); in __stfle()
126 memset((char *) stfle_fac_list + nr, 0, size * 8 - nr); in __stfle()