/openbmc/linux/drivers/gpu/drm/amd/display/dc/gpio/ |
H A D | gpio_service.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 27 * Pre-requisites: headers required by header of this unit 43 * Post-requisites: headers required by this unit 63 if (!service) { in dal_gpio_service_create() 68 if (!dal_hw_translate_init(&service->translate, dce_version, in dal_gpio_service_create() 74 if (!dal_hw_factory_init(&service->factory, dce_version, in dal_gpio_service_create() 83 service->ctx = ctx; in dal_gpio_service_create() 87 service->factory.number_of_pins[index_of_id]; in dal_gpio_service_create() 90 if (number_of_bits) { in dal_gpio_service_create() 91 service->busyness[index_of_id] = in dal_gpio_service_create() [all …]
|
H A D | gpio_base.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 27 * Pre-requisites: headers required by header of this unit 40 * Post-requisites: headers required by this unit 54 enum gpio_mode mode) in dal_gpio_open() argument 56 return dal_gpio_open_ex(gpio, mode); in dal_gpio_open() 61 enum gpio_mode mode) in dal_gpio_open_ex() argument 63 if (gpio->pin) { in dal_gpio_open_ex() 68 // No action if allocation failed during gpio construct in dal_gpio_open_ex() 69 if (!gpio->hw_container.ddc) { in dal_gpio_open_ex() 73 gpio->mode = mode; in dal_gpio_open_ex() [all …]
|
H A D | hw_gpio.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 35 gpio->regs->field_name ## _shift, gpio->regs->field_name ## _mask 38 gpio->base.ctx 40 (gpio->regs->reg) 45 REG_GET(MASK_reg, MASK, &gpio->store.mask); in store_registers() 46 REG_GET(A_reg, A, &gpio->store.a); in store_registers() 47 REG_GET(EN_reg, EN, &gpio->store.en); in store_registers() 48 /* TODO store GPIO_MUX_CONTROL if we ever use it */ in store_registers() 54 REG_UPDATE(MASK_reg, MASK, gpio->store.mask); in restore_registers() 55 REG_UPDATE(A_reg, A, gpio->store.a); in restore_registers() [all …]
|
H A D | hw_ddc.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 39 ddc->shifts->field_name, ddc->masks->field_name 42 ddc->base.base.ctx 44 (ddc->regs->reg) 51 dal_hw_gpio_destruct(&pin->base); in dal_hw_ddc_destruct() 77 hw_gpio = &ddc->base; in set_config() 79 if (hw_gpio == NULL) { in set_config() 89 switch (config_data->config.ddc.type) { in set_config() 91 /* On plug-in, there is a transient level on the pad in set_config() 92 * which must be discharged through the internal pull-down. in set_config() [all …]
|
H A D | hw_hpd.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 38 hpd->shifts->field_name, hpd->masks->field_name 41 hpd->base.base.ctx 43 (hpd->regs->reg) 50 dal_hw_gpio_destruct(&pin->base); in dal_hw_hpd_destruct() 72 /* in Interrupt mode we ask for SENSE bit */ in get_value() 74 if (ptr->mode == GPIO_MODE_INTERRUPT) { in get_value() 94 if (!config_data) in set_config() 98 DC_HPD_CONNECT_INT_DELAY, config_data->config.hpd.delay_on_connect / 10, in set_config() 99 DC_HPD_DISCONNECT_INT_DELAY, config_data->config.hpd.delay_on_disconnect / 10); in set_config() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,adrf6780.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Antoniu Miclaus <antoniu.miclaus@analog.com> 16 https://www.analog.com/en/products/adrf6780.html 21 - adi,adrf6780 26 spi-max-frequency: 34 clock-names: 36 - const: lo_in 38 clock-output-names: [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | testmode.c | 1 // SPDX-License-Identifier: ISC 40 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_tx_power() 41 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power() 42 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_tm_set_tx_power() 43 int freq = chandef->center_freq1; in mt7915_tm_set_tx_power() 54 .band_idx = phy->mt76->band_idx, in mt7915_tm_set_tx_power() 59 if (phy->mt76->test.state != MT76_TM_STATE_OFF) in mt7915_tm_set_tx_power() 60 tx_power = phy->mt76->test.tx_power; in mt7915_tm_set_tx_power() 63 if (tx_power && tx_power[0]) in mt7915_tm_set_tx_power() 66 ret = mt76_mcu_send_msg(&dev->mt76, in mt7915_tm_set_tx_power() [all …]
|
/openbmc/linux/drivers/media/platform/qcom/venus/ |
H A D | hfi_cmds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. 16 pkt->hdr.size = sizeof(*pkt); in pkt_sys_init() 17 pkt->hdr.pkt_type = HFI_CMD_SYS_INIT; in pkt_sys_init() 18 pkt->arch_type = arch_type; in pkt_sys_init() 23 pkt->hdr.size = sizeof(*pkt); in pkt_sys_pc_prep() 24 pkt->hdr.pkt_type = HFI_CMD_SYS_PC_PREP; in pkt_sys_pc_prep() 29 struct hfi_enable *hfi = (struct hfi_enable *)&pkt->data[1]; in pkt_sys_idle_indicator() 31 pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi); in pkt_sys_idle_indicator() 32 pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY; in pkt_sys_idle_indicator() [all …]
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | fsl_dma.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 uint mr; /* DMA mode register */ 18 #define FSL_DMA_MR_CTM 0x00000004 /* Channel xfer mode */ 19 #define FSL_DMA_MR_CTM_DIRECT 0x00000004 /* Direct channel xfer mode */ 20 #define FSL_DMA_MR_EOTIE 0x00000080 /* End-of-transfer interrupt en */ 26 #define FSL_DMA_MR_EMS_EN 0x00040000 /* Ext master start en */ 28 #define FSL_DMA_MR_DMSEN 0x00100000 /* Direct mode snooping en */ 32 #define FSL_DMA_SR_EOCDI 0x00000001 /* End-of-chain/direct interrupt */ 33 #define FSL_DMA_SR_EOSI 0x00000002 /* End-of-segment interrupt */ 49 uint mr; /* DMA mode register */ [all …]
|
/openbmc/linux/tools/testing/selftests/arm64/mte/ |
H A D | mte_common_util.c | 1 // SPDX-License-Identifier: GPL-2.0 30 unsigned long addr = (unsigned long)si->si_addr; in mte_default_handler() 32 if (signum == SIGSEGV) { in mte_default_handler() 35 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler() 37 if (si->si_code == SEGV_MTEAERR) { in mte_default_handler() 38 if (cur_mte_cxt.trig_si_code == si->si_code) in mte_default_handler() 42 ((ucontext_t *)uc)->uc_mcontext.pc, in mte_default_handler() 47 else if (si->si_code == SEGV_MTESERR) { in mte_default_handler() 48 if (cur_mte_cxt.trig_si_code == si->si_code && in mte_default_handler() 57 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler() [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-helper-rgmii.c | 7 * Copyright (C) 2003-2018 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 20 * along with this file; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 34 #include <asm/octeon/cvmx-config.h> 36 #include <asm/octeon/cvmx-pko.h> 37 #include <asm/octeon/cvmx-helper.h> 38 #include <asm/octeon/cvmx-helper-board.h> 40 #include <asm/octeon/cvmx-npi-defs.h> 41 #include <asm/octeon/cvmx-gmxx-defs.h> [all …]
|
H A D | cvmx-helper-sgmii.c | 7 * Copyright (C) 2003-2018 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 20 * along with this file; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 35 #include <asm/octeon/cvmx-config.h> 37 #include <asm/octeon/cvmx-helper.h> 38 #include <asm/octeon/cvmx-helper-board.h> 40 #include <asm/octeon/cvmx-gmxx-defs.h> 41 #include <asm/octeon/cvmx-pcsx-defs.h> 42 #include <asm/octeon/cvmx-pcsxx-defs.h> [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/timer/ |
H A D | fsl,ftm-timer.txt | 5 - compatible : should be "fsl,ftm-timer" 6 - reg : Specifies base physical address and size of the register sets for the 8 - interrupts : Should be the clock event device interrupt. 9 - clocks : The clocks provided by the SoC to drive the timer, must contain an 10 entry for each entry in clock-names. 11 - clock-names : Must include the following entries: 12 o "ftm-evt" 13 o "ftm-src" 14 o "ftm-evt-counter-en" 15 o "ftm-src-counter-en" [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | cxd2099.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2010-2013 Digital Devices GmbH 22 MODULE_PARM_DESC(buffermode, "Enable CXD2099AR buffer mode (default: disabled)"); 27 struct dvb_ca_en50221 en; member 37 int mode; member 57 if (ci->lastaddress != adr) in read_block() 58 status = regmap_write(ci->regmap, 0, adr); in read_block() 59 if (!status) { in read_block() 60 ci->lastaddress = adr; in read_block() 65 if (ci->cfg.max_i2c && len > ci->cfg.max_i2c) in read_block() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_main.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2014-2015 Hisilicon Limited. 69 #define HNS_DSAF_IS_DEBUG(dev) ((dev)->dsaf_mode == DSAF_MODE_DISABLE_SP) 93 ((DSAF_TOTAL_QUEUE_NUM + DSAF_SERVICE_NW_NUM - 1) / 32 + 1) 136 /* dsaf mode define */ 138 DSAF_MODE_INVALID = 0, /**< Invalid dsaf mode */ 139 DSAF_MODE_ENABLE_FIX, /**< en DSAF-mode, fixed to queue*/ 140 DSAF_MODE_ENABLE_0VM, /**< en DSAF-mode, support 0 VM */ 141 DSAF_MODE_ENABLE_8VM, /**< en DSAF-mode, support 8 VM */ 142 DSAF_MODE_ENABLE_16VM, /**< en DSAF-mode, support 16 VM */ [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_top.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. 16 * @en : enable/disable traffic shaper 17 * @rd_client : true if read client; false if write client 23 bool en; member 31 * struct split_pipe_cfg - pipe configuration for dual display panels 32 * @en : Enable/disable dual pipe configuration 33 * @mode : Panel interface mode 39 bool en; member 40 enum dpu_intf_mode mode; member [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | adi,ad7606.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 14 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf 15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf 21 - adi,ad7605-4 22 - adi,ad7606-8 23 - adi,ad7606-6 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | cs35l36.txt | 5 - compatible : "cirrus,cs35l36" 7 - reg : the I2C address of the device for I2C 9 - VA-supply, VP-supply : power supplies for the device, 13 - cirrus,boost-ctl-millivolt : Boost Voltage Value. Configures the boost 18 - cirrus,boost-peak-milliamp : Boost-converter peak current limit in mA. 24 - cirrus,boost-ind-nanohenry : Inductor estimation LBST reference value. 32 - cirrus,multi-amp-mode : Boolean to determine if there are more than 33 one amplifier in the system. If more than one it is best to Hi-Z the ASP 36 - cirrus,boost-ctl-select : Boost converter control source selection. 39 0x00 - Control Port Value [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac4_dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * This is the driver for the GMAC on-chip Ethernet controller for ST SoCs. 26 if (axi->axi_lpi_en) in dwmac4_dma_axi() 28 if (axi->axi_xit_frm) in dwmac4_dma_axi() 32 value |= (axi->axi_wr_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi() 36 value |= (axi->axi_rd_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi() 44 switch (axi->axi_blen[i]) { in dwmac4_dma_axi() 77 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_init_rx_chan() 79 u32 rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwmac4_dma_init_rx_chan() 85 if (IS_ENABLED(CONFIG_ARCH_DMA_ADDR_T_64BIT) && likely(dma_cfg->eame)) in dwmac4_dma_init_rx_chan() [all …]
|
/openbmc/u-boot/arch/arm/mach-socfpga/ |
H A D | clock_manager_gen5.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2013-2017 Altera Corporation <www.altera.com> 21 writel(val, &clock_manager_base->bypass); in cm_write_bypass() 28 writel(val, &clock_manager_base->ctrl); in cm_write_ctrl() 39 if (ret) in cm_write_with_phase() 64 * Clear safe mode 82 readl(&clock_manager_base->per_pll.en), in cm_basic_init() 83 &clock_manager_base->per_pll.en); in cm_basic_init() 92 &clock_manager_base->main_pll.en); in cm_basic_init() 94 writel(0, &clock_manager_base->sdr_pll.en); in cm_basic_init() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | rohm,bd9576-pmic.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mfd/rohm,bd9576-pmic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Matti Vaittinen <mazziesaccount@gmail.com> 14 powering the R-Car series processors. 21 - rohm,bd9576 22 - rohm,bd9573 32 rohm,vout1-en-low: 35 controlled by a GPIO. This is dictated by state of vout1-en pin during [all …]
|
/openbmc/linux/net/netfilter/ipvs/ |
H A D | ip_vs_lblc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * IPVS: Locality-Based Least-Connection scheduling module 9 * *lock(tbl->lock) ==> *lock(&tbl->lock) 10 * Wensong Zhang : fixed the uninitialized tbl->lock bug 22 * if cachenode[dest_ip] is null then 23 * n, cachenode[dest_ip] <- {weighted least-conn node}; 25 * n <- cachenode[dest_ip]; 26 * if (n is dead) OR 29 * n, cachenode[dest_ip] <- {weighted least-conn node}; 81 #define IP_VS_LBLC_TAB_MASK (IP_VS_LBLC_TAB_SIZE - 1) [all …]
|
/openbmc/linux/drivers/iio/health/ |
H A D | max30102.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max30102.c - Support for MAX30102 heart rate and pulse oximeter sensor 8 * Copyright (C) 2017 Peter Meerwald-Stadler <pmeerw@pmeerw.net> 10 * 7-bit I2C chip address: 0x57 73 #define MAX30102_REG_MODE_CONFIG_MODE_MULTI 0x07 /* multi-LED mode */ 77 #define MAX30102_REG_MODE_CONTROL_SLOT21 0x11 /* multi-LED control */ 111 __be32 processed_buffer[3]; /* 3 x 18-bit (padded to 32-bits) */ 154 .scan_index = -1, 166 .scan_index = -1, 170 static int max30102_set_power(struct max30102_data *data, bool en) in max30102_set_power() argument [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | mcp320x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * ------------ 20 * ------------ 23 * ------------ 30 * https://ww1.microchip.com/downloads/en/DeviceDoc/21293C.pdf mcp3001 31 * https://ww1.microchip.com/downloads/en/DeviceDoc/21294E.pdf mcp3002 32 * https://ww1.microchip.com/downloads/en/DeviceDoc/21295d.pdf mcp3004/08 33 * http://ww1.microchip.com/downloads/en/DeviceDoc/21290D.pdf mcp3201 34 * http://ww1.microchip.com/downloads/en/DeviceDoc/21034D.pdf mcp3202 35 * http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf mcp3204/08 [all …]
|
/openbmc/linux/drivers/video/fbdev/omap/ |
H A D | lcd_dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-omap1/lcd_dma.c 5 * Extracted from arch/arm/plat-omap/dma.c 6 * Copyright (C) 2003 - 2008 Nokia Corporation 11 * OMAP2/3 support Copyright (C) 2004-2007 Texas Instruments, Inc. 13 * Some functions based on earlier dma-omap.c Copyright (C) 2001 RidgeRun, Inc. 16 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> 26 #include <linux/omap-dma.h> 28 #include <linux/soc/ti/omap1-soc.h> 29 #include <linux/soc/ti/omap1-io.h> [all …]
|