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