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