Home
last modified time | relevance | path

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

12345678910>>...112

/Linux-v5.4/drivers/gpu/drm/i915/
Dintel_pch.c16 WARN_ON(!IS_GEN(dev_priv, 5)); in intel_pch_type()
20 WARN_ON(!IS_GEN(dev_priv, 6) && !IS_IVYBRIDGE(dev_priv)); in intel_pch_type()
24 WARN_ON(!IS_GEN(dev_priv, 6) && !IS_IVYBRIDGE(dev_priv)); in intel_pch_type()
29 WARN_ON(!IS_HASWELL(dev_priv) && !IS_BROADWELL(dev_priv)); in intel_pch_type()
30 WARN_ON(IS_HSW_ULT(dev_priv) || IS_BDW_ULT(dev_priv)); in intel_pch_type()
34 WARN_ON(!IS_HASWELL(dev_priv) && !IS_BROADWELL(dev_priv)); in intel_pch_type()
35 WARN_ON(!IS_HSW_ULT(dev_priv) && !IS_BDW_ULT(dev_priv)); in intel_pch_type()
39 WARN_ON(!IS_HASWELL(dev_priv) && !IS_BROADWELL(dev_priv)); in intel_pch_type()
40 WARN_ON(IS_HSW_ULT(dev_priv) || IS_BDW_ULT(dev_priv)); in intel_pch_type()
45 WARN_ON(!IS_HASWELL(dev_priv) && !IS_BROADWELL(dev_priv)); in intel_pch_type()
[all …]
/Linux-v5.4/include/linux/
Dgpio.h137 WARN_ON(1); in gpio_free()
145 WARN_ON(1); in gpio_free_array()
166 WARN_ON(1); in gpio_get_value()
173 WARN_ON(1); in gpio_set_value()
179 WARN_ON(1); in gpio_cansleep()
186 WARN_ON(1); in gpio_get_value_cansleep()
193 WARN_ON(1); in gpio_set_value_cansleep()
199 WARN_ON(1); in gpio_export()
207 WARN_ON(1); in gpio_export_link()
214 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-v5.4/arch/powerpc/sysdev/
Dmsi_bitmap.c163 WARN_ON(msi_bitmap_alloc(&bmp, 0, NULL) == 0); in test_basics()
166 WARN_ON(msi_bitmap_alloc(&bmp, size, NULL)); in test_basics()
169 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
173 WARN_ON(msi_bitmap_reserve_dt_hwirqs(&bmp) <= 0); in test_basics()
176 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
181 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) < 0); in test_basics()
183 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) >= 0); in test_basics()
186 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, 0) >= 0); in test_basics()
190 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) != size / 2); in test_basics()
197 WARN_ON(rc < 0 && rc % 2 != 0); in test_basics()
[all …]
/Linux-v5.4/net/wireless/
Dcore.c186 WARN_ON(err); in cfg80211_switch_netns()
203 WARN_ON(err); in cfg80211_switch_netns()
227 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_P2P_DEVICE)) in cfg80211_stop_p2p_device()
239 if (WARN_ON(!rdev->scan_req->notified)) in cfg80211_stop_p2p_device()
250 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_NAN)) in cfg80211_stop_nan()
406 WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key)); in wiphy_new_nm()
407 WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc)); in wiphy_new_nm()
408 WARN_ON(ops->connect && !ops->disconnect); in wiphy_new_nm()
409 WARN_ON(ops->join_ibss && !ops->leave_ibss); in wiphy_new_nm()
410 WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf); in wiphy_new_nm()
[all …]
/Linux-v5.4/include/linux/gpio/
Dconsumer.h240 WARN_ON(desc); in gpiod_put()
249 WARN_ON(desc); in devm_gpiod_unhinge()
257 WARN_ON(descs); in gpiod_put_array()
310 WARN_ON(desc); in devm_gpiod_put()
319 WARN_ON(descs); in devm_gpiod_put_array()
326 WARN_ON(desc); in gpiod_get_direction()
332 WARN_ON(desc); in gpiod_direction_input()
338 WARN_ON(desc); in gpiod_direction_output()
344 WARN_ON(desc); in gpiod_direction_output_raw()
352 WARN_ON(desc); in gpiod_get_value()
[all …]
/Linux-v5.4/include/linux/clk/
Dtegra.h49 if (WARN_ON(!tegra_cpu_car_ops->wait_for_reset)) in tegra_wait_cpu_in_reset()
57 if (WARN_ON(!tegra_cpu_car_ops->put_in_reset)) in tegra_put_cpu_in_reset()
65 if (WARN_ON(!tegra_cpu_car_ops->out_of_reset)) in tegra_cpu_out_of_reset()
73 if (WARN_ON(!tegra_cpu_car_ops->enable_clock)) in tegra_enable_cpu_clock()
81 if (WARN_ON(!tegra_cpu_car_ops->disable_clock)) in tegra_disable_cpu_clock()
90 if (WARN_ON(!tegra_cpu_car_ops->rail_off_ready)) in tegra_cpu_rail_off_ready()
98 if (WARN_ON(!tegra_cpu_car_ops->suspend)) in tegra_cpu_clock_suspend()
106 if (WARN_ON(!tegra_cpu_car_ops->resume)) in tegra_cpu_clock_resume()
/Linux-v5.4/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-v5.4/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()
171 WARN_ON(s->size == 0); in seq_buf_putc()
195 WARN_ON(s->size == 0); in seq_buf_putmem()
229 WARN_ON(s->size == 0);
271 WARN_ON(s->size == 0);
/Linux-v5.4/drivers/gpu/drm/
Ddrm_modeset_lock.c102 if (WARN_ON(!ctx)) in drm_modeset_lock_all()
123 WARN_ON(config->acquire_ctx); in drm_modeset_lock_all()
154 if (WARN_ON(!ctx)) in drm_modeset_unlock_all()
182 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); in drm_warn_on_modeset_not_all_locked()
184 WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex)); in drm_warn_on_modeset_not_all_locked()
185 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_warn_on_modeset_not_all_locked()
228 WARN_ON(ctx->contended); in drm_modeset_drop_locks()
246 WARN_ON(ctx->contended); in modeset_lock()
266 WARN_ON(!list_empty(&lock->head)); in modeset_lock()
300 if (WARN_ON(!contended)) in drm_modeset_backoff()
/Linux-v5.4/kernel/livepatch/
Dpatch.c139 if (WARN_ON(!func->patched)) in klp_unpatch_func()
141 if (WARN_ON(!func->old_func)) in klp_unpatch_func()
145 if (WARN_ON(!ops)) in klp_unpatch_func()
153 if (WARN_ON(!ftrace_loc)) in klp_unpatch_func()
156 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func()
157 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func()
174 if (WARN_ON(!func->old_func)) in klp_patch_func()
177 if (WARN_ON(func->patched)) in klp_patch_func()
264 if (WARN_ON(obj->patched)) in klp_patch_object()
/Linux-v5.4/drivers/clk/mvebu/
Dcommon.c117 if (WARN_ON(!base)) in mvebu_coreclk_setup()
129 if (WARN_ON(!clk_data.clks)) { in mvebu_coreclk_setup()
140 WARN_ON(IS_ERR(clk_data.clks[0])); in mvebu_coreclk_setup()
153 WARN_ON(IS_ERR(clk_data.clks[1])); in mvebu_coreclk_setup()
165 WARN_ON(IS_ERR(clk_data.clks[2+n])); in mvebu_coreclk_setup()
176 WARN_ON(IS_ERR(clk_data.clks[2 + desc->num_ratios])); in mvebu_coreclk_setup()
248 if (WARN_ON(!base)) in mvebu_clk_gating_setup()
258 if (WARN_ON(!ctrl)) in mvebu_clk_gating_setup()
273 if (WARN_ON(!ctrl->gates)) in mvebu_clk_gating_setup()
282 WARN_ON(IS_ERR(ctrl->gates[n])); in mvebu_clk_gating_setup()
/Linux-v5.4/drivers/gpu/drm/i915/gvt/
Dmmio.c117 if (WARN_ON(bytes > 8)) in intel_vgpu_emulate_mmio_read()
121 if (WARN_ON(!IS_ALIGNED(offset, 4) && !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_read()
123 if (WARN_ON(bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read()
125 if (WARN_ON(!reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
140 if (WARN_ON(!reg_is_mmio(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
144 if (WARN_ON(!IS_ALIGNED(offset, bytes))) in intel_vgpu_emulate_mmio_read()
190 if (WARN_ON(bytes > 8)) in intel_vgpu_emulate_mmio_write()
194 if (WARN_ON(!IS_ALIGNED(offset, 4) && !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_write()
196 if (WARN_ON(bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_write()
198 if (WARN_ON(!reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_write()
/Linux-v5.4/drivers/media/mc/
Dmc-request.c34 if (WARN_ON(state >= ARRAY_SIZE(request_state))) in media_request_state_str()
44 WARN_ON(req->state != MEDIA_REQUEST_STATE_CLEANING); in media_request_clean()
45 WARN_ON(req->updating_count); in media_request_clean()
46 WARN_ON(req->access_count); in media_request_clean()
55 WARN_ON(req->num_incomplete_objects); in media_request_clean()
296 if (WARN_ON(!mdev->ops->req_alloc ^ !mdev->ops->req_free)) in media_request_alloc()
354 if (WARN_ON(req)) in media_request_object_release()
368 if (WARN_ON(!ops || !priv)) in media_request_object_find()
409 if (WARN_ON(!ops->release)) in media_request_object_bind()
414 if (WARN_ON(req->state != MEDIA_REQUEST_STATE_UPDATING)) in media_request_object_bind()
[all …]
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dbh.c82 WARN_ON(err); in cw1200_register_bh()
168 if (WARN_ON(priv->hw_bufs_used < 0)) in wsm_release_tx_buffer()
204 if (WARN_ON(ret)) in cw1200_device_wakeup()
210 if (WARN_ON(ret)) in cw1200_device_wakeup()
214 if (WARN_ON(ret)) in cw1200_device_wakeup()
256 if (WARN_ON((read_len < sizeof(struct wsm_hdr)) || in cw1200_bh_rx_helper()
278 if (WARN_ON(!skb_rx)) in cw1200_bh_rx_helper()
284 if (WARN_ON(!data)) in cw1200_bh_rx_helper()
287 if (WARN_ON(cw1200_data_read(priv, data, alloc_len))) { in cw1200_bh_rx_helper()
298 if (WARN_ON(wsm_len > read_len)) in cw1200_bh_rx_helper()
[all …]
/Linux-v5.4/arch/arm64/kernel/
Dfpsimd.c156 WARN_ON(busy); in __get_cpu_fpsimd_context()
178 WARN_ON(!busy); /* No matching get_cpu_fpsimd_context()? */ in __put_cpu_fpsimd_context()
211 WARN_ON(test_tsk_thread_flag(task, TIF_SVE)); in sve_free()
272 WARN_ON(!have_cpu_fpsimd_context()); in task_fpsimd_load()
292 WARN_ON(!have_cpu_fpsimd_context()); in fpsimd_save()
296 if (WARN_ON(sve_get_vl() != last->sve_vl)) { in fpsimd_save()
325 if (WARN_ON(!sve_vl_valid(vl))) in find_supported_vector_length()
328 if (WARN_ON(!sve_vl_valid(max_vl))) in find_supported_vector_length()
853 if (WARN_ON(!test_bit(__vq_to_bit(SVE_VQ_MIN), sve_vq_map))) in sve_setup()
863 if (WARN_ON(sve_max_vl != find_supported_vector_length(sve_max_vl))) in sve_setup()
[all …]
/Linux-v5.4/arch/x86/mm/
Dpti.c222 WARN_ON(1); in pti_user_pagetable_walk_pmd()
257 WARN_ON(1); in pti_user_pagetable_walk_pte()
284 if (!pte || WARN_ON(level != PG_LEVEL_4K) || pte_none(*pte)) in pti_setup_vsyscall()
288 if (WARN_ON(!target_pte)) in pti_setup_vsyscall()
325 if (WARN_ON(pgd_none(*pgd))) in pti_clone_pgtable()
328 if (WARN_ON(p4d_none(*p4d))) in pti_clone_pgtable()
347 if (WARN_ON(!target_pmd)) in pti_clone_pgtable()
356 if (WARN_ON(!(pmd_flags(*pmd) & _PAGE_PRESENT))) in pti_clone_pgtable()
390 if (WARN_ON(!(pte_flags(*pte) & _PAGE_PRESENT))) in pti_clone_pgtable()
395 if (WARN_ON(!target_pte)) in pti_clone_pgtable()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/book3s/64/
Dtlbflush-radix.h23 static inline void radix__tlbiel_all(unsigned int action) { WARN_ON(1); }; in radix__tlbiel_all()
28 WARN_ON(1); in radix__flush_tlb_lpid_page()
32 WARN_ON(1); in radix__flush_pwc_lpid()
36 WARN_ON(1); in radix__flush_all_lpid()
40 WARN_ON(1); in radix__flush_all_lpid_guest()
/Linux-v5.4/net/mac80211/
Dchan.c218 WARN_ON(1); in ieee80211_get_sta_bw()
350 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
541 WARN_ON(local->hw.conf.radar_enabled && in ieee80211_del_chanctx()
648 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_NAN)) in ieee80211_assign_vif_chanctx()
799 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP)) in __ieee80211_vif_copy_chanctx_to_vlans()
812 WARN_ON(!conf); in __ieee80211_vif_copy_chanctx_to_vlans()
839 if (WARN_ON(!ctx)) in ieee80211_vif_unreserve_chanctx()
847 if (WARN_ON(!ctx->replace_ctx)) in ieee80211_vif_unreserve_chanctx()
850 WARN_ON(ctx->replace_ctx->replace_state != in ieee80211_vif_unreserve_chanctx()
852 WARN_ON(ctx->replace_ctx->replace_ctx != ctx); in ieee80211_vif_unreserve_chanctx()
[all …]
/Linux-v5.4/scripts/coccinelle/misc/
Dwarn.cocci2 /// Use WARN(1,...) rather than printk followed by WARN_ON(1)
22 WARN_ON(1);
29 *WARN_ON(1);
35 cocci.print_main("printk + WARN_ON can be just WARN",p)
41 msg = "SUGGESTION: printk + WARN_ON can be just WARN"
52 -WARN_ON(1);
/Linux-v5.4/arch/powerpc/mm/
Dioremap_64.c24 WARN_ON(pa & ~PAGE_MASK); in __ioremap_at()
25 WARN_ON(((unsigned long)ea) & ~PAGE_MASK); in __ioremap_at()
26 WARN_ON(size & ~PAGE_MASK); in __ioremap_at()
50 WARN_ON(((unsigned long)ea) & ~PAGE_MASK); in __iounmap_at()
51 WARN_ON(size & ~PAGE_MASK); in __iounmap_at()
/Linux-v5.4/include/asm-generic/
Dbug.h111 #ifndef WARN_ON
112 #define WARN_ON(condition) ({ \ macro
143 WARN_ON(1); \
181 #define WARN_ON(condition) ({ \ macro
195 #define WARN_ON_ONCE(condition) WARN_ON(condition)
226 # define WARN_ON_SMP(x) WARN_ON(x)
/Linux-v5.4/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-v5.4/drivers/gpu/drm/i915/display/
Dintel_tc.c20 if (WARN_ON(mode >= ARRAY_SIZE(names))) in tc_port_mode_name()
58 WARN_ON(lane_mask == 0xffffffff); in intel_tc_port_get_lane_mask()
103 WARN_ON(lane_reversal && dig_port->tc_mode != TC_PORT_LEGACY); in intel_tc_port_set_fia_lane_count()
176 if (!WARN_ON(hweight32(mask) > 1)) in tc_port_live_status_mask()
273 !WARN_ON(dig_port->tc_legacy_port)) in icl_tc_phy_connect()
278 WARN_ON(max_lanes != 4); in icl_tc_phy_connect()
359 if (in_safe_mode || WARN_ON(!icl_tc_phy_status_complete(dig_port))) in intel_tc_port_get_current_mode()
366 if (!WARN_ON(live_mode == TC_PORT_TBT_ALT)) in intel_tc_port_get_current_mode()
393 WARN_ON(intel_display_power_is_enabled(i915, in intel_tc_port_reset_mode()
409 WARN_ON(dig_port->tc_link_refcount); in intel_tc_port_link_init_refcount()
[all …]

12345678910>>...112