/Linux-v6.1/Documentation/devicetree/bindings/net/dsa/ |
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. 25 - enum: 26 - qca,qca8327 [all …]
|
/Linux-v6.1/drivers/regulator/ |
D | ti-abb-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2012-2013 Texas Instruments, Inc. 27 * FAST_OPP: sets ABB LDO to Forward Body-Bias 28 * SLOW_OPP: sets ABB LDO to Reverse Body-Bias 35 * struct ti_abb_info - ABB information per voltage setting 48 * struct ti_abb_reg - Register description for ABB block 51 * @sr2_wtcnt_value_mask: setup register- sr2_wtcnt_value mask 52 * @fbb_sel_mask: setup register- FBB sel mask 53 * @rbb_sel_mask: setup register- RBB sel mask 54 * @sr2_en_mask: setup register- enable mask [all …]
|
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 gpio_set_value(max8997->buck125_gpios[0], set1); in max8997_set_gpio() 56 gpio_set_value(max8997->buck125_gpios[1], set2); in max8997_set_gpio() 57 gpio_set_value(max8997->buck125_gpios[2], set3); in max8997_set_gpio() [all …]
|
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-v6.1/drivers/clk/bcm/ |
D | clk-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "clk-kona.h" 12 #include <linux/clk-provider.h> 17 * "Normal", and "Turbo".) A lower policy number has lower power 27 /* Produces a mask of set bits covering a range of a 32-bit value */ 30 return ((1 << width) - 1) << shift; in bitfield_mask() 52 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 68 combined <<= div->u.s.frac_width; in scaled_div_build() 78 return (u64)div->u.fixed; in scaled_div_min() 89 return (u64)div->u.fixed; in scaled_div_max() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | tas5720.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tas5720.c - ALSA SoC Texas Instruments TAS5720 Mono Audio Amplifier 5 * Copyright (C)2015-2016 Texas Instruments Incorporated - https://www.ti.com 23 #include <sound/soc-dapm.h> 37 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */ 38 "pvdd", /* Class-D amp and analog power supply (connected). */ 57 struct snd_soc_component *component = dai->component; in tas5720_hw_params() 72 dev_err(component->dev, "unsupported sample rate: %u\n", rate); in tas5720_hw_params() 73 return -EINVAL; in tas5720_hw_params() 79 dev_err(component->dev, "error setting sample rate: %d\n", ret); in tas5720_hw_params() [all …]
|
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 18 #include <sound/soc-dapm.h> 25 #include "wcd-clsh-v2.h" 27 #include <dt-bindings/sound/qcom,wcd9335.h> 98 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 650) * 10) / 25) 409 {24000, -EINVAL},/* 24K */ 551 "Class H Invalid", "Class-H Hi-Fi", "Class-H Low Power", "Class-AB", 552 "Class-H Hi-Fi Low Power" [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/rockchip/ |
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> 10 #include "rk3399-op1-opp.dtsi" 19 stdout-path = "serial2:115200n8"; 23 * Power Tree 28 * - Rails that only connect to the EC (or devices that the EC talks to) 30 * - Rails _are_ included if the rails go to the AP even if the AP 31 * doesn't currently care about them / they are always on. The idea 39 * - The EC controls the enable and the EC always enables a rail as [all …]
|
/Linux-v6.1/drivers/usb/core/ |
D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 54 /* Protect struct usb_device->state and ->children members 55 * Note: Both are also protected by ->dev.sem, except that ->state can 63 /* synchronize hub-port add/remove and peering operations */ 66 /* cycle leds on hubs that aren't blinking for attention */ 69 MODULE_PARM_DESC(blinkenlights, "true to cycle leds on hubs"); 73 * 10 seconds to send reply for the initial 64-byte descriptor request. 75 /* define initial 64-byte descriptor request timeout in milliseconds */ 79 "initial 64-byte descriptor request timeout in milliseconds " 80 "(default 5000 - 5.0 seconds)"); [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/qcom/ |
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-v6.1/drivers/usb/host/ |
D | xhci.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/dma-mapping.h> 22 #include "xhci-trace.h" 23 #include "xhci-debugfs.h" 24 #include "xhci-dbgcap.h" 31 /* Some 0.95 hardware can't handle the chain bit on a Link TRB being cleared */ 34 MODULE_PARM_DESC(link_quirk, "Don't clear the chain bit on a link TRB"); 42 struct xhci_segment *seg = ring->first_seg; in td_on_ring() 44 if (!td || !td->start_seg) in td_on_ring() 47 if (seg == td->start_seg) in td_on_ring() [all …]
|
/Linux-v6.1/drivers/media/i2c/ |
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-v6.1/drivers/usb/dwc3/ |
D | ep0.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ep0.c - DesignWare USB3 DRD Controller Endpoint 0 Handling 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 19 #include <linux/dma-mapping.h> 40 dwc = dep->dwc; in dwc3_ep0_prepare_one_trb() 41 trb = &dwc->ep0_trb[dep->trb_enqueue]; in dwc3_ep0_prepare_one_trb() 44 dep->trb_enqueue++; in dwc3_ep0_prepare_one_trb() 46 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 47 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 48 trb->size = len; in dwc3_ep0_prepare_one_trb() [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
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"; 29 stdout-path = "serial2:115200n8"; 32 vemmc_reg: regulator-0 { [all …]
|
/Linux-v6.1/drivers/net/dsa/qca/ |
D | qca8k-8xxx.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org> 42 u16 *cached_lo = &priv->mdio_cache.lo; in qca8k_set_lo() 43 struct mii_bus *bus = priv->bus; in qca8k_set_lo() 49 ret = bus->write(bus, phy_id, regnum, lo); in qca8k_set_lo() 51 dev_err_ratelimited(&bus->dev, in qca8k_set_lo() 61 u16 *cached_hi = &priv->mdio_cache.hi; in qca8k_set_hi() 62 struct mii_bus *bus = priv->bus; in qca8k_set_hi() 68 ret = bus->write(bus, phy_id, regnum, hi); in qca8k_set_hi() 70 dev_err_ratelimited(&bus->dev, in qca8k_set_hi() [all …]
|
/Linux-v6.1/drivers/ata/ |
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 …]
|
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-v6.1/sound/pci/hda/ |
D | patch_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Based on patch_ca0110.c 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 115 #define VNODES_COUNT (VNODE_END_NID - VNODE_START_NID) 126 #define OUT_EFFECTS_COUNT (OUT_EFFECT_END_NID - OUT_EFFECT_START_NID) 134 #define IN_EFFECTS_COUNT (IN_EFFECT_END_NID - IN_EFFECT_START_NID) 154 #define EFFECTS_COUNT (EFFECT_END_NID - EFFECT_START_NID) 163 * X-bass. 182 int params; /* number of default non-on/off params */ [all …]
|
/Linux-v6.1/drivers/perf/ |
D | arm-cmn.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2016-2020 Arm Limited 3 // CMN-600 Coherent Mesh Network PMU driver 11 #include <linux/io-64-nonatomic-lo-hi.h> 33 #define CMN_NODEID_Y(reg, bits) (((reg) >> 3) & ((1U << (bits)) - 1)) 44 #define CMN_MAX_DTMS (CMN_MAX_XPS + (CMN_MAX_DIMENSION - 1) * 4) 75 /* Technically this is 4 bits wide on DNs, but we only use 2 there anyway */ 78 /* HN-Ps are weird... */ 122 /* DTC counters are paired in 64-bit registers on a 16-byte stride. Yuck */ 152 /* Similarly for the 40-bit cycle counter */ [all …]
|
/Linux-v6.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | sdio.c | 1 // SPDX-License-Identifier: ISC 72 __le32 buf; /* Can't be pointer on (64-bit) hosts */ 117 #define TXHI (TXQLEN - 256) /* turn on flow control above TXHI */ 118 #define TXLOW (TXHI - 256) /* turn off flow control below TXLOW */ 148 /* 1: isolate internal sdio signals, put external pads in tri-state; requires 149 * sdio bus power cycle to clear (rev 9) */ 153 /* Force SD->SB reset mapping (rev 11) */ 184 /* Make ALP ready (power up xtal) */ 186 /* Make HT ready (power up PLL) */ 224 #define I_BUSPWR (1 << 17) /* SDIO Bus Power Change (rev 9) */ [all …]
|
/Linux-v6.1/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | main.c | 3 * Copyright (c) 2013 Hauke Mehrtens <hauke@hauke-m.de> 50 /* n-mode support capability */ 82 #define EDCF_ECW2CW(exp) ((1 << (exp)) - 1) 133 /* Per-AC retry limit register definitions; uses defs.h bitfield macros */ 167 #define BRCMS_PLCP_AUTO -1 172 #define BRCMS_PROTECTION_AUTO -1 199 /* MSC in use,indicates b0-6 holds an mcs */ 223 /* Max # of entries in Rx FIFO based on 4kb page size */ 361 return wlc->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK] in brcms_basic_rate() 363 return wlc->band->basic_rate[rspec & RSPEC_RATE_MASK]; in brcms_basic_rate() [all …]
|
/Linux-v6.1/drivers/media/dvb-frontends/ |
D | dib7000p.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux-DVB Driver for DiBcom's second generation DiB7000P (PC). 5 * Copyright (C) 2005-7 DiBcom (http://www.dibcom.fr/) 23 MODULE_PARM_DESC(debug, "turn on debugging (default: 0)"); 27 MODULE_PARM_DESC(buggy_sfn_workaround, "Enable work-around for buggy SFNs (default: 0)"); 104 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib7000p_read_word() 109 state->i2c_write_buffer[0] = reg >> 8; in dib7000p_read_word() 110 state->i2c_write_buffer[1] = reg & 0xff; in dib7000p_read_word() 112 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib7000p_read_word() 113 state->msg[0].addr = state->i2c_addr >> 1; in dib7000p_read_word() [all …]
|
/Linux-v6.1/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
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-v6.1/drivers/usb/gadget/udc/ |
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> 247 return (le32_to_cpu(ctx->member) >> (shift)) & (mask); \ 254 tmp = le32_to_cpu(ctx->member) & ~((mask) << (shift)); \ 256 ctx->member = cpu_to_le32(tmp); \ 339 return (le32_to_cpu(trb->member) >> (shift)) & (mask); \ 346 tmp = le32_to_cpu(trb->member) & ~((mask) << (shift)); \ 348 trb->member = cpu_to_le32(tmp); \ 563 return readl(xudc->fpci + offset); in fpci_readl() [all …]
|
/Linux-v6.1/drivers/firewire/ |
D | ohci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2003-2006 Kristian Hoegsberg <krh@bitplanet.net> 13 #include <linux/dma-mapping.h> 15 #include <linux/firewire-constants.h> 44 #define ohci_info(ohci, f, args...) dev_info(ohci->card.device, f, ##args) 45 #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) 46 #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) 106 * A buffer that contains a block of DMA-able coherent memory used for 126 * List of page-sized buffers for storing DMA descriptors. 357 ", self-IDs = " __stringify(OHCI_PARAM_DEBUG_SELFIDS) [all …]
|