| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| D | qcom,spmi-vadc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 15 voltage. The VADC is a 15-bit sigma-delta ADC. 17 voltage. The VADC is a 16-bit sigma-delta ADC. 22 - items: 23 - const: qcom,pms405-adc [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/qcom/ |
| D | pms405.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <dt-bindings/spmi/spmi.h> 5 #include <dt-bindings/input/linux-event-codes.h> 6 #include <dt-bindings/iio/qcom,spmi-vadc.h> 7 #include <dt-bindings/thermal/thermal.h> 10 thermal-zones { 12 polling-delay-passive = <250>; 13 polling-delay = <1000>; 15 thermal-sensors = <&pms405_temp>; 18 pms405_alert0: pms405-alert0 { [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/iio/adc/ |
| D | qcom,spmi-vadc.txt | 4 voltage. The VADC is a 15-bit sigma-delta ADC. 8 - compatible: 11 Definition: Should contain "qcom,spmi-vadc". 13 - reg: 15 Value type: <prop-encoded-array> 18 - #address-cells: 24 - #size-cells: 29 - #io-channel-cells: 33 Documentation/devicetree/bindings/iio/iio-bindings.txt 35 - interrupts: [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | qcom-spmi-adc5.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <dt-bindings/iio/qcom,spmi-vadc.h> 22 #include "qcom-vadc-common.h" 73 * Conversion time varies based on the decimation, clock rate, fast average 103 * struct adc5_channel_prop - ADC channel property. 110 * @hw_settle_time: the time between AMUX being configured and the 132 * struct adc5_chip - ADC private structure. 171 return regmap_bulk_read(adc->regmap, adc->base + offset, data, len); in adc5_read() 176 return regmap_bulk_write(adc->regmap, adc->base + offset, data, len); in adc5_write() 181 return regmap_update_bits(adc->regmap, adc->base + offset, mask, val); in adc5_masked_write() [all …]
|
| D | qcom-spmi-vadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. 21 #include <dt-bindings/iio/qcom,spmi-vadc.h> 23 #include "qcom-vadc-common.h" 76 * struct vadc_channel_prop - VADC channel property. 81 * @hw_settle_time: the time between AMUX being configured and the 99 * struct vadc_priv - VADC private structure. 139 return regmap_bulk_read(vadc->regmap, vadc->base + offset, data, 1); in vadc_read() 144 return regmap_write(vadc->regmap, vadc->base + offset, data); in vadc_write() 203 dev_err(vadc->dev, in vadc_show_status() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/samsung/ |
| D | clk-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/clk-provider.h> 16 #include "clk-pll.h" 21 struct clk_hw hw; member 33 #define to_clk_pll(_hw) container_of(_hw, struct samsung_clk_pll, hw) 38 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_get_pll_settings() 41 for (i = 0; i < pll->rate_count; i++) { in samsung_get_pll_settings() 49 static long samsung_pll_round_rate(struct clk_hw *hw, in samsung_pll_round_rate() argument 52 struct samsung_clk_pll *pll = to_clk_pll(hw); in samsung_pll_round_rate() 53 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_pll_round_rate() [all …]
|
| /kernel/linux/linux-4.19/drivers/clk/samsung/ |
| D | clk-pll.c | 18 #include "clk-pll.h" 23 struct clk_hw hw; member 35 #define to_clk_pll(_hw) container_of(_hw, struct samsung_clk_pll, hw) 40 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_get_pll_settings() 43 for (i = 0; i < pll->rate_count; i++) { in samsung_get_pll_settings() 51 static long samsung_pll_round_rate(struct clk_hw *hw, in samsung_pll_round_rate() argument 54 struct samsung_clk_pll *pll = to_clk_pll(hw); in samsung_pll_round_rate() 55 const struct samsung_pll_rate_table *rate_table = pll->rate_table; in samsung_pll_round_rate() 59 for (i = 0; i < pll->rate_count; i++) { in samsung_pll_round_rate() 65 return rate_table[i - 1].rate; in samsung_pll_round_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/mei/ |
| D | hw-txe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2013-2020, Intel Corporation. All rights reserved. 18 #include "hw-txe.h" 22 #include "mei-trace.h" 27 * mei_txe_reg_read - Reads 32bit data from the txe device 41 * mei_txe_reg_write - Writes 32bit data to the txe device 54 * mei_txe_sec_reg_read_silent - Reads 32bit data from the SeC BAR 56 * @hw: the txe hardware structure 63 static inline u32 mei_txe_sec_reg_read_silent(struct mei_txe_hw *hw, in mei_txe_sec_reg_read_silent() argument 66 return mei_txe_reg_read(hw->mem_addr[SEC_BAR], offset); in mei_txe_sec_reg_read_silent() [all …]
|
| /kernel/linux/linux-4.19/drivers/iio/adc/ |
| D | qcom-spmi-vadc.c | 2 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. 29 #include <dt-bindings/iio/qcom,spmi-vadc.h> 31 #include "qcom-vadc-common.h" 84 * struct vadc_channel_prop - VADC channel property. 89 * @hw_settle_time: the time between AMUX being configured and the 107 * struct vadc_priv - VADC private structure. 147 return regmap_bulk_read(vadc->regmap, vadc->base + offset, data, 1); in vadc_read() 152 return regmap_write(vadc->regmap, vadc->base + offset, data); in vadc_write() 211 dev_err(vadc->dev, in vadc_show_status() 230 ret = vadc_write(vadc, VADC_ADC_CH_SEL_CTL, prop->channel); in vadc_configure() [all …]
|
| /kernel/linux/linux-4.19/drivers/misc/mei/ |
| D | hw-txe.c | 4 * Copyright (c) 2013-2014, Intel Corporation. 28 #include "hw-txe.h" 32 #include "mei-trace.h" 37 * mei_txe_reg_read - Reads 32bit data from the txe device 51 * mei_txe_reg_write - Writes 32bit data to the txe device 64 * mei_txe_sec_reg_read_silent - Reads 32bit data from the SeC BAR 66 * @hw: the txe hardware structure 73 static inline u32 mei_txe_sec_reg_read_silent(struct mei_txe_hw *hw, in mei_txe_sec_reg_read_silent() argument 76 return mei_txe_reg_read(hw->mem_addr[SEC_BAR], offset); in mei_txe_sec_reg_read_silent() 80 * mei_txe_sec_reg_read - Reads 32bit data from the SeC BAR [all …]
|
| /kernel/linux/linux-4.19/drivers/mtd/nand/raw/gpmi-nand/ |
| D | gpmi-lib.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. 12 #include "gpmi-nand.h" 13 #include "gpmi-regs.h" 14 #include "bch-regs.h" 16 /* Converts time to clock cycles */ 34 * SFTRST needs 3 GPMI clocks to settle, the reference manual in clear_poll_bit() 40 while ((readl(addr) & mask) && --timeout) in clear_poll_bit() 84 while ((!(readl(reset_addr) & MODULE_CLKGATE)) && --timeout) in gpmi_reset_block() 104 return -ETIMEDOUT; in gpmi_reset_block() [all …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/hfi1/ |
| D | intr.c | 24 * - Redistributions of source code must retain the above copyright 26 * - Redistributions in binary form must reproduce the above copyright 30 * - Neither the name of Intel Corporation nor the names of its 61 struct hfi1_devdata *dd = ppd->dd; in set_mgmt_allowed() 63 if (ppd->neighbor_type == NEIGHBOR_TYPE_HFI) { in set_mgmt_allowed() 64 ppd->mgmt_allowed = 1; in set_mgmt_allowed() 67 ppd->mgmt_allowed = (frame >> MGMT_ALLOWED_SHIFT) in set_mgmt_allowed() 75 * (0-based) pkey array position. Note that we should already have 81 struct hfi1_devdata *dd = ppd->dd; in add_full_mgmt_pkey() 83 /* Sanity check - ppd->pkeys[2] should be 0, or already initialized */ in add_full_mgmt_pkey() [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
| D | intr.c | 24 * - Redistributions of source code must retain the above copyright 26 * - Redistributions in binary form must reproduce the above copyright 30 * - Neither the name of Intel Corporation nor the names of its 61 struct hfi1_devdata *dd = ppd->dd; in set_mgmt_allowed() 63 if (ppd->neighbor_type == NEIGHBOR_TYPE_HFI) { in set_mgmt_allowed() 64 ppd->mgmt_allowed = 1; in set_mgmt_allowed() 67 ppd->mgmt_allowed = (frame >> MGMT_ALLOWED_SHIFT) in set_mgmt_allowed() 75 * (0-based) pkey array position. Note that we should already have 81 struct hfi1_devdata *dd = ppd->dd; in add_full_mgmt_pkey() 83 /* Sanity check - ppd->pkeys[2] should be 0, or already initialized */ in add_full_mgmt_pkey() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/wlan-ng/ |
| D | prism2sta.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) 7 * -------------------------------------------------------------------- 9 * linux-wlan 32 * -------------------------------------------------------------------- 34 * Inquiries regarding the linux-wlan Open Source project can be 38 * info@linux-wlan.com 39 * http://www.linux-wlan.com 41 * -------------------------------------------------------------------- 46 * -------------------------------------------------------------------- 51 * -------------------------------------------------------------------- [all …]
|
| D | hfa384x_usb.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) 7 * -------------------------------------------------------------------- 9 * linux-wlan 32 * -------------------------------------------------------------------- 34 * Inquiries regarding the linux-wlan Open Source project can be 38 * info@linux-wlan.com 39 * http://www.linux-wlan.com 41 * -------------------------------------------------------------------- 46 * -------------------------------------------------------------------- 52 * abstraction. The lowest level functions are simply C-callable wrappers [all …]
|
| /kernel/linux/linux-4.19/drivers/staging/wlan-ng/ |
| D | prism2sta.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) 7 * -------------------------------------------------------------------- 9 * linux-wlan 32 * -------------------------------------------------------------------- 34 * Inquiries regarding the linux-wlan Open Source project can be 38 * info@linux-wlan.com 39 * http://www.linux-wlan.com 41 * -------------------------------------------------------------------- 46 * -------------------------------------------------------------------- 51 * -------------------------------------------------------------------- [all …]
|
| /kernel/linux/linux-5.10/drivers/macintosh/ |
| D | adb.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * - /sys/bus/adb to list the devices and infos 15 * - more /dev/adb to allow userland to receive the 16 * flow of auto-polling datas from a given device. 17 * - move bus probe to a kernel thread 106 * time adb_unregister returns, we know that the old handler isn't being 117 printk("adb reply (%d)", req->reply_len); 118 for(i = 0; i < req->reply_len; i++) 119 printk(" %x", req->reply[i]); 143 /* Note we reset noMovement to 0 each time we move a device */ in adb_scan_bus() [all …]
|
| /kernel/linux/linux-4.19/drivers/macintosh/ |
| D | adb.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * - /sys/bus/adb to list the devices and infos 15 * - more /dev/adb to allow userland to receive the 16 * flow of auto-polling datas from a given device. 17 * - move bus probe to a kernel thread 106 * time adb_unregister returns, we know that the old handler isn't being 117 printk("adb reply (%d)", req->reply_len); 118 for(i = 0; i < req->reply_len; i++) 119 printk(" %x", req->reply[i]); 143 /* Note we reset noMovement to 0 each time we move a device */ in adb_scan_bus() [all …]
|
| /kernel/linux/linux-5.10/sound/drivers/ |
| D | portman2x4.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) by Levent Guendogdu <levon@feature-it.com> 9 * - cleanup and rewrite 11 * - source code cleanup 13 * - fixed compilation problem with alsa 1.0.6a (removed MODULE_CLASSES, 17 * - added 2.6 kernel support 19 …* - added parport_unregister_driver to the startup routine if the driver fails to detect a po… 20 * - added support for all 4 output ports in portman_putmidi 22 * - added checks for opened input device in interrupt handler 24 * - ported from alsa 0.5 to 1.0 [all …]
|
| /kernel/linux/linux-4.19/sound/drivers/ |
| D | portman2x4.c | 4 * Copyright (c) by Levent Guendogdu <levon@feature-it.com> 22 * - cleanup and rewrite 24 * - source code cleanup 26 * - fixed compilation problem with alsa 1.0.6a (removed MODULE_CLASSES, 30 * - added 2.6 kernel support 32 …* - added parport_unregister_driver to the startup routine if the driver fails to detect a po… 33 * - added support for all 4 output ports in portman_putmidi 35 * - added checks for opened input device in interrupt handler 37 * - ported from alsa 0.5 to 1.0 107 return -ENOMEM; in portman_create() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/ath/ath10k/ |
| D | hw.c | 2 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 20 #include "hw.h" 22 #include "wmi-ops.h" 560 survey->filled |= SURVEY_INFO_TIME | in ath10k_hw_fill_survey_time() 563 wraparound_type = ar->hw_params.cc_wraparound_type; in ath10k_hw_fill_survey_time() 570 survey->filled &= ~SURVEY_INFO_TIME_BUSY; in ath10k_hw_fill_survey_time() 585 cc -= cc_prev - cc_fix; in ath10k_hw_fill_survey_time() 586 rcc -= rcc_prev - rcc_fix; in ath10k_hw_fill_survey_time() 588 survey->time = CCNT_TO_MSEC(ar, cc); in ath10k_hw_fill_survey_time() 589 survey->time_busy = CCNT_TO_MSEC(ar, rcc); in ath10k_hw_fill_survey_time() [all …]
|
| /kernel/linux/linux-5.10/drivers/ide/ |
| D | pmac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * These IDE interfaces are memory-mapped and have a DBDMA channel 8 * Copyright (C) 1998-2003 Paul Mackerras & Ben. Herrenschmidt 9 * Copyright (C) 2007-2008 Bartlomiej Zolnierkiewicz 11 * Some code taken from drivers/ide/ide-dma.c: 13 * Copyright (c) 1995-1998 Mark Lord 15 * TODO: - Use pre-calculated (kauai) timing tables all the time and 44 #define DRV_NAME "ide-pmac" 75 controller_kl_ata3, /* KeyLargo ATA-3 */ 76 controller_kl_ata4, /* KeyLargo ATA-4 */ [all …]
|
| /kernel/linux/linux-4.19/drivers/ide/ |
| D | pmac.c | 4 * These IDE interfaces are memory-mapped and have a DBDMA channel 7 * Copyright (C) 1998-2003 Paul Mackerras & Ben. Herrenschmidt 8 * Copyright (C) 2007-2008 Bartlomiej Zolnierkiewicz 15 * Some code taken from drivers/ide/ide-dma.c: 17 * Copyright (c) 1995-1998 Mark Lord 19 * TODO: - Use pre-calculated (kauai) timing tables all the time and 49 #define DRV_NAME "ide-pmac" 80 controller_kl_ata3, /* KeyLargo ATA-3 */ 81 controller_kl_ata4, /* KeyLargo ATA-4 */ 82 controller_un_ata6, /* UniNorth2 ATA-6 */ [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
| D | hw.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 10 #include "hw.h" 12 #include "wmi-ops.h" 555 survey->filled |= SURVEY_INFO_TIME | in ath10k_hw_fill_survey_time() 558 wraparound_type = ar->hw_params.cc_wraparound_type; in ath10k_hw_fill_survey_time() 565 survey->filled &= ~SURVEY_INFO_TIME_BUSY; in ath10k_hw_fill_survey_time() 580 cc -= cc_prev - cc_fix; in ath10k_hw_fill_survey_time() 581 rcc -= rcc_prev - rcc_fix; in ath10k_hw_fill_survey_time() 583 survey->time = CCNT_TO_MSEC(ar, cc); in ath10k_hw_fill_survey_time() [all …]
|
| /kernel/linux/linux-5.10/drivers/mtd/nand/raw/gpmi-nand/ |
| D | gpmi-nand.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2010-2015 Freescale Semiconductor, Inc. 18 #include <linux/dma/mxs-dma.h> 19 #include "gpmi-nand.h" 20 #include "gpmi-regs.h" 21 #include "bch-regs.h" 24 #define GPMI_NAND_GPMI_REGS_ADDR_RES_NAME "gpmi-nand" 28 /* Converts time to clock cycles */ 46 * SFTRST needs 3 GPMI clocks to settle, the reference manual in clear_poll_bit() 52 while ((readl(addr) & mask) && --timeout) in clear_poll_bit() [all …]
|