Home
last modified time | relevance | path

Searched +full:charge +full:- +full:ctrl +full:- +full:value (Results 1 – 25 of 83) sorted by relevance

1234

/openbmc/linux/Documentation/devicetree/bindings/phy/
H A Dqcom,qusb2-phy.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/phy/qcom,qusb2-phy.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Wesley Cheng <quic_wcheng@quicinc.com>
19 - items:
20 - enum:
21 - qcom,ipq6018-qusb2-phy
22 - qcom,ipq8074-qusb2-phy
23 - qcom,ipq9574-qusb2-phy
[all …]
/openbmc/linux/mm/
H A Dswap_cgroup.c1 // SPDX-License-Identifier: GPL-2.0
24 * In typical usage, this swap_cgroup is accessed via memcg's charge/uncharge
28 * - we have no race in "exchange" when we're accessed via SwapCache because
30 * - When called via swap_free(), there is no user of this entry and no race.
42 struct swap_cgroup_ctrl *ctrl; in swap_cgroup_prepare() local
45 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_prepare()
47 for (idx = 0; idx < ctrl->length; idx++) { in swap_cgroup_prepare()
51 ctrl->map[idx] = page; in swap_cgroup_prepare()
60 __free_page(ctrl->map[idx]); in swap_cgroup_prepare()
62 return -ENOMEM; in swap_cgroup_prepare()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_debugfs.c4 * Permission is hereby granted, free of charge, to any person obtaining
40 struct drm_info_node *node = (struct drm_info_node *) m->private; in nouveau_debugfs_vbios_image()
41 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_vbios_image()
44 for (i = 0; i < drm->vbios.length; i++) in nouveau_debugfs_vbios_image()
45 seq_printf(m, "%c", drm->vbios.data[i]); in nouveau_debugfs_vbios_image()
52 struct drm_info_node *node = m->private; in nouveau_debugfs_strap_peek()
53 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_strap_peek()
56 ret = pm_runtime_get_sync(drm->dev->dev); in nouveau_debugfs_strap_peek()
57 if (ret < 0 && ret != -EACCES) { in nouveau_debugfs_strap_peek()
58 pm_runtime_put_autosuspend(drm->dev->dev); in nouveau_debugfs_strap_peek()
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-cht-wcove.c1 // SPDX-License-Identifier: GPL-2.0
53 u16 ctrl; member
63 unsigned int ctrl; member
84 .ctrl = CHT_WC_LED1_CTRL,
92 .ctrl = CHT_WC_LED2_CTRL,
107 enum led_brightness value) in cht_wc_leds_brightness_set() argument
112 mutex_lock(&led->mutex); in cht_wc_leds_brightness_set()
114 if (!value) { in cht_wc_leds_brightness_set()
115 ret = regmap_update_bits(led->regmap, led->regs->ctrl, in cht_wc_leds_brightness_set()
116 led->regs->on_off_mask, led->regs->off_val); in cht_wc_leds_brightness_set()
[all …]
/openbmc/u-boot/board/gdsys/common/
H A Dch7301.c1 // SPDX-License-Identifier: GPL-2.0+
25 CH7301_TPCP = 0x33, /* DVI PLL Charge Pump Ctrl Register */
41 u8 value; in ch7301_probe() local
45 return -1; in ch7301_probe()
47 value = i2c_reg_read(CH7301_I2C_ADDR, CH7301_DID); in ch7301_probe()
48 if (value != 0x17) in ch7301_probe()
49 return -1; in ch7301_probe()
/openbmc/qemu/hw/char/
H A Dibex_uart.c9 * Permission is hereby granted, free of charge, to any person obtaining a copy
31 #include "hw/qdev-clock.h"
32 #include "hw/qdev-properties.h"
33 #include "hw/qdev-properties-system.h"
47 REG32(CTRL, 0x10)
48 FIELD(CTRL, TX_ENABLE, 0, 1)
49 FIELD(CTRL, RX_ENABLE, 1, 1)
50 FIELD(CTRL, NF, 2, 1)
51 FIELD(CTRL, SLPBK, 4, 1)
52 FIELD(CTRL, LLPBK, 5, 1)
[all …]
/openbmc/qemu/hw/misc/
H A Dxlnx-versal-trng.c2 * Non-crypto strength model of the True Random Number Generator
5 * Copyright (c) 2017-2020 Xilinx Inc.
10 * Permission is hereby granted, free of charge, to any person obtaining a copy
29 #include "hw/misc/xlnx-versal-trng.h"
33 #include "qemu/error-report.h"
34 #include "qemu/guest-random.h"
38 #include "hw/qdev-properties.h"
57 REG32(CTRL, 0x8)
58 FIELD(CTRL, PERSODISABLE, 10, 1)
59 FIELD(CTRL, SINGLEGENMODE, 9, 1)
[all …]
H A Dmos6522.c4 * Copyright (c) 2004-2007 Fabrice Bellard
6 * Copyright (c) 2018 Mark Cave-Ayland
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
30 #include "hw/qdev-properties.h"
34 #include "qapi/type-helpers.h"
56 if (s->ifr & s->ier) { in mos6522_update_irq()
57 qemu_irq_raise(s->irq); in mos6522_update_irq()
59 qemu_irq_lower(s->irq); in mos6522_update_irq()
66 int last_level = !!(s->last_irq_levels & (1 << n)); in mos6522_set_irq()
67 uint8_t last_ifr = s->ifr; in mos6522_set_irq()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dvlv_dsi_pll.c4 * Permission is hereby granted, free of charge, to any person obtaining a
40 426, 469, 234, 373, 442, 221, 110, 311, 411, /* 62 - 70 */
41 461, 486, 243, 377, 188, 350, 175, 343, 427, 213, /* 71 - 80 */
42 106, 53, 282, 397, 454, 227, 113, 56, 284, 142, /* 81 - 90 */
43 71, 35, 273, 136, 324, 418, 465, 488, 500, 506 /* 91 - 100 */
71 drm_err(&dev_priv->drm, "DSI CLK Out of Range\n"); in dsi_calc_mnp()
72 return -ECHRNG; in dsi_calc_mnp()
89 delta = abs(target_dsi_clk - (m_min * ref_clk) / (p_min * n)); in dsi_calc_mnp()
95 * +/- the required clock in dsi_calc_mnp()
98 int d = abs(target_dsi_clk - calc_dsi_clk); in dsi_calc_mnp()
[all …]
/openbmc/qemu/tests/qtest/
H A Daspeed-smc-utils.c7 * Permission is hereby granted, free of charge, to any person obtaining a copy
28 #include "libqtest-single.h"
30 #include "aspeed-smc-utils.h"
42 uint32_t value) in spi_writel() argument
44 qtest_writel(data->s, data->spi_base + offset, value); in spi_writel()
49 return qtest_readl(data->s, data->spi_base + offset); in spi_readl()
53 uint8_t value) in flash_writeb() argument
55 qtest_writeb(data->s, data->flash_base + offset, value); in flash_writeb()
59 uint32_t value) in flash_writel() argument
61 qtest_writel(data->s, data->flash_base + offset, value); in flash_writel()
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-ds1305.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1305.c -- driver for DS1305 and DS1306 SPI RTC chips
21 * otherwise you're reading it. All non-bitmask values are BCD.
27 * - Need fancy "hours" encoding in 12hour mode
28 * - Don't rely on the "day-of-week" field (or tm_wday)
29 * - Are a 21st-century clock (2000 <= year < 2100)
50 * NOTE ALSO that while we could generate once-a-second IRQs (UIE), we
94 u8 ctrl[DS1305_CONTROL_LEN]; member
98 /*----------------------------------------------------------------------*/
101 * Utilities ... tolerate 12-hour AM/PM notation in case of non-Linux
[all …]
/openbmc/qemu/hw/timer/
H A Dibex_timer.c9 * Permission is hereby granted, free of charge, to any person obtaining a copy
33 #include "hw/qdev-properties.h"
39 REG32(CTRL, 0x04)
40 FIELD(CTRL, ACTIVE, 0, 1)
63 uint64_t value = s->timer_compare_lower0 | in ibex_timer_update_irqs() local
64 ((uint64_t)s->timer_compare_upper0 << 32); in ibex_timer_update_irqs()
66 uint64_t now = cpu_riscv_read_rtc(s->timebase_freq); in ibex_timer_update_irqs()
68 if (!(s->timer_ctrl & R_CTRL_ACTIVE_MASK)) { in ibex_timer_update_irqs()
74 s->mtimecmp = value; in ibex_timer_update_irqs()
76 if (s->mtimecmp <= now) { in ibex_timer_update_irqs()
[all …]
/openbmc/u-boot/drivers/power/
H A Dpower_core.c1 // SPDX-License-Identifier: GPL-2.0+
9 * (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
22 if (reg >= p->number_of_regs) { in check_reg()
24 reg, p->number_of_regs); in check_reg()
25 return -EINVAL; in check_reg()
36 return -ENOTSUPP; in pmic_set_output()
44 return -ENOTSUPP; in pmic_set_output()
59 list_add_tail(&p->list, &pmic_list); in pmic_alloc()
71 if (strcmp(p->name, s) == 0) { in pmic_get()
72 debug("%s: pmic %s -> 0x%p\n", __func__, p->name, p); in pmic_get()
[all …]
/openbmc/linux/drivers/mfd/
H A Dtwl-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * twl_core.c - driver for TWL4030/TWL5030/TWL60X0/TPS659x0 PM
6 * Copyright (C) 2005-2006 Texas Instruments, Inc.
37 #include <linux/mfd/twl4030-audio.h>
39 #include "twl-core.h"
42 * The TWL4030 "Triton 2" is one of a family of a multi-function "Power
60 /* subchip/slave 0 - USB ID */
63 /* subchip/slave 1 - AUD ID */
70 /* subchip/slave 2 - AUX ID */
79 #define TWL5031_BASEADD_ACCESSORY 0x0074 /* Replaces Main Charge */
[all …]
/openbmc/linux/drivers/phy/qualcomm/
H A Dphy-qcom-qusb2.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/nvmem-consumer.h>
22 #include <dt-bindings/phy/phy-qcom-qusb2.h>
105 * if yes, then offset gives index in the reg-layout
123 /* set of registers with offsets different per-PHY */
288 /* true if TUNE1 register must be updated by fused value, else TUNE2 */
294 /* true if PHY default clk scheme is single-ended */
373 "vdd", "vdda-pll", "vdda-phy-dpdm",
378 /* struct override_param - structure holding qusb2 v2 phy overriding param
380 * to value
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gvt/
H A Dedid.c2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
54 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in edid_get_byte()
57 if (edid->state == I2C_NOT_SPECIFIED || !edid->slave_selected) { in edid_get_byte()
61 if (edid->current_edid_read >= EDID_SIZE) { in edid_get_byte()
66 if (!edid->edid_available) { in edid_get_byte()
71 if (intel_vgpu_has_monitor_on_port(vgpu, edid->port)) { in edid_get_byte()
73 intel_vgpu_port(vgpu, edid->port)->edid; in edid_get_byte()
75 chr = edid_data->edid_block[edid->current_edid_read]; in edid_get_byte()
76 edid->current_edid_read++; in edid_get_byte()
[all …]
/openbmc/u-boot/drivers/usb/host/
H A Dehci-tegra.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (c) 2009-2015 NVIDIA Corporation
12 #include <asm-generic/gpio.h>
14 #include <asm/arch-tegra/usb.h>
15 #include <asm/arch-tegra/clk_rst.h>
39 PARAM_CPCON, /* BASE PLLC CHARGE Pump setup ctrl */
40 PARAM_LFCON, /* BASE PLLC LOOP FILter setup ctrl */
41 PARAM_ENABLE_DELAY_COUNT, /* PLL-U Enable Delay Count */
42 PARAM_STABLE_COUNT, /* PLL-U STABLE count */
43 PARAM_ACTIVE_DELAY_COUNT, /* PLL-U Active delay count */
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dstm32f429-disco.dts2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
26 * b) Permission is hereby granted, free of charge, to any person
48 /dts-v1/;
50 #include "stm32f429-pinctrl.dtsi"
51 #include <dt-bindings/input/input.h>
52 #include <dt-bindings/interrupt-controller/irq.h>
53 #include <dt-bindings/gpio/gpio.h>
56 model = "STMicroelectronics STM32F429i-DISCO board";
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Datmel_usba_udc.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2005-2013 Atmel Corporation
32 transaction_len = req->req.length - req->req.actual; in next_fifo_transaction()
33 req->last_transaction = 1; in next_fifo_transaction()
34 if (transaction_len > ep->ep.maxpacket) { in next_fifo_transaction()
35 transaction_len = ep->ep.maxpacket; in next_fifo_transaction()
36 req->last_transaction = 0; in next_fifo_transaction()
37 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { in next_fifo_transaction()
38 req->last_transaction = 0; in next_fifo_transaction()
42 ep->ep.name, req, transaction_len, in next_fifo_transaction()
[all …]
/openbmc/linux/include/uapi/rdma/hfi/
H A Dhfi1_user.h1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
9 * Copyright(c) 2015 - 2020 Intel Corporation.
28 * - Redistributions of source code must retain the above copyright
30 * - Redistributions in binary form must reproduce the above copyright
34 * - Neither the name of Intel Corporation nor the names of its
93 #define HFI1_CAP_DMA_RTAIL (1UL << 0) /* Use DMA'ed RTail value */
100 #define HFI1_CAP_MULTI_PKT_EGR (1UL << 7) /* Enable multi-packet Egr buffs*/
134 * These are the status bits readable (in ASCII form, 64bit value)
178 * Device status and notifications from driver to user-space.
200 * bits 0-3 - version (currently unused)
[all …]
/openbmc/qemu/hw/usb/
H A Dcore.c8 * Permission is hereby granted, free of charge, to any person obtaining a copy
39 USBDevice *udev = port->dev; in usb_pick_speed()
43 if ((udev->speedmask & (1 << speeds[i])) && in usb_pick_speed()
44 (port->speedmask & (1 << speeds[i]))) { in usb_pick_speed()
45 udev->speed = speeds[i]; in usb_pick_speed()
53 USBDevice *dev = port->dev; in usb_attach()
56 assert(dev->attached); in usb_attach()
57 assert(dev->state == USB_STATE_NOTATTACHED); in usb_attach()
59 port->ops->attach(port); in usb_attach()
60 dev->state = USB_STATE_ATTACHED; in usb_attach()
[all …]
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dsc7180-idp.dts1 // SPDX-License-Identifier: BSD-3-Clause
8 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
14 #include "sc7180-firmware-tfa.dtsi"
20 compatible = "qcom,sc7180-idp", "qcom,sc7180";
30 stdout-path = "serial0:115200n8";
42 /delete-node/ &hyp_mem;
43 /delete-node/ &xbl_mem;
[all …]
H A Dsc7180-acer-aspire1.dts1 // SPDX-License-Identifier: BSD-3-Clause
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 /delete-node/ &tz_mem;
14 /delete-node/ &ipa_fw_mem;
19 chassis-type = "laptop";
29 stdout-path = "serial0:115200n8";
32 reserved-memory {
33 zap_mem: zap-shader@80840000 {
[all …]
/openbmc/linux/drivers/gpu/drm/kmb/
H A Dkmb_dsi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2019-2020 Intel Corporation
178 clk_disable_unprepare(kmb_dsi->clk_mipi); in kmb_dsi_clk_disable()
179 clk_disable_unprepare(kmb_dsi->clk_mipi_ecfg); in kmb_dsi_clk_disable()
180 clk_disable_unprepare(kmb_dsi->clk_mipi_cfg); in kmb_dsi_clk_disable()
186 mipi_dsi_host_unregister(kmb_dsi->host); in kmb_dsi_host_unregister()
225 return -ENOMEM; in kmb_dsi_host_bridge_init()
227 dsi_host->ops = &kmb_dsi_host_ops; in kmb_dsi_host_bridge_init()
233 return -ENOMEM; in kmb_dsi_host_bridge_init()
237 dsi_host->dev = dev; in kmb_dsi_host_bridge_init()
[all …]
/openbmc/linux/drivers/net/xen-netback/
H A Dcommon.h8 * Permission is hereby granted, free of charge, to any person obtaining a copy
59 * skb_shinfo(skb)->destructor_arg points to the first mapped slot's
81 /* Discriminate from any valid pending_idx value. */
91 #define NETBACK_INVALID_HANDLE -1
94 * the maximum slots a valid packet can use. Now this value is defined
100 /* Queue name is interface name with "-qNNN" appended */
103 /* IRQ name is queue name with "-tx" or "-rx" appended */
109 /* Stats fields to be updated per-queue.
135 struct xenvif_queue { /* Per-queue data for xenvif */
136 unsigned int id; /* Queue ID, 0-based */
[all …]

1234