Home
last modified time | relevance | path

Searched +full:use +full:- +full:sw +full:- +full:pm (Results 1 – 25 of 268) sorted by relevance

1234567891011

/openbmc/linux/drivers/soc/bcm/brcmstb/pm/
H A Ds2-mips.S1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include "pm.h"
23 sw ra, 0(sp)
24 sw s0, 4(sp)
25 sw s1, 8(sp)
26 sw s2, 12(sp)
27 sw s3, 16(sp)
28 sw s4, 20(sp)
29 sw s5, 24(sp)
30 sw s6, 28(sp)
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dbase.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 if (device->handle == handle) in nvkm_device_find_locked()
64 name[nr - 1] = device->handle; in nvkm_device_list()
94 .sw = { 0x00000001, nv04_sw_new },
115 .sw = { 0x00000001, nv04_sw_new },
157 .sw = { 0x00000001, nv10_sw_new },
179 .sw = { 0x00000001, nv10_sw_new },
201 .sw = { 0x00000001, nv10_sw_new },
223 .sw = { 0x00000001, nv10_sw_new },
[all …]
/openbmc/linux/Documentation/devicetree/bindings/watchdog/
H A Dda9062-wdt.txt5 - compatible: should be one of the following valid compatible string lines:
6 "dlg,da9061-watchdog", "dlg,da9062-watchdog"
7 "dlg,da9062-watchdog"
10 - dlg,use-sw-pm: Add this property to disable the watchdog during suspend.
11 Only use this option if you can't use the watchdog automatic suspend
13 - dlg,wdt-sd: Set what happens on watchdog timeout. If this bit is set the
15 POWERDOWN. Can be 0 or 1. Only use this option if you want to change the
24 compatible = "dlg,da9062-watchdog";
28 Example: DA9061 using a fall-back compatible for the DA9062 watchdog driver
32 compatible = "dlg,da9061-watchdog", "dlg,da9062-watchdog";
/openbmc/u-boot/arch/arm/mach-omap2/omap3/
H A Dboard.c1 // SPDX-License-Identifier: GPL-2.0+
6 * (C) Copyright 2004-2008
14 * Richard Woodruff <r-woodruff2@ti.com>
77 struct pm *pm_rt_ape_base = (struct pm *)PM_RT_APE_BASE_ADDR_ARM; in secure_unlock_mem()
78 struct pm *pm_gpmc_base = (struct pm *)PM_GPMC_BASE_ADDR_ARM; in secure_unlock_mem()
79 struct pm *pm_ocm_ram_base = (struct pm *)PM_OCM_RAM_BASE_ADDR_ARM; in secure_unlock_mem()
80 struct pm *pm_iva2_base = (struct pm *)PM_IVA2_BASE_ADDR_ARM; in secure_unlock_mem()
84 writel(UNLOCK_1, &pm_rt_ape_base->req_info_permission_1); in secure_unlock_mem()
85 writel(UNLOCK_1, &pm_rt_ape_base->read_permission_0); in secure_unlock_mem()
86 writel(UNLOCK_1, &pm_rt_ape_base->wirte_permission_0); in secure_unlock_mem()
[all …]
/openbmc/linux/arch/arm/boot/dts/allwinner/
H A Dsun9i-a80-cubieboard4.dts5 * Chen-Yu Tsai <wens@csie.org>
7 * This file is dual-licensed: you can use it either under the terms
27 * restriction, including without limitation the rights to use,
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 /dts-v1/;
47 #include "sun9i-a80.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
53 compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80";
60 stdout-path = "serial0:115200n8";
64 compatible = "gpio-leds";
[all …]
H A Dsun9i-a80-optimus.dts2 * Copyright 2014 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
6 * This file is dual-licensed: you can use it either under the terms
26 * restriction, including without limitation the rights to use,
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 /dts-v1/;
46 #include "sun9i-a80.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
52 compatible = "merrii,a80-optimus", "allwinner,sun9i-a80";
60 stdout-path = "serial0:115200n8";
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Djpeg_v3_0.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * jpeg_v3_0_early_init - set function pointers
55 switch (adev->ip_versions[UVD_HWIP][0]) { in jpeg_v3_0_early_init()
62 return -ENOENT; in jpeg_v3_0_early_init()
66 adev->jpeg.num_jpeg_inst = 1; in jpeg_v3_0_early_init()
67 adev->jpeg.num_jpeg_rings = 1; in jpeg_v3_0_early_init()
76 * jpeg_v3_0_sw_init - sw init for JPEG block
80 * Load firmware and sw initialization
90 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v3_0_sw_init()
[all …]
H A Djpeg_v4_0.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
49 * jpeg_v4_0_early_init - set function pointers
60 adev->jpeg.num_jpeg_inst = 1; in jpeg_v4_0_early_init()
61 adev->jpeg.num_jpeg_rings = 1; in jpeg_v4_0_early_init()
71 * jpeg_v4_0_sw_init - sw init for JPEG block
75 * Load firmware and sw initialization
85 VCN_4_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v4_0_sw_init()
91 VCN_4_0__SRCID_DJPEG0_POISON, &adev->jpeg.inst->ras_poison_irq); in jpeg_v4_0_sw_init()
97 VCN_4_0__SRCID_EJPEG0_POISON, &adev->jpeg.inst->ras_poison_irq); in jpeg_v4_0_sw_init()
[all …]
H A Djpeg_v2_0.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * jpeg_v2_0_early_init - set function pointers
51 adev->jpeg.num_jpeg_inst = 1; in jpeg_v2_0_early_init()
52 adev->jpeg.num_jpeg_rings = 1; in jpeg_v2_0_early_init()
61 * jpeg_v2_0_sw_init - sw init for JPEG block
65 * Load firmware and sw initialization
75 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v2_0_sw_init()
87 ring = adev->jpeg.inst->ring_dec; in jpeg_v2_0_sw_init()
88 ring->use_doorbell = true; in jpeg_v2_0_sw_init()
[all …]
/openbmc/linux/drivers/thunderbolt/
H A Dtb.c1 // SPDX-License-Identifier: GPL-2.0
3 * Thunderbolt driver - bus logic (NHI independent)
23 * direction. This is 40G - 10% guard band bandwidth.
46 * struct tb_cm - Simple Thunderbolt connection manager
67 return ((void *)tcm - sizeof(struct tb)); in tcm_to_tb()
82 for (i = 0; i < ARRAY_SIZE(tcm->groups); i++) { in tb_init_bandwidth_groups()
83 struct tb_bandwidth_group *group = &tcm->groups[i]; in tb_init_bandwidth_groups()
85 group->tb = tcm_to_tb(tcm); in tb_init_bandwidth_groups()
86 group->index = i + 1; in tb_init_bandwidth_groups()
87 INIT_LIST_HEAD(&group->ports); in tb_init_bandwidth_groups()
[all …]
H A Dswitch.c1 // SPDX-License-Identifier: GPL-2.0
3 * Thunderbolt driver - switch/port utility functions
12 #include <linux/nvmem-provider.h>
37 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status() argument
42 if (uuid_equal(&st->uuid, sw->uuid)) in __nvm_get_auth_status()
49 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status() argument
54 st = __nvm_get_auth_status(sw); in nvm_get_auth_status()
57 *status = st ? st->status : 0; in nvm_get_auth_status()
60 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status() argument
64 if (WARN_ON(!sw->uuid)) in nvm_set_auth_status()
[all …]
H A Dusb4.c1 // SPDX-License-Identifier: GPL-2.0
55 static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode, in usb4_native_switch_op() argument
64 ret = tb_sw_write(sw, metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1); in usb4_native_switch_op()
69 ret = tb_sw_write(sw, tx_data, TB_CFG_SWITCH, ROUTER_CS_9, in usb4_native_switch_op()
76 ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1); in usb4_native_switch_op()
80 ret = tb_switch_wait_for_bit(sw, ROUTER_CS_26, ROUTER_CS_26_OV, 0, 500); in usb4_native_switch_op()
84 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1); in usb4_native_switch_op()
89 return -EOPNOTSUPP; in usb4_native_switch_op()
96 ret = tb_sw_read(sw, metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1); in usb4_native_switch_op()
101 ret = tb_sw_read(sw, rx_data, TB_CFG_SWITCH, ROUTER_CS_9, in usb4_native_switch_op()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Ddlg,da9063.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Steve Twiss <stwiss.opensource@diasemi.com>
13 For device-tree bindings of other sub-modules refer to the binding documents
14 under the respective sub-system directories.
15 Using regulator-{uv,ov}-{warn,error,protection}-microvolt requires special
24 - dlg,da9063
25 - dlg,da9063l
33 interrupt-controller: true
[all …]
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/
H A Damd_powerplay.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 return -EINVAL; in amd_powerplay_create()
49 return -ENOMEM; in amd_powerplay_create()
51 hwmgr->adev = adev; in amd_powerplay_create()
52 hwmgr->not_vf = !amdgpu_sriov_vf(adev); in amd_powerplay_create()
53 hwmgr->device = amdgpu_cgs_create_device(adev); in amd_powerplay_create()
54 mutex_init(&hwmgr->msg_lock); in amd_powerplay_create()
55 hwmgr->chip_family = adev->family; in amd_powerplay_create()
56 hwmgr->chip_id = adev->asic_type; in amd_powerplay_create()
[all …]
/openbmc/linux/drivers/watchdog/
H A Dda9063_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
27 * others: timeout = 2048 ms * 2^(TWDSCALE-1).
34 #define DA9063_TWDSCALE_MAX (ARRAY_SIZE(wdt_timeout) - 1)
60 regmap_read(da9063->regmap, DA9063_REG_CONTROL_D, &val); in da9063_wdt_read_timeout()
67 return regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D, in da9063_wdt_disable_timer()
93 return regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D, in da9063_wdt_update_timeout()
102 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
104 dev_err(da9063->dev, "Watchdog failed to start (err = %d)\n", in da9063_wdt_start()
117 dev_alert(da9063->dev, "Watchdog failed to stop (err = %d)\n", in da9063_wdt_stop()
135 ret = regmap_write(da9063->regmap, DA9063_REG_CONTROL_F, in da9063_wdt_ping()
[all …]
H A Dda9062_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
26 #define DA9062_TWDSCALE_MAX (ARRAY_SIZE(wdt_timeout) - 1)
29 #define DA9062_WDG_DEFAULT_TIMEOUT wdt_timeout[DA9062_TWDSCALE_MAX-1]
42 regmap_read(wdt->hw->regmap, DA9062AA_CONTROL_D, &val); in da9062_wdt_read_timeout()
61 return regmap_update_bits(wdt->hw->regmap, DA9062AA_CONTROL_F, in da9062_reset_watchdog_timer()
69 struct da9062 *chip = wdt->hw; in da9062_wdt_update_timeout_register()
71 regmap_update_bits(chip->regmap, in da9062_wdt_update_timeout_register()
78 return regmap_update_bits(chip->regmap, in da9062_wdt_update_timeout_register()
90 selector = da9062_wdt_timeout_to_sel(wdt->wdtdev.timeout); in da9062_wdt_start()
93 dev_err(wdt->hw->dev, "Watchdog failed to start (err = %d)\n", in da9062_wdt_start()
[all …]
/openbmc/linux/drivers/platform/x86/intel/
H A Dvbtn.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/input/sparse-keymap.h>
42 { KE_KEY, 0xC4, { KEY_VOLUMEUP } }, /* volume-up key press */
43 { KE_IGNORE, 0xC5, { KEY_VOLUMEUP } }, /* volume-up key release */
44 { KE_KEY, 0xC6, { KEY_VOLUMEDOWN } }, /* volume-down key press */
45 { KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } }, /* volume-down key release */
46 { KE_KEY, 0xC8, { KEY_ROTATE_LOCK_TOGGLE } }, /* rotate-lock key press */
47 { KE_KEY, 0xC9, { KEY_ROTATE_LOCK_TOGGLE } }, /* rotate-lock key release */
54 * intel-vbtn code, always seem to use this for 2-in-1s / convertibles and set
55 * SW_DOCK=1 when in laptop-mode (in tandem with setting SW_TABLET_MODE=0).
[all …]
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/
H A Damdgpu_smu.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
50 * DO NOT use these for err/warn/info/debug messages.
51 * Use dev_err, dev_warn, dev_info and dev_dbg instead.
79 if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled) in smu_sys_get_pp_feature_mask()
80 return -EOPNOTSUPP; in smu_sys_get_pp_feature_mask()
90 if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled) in smu_sys_set_pp_feature_mask()
91 return -EOPNOTSUPP; in smu_sys_set_pp_feature_mask()
98 if (!smu->ppt_funcs->set_gfx_off_residency) in smu_set_residency_gfxoff()
99 return -EINVAL; in smu_set_residency_gfxoff()
[all …]
/openbmc/u-boot/arch/arm/dts/
H A Dsun9i-a80-cubieboard4.dts5 * Chen-Yu Tsai <wens@csie.org>
7 * This file is dual-licensed: you can use it either under the terms
27 * restriction, including without limitation the rights to use,
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 /dts-v1/;
47 #include "sun9i-a80.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
53 compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80";
60 stdout-path = "serial0:115200n8";
64 compatible = "gpio-leds";
[all …]
H A Dsun9i-a80-optimus.dts2 * Copyright 2014 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
6 * This file is dual-licensed: you can use it either under the terms
26 * restriction, including without limitation the rights to use,
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 /dts-v1/;
46 #include "sun9i-a80.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
52 compatible = "merrii,a80-optimus", "allwinner,sun9i-a80";
60 stdout-path = "serial0:115200n8";
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_mtk.c1 // SPDX-License-Identifier: GPL-2.0+
19 #include <linux/dma-mapping.h>
44 #define MTK_UART_EFR_NO_SW_FC 0x0 /* no sw flow control */
45 #define MTK_UART_EFR_XON1_XOFF1 0xa /* XON1/XOFF1 as sw flow control */
46 #define MTK_UART_EFR_XON2_XOFF2 0x5 /* XON2/XOFF2 as sw flow control */
52 #define MTK_UART_ESCAPE_CHAR 0x77 /* Escape char added under sw fc */
94 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_rx_complete()
95 struct mtk8250_data *data = up->port.private_data; in mtk8250_dma_rx_complete()
96 struct tty_port *tty_port = &up->port.state->port; in mtk8250_dma_rx_complete()
102 if (data->rx_status == DMA_RX_SHUTDOWN) in mtk8250_dma_rx_complete()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/dma/
H A Dti-edma.txt8 ------------------------------------------------------------------------------
12 --------------------
13 - compatible: Should be:
14 - "ti,edma3-tpcc" for the channel controller(s) on OMAP,
16 - "ti,k2g-edma3-tpcc", "ti,edma3-tpcc" for the
18 - #dma-cells: Should be set to <2>. The first number is the DMA request
20 - reg: Memory map of eDMA CC
21 - reg-names: "edma3_cc"
22 - interrupts: Interrupt lines for CCINT, MPERR and CCERRINT.
23 - interrupt-names: "edma3_ccint", "edma3_mperr" and "edma3_ccerrint"
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dsw.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2012 Realtek Corporation.*/
13 #include "sw.h"
25 rtlpci->const_amdpci_aspm = 0; in rtl92d_init_aspm_vars()
29 * 0 - Disable ASPM, in rtl92d_init_aspm_vars()
30 * 1 - Enable ASPM without Clock Req, in rtl92d_init_aspm_vars()
31 * 2 - Enable ASPM with Clock Req, in rtl92d_init_aspm_vars()
32 * 3 - Alwyas Enable ASPM with Clock Req, in rtl92d_init_aspm_vars()
33 * 4 - Always Enable ASPM without Clock Req. in rtl92d_init_aspm_vars()
36 rtlpci->const_pci_aspm = 3; in rtl92d_init_aspm_vars()
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2 /* Copyright (c) 2019-2021 Marvell International Ltd. All rights reserved */
100 key->addr.v = PRESTERA_IPV4; in prestera_util_fen_info2fib_cache_key()
101 key->addr.u.ipv4 = cpu_to_be32(fen_info->dst); in prestera_util_fen_info2fib_cache_key()
102 key->prefix_len = fen_info->dst_len; in prestera_util_fen_info2fib_cache_key()
103 key->kern_tb_id = fen_info->tb_id; in prestera_util_fen_info2fib_cache_key()
106 static int prestera_util_nhc2nc_key(struct prestera_switch *sw, in prestera_util_nhc2nc_key() argument
111 if (nhc->nhc_gw_family == AF_INET) { in prestera_util_nhc2nc_key()
112 nk->addr.v = PRESTERA_IPV4; in prestera_util_nhc2nc_key()
113 nk->addr.u.ipv4 = nhc->nhc_gw.ipv4; in prestera_util_nhc2nc_key()
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dab8500-gpadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2010
52 /* 0 = use rising edge, 1 = use falling edge */
54 /* 0 = use VTVOUT, 1 = use VRTC as pull-up supply for battery temp NTC */
63 * the bit layout is the same for SW and HW conversion set-up
163 #define AB8500_ADC_CH_IBAT_MIN (-6000) /* mA range measured by ADC for ibat */
165 #define AB8500_ADC_CH_IBAT_MIN_V (-60) /* mV range measured by ADC for ibat */
167 #define AB8500_GPADC_IBAT_VDROP_L (-56) /* mV */
192 * struct ab8500_adc_cal_data - Table for storing gain and offset for the
207 * struct ab8500_gpadc_chan_info - per-channel GPADC info
[all …]

1234567891011