/linux/drivers/gpu/drm/i915/ |
H A D | Kconfig.profile | 2 int "Default timeout for requests (ms)" 5 Configures the default timeout after which any user submissions will 13 May be 0 to disable the timeout. 16 int "Timeout for unsignaled foreign fences (ms, jiffy granularity)" 21 make forward progress. This value specifies the timeout used for an 24 May be 0 to disable the timeout, and rely on the foreign fence being 28 int "Runtime autosuspend delay for userspace GGTT mmaps (ms)" 35 that complements the runtime-pm autosuspend and provides a lower 42 int "Interval between heartbeat pulses (ms)" 46 check the health of the GPU and undertake regular house-keeping of [all …]
|
H A D | intel_pcode.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2013-2021 Intel Corporation 16 return -ENODEV; in gen6_check_mailbox_status() 18 return -ENXIO; in gen6_check_mailbox_status() 21 return -EOVERFLOW; in gen6_check_mailbox_status() 23 return -ETIMEDOUT; in gen6_check_mailbox_status() 36 return -ENXIO; in gen7_check_mailbox_status() 38 return -ETIMEDOUT; in gen7_check_mailbox_status() 40 return -EINVAL; in gen7_check_mailbox_status() 42 return -ENXIO; in gen7_check_mailbox_status() [all …]
|
H A D | i915_utils.h | 43 #define FDO_BUG_URL "https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html" 63 #define i915_inject_probe_failure(i915) i915_inject_probe_error((i915), -ENODEV) 67 drm_dbg(&(i915)->drm, fmt, ##__VA_ARGS__); \ 69 drm_err(&(i915)->drm, fmt, ##__VA_ARGS__); \ 78 start__ >= max__ || size__ > max__ - start__; \ 90 start__ > max__ || size__ > max__ - start__; \ 98 (typeof(ptr))(__v & -BIT(n)); \ 101 #define ptr_unmask_bits(ptr, n) ((unsigned long)(ptr) & (BIT(n) - 1)) 105 *(bits) = __v & (BIT(n) - 1); \ 106 (typeof(ptr))(__v & -BIT(n)); \ [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_hw_engine_types.h | 1 /* SPDX-License-Identifier: MIT */ 69 * struct xe_hw_engine_class_intf - per hw engine class struct interface 71 * Contains all the hw engine properties per engine class. 82 /** @sched_props.set_job_timeout: Set job timeout in ms for engine */ 84 /** @sched_props.job_timeout_min: Min job timeout in ms for engine */ 86 /** @sched_props.job_timeout_max: Max job timeout in ms for engine */ 88 /** @sched_props.timeslice_us: timeslice period in micro-seconds */ 90 /** @sched_props.timeslice_min: min timeslice period in micro-seconds */ 92 /** @sched_props.timeslice_max: max timeslice period in micro-seconds */ 94 /** @sched_props.preempt_timeout_us: preemption timeout in micro-seconds */ [all …]
|
H A D | xe_pcode.c | 1 // SPDX-License-Identifier: MIT 28 * - PCODE hw metrics 29 * - PCODE for display operations 36 [PCODE_ILLEGAL_CMD] = {-ENXIO, "Illegal Command"}, in pcode_mailbox_status() 37 [PCODE_TIMEOUT] = {-ETIMEDOUT, "Timed out"}, in pcode_mailbox_status() 38 [PCODE_ILLEGAL_DATA] = {-EINVAL, "Illegal Data"}, in pcode_mailbox_status() 39 [PCODE_ILLEGAL_SUBCOMMAND] = {-ENXIO, "Illegal Subcommand"}, in pcode_mailbox_status() 40 [PCODE_LOCKED] = {-EBUSY, "PCODE Locked"}, in pcode_mailbox_status() 41 [PCODE_GT_RATIO_OUT_OF_RANGE] = {-EOVERFLOW, in pcode_mailbox_status() 43 [PCODE_REJECTED] = {-EACCES, "PCODE Rejected"}, in pcode_mailbox_status() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_linecard.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # LC_SLOT - If not set, all probed line cards are going to be tested, 41 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].state" 48 local timeout=$3 # ms 50 busywait "$timeout" until_lc_state_is_not "$state" lc_state_get "$lc" 57 local timeout=$3 # ms 59 busywait "$timeout" until_lc_state_is "$state" lc_state_get "$lc" 75 devlink port -j | jq -e -r ".[][] | select(.lc==$lc) | .port" | wc -l 82 local timeout=$3 # ms 84 busywait "$timeout" until_lc_port_count_is "$port_count" lc_port_count_get "$lc" [all …]
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_hw.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 19 int atl1e_check_eeprom_exist(struct atl1e_hw *hw) in atl1e_check_eeprom_exist() argument 23 value = AT_READ_REG(hw, REG_SPI_FLASH_CTRL); in atl1e_check_eeprom_exist() 26 AT_WRITE_REG(hw, REG_SPI_FLASH_CTRL, value); in atl1e_check_eeprom_exist() 28 value = AT_READ_REGW(hw, REG_PCIE_CAP_LIST); in atl1e_check_eeprom_exist() 32 void atl1e_hw_set_mac_addr(struct atl1e_hw *hw) in atl1e_hw_set_mac_addr() argument 36 * 00-0B-6A-F6-00-DC in atl1e_hw_set_mac_addr() 40 value = (((u32)hw->mac_addr[2]) << 24) | in atl1e_hw_set_mac_addr() 41 (((u32)hw->mac_addr[3]) << 16) | in atl1e_hw_set_mac_addr() [all …]
|
/linux/drivers/rtc/ |
H A D | rtc-jz4740.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de> 9 #include <linux/clk-provider.h> 75 return readl(rtc->base + reg); in jz4740_rtc_reg_read() 82 return readl_poll_timeout(rtc->base + JZ_REG_RTC_CTRL, ctrl, in jz4740_rtc_wait_write_ready() 95 writel(JZ_RTC_WENR_MAGIC, rtc->base + JZ_REG_RTC_WENR); in jz4780_rtc_enable_write() 97 return readl_poll_timeout(rtc->base + JZ_REG_RTC_WENR, ctrl, in jz4780_rtc_enable_write() 106 if (rtc->type >= ID_JZ4760) in jz4740_rtc_reg_write() 111 writel(val, rtc->base + reg); in jz4740_rtc_reg_write() 123 spin_lock_irqsave(&rtc->lock, flags); in jz4740_rtc_ctrl_set_bits() [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 46 static s32 igb_set_pcie_completion_timeout(struct e1000_hw *hw); 47 static s32 igb_reset_mdicnfg_82580(struct e1000_hw *hw); 48 static s32 igb_validate_nvm_checksum_82580(struct e1000_hw *hw); 49 static s32 igb_update_nvm_checksum_82580(struct e1000_hw *hw); 50 static s32 igb_validate_nvm_checksum_i350(struct e1000_hw *hw); 51 static s32 igb_update_nvm_checksum_i350(struct e1000_hw *hw); 55 /* Due to a hw errata, if the host tries to configure the VFTA register 61 * igb_write_vfta_i350 - Write value to VLAN filter table [all …]
|
/linux/drivers/watchdog/ |
H A D | bd96801_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/mfd/rohm-bd96801.h> 12 #include <linux/mfd/rohm-generic.h> 43 /* 1.1 mS */ 54 * timeout values. SHORT time is meaningful only in window mode where feeding 57 * timeout time is a multiple of (2, 4, 8 or 16 times) the SHORT timeout. 70 return regmap_update_bits(w->regmap, BD96801_REG_WD_FEED, in bd96801_wdt_ping() 78 return regmap_update_bits(w->regmap, BD96801_REG_WD_CONF, in bd96801_wdt_start() 86 return regmap_update_bits(w->regmap, BD96801_REG_WD_CONF, in bd96801_wdt_stop() 111 return -EINVAL; in find_closest_fast() [all …]
|
H A D | db8500_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2011-2013 5 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> for ST-Ericsson 6 * Author: Jonas Aaberg <jonas.aberg@stericsson.com> for ST-Ericsson 19 #include <linux/mfd/dbx500-prcmu.h> 24 #define WATCHDOG_MAX28 268435 /* 28 bit resolution in ms == 268435.455 s */ 26 static unsigned int timeout = WATCHDOG_TIMEOUT; variable 27 module_param(timeout, uint, 0); 28 MODULE_PARM_DESC(timeout, 29 "Watchdog timeout in seconds. default=" [all …]
|
/linux/drivers/scsi/csiostor/ |
H A D | csio_mb.c | 4 * Copyright (c) 2008-2012 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 51 * csio_mb_fw_retval - FW return value from a mailbox response. 60 hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_fw_retval() 62 return FW_CMD_RETVAL_G(ntohl(hdr->lo)); in csio_mb_fw_retval() 66 * csio_mb_hello - FW HELLO command helper 67 * @hw: The HW structure 76 csio_mb_hello(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_hello() argument 80 struct fw_hello_cmd *cmdp = (struct fw_hello_cmd *)(mbp->mb); in csio_mb_hello() [all …]
|
/linux/drivers/net/wireless/ti/wl1251/ |
H A D | ps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 /* in ms */ 26 mutex_lock(&wl->mutex); in wl1251_elp_work() 28 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE) in wl1251_elp_work() 33 wl->elp = true; in wl1251_elp_work() 36 mutex_unlock(&wl->mutex); in wl1251_elp_work() 46 if (wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_ps_elp_sleep() 48 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep() 54 unsigned long timeout, start; in wl1251_ps_elp_wakeup() local 57 cancel_delayed_work(&wl->elp_work); in wl1251_ps_elp_wakeup() [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | reg.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 11 #define ATH12K_2GHZ_CH01_11 REG_RULE(2412 - 10, 2462 + 10, 40, 0, 20, 0) 12 #define ATH12K_5GHZ_5150_5350 REG_RULE(5150 - 10, 5350 + 10, 80, 0, 30,\ 14 #define ATH12K_5GHZ_5725_5850 REG_RULE(5725 - 10, 5850 + 10, 80, 0, 30,\ 31 static bool ath12k_regdom_changes(struct ieee80211_hw *hw, char *alpha2) in ath12k_regdom_changes() argument 35 regd = rcu_dereference_rtnl(hw->wiphy->regd); in ath12k_regdom_changes() 43 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath12k_regdom_changes() 49 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath12k_reg_notifier() local [all …]
|
/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 41 return -EBUSY; in dss_pll_register() 61 if (dss_plls[i] && strcmp(dss_plls[i]->name, name) == 0) in dss_pll_find() 72 r = clk_prepare_enable(pll->clkin); in dss_pll_enable() 76 if (pll->regulator) { in dss_pll_enable() 77 r = regulator_enable(pll->regulator); in dss_pll_enable() 82 r = pll->ops->enable(pll); in dss_pll_enable() 89 if (pll->regulator) in dss_pll_enable() 90 regulator_disable(pll->regulator); in dss_pll_enable() 92 clk_disable_unprepare(pll->clkin); in dss_pll_enable() [all …]
|
/linux/drivers/spi/ |
H A D | spi-sprd-adi.c | 4 * SPDX-License-Identifier: GPL-2.0 36 #define REG_ADI_CHN_ADDR(id) (0x44 + (id - 2) * 4) 69 /* Timeout (ms) for the trylock of hardware spinlocks */ 125 /* Use default timeout 50 ms that converts to watchdog values */ 157 if (reg >= sadi->data->slave_addr_size) { in sprd_adi_check_addr() 158 dev_err(sadi->dev, in sprd_adi_check_addr() 161 return -EINVAL; in sprd_adi_check_addr() 169 u32 timeout = ADI_FIFO_DRAIN_TIMEOUT; in sprd_adi_drain_fifo() local 173 sts = readl_relaxed(sadi->base + REG_ADI_ARM_FIFO_STS); in sprd_adi_drain_fifo() 178 } while (--timeout); in sprd_adi_drain_fifo() [all …]
|
/linux/drivers/platform/x86/intel/atomisp2/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * Copyright (C) 2010-2017 Intel Corporation. All rights reserved. 38 unsigned long timeout; in isp_set_power() local 46 * There should be no IUNIT access while power-down is in isp_set_power() 47 * in progress. HW sighting: 4567865. in isp_set_power() 48 * Wait up to 50 ms for the IUNIT to shut down. in isp_set_power() 51 timeout = jiffies + msecs_to_jiffies(50); in isp_set_power() 62 } while (time_before(jiffies, timeout)); in isp_set_power() 64 dev_err(&dev->dev, "IUNIT power-%s timeout.\n", enable ? "on" : "off"); in isp_set_power() 65 return -EBUSY; in isp_set_power() [all …]
|
/linux/drivers/net/ethernet/marvell/ |
H A D | skge.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 133 CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */ 134 CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */ 135 CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */ 167 IS_HW_ERR = 1<<31, /* Interrupt HW Error */ 169 IS_PA_TO_RX1 = 1<<29, /* Packet Arb Timeout Rx1 */ 170 IS_PA_TO_RX2 = 1<<28, /* Packet Arb Timeout Rx2 */ 171 IS_PA_TO_TX1 = 1<<27, /* Packet Arb Timeout Tx1 */ 172 IS_PA_TO_TX2 = 1<<26, /* Packet Arb Timeout Tx2 */ 215 /* B2_IRQM_HWE_MSK 32 bit IRQ Moderation HW Error Mask */ [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | channel.c | 25 struct ath_hw *ah = sc->sc_ah; in ath_set_channel() 27 struct ieee80211_hw *hw = sc->hw; in ath_set_channel() local 29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; in ath_set_channel() 30 struct ieee80211_channel *chan = chandef->chan; in ath_set_channel() 31 int pos = chan->hw_value; in ath_set_channel() 33 int old_pos = -1; in ath_set_channel() 36 if (test_bit(ATH_OP_INVALID, &common->op_flags)) in ath_set_channel() 37 return -EIO; in ath_set_channel() 39 if (ah->curchan) in ath_set_channel() 40 old_pos = ah->curchan - &ah->channels[0]; in ath_set_channel() [all …]
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_nx2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2014 QLogic Corporation 36 return readl((void __iomem *) (ha->nx_pcibase + addr)); in qla8044_rd_reg() 42 writel(val, (void __iomem *)((ha)->nx_pcibase + addr)); in qla8044_wr_reg() 49 struct qla_hw_data *ha = vha->hw; in qla8044_rd_direct() 62 struct qla_hw_data *ha = vha->hw; in qla8044_wr_direct() 73 struct qla_hw_data *ha = vha->hw; in qla8044_set_win_base() 75 qla8044_wr_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum), addr); in qla8044_set_win_base() 76 val = qla8044_rd_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum)); in qla8044_set_win_base() 92 struct qla_hw_data *ha = vha->hw; in qla8044_rd_reg_indirect() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_82599.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 19 static void ixgbe_disable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 20 static void ixgbe_enable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 21 static void ixgbe_flap_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 24 static int ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw, 27 static void ixgbe_stop_mac_link_on_d3_82599(struct ixgbe_hw *hw); 28 static int ixgbe_start_mac_link_82599(struct ixgbe_hw *hw, 30 static int ixgbe_setup_mac_link_82599(struct ixgbe_hw *hw, 33 static int ixgbe_setup_copper_link_82599(struct ixgbe_hw *hw, [all …]
|
/linux/drivers/iio/imu/bno055/ |
H A D | bno055_ser_core.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2021-2022 Istituto Italiano di Tecnologia 33 * +------+------+-----+-----+----- ... ----+ 35 * +------+------+-----+-----+----- ... ----+ 38 * +------+----------+ 40 * +------+----------+ 45 * sw resets - bno055 on serial bus basically requires the hw reset pin). 48 * +------+------+-----+-----+ 50 * +------+------+-----+-----+ 53 * +------+-----+----- ... ----+ [all …]
|
/linux/drivers/gpu/drm/omapdrm/dss/ |
H A D | pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com/ 32 for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { in dss_pll_register() 33 if (!dss->plls[i]) { in dss_pll_register() 34 dss->plls[i] = pll; in dss_pll_register() 35 pll->dss = dss; in dss_pll_register() 40 return -EBUSY; in dss_pll_register() 45 struct dss_device *dss = pll->dss; in dss_pll_unregister() 48 for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { in dss_pll_unregister() 49 if (dss->plls[i] == pll) { in dss_pll_unregister() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_dp_aux.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2020-2021 Intel Corporation 25 snprintf(buf, size, "%c", 'A' + aux_ch - AUX_CH_D_XELPD + AUX_CH_D); in aux_ch_name() 27 snprintf(buf, size, "USBC%c", '1' + aux_ch - AUX_CH_USBC1); in aux_ch_name() 42 v |= ((u32)src[i]) << ((3 - i) * 8); in intel_dp_aux_pack() 53 dst[i] = src >> ((3 - i) * 8); in intel_dp_aux_unpack() 60 i915_reg_t ch_ctl = intel_dp->aux_ch_ctl_reg(intel_dp); in intel_dp_aux_wait_done() 69 if (ret == -ETIMEDOUT) in intel_dp_aux_wait_done() 70 drm_err(display->drm, in intel_dp_aux_wait_done() 71 "%s: did not complete or timeout within %ums (status 0x%08x)\n", in intel_dp_aux_wait_done() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/pcie/ |
H A D | trans-gen2.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 4 * Copyright (C) 2018-2024 Intel Corporation 6 #include "iwl-trans.h" 7 #include "iwl-prph.h" 8 #include "iwl-context-info.h" 9 #include "iwl-context-info-gen3.h" 38 /* Set FH wait threshold to maximum (HW error during stress W/A) */ in iwl_pcie_gen2_apm_init() 43 * wake device's PCI Express link L1a -> L0s in iwl_pcie_gen2_apm_init() 54 set_bit(STATUS_DEVICE_ENABLED, &trans->status); in iwl_pcie_gen2_apm_init() 64 if (!test_bit(STATUS_DEVICE_ENABLED, &trans->status)) in iwl_pcie_gen2_apm_stop() [all …]
|