Lines Matching refs:cnt
110 * also in per CPU softirq_ctrl::cnt. This is necessary to allow tasks in a
122 int cnt;
132 * Returns false if the per CPU softirq::cnt is 0 otherwise true.
141 return __this_cpu_read(softirq_ctrl.cnt) != 0;
144 void __local_bh_disable_ip(unsigned long ip, unsigned int cnt)
158 DEBUG_LOCKS_WARN_ON(this_cpu_read(softirq_ctrl.cnt));
166 newcnt = __this_cpu_add_return(softirq_ctrl.cnt, cnt);
173 if (IS_ENABLED(CONFIG_TRACE_IRQFLAGS) && newcnt == cnt) {
181 static void __local_bh_enable(unsigned int cnt, bool unlock)
187 this_cpu_read(softirq_ctrl.cnt));
189 if (IS_ENABLED(CONFIG_TRACE_IRQFLAGS) && softirq_count() == cnt) {
195 newcnt = __this_cpu_sub_return(softirq_ctrl.cnt, cnt);
204 void __local_bh_enable_ip(unsigned long ip, unsigned int cnt)
215 curcnt = __this_cpu_read(softirq_ctrl.cnt);
221 if (curcnt != cnt)
241 cnt = SOFTIRQ_OFFSET;
242 __local_bh_enable(cnt, false);
246 __local_bh_enable(cnt, preempt_on);
274 return !this_cpu_read(softirq_ctrl.cnt);
303 void __local_bh_disable_ip(unsigned long ip, unsigned int cnt)
317 __preempt_count_add(cnt);
321 if (softirq_count() == (cnt & SOFTIRQ_MASK))
325 if (preempt_count() == cnt) {
335 static void __local_bh_enable(unsigned int cnt)
339 if (preempt_count() == cnt)
342 if (softirq_count() == (cnt & SOFTIRQ_MASK))
345 __preempt_count_sub(cnt);
359 void __local_bh_enable_ip(unsigned long ip, unsigned int cnt)
375 __preempt_count_sub(cnt - 1);