| /linux/drivers/regulator/ |
| H A D | stm32-pwr.c | 1 // SPDX-License-Identifier: GPL-2.0 50 val = readl_relaxed(priv->base + REG_PWR_CR3); in stm32_pwr_reg_is_ready() 52 return (val & priv->ready_mask); in stm32_pwr_reg_is_ready() 60 val = readl_relaxed(priv->base + REG_PWR_CR3); in stm32_pwr_reg_is_enabled() 62 return (val & rdev->desc->enable_mask); in stm32_pwr_reg_is_enabled() 71 val = readl_relaxed(priv->base + REG_PWR_CR3); in stm32_pwr_reg_enable() 72 val |= rdev->desc->enable_mask; in stm32_pwr_reg_enable() 73 writel_relaxed(val, priv->base + REG_PWR_CR3); in stm32_pwr_reg_enable() 75 /* use an arbitrary timeout of 20ms */ in stm32_pwr_reg_enable() 79 dev_err(&rdev->dev, "regulator enable timed out!\n"); in stm32_pwr_reg_enable() [all …]
|
| /linux/drivers/pmdomain/samsung/ |
| H A D | exynos-pm-domains.c | 1 // SPDX-License-Identifier: GPL-2.0 9 // conjunction with runtime-pm. Support for both device-tree and non-device-tree 40 u32 timeout, pwr; in exynos_pd_power() local 44 base = pd->base; in exynos_pd_power() 46 pwr = power_on ? pd->local_pwr_cfg : 0; in exynos_pd_power() 47 writel_relaxed(pwr, base); in exynos_pd_power() 49 /* Wait max 1ms */ in exynos_pd_power() 50 timeout = 10; in exynos_pd_power() 52 while ((readl_relaxed(base + 0x4) & pd->local_pwr_cfg) != pwr) { in exynos_pd_power() 53 if (!timeout) { in exynos_pd_power() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | sdhci-pci-gli.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Version: v0.9.0 (2019-08-08) 18 #include "sdhci-cqhci.h" 19 #include "sdhci-pci.h" 21 #include "sdhci-uhs2.h" 297 /* mask the replay timer timeout of AER */ in sdhci_gli_mask_replay_timer_timeout() 468 if (!host->tuning_done) { in __sdhci_execute_tuning_9750() 481 if (!host->tuning_done) { in __sdhci_execute_tuning_9750() 482 pr_info("%s: Tuning timeout, falling back to fixed sampling clock\n", in __sdhci_execute_tuning_9750() 483 mmc_hostname(host->mmc)); in __sdhci_execute_tuning_9750() [all …]
|
| H A D | mmci_stm32_sdmmc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 8 #include <linux/dma-mapping.h> 84 struct sdmmc_idma *idma = host->dma_priv; in sdmmc_idma_validate_data() 85 struct device *dev = mmc_dev(host->mmc); in sdmmc_idma_validate_data() 93 idma->use_bounce_buffer = false; in sdmmc_idma_validate_data() 94 for_each_sg(data->sg, sg, data->sg_len - 1, i) { in sdmmc_idma_validate_data() 95 if (!IS_ALIGNED(sg->offset, sizeof(u32)) || in sdmmc_idma_validate_data() 96 !IS_ALIGNED(sg->length, in sdmmc_idma_validate_data() 97 host->variant->stm32_idmabsize_align)) { in sdmmc_idma_validate_data() [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | iqs626a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS626A is a 14-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 19 - $ref: touchscreen/touchscreen.yaml# 31 "#address-cells": 34 "#size-cells": 37 azoteq,suspend-mode: [all …]
|
| H A D | iqs269a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 - $ref: input.yaml# 16 The Azoteq IQS269A is an 8-channel capacitive touch controller that features 17 additional Hall-effect and inductive sensing capabilities. 24 - azoteq,iqs269a 25 - azoteq,iqs269a-00 26 - azoteq,iqs269a-d0 [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | bcm_iproc_tsc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #define IPROC_TS_NAME "iproc-ts" 88 regmap_read(priv->regmap, reg, &val); \ 93 /* Each step is 1024 us. Valid 1-256 */ 96 /* Each step is 512 us. Valid 0-255 */ 100 * The settling duration (in ms) is the amount of time the tsc 102 * drivers in detection mode. Valid values: 0-11 103 * 0 = 0.008 ms 104 * 1 = 0.01 ms 105 * 2 = 0.02 ms [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | pciehp_hpc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 37 * assert presence detect--and those will still work, they will 51 return ctrl->pcie->port; in ctrl_dev() 60 int retval, irq = ctrl->pcie->irq; in pciehp_request_irq() 63 ctrl->poll_thread = kthread_run(&pciehp_poll, ctrl, in pciehp_request_irq() 64 "pciehp_poll-%s", in pciehp_request_irq() 66 return PTR_ERR_OR_ZERO(ctrl->poll_thread); in pciehp_request_irq() 81 kthread_stop(ctrl->poll_thread); in pciehp_free_irq() [all …]
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | targaddrs.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2016 Qualcomm Atheros, Inc. 36 * Pointer to application-defined area, if any. 50 * General-purpose flag bits, similar to SOC_OPTION_* flags. 103 u32 hi_num_bpatch_streams; /* 0x70 -- unused */ 124 * 0xa8 - [1]: 0 = UART FC active low, 1 = UART FC active high 125 * [31:16]: wakeup timeout in ms 143 /* 0xbc - [31:0]: idle timeout in ms */ 150 /* If non-zero, override values sent to Host in WMI_READY event. */ [all …]
|
| /linux/drivers/phy/ti/ |
| H A D | phy-twl4030-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * twl4030_usb - TWL4030 USB transceiver, talking to OMAP OTG controller 5 * Copyright (C) 2004-2007 Texas Instruments 10 * - HS USB ULPI mode works. 11 * - 3-pin mode support may be added in future. 138 * cable is present and we need to be runtime-enabled 175 /*-------------------------------------------------------------------------*/ 186 dev_dbg(twl->dev, "Write%d[%d,0x%x] wrote %02x but read %02x\n", in twl4030_i2c_write_u8_verify() 194 dev_dbg(twl->dev, "Write%d[%d,0x%x] wrote %02x but read %02x\n", in twl4030_i2c_write_u8_verify() 198 return -EBUSY; in twl4030_i2c_write_u8_verify() [all …]
|
| /linux/net/bluetooth/ |
| H A D | l2cap_sock.c | 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 Copyright (C) 2009-2010 Gustavo F. Padovan <gustavo@padovan.org> 53 return sock && sock->ops == &l2cap_sock_ops; in l2cap_is_socket() 61 return -EINVAL; in l2cap_validate_bredr_psm() 63 /* Restrict usage of well-known PSMs */ in l2cap_validate_bredr_psm() 65 return -EACCES; in l2cap_validate_bredr_psm() 74 return -EINVAL; in l2cap_validate_le_psm() 78 return -EACCES; in l2cap_validate_le_psm() 85 struct sock *sk = sock->s in l2cap_sock_bind() 561 struct bt_power pwr; l2cap_sock_getsockopt() local 885 struct bt_power pwr; l2cap_sock_setsockopt() local 1274 unsigned long timeout = jiffies + L2CAP_WAIT_ACK_TIMEOUT; __l2cap_wait_ack() local [all...] |
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | msm8916-longcheer-l8150.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8916-pm8916.dtsi" 6 #include "msm8916-modem-qdsp6.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/leds/common.h> 16 chassis-type = "handset"; 25 stdout-path = "serial0"; [all …]
|
| H A D | sdm845-oneplus-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 /dts-v1/; 10 #include <dt-bindings/arm/qcom,ids.h> 11 #include <dt-bindings/input/linux-event-codes.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 14 #include <dt-bindings/sound/qcom,q6afe.h> 15 #include <dt-bindings/sound/qcom,q6asm.h> 18 #include "sdm845-wcd9340.dtsi" 22 /delete-node/ &rmtfs_mem; [all …]
|
| H A D | sdm670-google-sargo.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device tree for Google Pixel 3a, adapted from google-blueline device tree, 4 * xiaomi-lavender device tree, and oneplus-common device tree. 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 15 #include <dt-bindings/power/qcom-rpmpd.h> 20 /delete-node/ &mpss_region; [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | mci.c | 2 * Copyright (c) 2010-2011 Atheros Communications Inc. 17 #include <linux/dma-mapping.h> 31 if (list_empty(&mci->info)) in ath_mci_find_profile() 34 list_for_each_entry(entry, &mci->info, list) { in ath_mci_find_profile() 35 if (entry->conn_handle == info->conn_handle) in ath_mci_find_profile() 48 if ((mci->num_sco == ATH_MCI_MAX_SCO_PROFILE) && in ath_mci_add_profile() 49 (info->type == MCI_GPM_COEX_PROFILE_VOICE)) in ath_mci_add_profile() 52 if (((NUM_PROF(mci) - mci->num_sco) == ATH_MCI_MAX_ACL_PROFILE) && in ath_mci_add_profile() 53 (info->type != MCI_GPM_COEX_PROFILE_VOICE)) in ath_mci_add_profile() 62 list_add_tail(&entry->list, &mci->info); in ath_mci_add_profile() [all …]
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | fusb302.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2016-2017 Google, Inc 5 * Fairchild FUSB302 Type-C Chip Driver 42 * longer than PD_T_PD_DEBPUNCE (10-20ms). 131 return chip->logbuffer_tail == in fusb302_log_full() 132 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full() 143 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log() 144 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log() 146 if (!chip->logbuffer[chip->logbuffer_head]) in _fusb302_log() 152 mutex_lock(&chip->logbuffer_lock); in _fusb302_log() [all …]
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | ich8lan.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 36 #define E1000_ICH_FWSM_PCIM2PCI 0x01000000 /* ME PCIm-to-PCI active */ 93 /* bit24: RXDCTL thresholds granularity: 0 - cache lines, 1 - descriptors */ 106 #define E1000_PCH2_RAR_ENTRIES 5 /* RAR[0], SHRA[0-3] */ 107 #define E1000_PCH_LPT_RAR_ENTRIES 12 /* RAR[0], SHRA[0-10] */ 144 /* Half-duplex collision counts */ 172 #define I218_ULP_CONFIG1_IND 0x0004 /* Pwr up from ULP indication */ 192 /* Strapping Option Register - RO */ 203 #define HV_OEM_BITS_RESTART_AN 0x0400 /* Restart Auto-negotiation */ [all …]
|
| /linux/drivers/input/misc/ |
| H A D | iqs626a.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * inductive keys as well as Hall-effect switches, and one for a trackpad that 227 .name = "event-prox", 233 .name = "event-prox-alt", 240 .name = "event-touch", 246 .name = "event-touch-alt", 253 .name = "event-deep", 259 .name = "event-deep-alt", 367 .name = "ulp-0", 378 .name = "trackpad-3x2", [all …]
|
| H A D | iqs269a.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * inductive keys as well as Hall-effect switches, and one for each of the two 225 .name = "event-prox", 231 .name = "event-prox-alt", 238 .name = "event-touch", 244 .name = "event-touch-alt", 251 .name = "event-deep", 257 .name = "event-deep-alt", 339 * Slider 1 is unavailable if the touch-and-hold option is enabled via in iqs269_slider_type() 341 * the touch-and-hold timer ceiling. in iqs269_slider_type() [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | logicpd-torpedo-baseboard.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 compatible = "gpio-keys"; 6 pinctrl-names = "default"; 7 pinctrl-0 = <&gpio_key_pins &gpio_key_pins_wkup>; 13 wakeup-source; 20 wakeup-source; 27 wakeup-source; 34 wakeup-source; 39 compatible = "ti,omap-twl4030"; 45 compatible = "gpio-leds"; [all …]
|
| /linux/drivers/net/ieee802154/ |
| H A D | adf7242.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Analog Devices ADF7242 Low-Power IEEE 802.15.4 Transceiver 5 * Copyright 2009-2017 Analog Devices Inc. 48 #define REG_CH_FREQ0 0x300 /* RW Channel Frequency Settings - Low */ 49 #define REG_CH_FREQ1 0x301 /* RW Channel Frequency Settings - Middle */ 50 #define REG_CH_FREQ2 0x302 /* RW Channel Frequency Settings - High */ 62 #define REG_TMR_CFG0 0x316 /* RW Wake up Timer Conf Register - High */ 63 #define REG_TMR_CFG1 0x317 /* RW Wake up Timer Conf Register - Low */ 64 #define REG_TMR_RLD0 0x318 /* RW Wake up Timer Value Register - High */ 65 #define REG_TMR_RLD1 0x319 /* RW Wake up Timer Value Register - Low */ [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | ste-ux500-samsung-skomer.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung XCover 2 GT-S7710 also known as Skomer. 6 /dts-v1/; 7 #include "ste-db8500.dtsi" 8 #include "ste-ab8505.dtsi" 9 #include "ste-dbx5x0-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
| H A D | ste-ux500-samsung-kyle.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung Galaxy Amp SGH-I407 also known as Kyle. 10 /dts-v1/; 11 #include "ste-db8500.dtsi" 12 #include "ste-ab8505.dtsi" 13 #include "ste-dbx5x0-pinctrl.dtsi" 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/leds/common.h> 16 #include <dt-bindings/input/input.h> 17 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | sdio.c | 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 27 #include "hif-ops.h" 82 return ar->hif_priv; in ath6kl_sdio_priv() 86 * Macro to check if DMA buffer is WORD-aligned and DMA-able. 88 * bug-check otherwise (i.e. buffers on the stack). virt_addr_valid 98 struct ath6kl_mbox_info *mbox_info = &ar->mbox_info; in ath6kl_sdio_set_mbox_info() 101 mbox_info->htc_addr = HIF_MBOX_BASE_ADDR; in ath6kl_sdio_set_mbox_info() 102 mbox_info->htc_ext_addr = HIF_MBOX0_EXT_BASE_ADDR; in ath6kl_sdio_set_mbox_info() 103 mbox_info->htc_ext_sz = HIF_MBOX0_EXT_WIDTH; in ath6kl_sdio_set_mbox_info() [all …]
|
| /linux/drivers/net/wireless/rsi/ |
| H A D | rsi_91x_sdio.c | 30 * rsi_sdio_set_cmd52_arg() - This function prepares cmd 52 read/write arg. 52 * rsi_cmd52writebyte() - This function issues cmd52 byte write onto the card. 72 return mmc_wait_for_cmd(card->host, &io_cmd, 0); in rsi_cmd52writebyte() 76 * rsi_cmd52readbyte() - This function issues cmd52 byte read onto the card. 97 err = mmc_wait_for_cmd(card->host, &io_cmd, 0); in rsi_cmd52readbyte() 104 * rsi_issue_sdiocommand() - This function issues sdio commands. 111 * Return: err: command status as 0 or -1. 123 host = func->card->host; in rsi_issue_sdiocommand() 138 * rsi_handle_interrupt() - This function is called upon the occurrence 147 struct rsi_91x_sdiodev *dev = adapter->rsi_dev; in rsi_handle_interrupt() [all …]
|