| /linux/Documentation/devicetree/bindings/net/dsa/ |
| H A D | qca8k.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - John Crispin <john@phrozen.org> 13 If the QCA8K switch is connect to an SoC's external mdio-bus, each subnode 16 ID. To declare the internal mdio-bus configuration, declare an MDIO node in 18 PHY it is connected to. In this config, an internal mdio-bus is registered and 20 mdio-bus configurations are not supported by the hardware. 27 - enum: 28 - qca,qca8327 [all …]
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | regd.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 310 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_find_reg_by_name() 311 const struct rtw89_regd_ctrl *regd_ctrl = ®ulatory->ctrl; in rtw89_regd_find_reg_by_name() 314 for (i = 0; i < regd_ctrl->nr; i++) { in rtw89_regd_find_reg_by_name() 315 if (!memcmp(regd_ctrl->ma in rtw89_regd_find_reg_by_name() 1062 enum rtw89_reg_6ghz_power sel; __rtw89_reg_6ghz_power_recalc() local [all...] |
| /linux/drivers/regulator/ |
| H A D | ti-abb-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2012-2013 Texas Instruments, Inc. 26 * FAST_OPP: sets ABB LDO to Forward Body-Bias 27 * SLOW_OPP: sets ABB LDO to Reverse Body-Bias 34 * struct ti_abb_info - ABB information per voltage setting 47 * struct ti_abb_reg - Register description for ABB block 50 * @sr2_wtcnt_value_mask: setup register- sr2_wtcnt_value mask 51 * @fbb_sel_mask: setup register- FBB sel mask 52 * @rbb_sel_mask: setup register- RBB sel mask 53 * @sr2_en_mask: setup register- enable mask [all …]
|
| H A D | max8997-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max8997.c - Regulator driver for the Maxim 8997/8966 8 // This driver is based on max8998.c 20 #include <linux/mfd/max8997-private.h> 51 int set3 = (max8997->buck125_gpioindex) & 0x1; in max8997_set_gpio() 52 int set2 = ((max8997->buck125_gpioindex) >> 1) & 0x1; in max8997_set_gpio() 53 int set1 = ((max8997->buck125_gpioindex) >> 2) & 0x1; in max8997_set_gpio() 55 gpiod_set_value(max8997->buck125_gpiods[0], set1); in max8997_set_gpio() 56 gpiod_set_value(max8997->buck125_gpiods[1], set2); in max8997_set_gpio() 57 gpiod_set_value(max8997->buck125_gpiods[2], set3); in max8997_set_gpio() [all …]
|
| H A D | qcom_spmi-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 8 #include <linux/devm-helpers.h> 32 /* Pin control high power mode input pins. */ 57 * struct spmi_regulator_init_data - spmi-regulator initialization data 67 * used to force the regulator into high power 365 * struct spmi_voltage_range - regulator set point voltage mapping description 380 * (max_uV - min_uV) % step_uV == 0 381 * (set_point_min_uV - min_uV) % step_uV == 0* 382 * (set_point_max_uV - min_uV) % step_uV == 0* [all …]
|
| /linux/drivers/clk/bcm/ |
| H A D | clk-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "clk-kona.h" 12 #include <linux/clk-provider.h> 18 * "Normal", and "Turbo".) A lower policy number has lower power 28 /* Produces a mask of set bits covering a range of a 32-bit value */ 31 return ((1 << width) - 1) << shift; in bitfield_mask() 53 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 61 return (u64)div->u.fixed; in scaled_div_min() 72 return (u64)div->u.fixed; in scaled_div_max() 74 reg_div = ((u32)1 << div->u.s.width) - 1; in scaled_div_max() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 79 /* Protect struct usb_device->state and ->children members 80 * Note: Both are also protected by ->dev.sem, except that ->state can 88 /* synchronize hub-port add/remove and peering operations */ 91 /* cycle leds on hubs that aren't blinking for attention */ 94 MODULE_PARM_DESC(blinkenlights, "true to cycle leds on hubs"); 98 * 10 seconds to send reply for the initial 64-byte descriptor request. 100 /* define initial 64-byte descriptor request timeout in milliseconds */ 104 "initial 64-byte descriptor request timeout in milliseconds " 105 "(default 5000 - 5.0 seconds)"); [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3399-gru.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2016-2017 Google, Inc 8 #include <dt-bindings/input/input.h> 9 #include "rk3399-op1.dtsi" 18 stdout-path = "serial2:115200n8"; 22 * Power Tree 27 * - Rails that only connect to the EC (or devices that the EC talks to) 29 * - Rails _are_ included if the rails go to the AP even if the AP 30 * doesn't currently care about them / they are always on. The idea 38 * - The EC controls the enable and the EC always enables a rail as [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sc7280-qcard.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 * stuffed) on it. This device tree tries to encapsulate all the things that 14 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 15 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 16 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 17 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 21 /* PMICs depend on spmi_bus label and so must come after SoC */ 34 wcd9385: audio-codec-1 { 35 compatible = "qcom,wcd9385-codec"; 36 pinctrl-names = "default", "sleep"; [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <linux/dma-mapping.h> 23 #include <linux/usb/xhci-sideband.h> 26 #include "xhci-trace.h" 27 #include "xhci-debugfs.h" 28 #include "xhci-dbgcap.h" 35 /* Some 0.95 hardware can't handle the chain bit on a Link TRB being cleared */ 38 MODULE_PARM_DESC(link_quirk, "Don't clear the chain bit on a link TRB"); 47 writel(val, &port->port_reg->portsc); in xhci_portsc_writel() 53 return readl(&port->port_reg->portsc); in xhci_portsc_readl() [all …]
|
| /linux/drivers/media/i2c/ |
| H A D | tvp5150.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // tvp5150 - Texas Instruments TVP5150A/AM1 and TVP5151 video decoder driver 7 #include <dt-bindings/media/tvp5150.h> 18 #include <media/v4l2-async.h> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-event.h> 21 #include <media/v4l2-ctrls.h> 22 #include <media/v4l2-fwnode.h> 23 #include <media/v4l2-mc.h> 24 #include <media/v4l2-rect.h> [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos4210-i9100.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos4210 based Galaxy S2 (GT-I9100 version) device tree 11 /dts-v1/; 13 #include "exynos4412-ppmu-common.dtsi" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/linux-event-codes.h> 19 model = "Samsung Galaxy S2 (GT-I9100)"; 21 chassis-type = "handset"; 35 stdout-path = "serial2:115200n8"; 38 vemmc_reg: regulator-0 { [all …]
|
| /linux/drivers/net/dsa/qca/ |
| H A D | qca8k-8xxx.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org> 47 ret = bus->write(bus, phy_id, regnum, lo); in qca8k_mii_write_lo() 49 dev_err_ratelimited(&bus->dev, in qca8k_mii_write_lo() 62 ret = bus->write(bus, phy_id, regnum, hi); in qca8k_mii_write_hi() 64 dev_err_ratelimited(&bus->dev, in qca8k_mii_write_hi() 75 ret = bus->read(bus, phy_id, regnum); in qca8k_mii_read_lo() 83 dev_err_ratelimited(&bus->dev, in qca8k_mii_read_lo() 95 ret = bus->read(bus, phy_id, regnum); in qca8k_mii_read_hi() 103 dev_err_ratelimited(&bus->dev, in qca8k_mii_read_hi() [all …]
|
| /linux/drivers/ata/ |
| H A D | libata-eh.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libata-eh.c - libata error handling 8 * as Documentation/driver-api/libata.rst 11 * http://www.sata-io.org/ 59 /* Waiting in ->prereset can never be reliable. It's 90 5000, /* covers > 99% of successes and not too boring on failures */ 97 15000, /* Some drives are slow to read log pages when waking-up */ 125 * On the retry after a command timed out, the next timeout value from 129 * ehc->cmd_timeout_idx keeps track of which timeout to use per 130 * command class, so if SET_FEATURES times out on the first try, the [all …]
|
| H A D | libata-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libata-core.c - helper library for ATA 5 * Copyright 2003-2004 Red Hat, Inc. All rights reserved. 6 * Copyright 2003-2004 Jeff Garzik 9 * as Documentation/driver-api/libata.rst 12 * http://www.sata-io.org/ 16 * http://www.t10.org (SCSI MMC - for ATAPI MMC) 17 * http://www.sata-io.org (SATA) 19 * http://www.qic.org (QIC157 - Tape and DSC) 20 * http://www.ce-ata.org (CE-ATA: not supported) [all …]
|
| /linux/drivers/perf/ |
| H A D | arm-cmn.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2016-2020 Arm Limited 11 #include <linux/io-64-nonatomic-lo-hi.h> 36 #define CMN_MAX_DTMS (CMN_MAX_XPS + (CMN_MAX_DIMENSION - 1) * 4) 77 /* Technically this is 4 bits wide on DNs, but we only use 2 there anyway */ 128 /* DTC counters are paired in 64-bit registers on a 16-byte stride. Yuck */ 130 #define CMN_DT_PMEVCNT(dtc, n) ((dtc)->pmu_base + _CMN_DT_CNT_REG(n)) 131 #define CMN_DT_PMCCNTR(dtc) ((dtc)->pmu_base + 0x40) 133 #define CMN_DT_PMEVCNTSR(dtc, n) ((dtc)->pmu_base + 0x50 + _CMN_DT_CNT_REG(n)) 134 #define CMN_DT_PMCCNTRSR(dtc) ((dtc)->pmu_base + 0x90) [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | wcd9335.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. 3 // Copyright (c) 2017-2018, Linaro Limited 19 #include <sound/soc-dapm.h> 26 #include "wcd-clsh-v2.h" 28 #include <dt-bindings/sound/qcom,wcd9335.h> 99 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 65 1480 unsigned int val, reg, sel; wcd9335_put_dec_enum() local 2195 int sel; wcd9335_set_compander() local [all...] |
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_psr.c | 62 * Since Haswell Display controller supports Panel Self-Refresh on display 65 * when system is idle but display is on as it eliminates display refresh 72 * PSR saves power by caching the framebuffer in the panel RFB, which allows us 73 * to power down the link and memory controller. For DSI panels the same idea 76 * The implementation uses the hardware-based PSR support which automatically 77 * enters/exits self-refresh mode. The hardware takes care of sending the 80 * changes to know when to exit self-refresh mode again. Unfortunately that 85 * issues the self-refresh re-enable code is done from a work queue, which 90 * On top of PSR2, GEN12 adds a intermediate power savings state that turns 93 * entry/exit allows the HW to enter a low-power state even when page flipping [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
| H A D | halbtc8821a2ant.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * This file is for RTL8821A Co-exist mechanism 45 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a2ant_bt_rssi_state() 47 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in btc8821a2ant_bt_rssi_state() 49 bt_rssi = coex_sta->bt_rssi; in btc8821a2ant_bt_rssi_state() 52 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a2ant_bt_rssi_state() 53 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a2ant_bt_rssi_state() 79 return coex_sta->pre_bt_rssi_state; in btc8821a2ant_bt_rssi_state() 82 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a2ant_bt_rssi_state() 83 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a2ant_bt_rssi_state() [all …]
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | tegra-xudc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2013-2022, NVIDIA CORPORATION. All rights reserved. 12 #include <linux/dma-mapping.h> 246 return (le32_to_cpu(ctx->member) >> (shift)) & (mask); \ 253 tmp = le32_to_cpu(ctx->member) & ~((mask) << (shift)); \ 255 ctx->member = cpu_to_le32(tmp); \ 338 return (le32_to_cpu(trb->member) >> (shift)) & (mask); \ 345 tmp = le32_to_cpu(trb->member) & ~((mask) << (shift)); \ 347 trb->member = cpu_to_le32(tmp); \ 563 return readl(xudc->fpci + offset); in fpci_readl() [all …]
|
| /linux/Documentation/virt/kvm/ |
| H A D | api.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 The Definitive KVM (Kernel-based Virtual Machine) API Documentation 13 can be used to issue system ioctls. A KVM_CREATE_VM ioctl on this 15 ioctls. A KVM_CREATE_VCPU or KVM_CREATE_DEVICE ioctl on a VM fd will 21 a virtual machine. Depending on the file descriptor that accepts them, 24 - System ioctls: These query and set global attributes which affect the 28 - VM ioctls: These query and set attributes that affect an entire virtual 35 - vcpu ioctls: These query and set attributes that control the operation 43 - device ioctls: These query and set attributes that control the operation 67 the API. See "General description" for details on the ioctl usage [all …]
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | skge.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 133 CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */ 134 CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */ 135 CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */ 150 LED_STAT_ON = 1<<1, /* Status LED on */ 153 /* B0_POWER_CTRL 8 Bit Power Control reg (YUKON only) */ 158 PC_VAUX_ON = 1<<3, /* Switch VAUX On */ 160 PC_VCC_ON = 1<<1, /* Switch VCC On */ 173 IS_I2C_READY = 1<<25, /* IRQ on end of I2C Tx */ 240 TST_FRC_DPERR_MR = 1<<7, /* force DATAPERR on MST RD */ [all …]
|
| /linux/drivers/scsi/ |
| H A D | ncr53c8xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 ** Device driver for the PCI-SCSI NCR538XX controller family. 8 **----------------------------------------------------------------------------- 16 ** in order to keep synergy on both, any suggested enhancements and corrections 17 ** received on Linux are automatically a potential candidate for the FreeBSD 22 ** Stefan Esser <se@mi.Uni-Koeln.de> 27 **----------------------------------------------------------------------------- 38 ** Support for Fast-20 scsi. 42 ** Support for Fast-40 scsi. 43 ** Support for on-Board RAM. [all …]
|
| H A D | advansys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * advansys.c - Linux Host Driver for AdvanSys SCSI Adapters 5 * Copyright (c) 1995-2000 Advanced System Products, Inc. 6 * Copyright (c) 2000-2001 ConnectCom Solutions, Inc. 15 * On June 18, 2001 Initio Corp. acquired ConnectCom's SCSI assets 34 #include <linux/dma-mapping.h> 109 #define ASC_CHIP_LATEST_VER_EISA ((ASC_CHIP_MIN_VER_EISA - 1) + 3) 125 * Narrow boards only support 12-byte commands, while wide boards 126 * extend to 16-byte commands. 385 #define ASC_IERR_SINGLE_END_DEVICE 0x0020 /* SE device on DIFF bus */ [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_reg.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 13 * R - Read only 14 * RC - Clear on read 15 * RW - Read/Write 16 * ST - Statistics register (clear on read) 17 * W - Write only 18 * WB - Wide bus register - the size is over 32 bits and it should be 20 * WR - Write Clear (write 1 to clear the bit) 32 /* [RW 1] Initiate the ATC array - reset all the valid bits */ 56 * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning - [all …]
|