Home
last modified time | relevance | path

Searched refs:WARN_ON (Results 1 – 25 of 3023) sorted by relevance

12345678910>>...121

/Linux-v4.19/include/linux/
Dgpio.h136 WARN_ON(1); in gpio_free()
144 WARN_ON(1); in gpio_free_array()
165 WARN_ON(1); in gpio_get_value()
172 WARN_ON(1); in gpio_set_value()
178 WARN_ON(1); in gpio_cansleep()
185 WARN_ON(1); in gpio_get_value_cansleep()
192 WARN_ON(1); in gpio_set_value_cansleep()
198 WARN_ON(1); in gpio_export()
206 WARN_ON(1); in gpio_export_link()
213 WARN_ON(1); in gpio_unexport()
[all …]
Drpmsg.h148 WARN_ON(1); in unregister_rpmsg_device()
155 WARN_ON(1); in __register_rpmsg_driver()
163 WARN_ON(1); in unregister_rpmsg_driver()
169 WARN_ON(1); in rpmsg_destroy_ept()
178 WARN_ON(1); in rpmsg_create_ept()
186 WARN_ON(1); in rpmsg_send()
195 WARN_ON(1); in rpmsg_sendto()
205 WARN_ON(1); in rpmsg_send_offchannel()
213 WARN_ON(1); in rpmsg_trysend()
222 WARN_ON(1); in rpmsg_trysendto()
[all …]
/Linux-v4.19/arch/powerpc/sysdev/
Dmsi_bitmap.c165 WARN_ON(msi_bitmap_alloc(&bmp, 0, NULL) == 0); in test_basics()
168 WARN_ON(msi_bitmap_alloc(&bmp, size, NULL)); in test_basics()
171 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
175 WARN_ON(msi_bitmap_reserve_dt_hwirqs(&bmp) <= 0); in test_basics()
178 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
183 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) < 0); in test_basics()
185 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) >= 0); in test_basics()
188 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, 0) >= 0); in test_basics()
192 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) != size / 2); in test_basics()
199 WARN_ON(rc < 0 && rc % 2 != 0); in test_basics()
[all …]
/Linux-v4.19/include/linux/gpio/
Dconsumer.h225 WARN_ON(1); in gpiod_put()
233 WARN_ON(1); in gpiod_put_array()
286 WARN_ON(1); in devm_gpiod_put()
295 WARN_ON(1); in devm_gpiod_put_array()
302 WARN_ON(1); in gpiod_get_direction()
308 WARN_ON(1); in gpiod_direction_input()
314 WARN_ON(1); in gpiod_direction_output()
320 WARN_ON(1); in gpiod_direction_output_raw()
328 WARN_ON(1); in gpiod_get_value()
336 WARN_ON(1); in gpiod_get_array_value()
[all …]
/Linux-v4.19/net/wireless/
Dcore.c186 WARN_ON(err); in cfg80211_switch_netns()
196 WARN_ON(err); in cfg80211_switch_netns()
213 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_P2P_DEVICE)) in cfg80211_stop_p2p_device()
225 if (WARN_ON(!rdev->scan_req->notified)) in cfg80211_stop_p2p_device()
236 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_NAN)) in cfg80211_stop_nan()
391 WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key)); in wiphy_new_nm()
392 WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc)); in wiphy_new_nm()
393 WARN_ON(ops->connect && !ops->disconnect); in wiphy_new_nm()
394 WARN_ON(ops->join_ibss && !ops->leave_ibss); in wiphy_new_nm()
395 WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf); in wiphy_new_nm()
[all …]
/Linux-v4.19/include/linux/clk/
Dtegra.h60 if (WARN_ON(!tegra_cpu_car_ops->wait_for_reset)) in tegra_wait_cpu_in_reset()
68 if (WARN_ON(!tegra_cpu_car_ops->put_in_reset)) in tegra_put_cpu_in_reset()
76 if (WARN_ON(!tegra_cpu_car_ops->out_of_reset)) in tegra_cpu_out_of_reset()
84 if (WARN_ON(!tegra_cpu_car_ops->enable_clock)) in tegra_enable_cpu_clock()
92 if (WARN_ON(!tegra_cpu_car_ops->disable_clock)) in tegra_disable_cpu_clock()
101 if (WARN_ON(!tegra_cpu_car_ops->rail_off_ready)) in tegra_cpu_rail_off_ready()
109 if (WARN_ON(!tegra_cpu_car_ops->suspend)) in tegra_cpu_clock_suspend()
117 if (WARN_ON(!tegra_cpu_car_ops->resume)) in tegra_cpu_clock_resume()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_modeset_lock.c97 if (WARN_ON(!ctx)) in drm_modeset_lock_all()
118 WARN_ON(config->acquire_ctx); in drm_modeset_lock_all()
149 if (WARN_ON(!ctx)) in drm_modeset_unlock_all()
177 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); in drm_warn_on_modeset_not_all_locked()
179 WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex)); in drm_warn_on_modeset_not_all_locked()
180 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_warn_on_modeset_not_all_locked()
223 WARN_ON(ctx->contended); in drm_modeset_drop_locks()
241 WARN_ON(ctx->contended); in modeset_lock()
261 WARN_ON(!list_empty(&lock->head)); in modeset_lock()
295 if (WARN_ON(!contended)) in drm_modeset_backoff()
/Linux-v4.19/net/mac802154/
Ddriver-ops.h78 WARN_ON(1); in drv_set_tx_power()
96 WARN_ON(1); in drv_set_cca_mode()
113 WARN_ON(1); in drv_set_lbt_mode()
131 WARN_ON(1); in drv_set_cca_ed_level()
149 WARN_ON(1); in drv_set_pan_id()
171 WARN_ON(1); in drv_set_extended_addr()
193 WARN_ON(1); in drv_set_short_addr()
215 WARN_ON(1); in drv_set_pan_coord()
237 WARN_ON(1); in drv_set_csma_params()
257 WARN_ON(1); in drv_set_max_frame_retries()
[all …]
/Linux-v4.19/kernel/livepatch/
Dpatch.c143 if (WARN_ON(!func->patched)) in klp_unpatch_func()
145 if (WARN_ON(!func->old_addr)) in klp_unpatch_func()
149 if (WARN_ON(!ops)) in klp_unpatch_func()
156 if (WARN_ON(!ftrace_loc)) in klp_unpatch_func()
159 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func()
160 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func()
177 if (WARN_ON(!func->old_addr)) in klp_patch_func()
180 if (WARN_ON(func->patched)) in klp_patch_func()
255 if (WARN_ON(obj->patched)) in klp_patch_object()
/Linux-v4.19/lib/
Dlocking-selftest.c188 WARN_ON(!in_irq());
201 WARN_ON(!in_softirq());
1141 WARN_ON(irqs_disabled()); in dotest()
1317 if (WARN_ON(!o.ctx) || in ww_test_fail_acquire()
1318 WARN_ON(ret)) in ww_test_fail_acquire()
1323 WARN_ON(ret != -EALREADY); in ww_test_fail_acquire()
1326 WARN_ON(ret); in ww_test_fail_acquire()
1331 WARN_ON(ret != -EDEADLK); in ww_test_fail_acquire()
1358 WARN_ON(o.ctx != (void *)~0UL); in ww_test_normal()
1366 WARN_ON(1); in ww_test_normal()
[all …]
Dseq_buf.c61 WARN_ON(s->size == 0); in seq_buf_vprintf()
118 WARN_ON(s->size == 0); in seq_buf_bprintf()
145 WARN_ON(s->size == 0); in seq_buf_puts()
167 WARN_ON(s->size == 0); in seq_buf_putc()
191 WARN_ON(s->size == 0); in seq_buf_putmem()
225 WARN_ON(s->size == 0);
267 WARN_ON(s->size == 0);
/Linux-v4.19/drivers/clk/mvebu/
Dcommon.c119 if (WARN_ON(!base)) in mvebu_coreclk_setup()
131 if (WARN_ON(!clk_data.clks)) { in mvebu_coreclk_setup()
142 WARN_ON(IS_ERR(clk_data.clks[0])); in mvebu_coreclk_setup()
155 WARN_ON(IS_ERR(clk_data.clks[1])); in mvebu_coreclk_setup()
167 WARN_ON(IS_ERR(clk_data.clks[2+n])); in mvebu_coreclk_setup()
178 WARN_ON(IS_ERR(clk_data.clks[2 + desc->num_ratios])); in mvebu_coreclk_setup()
250 if (WARN_ON(!base)) in mvebu_clk_gating_setup()
260 if (WARN_ON(!ctrl)) in mvebu_clk_gating_setup()
275 if (WARN_ON(!ctrl->gates)) in mvebu_clk_gating_setup()
284 WARN_ON(IS_ERR(ctrl->gates[n])); in mvebu_clk_gating_setup()
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dbh.c85 WARN_ON(err); in cw1200_register_bh()
171 if (WARN_ON(priv->hw_bufs_used < 0)) in wsm_release_tx_buffer()
207 if (WARN_ON(ret)) in cw1200_device_wakeup()
213 if (WARN_ON(ret)) in cw1200_device_wakeup()
217 if (WARN_ON(ret)) in cw1200_device_wakeup()
259 if (WARN_ON((read_len < sizeof(struct wsm_hdr)) || in cw1200_bh_rx_helper()
281 if (WARN_ON(!skb_rx)) in cw1200_bh_rx_helper()
287 if (WARN_ON(!data)) in cw1200_bh_rx_helper()
290 if (WARN_ON(cw1200_data_read(priv, data, alloc_len))) { in cw1200_bh_rx_helper()
301 if (WARN_ON(wsm_len > read_len)) in cw1200_bh_rx_helper()
[all …]
/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dmmio.c116 if (WARN_ON(bytes > 8)) in intel_vgpu_emulate_mmio_read()
120 if (WARN_ON(!IS_ALIGNED(offset, 4) && !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_read()
122 if (WARN_ON(bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read()
124 if (WARN_ON(!reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
139 if (WARN_ON(!reg_is_mmio(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
143 if (WARN_ON(!IS_ALIGNED(offset, bytes))) in intel_vgpu_emulate_mmio_read()
189 if (WARN_ON(bytes > 8)) in intel_vgpu_emulate_mmio_write()
193 if (WARN_ON(!IS_ALIGNED(offset, 4) && !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_write()
195 if (WARN_ON(bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_write()
197 if (WARN_ON(!reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_write()
Dcfg_space.c101 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_read()
104 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read()
290 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_write()
293 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_write()
298 if (WARN_ON(bytes > 2)) in intel_vgpu_emulate_cfg_write()
305 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
310 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
315 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
323 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
/Linux-v4.19/fs/btrfs/
Dlocking.c34 WARN_ON(atomic_read(&eb->spinning_writers) != 1); in btrfs_set_lock_blocking_rw()
43 WARN_ON(atomic_read(&eb->spinning_readers) == 0); in btrfs_set_lock_blocking_rw()
67 WARN_ON(atomic_read(&eb->spinning_writers)); in btrfs_clear_lock_blocking_rw()
195 WARN_ON(atomic_read(&eb->spinning_readers) == 0); in btrfs_tree_read_unlock()
217 WARN_ON(atomic_read(&eb->blocking_readers) == 0); in btrfs_tree_read_unlock_blocking()
230 WARN_ON(eb->lock_owner == current->pid); in btrfs_tree_lock()
247 WARN_ON(atomic_read(&eb->spinning_writers)); in btrfs_tree_lock()
267 WARN_ON(atomic_read(&eb->spinning_writers)); in btrfs_tree_unlock()
273 WARN_ON(atomic_read(&eb->spinning_writers) != 1); in btrfs_tree_unlock()
/Linux-v4.19/arch/arm/mach-w90x900/
Dclock.c52 WARN_ON(clk->enabled == 0); in clk_disable()
100 WARN_ON(clk); in clk_round_rate()
107 WARN_ON(clk); in clk_set_rate()
114 WARN_ON(clk); in clk_set_parent()
121 WARN_ON(clk); in clk_get_parent()
/Linux-v4.19/arch/arm64/kernel/
Dfpsimd.c157 WARN_ON(test_tsk_thread_flag(task, TIF_SVE)); in sve_free()
220 WARN_ON(!in_softirq() && !irqs_disabled()); in task_fpsimd_load()
241 WARN_ON(!in_softirq() && !irqs_disabled()); in fpsimd_save()
245 if (WARN_ON(sve_get_vl() != current->thread.sve_vl)) { in fpsimd_save()
274 if (WARN_ON(bit >= SVE_VQ_MAX)) in bit_to_vq()
291 if (WARN_ON(!sve_vl_valid(vl))) in find_supported_vector_length()
294 if (WARN_ON(!sve_vl_valid(max_vl))) in find_supported_vector_length()
756 if (WARN_ON(!test_bit(vq_to_bit(SVE_VQ_MIN), sve_vq_map))) in sve_setup()
766 if (WARN_ON(sve_max_vl != find_supported_vector_length(sve_max_vl))) in sve_setup()
809 if (unlikely(!system_supports_sve()) || WARN_ON(is_compat_task())) { in do_sve_acc()
[all …]
/Linux-v4.19/net/mac80211/
Dchan.c217 WARN_ON(1); in ieee80211_get_sta_bw()
349 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
540 WARN_ON(local->hw.conf.radar_enabled && in ieee80211_del_chanctx()
647 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_NAN)) in ieee80211_assign_vif_chanctx()
798 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP)) in __ieee80211_vif_copy_chanctx_to_vlans()
811 WARN_ON(!conf); in __ieee80211_vif_copy_chanctx_to_vlans()
838 if (WARN_ON(!ctx)) in ieee80211_vif_unreserve_chanctx()
846 if (WARN_ON(!ctx->replace_ctx)) in ieee80211_vif_unreserve_chanctx()
849 WARN_ON(ctx->replace_ctx->replace_state != in ieee80211_vif_unreserve_chanctx()
851 WARN_ON(ctx->replace_ctx->replace_ctx != ctx); in ieee80211_vif_unreserve_chanctx()
[all …]
/Linux-v4.19/scripts/coccinelle/misc/
Dwarn.cocci1 /// Use WARN(1,...) rather than printk followed by WARN_ON(1)
21 WARN_ON(1);
28 *WARN_ON(1);
34 cocci.print_main("printk + WARN_ON can be just WARN",p)
40 msg = "SUGGESTION: printk + WARN_ON can be just WARN"
51 -WARN_ON(1);
/Linux-v4.19/arch/x86/mm/
Dpti.c228 WARN_ON(1); in pti_user_pagetable_walk_pmd()
263 WARN_ON(1); in pti_user_pagetable_walk_pte()
290 if (!pte || WARN_ON(level != PG_LEVEL_4K) || pte_none(*pte)) in pti_setup_vsyscall()
294 if (WARN_ON(!target_pte)) in pti_setup_vsyscall()
331 if (WARN_ON(pgd_none(*pgd))) in pti_clone_pgtable()
334 if (WARN_ON(p4d_none(*p4d))) in pti_clone_pgtable()
351 if (WARN_ON(!target_pmd)) in pti_clone_pgtable()
360 if (WARN_ON(!(pmd_flags(*pmd) & _PAGE_PRESENT))) in pti_clone_pgtable()
394 if (WARN_ON(!(pte_flags(*pte) & _PAGE_PRESENT))) in pti_clone_pgtable()
399 if (WARN_ON(!target_pte)) in pti_clone_pgtable()
/Linux-v4.19/drivers/infiniband/core/
Duverbs_uapi.c49 if (WARN_ON(method->handler)) in uapi_merge_method()
52 if (WARN_ON(!method_elm)) in uapi_merge_method()
55 WARN_ON(!method->handler); in uapi_merge_method()
114 if (WARN_ON(obj->type_attrs)) in uapi_merge_tree()
117 if (WARN_ON(!obj_elm)) in uapi_merge_tree()
131 if (WARN_ON(is_driver && in uapi_merge_tree()
195 if (WARN_ON(single_uobj)) in uapi_finalize_ioctl_method()
199 if (WARN_ON(!elm->spec.mandatory)) in uapi_finalize_ioctl_method()
212 WARN_ON(method_elm->key_bitmap_len > UVERBS_API_ATTR_BKEY_LEN); in uapi_finalize_ioctl_method()
/Linux-v4.19/drivers/clk/bcm/
Dclk-iproc-asiu.c193 if (WARN_ON(!gate || !div)) in iproc_asiu_setup()
197 if (WARN_ON(!asiu)) in iproc_asiu_setup()
202 if (WARN_ON(!asiu->clk_data)) in iproc_asiu_setup()
207 if (WARN_ON(!asiu->clks)) in iproc_asiu_setup()
211 if (WARN_ON(!asiu->div_base)) in iproc_asiu_setup()
215 if (WARN_ON(!asiu->gate_base)) in iproc_asiu_setup()
226 if (WARN_ON(ret)) in iproc_asiu_setup()
243 if (WARN_ON(ret)) in iproc_asiu_setup()
250 if (WARN_ON(ret)) in iproc_asiu_setup()
/Linux-v4.19/kernel/rcu/
Dsrcutiny.c91 WARN_ON(sp->srcu_lock_nesting[0] || sp->srcu_lock_nesting[1]); in _cleanup_srcu_struct()
93 WARN_ON(work_pending(&sp->srcu_work)); in _cleanup_srcu_struct()
96 WARN_ON(sp->srcu_gp_running); in _cleanup_srcu_struct()
97 WARN_ON(sp->srcu_gp_waiting); in _cleanup_srcu_struct()
98 WARN_ON(sp->srcu_cb_head); in _cleanup_srcu_struct()
99 WARN_ON(&sp->srcu_cb_head != sp->srcu_cb_tail); in _cleanup_srcu_struct()
/Linux-v4.19/include/asm-generic/
Dbug.h120 #ifndef WARN_ON
121 #define WARN_ON(condition) ({ \ macro
152 WARN_ON(1); \
190 #define WARN_ON(condition) ({ \ macro
204 #define WARN_ON_ONCE(condition) WARN_ON(condition)
238 # define WARN_ON_SMP(x) WARN_ON(x)

12345678910>>...121