Home
last modified time | relevance | path

Searched +full:hw +full:- +full:settle +full:- +full:time (Results 1 – 25 of 78) sorted by relevance

1234

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/
H A Dqcom,spmi-vadc.yaml1 # 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 …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/qcom/
H A Dpms405.dtsi1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dqcom-spmi-adc5.c1 // 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 …]
H A Dqcom-spmi-vadc.c1 // 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 …]
H A Dqcom-spmi-iadc.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/clk/samsung/
H A Dclk-pll.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/misc/mei/
H A Dhw-txe.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Dintr.c24 * - 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/ebc-dev/pmic/
H A Dtps65185.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Zorro Liu <zorro.liu@rock-chips.com>
42 a minimum time */
44 /* Temp sensor might take a little time to
45 settle eventhough the status bit in TMST1
46 state conversion is done - if read too early
49 /* Powerup sequence takes at least 24 ms - no need to poll too frequently */
57 /* power up seq delay time */
63 /* power down seq delay time */
143 .addr = sess->client->addr, in papyrus_hw_setreg()
[all …]
/OK3568_Linux_fs/kernel/drivers/macintosh/
H A Dadb.c1 // 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 …]
/OK3568_Linux_fs/kernel/sound/drivers/
H A Dportman2x4.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/staging/wlan-ng/
H A Dprism2sta.c1 // 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 …]
H A Dhfa384x_usb.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath10k/
H A Dhw.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/ide/
H A Dpmac.c1 // 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dtest_offload.py7 # 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 …]
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c1 // 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 …]
/OK3568_Linux_fs/kernel/include/scsi/
H A Dscsi_host.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <linux/blk-mq.h>
58 * When unknown ioctl is passed return -ENOIOCTLCMD.
93 * For compatibility, any other non-zero return is treated the
97 * this device/host completes, or a period of time determined by
117 * define one of these if you don't want to - there is a default
120 * own strategy routine, this is where it is specified. Note - the
149 * Return values: 0 on success, non-0 on failure
156 * time), you will then get a call to slave_destroy(). This is
161 * each time a device is tore down.
[all …]
/OK3568_Linux_fs/kernel/drivers/hid/
H A Dhid-roccat-kone.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgb/
H A Dixgb_hw.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Daha1542.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/net/can/sja1000/
H A Dsja1000.c2 * 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Dhndpmu.c3 * of the SiliconBackplane-based Broadcom chips.
7 * Copyright (C) 1999-2017, Broadcom Corporation
28 * <<Broadcom-WL-IPTag/Open:>>
30 * $Id: hndpmu.c 700652 2017-05-20 02:44:31Z $
99 * 'drivestrength': desired pad drive strength in mA. Drive strength of 0 requests tri-state (if
100 * hardware supports this), if no hw support drive strength is not programmed.
111 * but the bit definitions are chip-specific. We are keeping this function available in si_sdiod_drive_strength_init()
143 current_res_state = R_REG(osh, &pmu->res_state); in si_switch_pmu_dependency()
144 min_mask = R_REG(osh, &pmu->min_res_mask); in si_switch_pmu_dependency()
145 max_mask = R_REG(osh, &pmu->max_res_mask); in si_switch_pmu_dependency()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Dhndpmu.c3 * of the SiliconBackplane-based Broadcom chips.
7 * Copyright (C) 1999-2017, Broadcom Corporation
28 * <<Broadcom-WL-IPTag/Open:>>
30 * $Id: hndpmu.c 700652 2017-05-20 02:44:31Z $
99 * 'drivestrength': desired pad drive strength in mA. Drive strength of 0 requests tri-state (if
100 * hardware supports this), if no hw support drive strength is not programmed.
111 * but the bit definitions are chip-specific. We are keeping this function available in si_sdiod_drive_strength_init()
143 current_res_state = R_REG(osh, &pmu->res_state); in si_switch_pmu_dependency()
144 min_mask = R_REG(osh, &pmu->min_res_mask); in si_switch_pmu_dependency()
145 max_mask = R_REG(osh, &pmu->max_res_mask); in si_switch_pmu_dependency()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Dhndpmu.c3 * of the SiliconBackplane-based Broadcom chips.
7 * Copyright (C) 1999-2017, Broadcom Corporation
28 * <<Broadcom-WL-IPTag/Open:>>
30 * $Id: hndpmu.c 700652 2017-05-20 02:44:31Z $
99 * 'drivestrength': desired pad drive strength in mA. Drive strength of 0 requests tri-state (if
100 * hardware supports this), if no hw support drive strength is not programmed.
111 * but the bit definitions are chip-specific. We are keeping this function available in si_sdiod_drive_strength_init()
143 current_res_state = R_REG(osh, &pmu->res_state); in si_switch_pmu_dependency()
144 min_mask = R_REG(osh, &pmu->min_res_mask); in si_switch_pmu_dependency()
145 max_mask = R_REG(osh, &pmu->max_res_mask); in si_switch_pmu_dependency()
[all …]

1234