Home
last modified time | relevance | path

Searched refs:WARN_ON_ONCE (Results 1 – 25 of 1394) sorted by relevance

12345678910>>...56

/OK3568_Linux_fs/kernel/kernel/rcu/
H A Dsync.c78 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_func()
79 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_func()
129 WARN_ON_ONCE(rsp->gp_count); in rcu_sync_enter()
170 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_exit()
171 WARN_ON_ONCE(READ_ONCE(rsp->gp_count) == 0); in rcu_sync_exit()
193 WARN_ON_ONCE(READ_ONCE(rsp->gp_count)); in rcu_sync_dtor()
194 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_dtor()
204 WARN_ON_ONCE(rsp->gp_state != GP_IDLE); in rcu_sync_dtor()
H A Dtree_plugin.h144 WARN_ON_ONCE(rdp->mynode != rnp); in rcu_preempt_ctxt_queue()
145 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_ctxt_queue()
147 WARN_ON_ONCE(rnp->qsmaskinitnext & ~rnp->qsmaskinit & rnp->qsmask & in rcu_preempt_ctxt_queue()
216 WARN_ON_ONCE(1); in rcu_preempt_ctxt_queue()
228 WARN_ON_ONCE(rnp->completedqs == rnp->gp_seq); in rcu_preempt_ctxt_queue()
232 WARN_ON_ONCE(!(blkd_state & RCU_GP_BLKD) != in rcu_preempt_ctxt_queue()
234 WARN_ON_ONCE(!(blkd_state & RCU_EXP_BLKD) != in rcu_preempt_ctxt_queue()
247 WARN_ON_ONCE(rdp->exp_deferred_qs); in rcu_preempt_ctxt_queue()
297 WARN_ON_ONCE(!preempt && rcu_preempt_depth() > 0); in rcu_note_context_switch()
312 WARN_ON_ONCE((rdp->grpmask & rcu_rnp_online_cpus(rnp)) == 0); in rcu_note_context_switch()
[all …]
H A Dtree.c260 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_dynticks_eqs_enter()
263 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_dynticks_eqs_enter()
285 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_dynticks_eqs_exit()
420 WARN_ON_ONCE(!(special & RCU_DYNTICK_CTRL_CTR)); in rcu_momentary_dyntick_idle()
458 WARN_ON_ONCE(!nesting && !is_idle_task(current)); in rcu_is_cpu_rrupt_from_idle()
624 WARN_ON_ONCE(rdp->dynticks_nmi_nesting != DYNTICK_IRQ_NONIDLE); in rcu_eqs_enter()
626 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_eqs_enter()
637 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); in rcu_eqs_enter()
718 WARN_ON_ONCE(rdp->dynticks_nmi_nesting <= 0); in rcu_nmi_exit()
719 WARN_ON_ONCE(rcu_dynticks_curr_cpu_in_eqs()); in rcu_nmi_exit()
[all …]
H A Dtasks.h818 if (WARN_ON_ONCE(atomic_dec_and_test(&trc_n_readers_need_end))) in trc_read_check_handler()
826 if (WARN_ON_ONCE(atomic_dec_and_test(&trc_n_readers_need_end))) in trc_read_check_handler()
835 if (WARN_ON_ONCE(atomic_dec_and_test(&trc_n_readers_need_end))) in trc_read_check_handler()
844 WARN_ON_ONCE(t->trc_reader_special.b.need_qs); in trc_read_check_handler()
863 WARN_ON_ONCE(ofl && !is_idle_task(t)); in trc_inspect_reader()
895 WARN_ON_ONCE(t->trc_reader_special.b.need_qs); in trc_inspect_reader()
913 WARN_ON_ONCE(t->trc_reader_nesting); in trc_wait_for_one_reader()
948 WARN_ON_ONCE(1); in trc_wait_for_one_reader()
965 WARN_ON_ONCE(per_cpu(trc_ipi_to_cpu, cpu)); in rcu_tasks_trace_pregp_step()
1118 WARN_ON_ONCE(t->trc_reader_nesting); in exit_tasks_rcu_finish_trace()
[all …]
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dcrypto.c88 WARN_ON_ONCE(lblk_num > U32_MAX); in fscrypt_generate_iv()
89 WARN_ON_ONCE(ci->ci_inode->i_ino > U32_MAX); in fscrypt_generate_iv()
92 WARN_ON_ONCE(lblk_num > U32_MAX); in fscrypt_generate_iv()
114 if (WARN_ON_ONCE(len <= 0)) in fscrypt_crypt_block()
116 if (WARN_ON_ONCE(len % FS_CRYPTO_BLOCK_SIZE != 0)) in fscrypt_crypt_block()
187 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_encrypt_pagecache_blocks()
190 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
266 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_decrypt_pagecache_blocks()
269 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
/OK3568_Linux_fs/kernel/kernel/sched/
H A Didle.c35 WARN_ON_ONCE(cpu_idle_force_poll < 0); in cpu_idle_poll_ctrl()
254 if (WARN_ON_ONCE(irqs_disabled())) in cpuidle_idle_call()
365 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle_precise()
366 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise()
367 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise()
368 WARN_ON_ONCE(!(current->flags & PF_NO_SETAFFINITY)); in play_idle_precise()
369 WARN_ON_ONCE(!duration_ns); in play_idle_precise()
415 return WARN_ON_ONCE(1); in balance_idle()
/OK3568_Linux_fs/kernel/arch/x86/include/asm/
H A Dentry-common.h30 WARN_ON_ONCE(flags & mask); in arch_check_user_regs()
33 WARN_ON_ONCE(!user_mode(regs)); in arch_check_user_regs()
40 WARN_ON_ONCE(!on_thread_stack()); in arch_check_user_regs()
41 WARN_ON_ONCE(regs != task_pt_regs(current)); in arch_check_user_regs()
/OK3568_Linux_fs/kernel/scripts/coccinelle/misc/
H A Dwarn.cocci71 WARN_ON_ONCE(1);
78 *WARN_ON_ONCE(1);
84 cocci.print_main("printk + WARN_ON_ONCE can be just WARN_ONCE",p)
90 msg = "SUGGESTION: printk + WARN_ON_ONCE can be just WARN_ONCE"
101 -WARN_ON_ONCE(1);
/OK3568_Linux_fs/kernel/kernel/
H A Dkthread.c116 WARN_ON_ONCE(kthread && kthread->blkcg_css); in free_kthread_struct()
528 WARN_ON_ONCE(!(k->flags & PF_NO_SETAFFINITY)); in kthread_set_per_cpu()
594 if (WARN_ON_ONCE(test_bit(KTHREAD_SHOULD_PARK, &kthread->flags))) in kthread_park()
609 WARN_ON_ONCE(!wait_task_inactive(k, TASK_PARKED)); in kthread_park()
872 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check()
874 WARN_ON_ONCE(work->worker && work->worker != worker); in kthread_insert_work_sanity_check()
937 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn()
942 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn()
945 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn()
967 WARN_ON_ONCE(timer->function != kthread_delayed_work_timer_fn); in __kthread_queue_delayed_work()
[all …]
H A Dscftorture.c197 WARN_ON_ONCE(scf_sel_array_len >= ARRAY_SIZE(scf_sel_array)) || in scf_sel_add()
198 WARN_ON_ONCE(0 - 100000 * weight <= 100000 * scf_sel_totweight) || in scf_sel_add()
199 WARN_ON_ONCE(prim >= ARRAY_SIZE(scf_prim_name))) in scf_sel_add()
235 WARN_ON_ONCE(1); in scf_sel_rand()
251 if (WARN_ON_ONCE(unlikely(!READ_ONCE(scfcp->scfc_in)))) in scf_handler()
309 if (WARN_ON_ONCE(!scfcp)) { in scftorture_invoke_one()
362 WARN_ON_ONCE(1); in scftorture_invoke_one()
367 if (WARN_ON_ONCE((num_online_cpus() > 1 || scfsp->scfs_prim == SCF_PRIM_SINGLE) && in scftorture_invoke_one()
401 WARN_ON_ONCE(smp_processor_id() != scfp->cpu); in scftorture_invoker()
/OK3568_Linux_fs/kernel/kernel/livepatch/
H A Dtransition.c111 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
118 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
146 if (WARN_ON_ONCE(klp_target_state != KLP_PATCHED)) in klp_cancel_transition()
395 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_try_complete_transition()
468 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_start_transition()
512 WARN_ON_ONCE(klp_target_state != KLP_UNDEFINED); in klp_init_transition()
531 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
541 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/
H A Diwl-trans.h1089 WARN_ON_ONCE(!trans->rx_mpdu_cmd); in iwl_trans_start_fw()
1167 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_tx()
1178 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_reclaim()
1189 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_set_q_ptrs()
1210 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_txq_enable_cfg()
1223 if (WARN_ON_ONCE(!trans->ops->rxq_dma_data)) in iwl_trans_get_rxq_dma_data()
1232 if (WARN_ON_ONCE(!trans->ops->txq_free)) in iwl_trans_txq_free()
1246 if (WARN_ON_ONCE(!trans->ops->txq_alloc)) in iwl_trans_txq_alloc()
1249 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_txq_alloc()
1300 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_freeze_txq_timer()
[all …]
H A Diwl-scd.h110 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_WRPTR()
118 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_RDPTR()
126 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_STATUS_BITS()
/OK3568_Linux_fs/kernel/arch/powerpc/sysdev/xics/
H A Dicp-hv.c32 WARN_ON_ONCE(1); in icp_hv_get_xirr()
44 WARN_ON_ONCE(1); in icp_hv_set_cppr()
54 WARN_ON_ONCE(1); in icp_hv_set_xirr()
70 WARN_ON_ONCE(1); in icp_hv_set_qirr()
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dcore.c230 if (WARN_ON_ONCE(!old)) in __nf_hook_entries_try_shrink()
275 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head()
281 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head()
287 if (WARN_ON_ONCE(hooknum != NF_INET_INGRESS)) in nf_hook_entry_head()
290 WARN_ON_ONCE(1); in nf_hook_entry_head()
296 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head()
300 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head()
305 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_decnet) <= hooknum)) in nf_hook_entry_head()
310 WARN_ON_ONCE(1); in nf_hook_entry_head()
320 WARN_ON_ONCE(1); in nf_hook_entry_head()
[all …]
/OK3568_Linux_fs/kernel/fs/iomap/
H A Dbuffered-io.c77 WARN_ON_ONCE(atomic_read(&iop->read_bytes_pending)); in iomap_page_release()
78 WARN_ON_ONCE(atomic_read(&iop->write_bytes_pending)); in iomap_page_release()
79 WARN_ON_ONCE(bitmap_full(iop->uptodate, nr_blocks) != in iomap_page_release()
249 WARN_ON_ONCE(pos); in iomap_readpage_actor()
330 WARN_ON_ONCE(ret == 0); in iomap_readpage()
338 WARN_ON_ONCE(!ctx.cur_page_in_bio); in iomap_readpage()
340 WARN_ON_ONCE(ctx.cur_page_in_bio); in iomap_readpage()
408 WARN_ON_ONCE(ret == 0); in iomap_readahead()
487 WARN_ON_ONCE(PageWriteback(page)); in iomap_invalidatepage()
576 if (WARN_ON_ONCE(flags & IOMAP_WRITE_F_UNSHARE)) in __iomap_write_begin()
[all …]
/OK3568_Linux_fs/kernel/arch/sparc/kernel/
H A Dpcr.c59 WARN_ON_ONCE(reg_num != 0); in direct_pcr_read()
66 WARN_ON_ONCE(reg_num != 0); in direct_pcr_write()
74 WARN_ON_ONCE(reg_num != 0); in direct_pic_read()
81 WARN_ON_ONCE(reg_num != 0); in direct_pic_write()
115 WARN_ON_ONCE(reg_num != 0); in n2_pcr_write()
/OK3568_Linux_fs/kernel/include/linux/
H A Diocontext.h126 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active()
127 WARN_ON_ONCE(atomic_read(&ioc->active_ref) <= 0); in get_io_context_active()
136 WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0); in ioc_task_link()
/OK3568_Linux_fs/kernel/include/asm-generic/
H A Dbug.h101 #define WARN_ON_ONCE(condition) ({ \ macro
142 #ifndef WARN_ON_ONCE
143 #define WARN_ON_ONCE(condition) ({ \ macro
201 #define WARN_ON_ONCE(condition) WARN_ON(condition) macro
/OK3568_Linux_fs/kernel/lib/
H A Drbtree_test.c178 WARN_ON_ONCE(count != nr_nodes); in check_postorder_foreach()
188 WARN_ON_ONCE(count != nr_nodes); in check_postorder()
199 WARN_ON_ONCE(node->key < prev_key); in check()
200 WARN_ON_ONCE(is_red(rb) && in check()
205 WARN_ON_ONCE((!rb->rb_left || !rb->rb_right) && in check()
211 WARN_ON_ONCE(count != nr_nodes); in check()
212 WARN_ON_ONCE(count < (1 << black_path_count(rb_last(&root.rb_root))) - 1); in check()
238 WARN_ON_ONCE(node->augmented != max); in check_augmented()
/OK3568_Linux_fs/kernel/block/
H A Dblk-zoned.c92 WARN_ON_ONCE(rq->rq_flags & RQF_ZONE_WRITE_LOCKED); in blk_req_zone_write_trylock()
101 if (WARN_ON_ONCE(test_and_set_bit(blk_rq_zone_no(rq), in __blk_req_zone_write_lock()
105 WARN_ON_ONCE(rq->rq_flags & RQF_ZONE_WRITE_LOCKED); in __blk_req_zone_write_lock()
114 WARN_ON_ONCE(!test_and_clear_bit(blk_rq_zone_no(rq), in __blk_req_zone_write_unlock()
162 WARN_ON_ONCE(!disk->fops->report_zones)) in blkdev_report_zones()
524 if (WARN_ON_ONCE(!blk_queue_is_zoned(q))) in blk_revalidate_disk_zones()
526 if (WARN_ON_ONCE(!queue_is_mq(q))) in blk_revalidate_disk_zones()
/OK3568_Linux_fs/kernel/fs/
H A Ddax.c234 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in get_unlocked_entry()
355 WARN_ON_ONCE(page->mapping); in dax_associate_entry()
372 WARN_ON_ONCE(trunc && page_ref_count(page) > 1); in dax_disassociate_entry()
373 WARN_ON_ONCE(page->mapping && page->mapping != mapping); in dax_disassociate_entry()
631 if (WARN_ON_ONCE(!xa_is_value(entry))) in dax_layout_busy_page_range()
668 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in __dax_invalidate_entry()
699 WARN_ON_ONCE(!ret); in dax_delete_mapping_entry()
784 WARN_ON_ONCE(old != xa_mk_value(xa_to_value(entry) | in dax_insert_entry()
902 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in dax_writeback_one()
911 if (WARN_ON_ONCE(dax_is_empty_entry(entry) || in dax_writeback_one()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dbinding.c136 if (WARN_ON_ONCE(data->idx >= MAX_MACS_IN_BINDING)) in iwl_mvm_iface_iterator()
175 if (WARN_ON_ONCE(data.idx >= MAX_MACS_IN_BINDING)) in iwl_mvm_binding_update()
190 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) in iwl_mvm_binding_add_vif()
208 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) in iwl_mvm_binding_remove_vif()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_cache.c110 WARN_ON_ONCE(1); in drm_clflush_pages()
141 WARN_ON_ONCE(1); in drm_clflush_sg()
175 WARN_ON_ONCE(1); in drm_clflush_virt_range()
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath6kl/
H A Dhtc_pipe.c223 WARN_ON_ONCE(1); in htc_issue_packets()
233 WARN_ON_ONCE(1); in htc_issue_packets()
362 WARN_ON_ONCE(1); in htc_try_send()
423 WARN_ON_ONCE(1); in htc_try_send()
667 WARN_ON_ONCE(1); in htc_process_credit_report()
793 WARN_ON_ONCE(1); in htc_send_packets_multiple()
885 WARN_ON_ONCE(1); in htc_process_trailer()
963 if (WARN_ON_ONCE(!target)) { in ath6kl_htc_pipe_rx_complete()
1236 WARN_ON_ONCE(1); in ath6kl_htc_pipe_conn_service()
1258 WARN_ON_ONCE(1); in ath6kl_htc_pipe_conn_service()
[all …]

12345678910>>...56