/drivers/gpu/drm/i915/ |
D | intel_pch.c | 16 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 …]
|
/drivers/gpu/drm/ |
D | drm_modeset_lock.c | 102 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()
|
/drivers/net/wireless/st/cw1200/ |
D | bh.c | 82 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 …]
|
/drivers/media/mc/ |
D | mc-request.c | 34 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 …]
|
/drivers/gpu/drm/i915/gvt/ |
D | mmio.c | 117 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()
|
D | cfg_space.c | 109 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_read() 112 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read() 302 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_write() 305 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_write() 310 if (WARN_ON(bytes > 2)) in intel_vgpu_emulate_cfg_write() 317 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write() 322 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write() 327 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write() 335 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
|
/drivers/clk/mvebu/ |
D | common.c | 117 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()
|
/drivers/clk/bcm/ |
D | clk-iproc-asiu.c | 193 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()
|
/drivers/gpu/drm/i915/display/ |
D | intel_tc.c | 20 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 …]
|
/drivers/gpu/drm/msm/ |
D | msm_gem.c | 193 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_get_pages() 271 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_fault() 305 WARN_ON(!mutex_is_locked(&msm_obj->lock)); in mmap_offset() 335 WARN_ON(!mutex_is_locked(&msm_obj->lock)); in add_vma() 354 WARN_ON(!mutex_is_locked(&msm_obj->lock)); in lookup_vma() 380 WARN_ON(!mutex_is_locked(&msm_obj->lock)); in put_iova() 398 WARN_ON(!mutex_is_locked(&msm_obj->lock)); in msm_gem_get_iova_locked() 429 WARN_ON(!mutex_is_locked(&msm_obj->lock)); in msm_gem_pin_iova() 431 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) in msm_gem_pin_iova() 435 if (WARN_ON(!vma)) in msm_gem_pin_iova() [all …]
|
D | msm_gem_vma.c | 37 if (WARN_ON(vma->inuse > 0)) in msm_gem_purge_vma() 54 if (!WARN_ON(!vma->iova)) in msm_gem_unmap_vma() 66 if (WARN_ON(!vma->iova)) in msm_gem_map_vma() 91 if (WARN_ON(vma->inuse > 0 || vma->mapped)) in msm_gem_close_vma() 110 if (WARN_ON(vma->iova)) in msm_gem_init_vma()
|
/drivers/hwspinlock/ |
D | hwspinlock_core.c | 319 if (WARN_ON(hwlock_spec->args_count != 1)) in of_hwspin_lock_simple_xlate() 439 WARN_ON(tmp != hwlock); in hwspin_lock_register_single() 547 WARN_ON(tmp != hwlock); in hwspin_lock_unregister() 564 if (WARN_ON(!bank || !*bank)) in devm_hwspin_lock_device_match() 590 WARN_ON(ret); in devm_hwspin_lock_unregister() 672 WARN_ON(tmp != hwlock); in __hwspin_lock_request() 724 WARN_ON(ret > 1); in hwspin_lock_request() 765 WARN_ON(hwlock_to_id(hwlock) != id); in hwspin_lock_request_specific() 832 WARN_ON(tmp != hwlock); in hwspin_lock_free() 846 if (WARN_ON(!hwlock || !*hwlock)) in devm_hwspin_lock_match() [all …]
|
/drivers/infiniband/core/ |
D | uverbs_uapi.c | 51 if (WARN_ON(!elm)) in uapi_add_get_elm() 77 if (WARN_ON(exists && (def->write.is_ex != method_elm->is_ex))) in uapi_create_write() 121 if (WARN_ON(method->handler)) in uapi_merge_method() 124 WARN_ON(!method->handler); in uapi_merge_method() 152 if (WARN_ON(access == UVERBS_ACCESS_NEW || in uapi_merge_method() 186 if (WARN_ON(obj_elm->type_attrs)) in uapi_merge_obj_tree() 202 if (WARN_ON(is_driver && in uapi_merge_obj_tree() 269 WARN_ON(true); in uapi_disable_elm() 295 if (WARN_ON(def->object_start.object_id != in uapi_merge_def() 349 WARN_ON(true); in uapi_merge_def() [all …]
|
/drivers/scsi/ |
D | scsi_logging.c | 44 if (WARN_ON(off >= logbuf_len)) in sdev_format_header() 70 if (!WARN_ON(off >= logbuf_len)) { in sdev_prefix_printk() 131 if (WARN_ON(off >= buf_len)) in scsi_format_opcode_name() 150 WARN_ON(off >= buf_len); in scsi_format_opcode_name() 195 if (WARN_ON(off >= logbuf_len)) in scsi_print_command() 218 if (!WARN_ON(off > logbuf_len - 58)) { in scsi_print_command() 231 if (!WARN_ON(off > logbuf_len - 49)) { in scsi_print_command() 407 if (WARN_ON(off >= logbuf_len)) in scsi_print_result() 416 if (WARN_ON(off >= logbuf_len)) in scsi_print_result() 420 if (WARN_ON(off >= logbuf_len)) in scsi_print_result() [all …]
|
/drivers/net/dsa/b53/ |
D | b53_mmap.c | 46 if (WARN_ON(reg % 2)) in b53_mmap_read16() 62 if (WARN_ON(reg % 4)) in b53_mmap_read32() 78 if (WARN_ON(reg % 2)) in b53_mmap_read48() 118 if (WARN_ON(reg % 4)) in b53_mmap_read64() 150 if (WARN_ON(reg % 2)) in b53_mmap_write16() 167 if (WARN_ON(reg % 4)) in b53_mmap_write32() 181 if (WARN_ON(reg % 2)) in b53_mmap_write48() 209 if (WARN_ON(reg % 4)) in b53_mmap_write64()
|
/drivers/net/caif/ |
D | caif_spi_slave.c | 102 WARN_ON(len != cfspi->tx_cpck_len); in cfspi_xfer() 110 WARN_ON(cfspi->tx_npck_len > SPI_DMA_BUF_LEN); in cfspi_xfer() 146 WARN_ON(ret); in cfspi_xfer() 203 WARN_ON(len != cfspi->rx_cpck_len); in cfspi_xfer() 216 WARN_ON(cfspi->rx_npck_len > SPI_DMA_BUF_LEN); in cfspi_xfer() 217 WARN_ON(cfspi->cmd > SPI_CMD_EOT); in cfspi_xfer()
|
/drivers/ssb/ |
D | host_soc.c | 64 WARN_ON(count & 1); in ssb_host_soc_block_read() 75 WARN_ON(count & 3); in ssb_host_soc_block_read() 84 WARN_ON(1); in ssb_host_soc_block_read() 137 WARN_ON(count & 1); in ssb_host_soc_block_write() 148 WARN_ON(count & 3); in ssb_host_soc_block_write() 157 WARN_ON(1); in ssb_host_soc_block_write()
|
/drivers/reset/ |
D | core.c | 296 if (WARN_ON(IS_ERR(rstc))) in reset_control_reset() 306 if (WARN_ON(atomic_read(&rstc->deassert_count) != 0)) in reset_control_reset() 346 if (WARN_ON(IS_ERR(rstc))) in reset_control_assert() 353 if (WARN_ON(atomic_read(&rstc->triggered_count) != 0)) in reset_control_assert() 356 if (WARN_ON(atomic_read(&rstc->deassert_count) == 0)) in reset_control_assert() 405 if (WARN_ON(IS_ERR(rstc))) in reset_control_deassert() 412 if (WARN_ON(atomic_read(&rstc->triggered_count) != 0)) in reset_control_deassert() 450 if (WARN_ON(IS_ERR(rstc)) || reset_control_is_array(rstc)) in reset_control_status() 487 if (WARN_ON(IS_ERR(rstc))) in reset_control_acquire() 528 if (!rstc || WARN_ON(IS_ERR(rstc))) in reset_control_release() [all …]
|
/drivers/bcma/ |
D | host_soc.c | 69 WARN_ON(count & 1); in bcma_host_soc_block_read() 80 WARN_ON(count & 3); in bcma_host_soc_block_read() 89 WARN_ON(1); in bcma_host_soc_block_read() 113 WARN_ON(count & 1); in bcma_host_soc_block_write() 124 WARN_ON(count & 3); in bcma_host_soc_block_write() 133 WARN_ON(1); in bcma_host_soc_block_write()
|
/drivers/soc/fsl/qbman/ |
D | bman_test_api.c | 92 WARN_ON(matches != 1); in bufs_confirm() 133 WARN_ON(tmp != num); in bman_test_api() 137 WARN_ON(i > 0); in bman_test_api() 150 WARN_ON(1); in bman_test_api()
|
/drivers/platform/chrome/ |
D | cros_ec_lpc_mec.c | 47 if (WARN_ON(mec_emi_base == 0 || mec_emi_end == 0)) in cros_ec_lpc_mec_in_range() 51 if (WARN_ON(offset + length - 1 >= mec_emi_end)) in cros_ec_lpc_mec_in_range() 56 if (WARN_ON(offset + length > mec_emi_base && offset < mec_emi_end)) in cros_ec_lpc_mec_in_range() 82 WARN_ON(mec_emi_base == 0 || mec_emi_end == 0); in cros_ec_lpc_io_bytes_mec()
|
/drivers/dma-buf/ |
D | dma-buf.c | 520 if (WARN_ON(!exp_info->priv in dma_buf_export() 640 if (WARN_ON(!dmabuf || !dmabuf->file)) in dma_buf_put() 671 if (WARN_ON(!dmabuf || !dev)) in dma_buf_attach() 711 if (WARN_ON(!dmabuf || !attach)) in dma_buf_detach() 749 if (WARN_ON(!attach || !attach->dmabuf)) in dma_buf_map_attachment() 793 if (WARN_ON(!attach || !attach->dmabuf || !sg_table)) in dma_buf_unmap_attachment() 943 if (WARN_ON(!dmabuf)) in dma_buf_begin_cpu_access() 966 if (WARN_ON(!dmabuf)) in dma_buf_begin_cpu_access_partial() 1001 WARN_ON(!dmabuf); in dma_buf_end_cpu_access() 1016 WARN_ON(!dmabuf); in dma_buf_end_cpu_access_partial() [all …]
|
/drivers/extcon/ |
D | devres.c | 15 if (WARN_ON(!r || !*r)) in devm_extcon_dev_match() 99 WARN_ON(devres_release(dev, devm_extcon_dev_release, in devm_extcon_dev_free() 150 WARN_ON(devres_release(dev, devm_extcon_dev_unreg, in devm_extcon_dev_unregister() 210 WARN_ON(devres_release(dev, devm_extcon_dev_notifier_unreg, in devm_extcon_unregister_notifier() 264 WARN_ON(devres_release(dev, devm_extcon_dev_notifier_all_unreg, in devm_extcon_unregister_notifier_all()
|
/drivers/pci/ |
D | ats.c | 48 if (WARN_ON(dev->ats_enabled)) in pci_enable_ats() 85 if (WARN_ON(!dev->ats_enabled)) in pci_disable_ats() 185 if (WARN_ON(pdev->pri_enabled)) in pci_enable_pri() 221 if (WARN_ON(!pdev->pri_enabled)) in pci_disable_pri() 270 if (WARN_ON(pdev->pri_enabled)) in pci_reset_pri() 300 if (WARN_ON(pdev->pasid_enabled)) in pci_enable_pasid() 337 if (WARN_ON(!pdev->pasid_enabled)) in pci_disable_pasid()
|
/drivers/net/wireless/ath/ath6kl/ |
D | bmi.c | 90 WARN_ON(1); in ath6kl_bmi_get_target_info() 129 WARN_ON(1); in ath6kl_bmi_read() 186 WARN_ON(1); in ath6kl_bmi_write() 190 if (WARN_ON(ar->bmi.max_data_size > sizeof(aligned_buf))) in ath6kl_bmi_write() 251 WARN_ON(1); in ath6kl_bmi_execute() 298 WARN_ON(1); in ath6kl_bmi_set_app_start() 334 WARN_ON(1); in ath6kl_bmi_reg_read() 377 WARN_ON(1); in ath6kl_bmi_reg_write() 419 WARN_ON(1); in ath6kl_bmi_lz_data() 468 WARN_ON(1); in ath6kl_bmi_lz_stream_start() [all …]
|