/openbmc/linux/drivers/nfc/s3fwrn5/ |
H A D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct phy_common common; member 31 static void s3fwrn5_i2c_set_mode(void *phy_id, enum s3fwrn5_mode mode) in s3fwrn5_i2c_set_mode() argument 35 mutex_lock(&phy->common.mutex); in s3fwrn5_i2c_set_mode() 37 if (s3fwrn5_phy_power_ctrl(&phy->common, mode) == false) in s3fwrn5_i2c_set_mode() 40 phy->irq_skip = true; in s3fwrn5_i2c_set_mode() 43 mutex_unlock(&phy->common.mutex); in s3fwrn5_i2c_set_mode() 51 mutex_lock(&phy->common.mutex); in s3fwrn5_i2c_write() 53 phy->irq_skip = false; in s3fwrn5_i2c_write() 55 ret = i2c_master_send(phy->i2c_dev, skb->data, skb->len); in s3fwrn5_i2c_write() [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/VirtualMedia/ |
H A D | MountPoint.interface.yaml | 2 Defines the object configuration like mounting mode, image paths, timeouts 6 - name: EndPointId 10 - const 12 - xyz.openbmc_project.Common.Error.InternalFailure 14 - name: Mode 16 description: Mounting mode, supported values are 0-proxy, 1-legacy. 18 - const 20 - xyz.openbmc_project.Common.Error.InternalFailure 22 - name: Device 26 - const [all …]
|
/openbmc/linux/drivers/clk/zynqmp/ |
H A D | pll.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016-2018 Xilinx 9 #include <linux/clk-provider.h> 11 #include "clk-zynqmp.h" 14 * struct zynqmp_pll - PLL clock 15 * @hw: Handle between common and hardware-specific interfaces 44 * zynqmp_pll_get_mode() - Get mode of PLL 45 * @hw: Handle between common and hardware-specific interfaces 47 * Return: Mode of PLL 52 u32 clk_id = clk->clk_id; in zynqmp_pll_get_mode() [all …]
|
/openbmc/u-boot/drivers/adc/ |
H A D | stm32-adc-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved 6 * Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc-core.c. 9 #include <common.h> 12 #include "stm32-adc-core.h" 14 /* STM32H7 - common registers for all ADC instances */ 17 /* STM32H7_ADC_CCR - bit fields */ 27 * struct stm32h7_adc_ck_spec - specification for stm32h7 adc clock 28 * @ckmode: ADC clock mode, Async or sync with prescaler. 29 * @presc: prescaler bitfield for async clock mode [all …]
|
/openbmc/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_mp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 7 #include <linux/clk-provider.h> 28 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best() 107 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate() 108 rate *= cmp->fixed_post_div; in ccu_mp_round_rate() 110 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_round_rate() 111 max_p = cmp->p.max ?: 1 << ((1 << cmp->p.width) - 1); in ccu_mp_round_rate() 113 if (!clk_hw_can_set_rate_parent(&cmp->common.hw)) { in ccu_mp_round_rate() 120 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate() [all …]
|
/openbmc/linux/arch/sh/include/mach-se/mach/ |
H A D | mrshpc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 * PC-Card window open in mrshpc_setup_windows() 20 * flag == COMMON/ATTRIBUTE/IO in mrshpc_setup_windows() 22 /* common window open */ in mrshpc_setup_windows() 25 /* common mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 28 /* common mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 34 /* attribute mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 37 /* attribute mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 42 __raw_writew(0x0008, MRSHPC_CDCR); /* I/O card mode */ in mrshpc_setup_windows()
|
/openbmc/linux/drivers/dma/ |
H A D | fsldma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights reserved. 18 * command. Please be aware that this setting may result in read pre-fetching 29 #include <linux/dma-mapping.h> 40 dev_dbg(chan->dev, "%s: " fmt, chan->name, ##arg) 42 dev_err(chan->dev, "%s: " fmt, chan->name, ##arg) 52 FSL_DMA_OUT(chan, &chan->regs->sr, val, 32); in set_sr() 57 return FSL_DMA_IN(chan, &chan->regs->sr, 32); in get_sr() 62 FSL_DMA_OUT(chan, &chan->regs->mr, val, 32); in set_mr() 67 return FSL_DMA_IN(chan, &chan->regs->mr, 32); in get_mr() [all …]
|
/openbmc/u-boot/drivers/pcmcia/ |
H A D | marubun_pcmcia.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Marubun MR-SHPC-01 PCMCIA controller device driver 8 #include <common.h> 25 /* MR-SHPC-01 register */ 59 * PC-Card window open in pcmcia_on() 60 * flag == COMMON/ATTRIBUTE/IO in pcmcia_on() 62 /* common window open */ in pcmcia_on() 65 outw(0x0b00,MRSHPC_MW0CR2); /* common mode & bus width 16bit SWAP = 1 */ in pcmcia_on() 67 outw(0x0300,MRSHPC_MW0CR2); /* common mode & bus width 16bit SWAP = 0 */ in pcmcia_on() 72 outw(0x0a00,MRSHPC_MW1CR2); /* attribute mode & bus width 16bit SWAP = 1 */ in pcmcia_on() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | common-spectral.c | 32 if (!spec_priv->rfs_chan_spec_scan) in ath_debug_send_fft_sample() 35 length = __be16_to_cpu(fft_sample_tlv->length) + in ath_debug_send_fft_sample() 37 relay_write(spec_priv->rfs_chan_spec_scan, fft_sample_tlv, length); in ath_debug_send_fft_sample() 54 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN - 1) in ath_cmn_max_idx_verify_ht20_fft() 55 return -1; in ath_cmn_max_idx_verify_ht20_fft() 57 mag_info = (struct ath_ht20_mag_info *) (sample_end - in ath_cmn_max_idx_verify_ht20_fft() 60 sample = sample_end - SPECTRAL_HT20_SAMPLE_LEN + 1; in ath_cmn_max_idx_verify_ht20_fft() 62 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 63 max_magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 65 max_exp = mag_info->max_exp & 0xf; in ath_cmn_max_idx_verify_ht20_fft() [all …]
|
H A D | htc_drv_main.c | 2 * Copyright (c) 2010-2011 Atheros Communications Inc. 34 enum ath9k_power_mode mode) in ath9k_htc_setpower() argument 38 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_setpower() 39 ret = ath9k_hw_setpower(priv->ah, mode); in ath9k_htc_setpower() 40 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_setpower() 47 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 48 if (++priv->ps_usecount != 1) in ath9k_htc_ps_wakeup() 50 ath9k_hw_setpower(priv->ah, ATH9K_PM_AWAKE); in ath9k_htc_ps_wakeup() 53 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 60 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_restore() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | silabs,si5341.txt | 6 https://www.silabs.com/documents/public/data-sheets/Si5341-40-D-DataSheet.pdf 8 https://www.silabs.com/documents/public/reference-manuals/Si5341-40-D-RM.pdf 10 https://www.silabs.com/documents/public/reference-manuals/Si5345-44-42-D-RM.pdf 20 The driver can be used in "as is" mode, reading the current settings from the 21 chip at boot, in case you have a (pre-)programmed device. If the PLL is not 33 - compatible: shall be one of the following: 34 "silabs,si5340" - Si5340 A/B/C/D 35 "silabs,si5341" - Si5341 A/B/C/D 36 "silabs,si5342" - Si5342 A/B/C/D 37 "silabs,si5344" - Si5344 A/B/C/D [all …]
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-nuss.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 31 #include <linux/dma/ti-cppi5.h> 32 #include <linux/dma/k3-udma-glue.h> 37 #include "am65-cpsw-nuss.h" 38 #include "am65-cpsw-switchdev.h" 39 #include "k3-cppi-desc-pool.h" 40 #include "am65-cpts.h" 117 /* The PTP event messages - Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. */ 146 writel(mac_hi, slave->port_base + AM65_CPSW_PORTN_REG_SA_H); in am65_cpsw_port_set_sl_mac() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | tps6105x.txt | 3 The TP61050/TPS61052 is a high-power "white LED driver". The 7 - compatible: "ti,tps61050" or "ti,tps61052" 8 - reg: Specifies the I2C slave address 10 Optional sub-node: 12 This subnode selects the chip's operational mode. 15 - regulator: presence of this sub-node puts the chip in regulator mode. 18 - led: presence of this sub-node puts the chip in led mode. 20 - function : see ../leds/common.txt 21 - color : see ../leds/common.txt 22 - label : see ../leds/common.txt [all …]
|
/openbmc/linux/net/ncsi/ |
H A D | ncsi-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 44 h->mc_id = 0; in ncsi_cmd_build_header() 45 h->revision = NCSI_PKT_REVISION; in ncsi_cmd_build_header() 46 h->reserved = 0; in ncsi_cmd_build_header() 47 h->id = nca->id; in ncsi_cmd_build_header() 48 h->type = nca->type; in ncsi_cmd_build_header() 49 h->channel = NCSI_TO_CHANNEL(nca->package, in ncsi_cmd_build_header() 50 nca->channel); in ncsi_cmd_build_header() 51 h->length = htons(nca->payload); in ncsi_cmd_build_header() [all …]
|
H A D | ncsi-rsp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 20 #include "ncsi-netlink.h" 46 h = (struct ncsi_rsp_pkt_hdr *)skb_network_header(nr->rsp); in ncsi_validate_rsp_pkt() 48 if (h->common.revision != NCSI_PKT_REVISION) { in ncsi_validate_rsp_pkt() 49 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 51 return -EINVAL; in ncsi_validate_rsp_pkt() 53 if (ntohs(h->common.length) != payload) { in ncsi_validate_rsp_pkt() 54 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 56 return -EINVAL; in ncsi_validate_rsp_pkt() [all …]
|
/openbmc/qemu/block/export/ |
H A D | fuse.c | 24 #include "block/block_int-common.h" 29 #include "qapi/qapi-commands-block.h" 30 #include "qemu/main-loop.h" 31 #include "sysemu/block-backend.h" 49 BlockExport common; member 86 aio_set_fd_handler(exp->common.ctx, in fuse_export_drained_begin() 87 fuse_session_fd(exp->fuse_session), in fuse_export_drained_begin() 89 exp->fd_handler_set_up = false; in fuse_export_drained_begin() 97 exp->common.ctx = blk_get_aio_context(exp->common.blk); in fuse_export_drained_end() 99 aio_set_fd_handler(exp->common.ctx, in fuse_export_drained_end() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ |
H A D | hw.c | 23 #define REG_READ (common->ops->read) 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) 27 * ath_hw_setbssidmask - filter out bssids we listen 29 * @common: the ath_common struct for the device. 33 * to decide which packets to ACK. In station mode and AP mode with a single 34 * BSS every bit matters since we lock to only one BSS. In AP mode with 46 * When you do this you are essentially computing the common bits of all your 52 * BSSID-01 and BSSID-02. Lets assume BSSID-01 will not use the MAC address. 53 * There is another BSSID-03 but you are not part of it. For simplicity's sake, 58 * BSSID-01: 0100 | --> Belongs to us [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Control/Power/ |
H A D | Mode.interface.yaml | 2 Customer requested system power mode. 5 - name: PowerMode 9 This property shall contain the computer system power mode setting. 13 - xyz.openbmc_project.Common.Error.InvalidArgument 14 - xyz.openbmc_project.Common.Error.NotAllowed 16 - name: SafeMode 19 - readonly 22 This property shall indicate whether the System is in Safe Mode. When 23 this is true, the system power mode is not being used in the system. 25 - name: AllowedPowerModes [all …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bfi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Linux network driver for QLogic BR-series Converged Network Adapter. 6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 7 * Copyright (c) 2014-2015 QLogic Corporation 21 /* Msg header common to all msgs */ 35 #define bfi_mhdr_2_fn(_mh) ((_mh)->mtag.h2i.fn_lpu >> 1) 36 #define bfi_mhdr_2_qid(_mh) ((_mh)->mtag.h2i.qid) 51 * Message opcodes: 0-127 to firmware, 128-255 to host 71 /* Generic DMA addr-len pair. */ 78 * Large Message structure - 128 Bytes size Msgs [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | am33xx-restart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * am33xx-restart.c - Code common to all AM33xx machines. 8 #include "common.h" 12 * am3xx_restart - trigger a software restart of the SoC 13 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 19 void am33xx_restart(enum reboot_mode mode, const char *cmd) in am33xx_restart() argument 21 /* TODO: Handle mode and cmd if necessary */ in am33xx_restart()
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-lm3601x.txt | 1 * Texas Instruments - lm3601x Single-LED Flash Driver 3 The LM3601X are ultra-small LED flash drivers that 7 - compatible : Can be one of the following 10 - reg : I2C slave address 11 - #address-cells : 1 12 - #size-cells : 0 15 - reg : 0 - Indicates a IR mode 16 1 - Indicates a Torch (white LED) mode 19 See Documentation/devicetree/bindings/leds/common.txt 20 - flash-max-microamp : Range from 11mA - 1.5A [all …]
|
H A D | leds-lm3532.txt | 1 * Texas Instruments - lm3532 White LED driver with ambient light sensing 4 The LM3532 provides the 3 high-voltage, low-side current sinks. The device is 5 programmable over an I2C-compatible interface and has independent 11 each with 32 internal voltage setting resistors, 8-bit logarithmic and linear 16 - compatible : "ti,lm3532" 17 - reg : I2C slave address 18 - #address-cells : 1 19 - #size-cells : 0 22 - enable-gpios : gpio pin to enable (active high)/disable the device. 23 - ramp-up-us - The Run time ramp rates/step are from one current [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/ |
H A D | Kconfig | 18 IVC (Inter-VM Communication) protocol is a Tegra-specific IPC 20 U-Boot, it is typically used for communication between the main CPU 24 bool "Tegra common options" 47 bool "Tegra common options for SoCs without BPMP" 53 bool "Tegra 32-bit common options" 63 bool "Tegra 64-bit common options" 120 bool "Disconnect USB device mode controller on boot" 123 When loading U-Boot into RAM over USB protocols using tools such as 124 tegrarcm or L4T's exec-uboot.sh/tegraflash.py, Tegra's USB device 125 mode controller is initialized and enumerated by the host PC running [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_main.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 17 #include <linux/dma-mapping.h> 125 return -EINVAL; in qede_set_vf_vlan() 129 return -EPROTONOSUPPORT; in qede_set_vf_vlan() 134 return edev->ops->iov->set_vlan(edev->cdev, vlan, vf); in qede_set_vf_vlan() 145 return -EINVAL; in qede_set_vf_mac() 148 return edev->ops->iov->set_mac(edev->cdev, mac, vfidx); in qede_set_vf_mac() 154 struct qed_dev_info *qed_info = &edev->dev_info.common; in qede_sriov_configure() [all …]
|
/openbmc/u-boot/arch/x86/cpu/braswell/ |
H A D | fsp_configs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 #include <common.h> 46 struct upd_region *fsp_upd = &config->fsp_upd; in update_fsp_configs() 47 struct memory_upd *memory_upd = &fsp_upd->memory_upd; in update_fsp_configs() 48 struct silicon_upd *silicon_upd = &fsp_upd->silicon_upd; in update_fsp_configs() 49 const void *blob = gd->fdt_blob; in update_fsp_configs() 53 rt_buf->common.stack_top = config->common.stack_top - 32; in update_fsp_configs() 54 rt_buf->common.boot_mode = config->common.boot_mode; in update_fsp_configs() 55 rt_buf->common.upd_data = &config->fsp_upd; in update_fsp_configs() 57 node = fdt_node_offset_by_compatible(blob, 0, "intel,braswell-fsp"); in update_fsp_configs() [all …]
|