/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
D | qcom-spmi-iadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. 95 * struct iadc_chip - IADC Current ADC device structure. 123 ret = regmap_read(iadc->regmap, iadc->base + offset, &val); in iadc_read() 133 return regmap_write(iadc->regmap, iadc->base + offset, data); in iadc_write() 192 dev_err(iadc->dev, in iadc_status_show() 219 /* HW settle time delay */ in iadc_configure() 236 if (!iadc->poll_eoc) in iadc_configure() 237 reinit_completion(&iadc->complete); in iadc_configure() 269 return -ETIMEDOUT; in iadc_poll_wait_eoc() [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
D | ide-probe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1994-1998 Linus Torvalds & authors (see below) 10 * and Andre Hedrick <andre@linux-ide.org> 16 * -- increase WAIT_PIDENTIFY to avoid CD-ROM locking at boot 44 * generic_id - add a generic drive id 54 u16 *id = drive->id; in generic_id() 56 id[ATA_ID_CUR_CYLS] = id[ATA_ID_CYLS] = drive->cyl; in generic_id() 57 id[ATA_ID_CUR_HEADS] = id[ATA_ID_HEADS] = drive->head; in generic_id() 58 id[ATA_ID_CUR_SECTORS] = id[ATA_ID_SECTORS] = drive->sect; in generic_id() 63 u16 *id = drive->id; in ide_disk_init_chs() [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_offload.py | 7 # June 1991 as shown in the file COPYING in the top-level directory of this 29 import time 50 log_level -= sub 113 stdout = stdout.decode("utf-8") 114 stderr = stderr.decode("utf-8") 119 if stderr[-1] == "\n": 120 stderr = stderr[:-1] 129 if len(stderr) > 0 and stderr[-1] == "\n": 130 stderr = stderr[:-1] 139 cmd("rm -f %s" % (f)) [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_hw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2008 Intel Corporation. */ 18 static u32 ixgb_hash_mc_addr(struct ixgb_hw *hw, u8 * mc_addr); 20 static void ixgb_mta_set(struct ixgb_hw *hw, u32 hash_value); 22 static void ixgb_get_bus_info(struct ixgb_hw *hw); 24 static bool ixgb_link_reset(struct ixgb_hw *hw); 26 static void ixgb_optics_reset(struct ixgb_hw *hw); 28 static void ixgb_optics_reset_bcm(struct ixgb_hw *hw); 30 static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); 32 static void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); [all …]
|
/Linux-v5.10/include/scsi/ |
D | scsi_host.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/blk-mq.h> 57 * When unknown ioctl is passed return -ENOIOCTLCMD. 92 * For compatibility, any other non-zero return is treated the 96 * this device/host completes, or a period of time determined by 116 * define one of these if you don't want to - there is a default 119 * own strategy routine, this is where it is specified. Note - the 148 * Return values: 0 on success, non-0 on failure 155 * time), you will then get a call to slave_destroy(). This is 160 * each time a device is tore down. [all …]
|
/Linux-v5.10/drivers/scsi/ |
D | aha1542.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for Adaptec AHA-1542 SCSI host adapters 38 /* time AHA spends on the AT-bus during data transfer */ 39 static int bus_on[MAXBOARDS] = { -1, -1, -1, -1 }; /* power-on default: 11us */ 41 MODULE_PARM_DESC(bus_on, "bus on time [us] (2-15, default=-1 [HW default: 11])"); 43 /* time AHA spends off the bus (not to monopolize it) during data transfer */ 44 static int bus_off[MAXBOARDS] = { -1, -1, -1, -1 }; /* power-on default: 4us */ 46 MODULE_PARM_DESC(bus_off, "bus off time [us] (1-64, default=-1 [HW default: 4])"); 49 static int dma_speed[MAXBOARDS] = { -1, -1, -1, -1 }; 51 MODULE_PARM_DESC(dma_speed, "DMA speed [MB/s] (5,6,7,8,10, default=-1 [by jumper])"); [all …]
|
/Linux-v5.10/drivers/hid/ |
D | hid-roccat-kone.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 * key- and button-events. 16 * TODO implement on-the-fly polling-rate change 19 * Is it possible to remove and reinstall the urb in raw-event- or any 30 #include <linux/hid-roccat.h> 31 #include "hid-ids.h" 32 #include "hid-roccat-common.h" 33 #include "hid-roccat-kone.h" 39 kone->actual_profile = new_profile; in kone_profile_activated() 40 kone->actual_dpi = kone->profiles[new_profile - 1].startup_dpi; in kone_profile_activated() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_common.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 11 * i40e_set_mac_type - Sets MAC type 12 * @hw: pointer to the HW structure 15 * vendor ID and device ID stored in the hw structure. 17 i40e_status i40e_set_mac_type(struct i40e_hw *hw) in i40e_set_mac_type() argument 21 if (hw->vendor_id == PCI_VENDOR_ID_INTEL) { in i40e_set_mac_type() 22 switch (hw->device_id) { in i40e_set_mac_type() 42 hw->mac.type = I40E_MAC_XL710; in i40e_set_mac_type() 50 hw->mac.type = I40E_MAC_X722; in i40e_set_mac_type() [all …]
|
/Linux-v5.10/drivers/net/can/sja1000/ |
D | sja1000.c | 2 * sja1000.c - Philips SJA1000 network device driver 7 * Copyright (c) 2002-2007 Volkswagen Group Electronic Research 90 * The command register needs some locking and time to settle in sja1000_write_cmdreg() 91 * the write_reg() operation - especially on SMP systems. in sja1000_write_cmdreg() 93 spin_lock_irqsave(&priv->cmdreg_lock, flags); in sja1000_write_cmdreg() 94 priv->write_reg(priv, SJA1000_CMR, val); in sja1000_write_cmdreg() 95 priv->read_reg(priv, SJA1000_SR); in sja1000_write_cmdreg() 96 spin_unlock_irqrestore(&priv->cmdreg_lock, flags); in sja1000_write_cmdreg() 101 return (priv->read_reg(priv, SJA1000_MOD) == 0xFF); in sja1000_is_absent() 108 if (priv->reg_base && sja1000_is_absent(priv)) { in sja1000_probe_chip() [all …]
|
/Linux-v5.10/drivers/video/fbdev/ |
D | atafb.c | 2 * linux/drivers/video/atafb.c -- Atari builtin chipset frame buffer device 11 * - 03 Jan 95: Original version by Martin Schaller: The TT driver and 13 * - 09 Jan 95: Roman: I've added the hardware abstraction (hw_switch) 16 * - 07 May 95: Martin: Added colormap operations for the external driver 17 * - 21 May 95: Martin: Added support for overscan 19 * - Jul 95: Guenther Kelleter <guenther@pool.informatik.rwth-aachen.de>: 23 * - 27 Dec 95: Guenther: Implemented user definable video modes "user[0-7]" 28 * - 23 Sep 97: Juergen: added xres_virtual for cards like ProMST 29 * The external-part is legacy, therefore hardware-specific 32 * - 29 Sep 97: Juergen: added Romans suggestion for pan_display [all …]
|
/Linux-v5.10/drivers/tty/serial/ |
D | max3100.c | 1 // SPDX-License-Identifier: GPL-2.0+ 29 * The initial minor number is 209 in the low-density serial port: 102 * (bits 0-7, bits 8-11 are irqs) */ 130 /* poll time (in ms) for ctrl lines */ 143 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity() 148 if (s->parity & MAX3100_7BIT) in max3100_do_parity() 164 if (s->parity & MAX3100_7BIT) in max3100_calc_parity() 169 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity() 177 if (!s->force_end_work && !freezing(current) && !s->suspending) in max3100_dowork() 178 queue_work(s->workqueue, &s->work); in max3100_dowork() [all …]
|