Lines Matching defs:cr
127 static __always_inline void local_ctl_load(unsigned int cr, struct ctlreg *reg)
130 " lctlg %[cr],%[cr],%[reg]\n"
132 : [reg] "Q" (*reg), [cr] "i" (cr)
136 static __always_inline void local_ctl_store(unsigned int cr, struct ctlreg *reg)
139 " stctg %[cr],%[cr],%[reg]\n"
141 : [cr] "i" (cr));
144 static __always_inline struct ctlreg local_ctl_set_bit(unsigned int cr, unsigned int bit)
148 local_ctl_store(cr, &old);
151 local_ctl_load(cr, &new);
155 static __always_inline struct ctlreg local_ctl_clear_bit(unsigned int cr, unsigned int bit)
159 local_ctl_store(cr, &old);
162 local_ctl_load(cr, &new);
171 void system_ctlreg_modify(unsigned int cr, unsigned long data, int request);
179 static inline void system_ctl_set_bit(unsigned int cr, unsigned int bit)
181 system_ctlreg_modify(cr, bit, CTLREG_SET_BIT);
184 static inline void system_ctl_clear_bit(unsigned int cr, unsigned int bit)
186 system_ctlreg_modify(cr, bit, CTLREG_CLEAR_BIT);
189 static inline void system_ctl_load(unsigned int cr, struct ctlreg *reg)
191 system_ctlreg_modify(cr, reg->val, CTLREG_LOAD);