| /drivers/spi/ |
| D | spi-dw-dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/dma-mapping.h> 15 #include <linux/platform_data/dma-dw.h> 19 #include "spi-dw.h" 30 if (s->dma_dev != chan->device->dev) in dw_spi_dma_chan_filter() 33 chan->private = s; in dw_spi_dma_chan_filter() 43 def_burst = dws->fifo_len / 2; in dw_spi_dma_maxburst_init() 45 ret = dma_get_slave_caps(dws->rxchan, &caps); in dw_spi_dma_maxburst_init() 51 dws->rxburst = min(max_burst, def_burst); in dw_spi_dma_maxburst_init() 52 dw_writel(dws, DW_SPI_DMARDLR, dws->rxburst - 1); in dw_spi_dma_maxburst_init() [all …]
|
| /drivers/input/touchscreen/ |
| D | hynitron_cstxxx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * are undocumented. This is essentially a cleaned-up version of the 11 * device-specific functions replated with generic functions wherever 15 #include <linux/delay.h> 37 /* Data generic to all (supported and non-supported) controllers. */ 69 * Hard coded reset delay value of 20ms not IC dependent in 72 static void hyn_reset_proc(struct i2c_client *client, int delay) in hyn_reset_proc() argument 76 gpiod_set_value_cansleep(ts_data->reset_gpio, 1); in hyn_reset_proc() 78 gpiod_set_value_cansleep(ts_data->reset_gpio, 0); in hyn_reset_proc() 79 if (delay) in hyn_reset_proc() [all …]
|
| /drivers/rtc/ |
| D | rtc-sun4v.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* rtc-sun4v.c: Hypervisor based RTC for SUN4V systems. 12 #include <linux/delay.h> 24 retry: in hypervisor_get_time() 29 if (--retries > 0) { in hypervisor_get_time() 31 goto retry; in hypervisor_get_time() 51 retry: in hypervisor_set_time() 56 if (--retries > 0) { in hypervisor_set_time() 58 goto retry; in hypervisor_set_time() 61 return -EAGAIN; in hypervisor_set_time() [all …]
|
| /drivers/net/ethernet/stmicro/stmmac/ |
| D | dwmac-qcom-ethqos.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2018-19, Linaro Limited 127 return readl(ethqos->rgmii_base + offset); in rgmii_readl() 133 writel(value, ethqos->rgmii_base + offset); in rgmii_writel() 149 struct device *dev = ðqos->pdev->dev; in rgmii_dump() 180 if (!phy_interface_mode_is_rgmii(ethqos->phy_mode)) in ethqos_update_link_clk() 185 ethqos->link_clk_rate = RGMII_1000_NOM_CLK_FREQ; in ethqos_update_link_clk() 189 ethqos->link_clk_rate = RGMII_ID_MODE_100_LOW_SVS_CLK_FREQ; in ethqos_update_link_clk() 193 ethqos->link_clk_rate = RGMII_ID_MODE_10_LOW_SVS_CLK_FREQ; in ethqos_update_link_clk() 197 clk_set_rate(ethqos->link_clk, ethqos->link_clk_rate); in ethqos_update_link_clk() [all …]
|
| /drivers/usb/core/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 30 Documentation/driver-api/usb/persist.rst for more info. 39 to initialize and enumerate it, with lots of nested retry loops. 41 This option tells the kernel to make only a few retry attempts, 45 Say N here unless you require new-device enumeration failure to 64 "Dual-Role" device, which can act as either a device 69 Select this only if your board has Mini-AB/Micro-AB 97 Implements OTG Finite State Machine as specified in On-The-Go 109 int "Default autosuspend delay" 113 The default autosuspend delay in seconds. Can be overridden [all …]
|
| /drivers/gpu/drm/ast/ |
| D | ast_dp501.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <linux/delay.h> 20 release_firmware(ast->dp501_fw); in ast_release_firmware() 21 ast->dp501_fw = NULL; in ast_release_firmware() 29 ret = request_firmware(&ast->dp501_fw, "ast_dp501_fw.bin", dev->dev); in ast_load_dp501_microcode() 33 return devm_add_action_or_reset(dev->dev, ast_release_firmware, ast); in ast_load_dp501_microcode() 55 u32 retry = 0; in wait_ack() local 60 } while ((!waitack) && (retry++ < 1000)); in wait_ack() 62 if (retry < 1000) in wait_ack() 71 u32 retry = 0; in wait_nack() local [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mvm/ |
| D | tdls.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 5 * Copyright (C) 2018-2020, 2022-2024 Intel Corporation 9 #include "time-event.h" 10 #include "iwl-io.h" 11 #include "iwl-prph.h" 22 lockdep_assert_held(&mvm->mutex); in iwl_mvm_teardown_tdls_peers() 24 for (i = 0; i < mvm->fw->ucode_capa.num_stations; i++) { in iwl_mvm_teardown_tdls_peers() 25 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_teardown_tdls_peers() 26 lockdep_is_held(&mvm->mutex)); in iwl_mvm_teardown_tdls_peers() 27 if (!sta || IS_ERR(sta) || !sta->tdls) in iwl_mvm_teardown_tdls_peers() [all …]
|
| /drivers/gpu/drm/ci/ |
| D | gitlab-ci.yml | 2 DRM_CI_PROJECT_PATH: &drm-ci-project-path mesa/mesa 3 DRM_CI_COMMIT_SHA: &drm-ci-commit-sha d9849ac46623797a9f56fb9d46dc52460ac477de 6 TARGET_BRANCH: drm-next 10 DEQP_RUNNER_GIT_URL: https://gitlab.freedesktop.org/mesa/deqp-runner.git 13 FDO_UPSTREAM_REPO: helen.fornazier/linux # The repo where the git-archive daily runs 14 MESA_TEMPLATES_COMMIT: &ci-templates-commit d5aa3941aa03c2f716595116354fb81eb8012acb 16 CI_PRE_CLONE_SCRIPT: |- 17 set -o xtrace 18 …-L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${DRM_CI_PROJECT_URL}/-/raw/${DRM_CI_COMMIT… 19 bash download-git-cache.sh [all …]
|
| D | lava-submit.sh | 2 # SPDX-License-Identifier: MIT 4 set -e 5 set -x 9 if curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s "https://${BASE_SYSTEM_MAINLINE_HOST… 15 rm -rf results 16 mkdir -p results/job-rootfs-overlay/ 18 cp artifacts/ci-common/capture-devcoredump.sh results/job-rootfs-overlay/ 19 cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/ 20 cp artifacts/ci-common/intel-gpu-freq.sh results/job-rootfs-overlay/ 21 cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/ [all …]
|
| D | igt_runner.sh | 2 # SPDX-License-Identifier: MIT 4 set -ex 8 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/aarch64-linux-gnu/:/igt/lib/x86_64-linux-gnu:/igt/… 12 ls -l /dev/dri/ 20 set -e 26 modprobe --first-time $DRIVER_NAME 30 if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then 31 IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" 34 if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" ]; then 35 IGT_FLAKES="--flakes /install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" [all …]
|
| /drivers/staging/vt6655/ |
| D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 * vt6655_mac_is_reg_bits_off - Test if All test Bits Off 14 * vt6655_mac_set_short_retry_limit - Set 802.11 Short Retry limit 15 * MACvSetLongRetryLimit - Set 802.11 Long Retry limit 16 * vt6655_mac_set_loopback_mode - Set MAC Loopback Mode 17 * vt6655_mac_save_context - Save Context of MAC Registers 18 * vt6655_mac_restore_context - Restore Context of MAC Registers 19 * MACbSoftwareReset - Software Reset MAC 20 * vt6655_mac_safe_rx_off - Turn Off MAC Rx 21 * vt6655_mac_safe_tx_off - Turn Off MAC Tx [all …]
|
| /drivers/scsi/lpfc/ |
| D | lpfc_els.c | 4 * Copyright (C) 2017-2024 Broadcom. All Rights Reserved. The term * 6 * Copyright (C) 2004-2016 Emulex. All rights reserved. * 9 * Portions Copyright (C) 2004-2005 Christoph Hellwig * 17 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE * 23 /* See Fibre Channel protocol T11 FC-LS for details */ 28 #include <linux/delay.h> 56 struct lpfc_nodelist *ndlp, uint8_t retry); 72 * lpfc_els_chk_latt - Check host link attention event for a vport 90 * 0 - no host link attention event happened 91 * 1 - host link attention event happened [all …]
|
| /drivers/gpu/drm/ |
| D | drm_self_refresh_helper.c | 1 // SPDX-License-Identifier: MIT 31 * &drm_connector_state.self_refresh_aware to true at runtime if it is SR-aware 38 * that tells you to disable/enable SR on the panel instead of power-cycling it. 72 struct drm_crtc *crtc = sr_data->crtc; in drm_self_refresh_helper_entry_work() 73 struct drm_device *dev = crtc->dev; in drm_self_refresh_helper_entry_work() 85 ret = -ENOMEM; in drm_self_refresh_helper_entry_work() 89 retry: in drm_self_refresh_helper_entry_work() 90 state->acquire_ctx = &ctx; in drm_self_refresh_helper_entry_work() 98 if (!crtc_state->enable) in drm_self_refresh_helper_entry_work() 106 if (!conn_state->self_refresh_aware) in drm_self_refresh_helper_entry_work() [all …]
|
| /drivers/mailbox/ |
| D | hi3660-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2017-2018 HiSilicon Limited. 3 // Copyright (c) 2017-2018 Linaro Limited. 6 #include <linux/delay.h> 25 #define MBOX_BASE(mbox, ch) ((mbox)->base + ((ch) * 0x40)) 48 * struct hi3660_chan_info - Hi3660 mailbox channel information 62 * struct hi3660_mbox - Hi3660 mailbox controller data 87 unsigned long ch = (unsigned long)chan->con_priv; in hi3660_mbox_check_state() 88 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_check_state() 89 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_check_state() [all …]
|
| /drivers/infiniband/hw/hfi1/ |
| D | firmware.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright(c) 2015 - 2017 Intel Corporation. 8 #include <linux/delay.h> 103 #define AUGMENT_SIZE (sizeof(struct augmented_firmware_file) - \ 217 * Read a single 64-bit value from 8051 data memory. 224 * ignored - i.e. the hardware will always do aligned 8-byte reads as if 227 * Return 0 on success, -ENXIO on a read error (timeout). 250 return -ENXIO; in __read_8051_data() 262 * Read 8051 data starting at addr, for len bytes. Will read in 8-byte chunks. 263 * Return 0 on success, -errno on error. [all …]
|
| /drivers/fsi/ |
| D | fsi-master.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * FSI master definitions. These comprise the core <--> master interface, 4 * to allow the core to interact with the (hardware-specific) masters. 24 #define FSI_MDLYR 0x4 /* R/W: delay */ 77 * These are used by low level masters that bit-bang out the protocol 81 #define FSI_ECHO_DELAY_CLOCKS 16 /* Number clocks for echo delay */ 82 #define FSI_SEND_DELAY_CLOCKS 16 /* Number clocks for send delay */ 88 #define FSI_MASTER_EPOLL_CLOCKS 50 /* Number of clocks for E_POLL retry */ 90 /* Various retry maximums */ 101 #define FSI_CMD_SAME_AR 0x3 /* but only a 2-bit opcode... */ [all …]
|
| /drivers/input/mouse/ |
| D | byd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/delay.h> 38 * Absolute coordinate packets are in the range 0-255 for both X and Y 59 * Swipe gesture from off-pad to on-pad 65 * Tap and drag delay time 67 * 1 - 8 : least to most delay 114 * 1 - 7 : least to most sensitive 135 * 1 - 5 : slowest to fastest 147 * 0 - 7 : smallest to largest width 152 * 0 - 9 : smallest to largest height [all …]
|
| /drivers/scsi/bfa/ |
| D | bfa_fcs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 4 * Copyright (c) 2014- QLogic Corporation. 8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. 36 #define __fcs_min_cfg(__fcs) ((__fcs)->min_cfg) 125 u8 retry_cnt; /* retry count */ 151 u8 retry_cnt; /* retry count */ 209 u16 num_rports; /* Num of r-ports */ 210 struct list_head rport_q; /* queue of discovered r-ports */ 220 #define BFA_FCS_GET_HAL_FROM_PORT(port) (port->fcs->bfa) [all …]
|
| /drivers/mtd/chips/ |
| D | cfi_cmdset_0002.c | 1 // SPDX-License-Identifier: GPL-2.0 31 #include <linux/delay.h> 118 * CFI Primary Vendor-Specific Extended Query table 1.5 122 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in cfi_use_status_reg() 125 return extp && extp->MinorVersion >= '5' && in cfi_use_status_reg() 126 (extp->SoftwareFeatures & poll_mask) == CFI_POLL_STATUS_REG; in cfi_use_status_reg() 132 struct cfi_private *cfi = map->fldrv_priv; in cfi_check_err_status() 138 cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, in cfi_check_err_status() 139 cfi->device_type, NULL); in cfi_check_err_status() 151 map->name, chipstatus); in cfi_check_err_status() [all …]
|
| /drivers/mtd/lpddr/ |
| D | lpddr_cmds.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 struct lpddr_private *lpddr = map->fldrv_priv; in lpddr_cmdset() 47 mtd->priv = map; in lpddr_cmdset() 48 mtd->type = MTD_NORFLASH; in lpddr_cmdset() 51 mtd->_read = lpddr_read; in lpddr_cmdset() 52 mtd->type = MTD_NORFLASH; in lpddr_cmdset() 53 mtd->flags = MTD_CAP_NORFLASH; in lpddr_cmdset() 54 mtd->flags &= ~MTD_BIT_WRITEABLE; in lpddr_cmdset() 55 mtd->_erase = lpddr_erase; in lpddr_cmdset() 56 mtd->_write = lpddr_write_buffers; in lpddr_cmdset() [all …]
|
| /drivers/gpu/drm/i915/gt/uc/ |
| D | intel_gsc_uc_heci_cmd_submit.c | 1 // SPDX-License-Identifier: MIT 29 *cs++ = lower_32_bits(pkt->addr_in); in emit_gsc_heci_pkt() 30 *cs++ = upper_32_bits(pkt->addr_in); in emit_gsc_heci_pkt() 31 *cs++ = pkt->size_in; in emit_gsc_heci_pkt() 32 *cs++ = lower_32_bits(pkt->addr_out); in emit_gsc_heci_pkt() 33 *cs++ = upper_32_bits(pkt->addr_out); in emit_gsc_heci_pkt() 34 *cs++ = pkt->size_out; in emit_gsc_heci_pkt() 46 struct intel_context *ce = gsc->ce; in intel_gsc_uc_heci_cmd_submit_packet() 57 return -ENODEV; in intel_gsc_uc_heci_cmd_submit_packet() 63 if (ce->engine->emit_init_breadcrumb) { in intel_gsc_uc_heci_cmd_submit_packet() [all …]
|
| /drivers/scsi/csiostor/ |
| D | csio_attr.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 37 #include <linux/delay.h> 51 * csio_reg_rnode - Register a remote port with FC transport. 69 ids.port_id = rn->nport_id; in csio_reg_rnode() 72 if (rn->role & CSIO_RNFR_INITIATOR || rn->role & CSIO_RNFR_TARGET) { in csio_reg_rnode() 73 rport = rn->rport; in csio_reg_rnode() 78 rn->rport = fc_remote_port_add(shost, 0, &ids); in csio_reg_rnode() 79 if (!rn->rport) { in csio_reg_rnode() [all …]
|
| /drivers/cpufreq/ |
| D | speedstep-smi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * (C) 2003 Hiroshi Miura <miura@da-cha.org> 10 * SPEEDSTEP - DEFINITIONS * 20 #include <linux/delay.h> 25 #include "speedstep-lib.h" 29 * These parameters are got from IST-SMI BIOS call. 92 * speedstep_smi_get_freqs - get SpeedStep preferred & current freq. 96 * Only available on later SpeedStep-enabled systems, returns false results or 107 pr_debug("bug #1422 -- can't read freqs from BIOS\n"); in speedstep_smi_get_freqs() 108 return -ENODEV; in speedstep_smi_get_freqs() [all …]
|
| /drivers/misc/mei/pxp/ |
| D | mei_pxp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright © 2020 - 2021 Intel Corporation 14 #include <linux/delay.h> 46 * mei_pxp_send_message() - Sends a PXP message to ME FW. 53 * -ENODEV: Client was not connected. 55 * -ENOMEM: Internal memory allocation failure experienced. 57 * -EINTR : Calling thread received a signal. Caller may choose 59 * -ETIME : Request is timed out. 70 return -EINVAL; in mei_pxp_send_message() 78 case -ENOMEM: in mei_pxp_send_message() [all …]
|
| /drivers/iio/imu/bno055/ |
| 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 …]
|