/linux/include/linux/usb/ |
H A D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2015-2017 Google, Inc 29 /* 14-15 Reserved */ 36 /* 22-31 Reserved */ 49 /* 9-14 Reserved */ 51 /* 16-31 Reserved */ 70 /* 15-31 Reserved */ 179 * struct pd_chunked_ext_message_data - PD chunked extended message data as 190 * struct pd_message - PD message as seen on wire 213 #define PDO_TYPE_SHIFT 30 [all …]
|
/linux/include/dt-bindings/usb/ |
H A D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #define PDO_TYPE_SHIFT 30 26 #define PDO_FIXED_VOLT_SHIFT 10 /* 50mV units */ 29 #define PDO_FIXED_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_FIXED_VOLT_SHIFT) argument 32 #define PDO_FIXED(mv, ma, flags) \ argument 34 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma)) 36 #define VSAFE5V 5000 /* mv units */ 38 #define PDO_BATT_MAX_VOLT_SHIFT 20 /* 50mV units */ 39 #define PDO_BATT_MIN_VOLT_SHIFT 10 /* 50mV units */ 42 #define PDO_BATT_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MIN_VOLT_SHIFT) argument [all …]
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-vp9.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <media/v4l2-vp9.h> 17 { 137, 30, 42, 148, 151, 207, 70, 52, 91 }, /*left = dc */ 20 { 91, 30, 32, 116, 121, 186, 93, 86, 94 }, /*left = d45 */ 35 { 52, 30, 74, 113, 130, 175, 51, 64, 58 }, /*left = d207*/ 52 { 62, 30, 23, 158, 200, 207, 59, 57, 50 }, /*left = h */ 53 { 67, 30, 29, 84, 86, 191, 102, 91, 59 }, /*left = d45 */ 91 { 55, 30, 18, 122, 79, 179, 44, 88, 116 }, /*left = d63 */ 96 { 47, 25, 17, 175, 222, 220, 24, 30, 86 }, /*left = h */ 99 { 49, 30, 35, 141, 70, 168, 82, 40, 115 }, /*left = d117*/ [all …]
|
/linux/drivers/staging/fbtft/ |
H A D | fb_hx8353d.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 par->fbtftops.reset(par); in init_display() 43 /* SLPOUT - Sleep out & booster on */ in init_display() 47 /* DISPON - Display On */ in init_display() 52 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, in init_display() 55 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, in init_display() 58 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, in init_display() 78 #define mv BIT(5) macro 82 * madctl - memory data access control in set_var() 87 * rgb-bgr order color filter panel: 0=rgb, 1=bgr in set_var() [all …]
|
H A D | fb_st7735r.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 "0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10" 20 -1, MIPI_DCS_SOFT_RESET, 21 -2, 150, /* delay */ 23 -1, MIPI_DCS_EXIT_SLEEP_MODE, 24 -2, 500, /* delay */ 26 /* FRMCTR1 - frame rate control: normal mode 29 -1, 0xB1, 0x01, 0x2C, 0x2D, 31 /* FRMCTR2 - frame rate control: idle mode 34 -1, 0xB2, 0x01, 0x2C, 0x2D, [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gk20a.c | 2 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 31 /* 72 */ { 1209886, -36468, 515, 417, -13123, 203}, 32 /* 108 */ { 1130804, -27659, 296, 298, -10834, 221}, 33 /* 180 */ { 1162871, -27110, 247, 238, -10681, 268}, 34 /* 252 */ { 1220458, -28654, 247, 179, -10376, 298}, 35 /* 324 */ { 1280953, -30204, 247, 119, -9766, 304}, 36 /* 396 */ { 1344547, -31777, 247, 119, -8545, 292}, 37 /* 468 */ { 1420168, -34227, 269, 60, -7172, 256}, 38 /* 540 */ { 1490757, -35955, 274, 60, -5188, 197}, 39 /* 612 */ { 1599112, -42583, 398, 0, -1831, 119}, [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/ |
H A D | smu13_driver_if_aldebaran.h | 68 #define FEATURE_CLK_CG_BIT 30 268 LinearInt_t ConversionToAvfsClk; // Transfer function to AVFS Clock (GHz->GHz) 269 QuadraticInt_t SsCurve; // Slow-slow curve (GHz->V) 292 uint16_t MaxVoltageGfx; // In mV(Q2) Maximum Voltage allowable of VDD_GFX 293 uint16_t MaxVoltageSoc; // In mV(Q2) Maximum Voltage allowable of VDD_SOC 342 int16_t GFX_Guardband_Voltage_Cold[8]; // mV [signed] 343 int16_t GFX_Guardband_Voltage_Mid[8]; // mV [signed] 344 int16_t GFX_Guardband_Voltage_Hot[8]; // mV [signed] 347 int16_t SOC_Guardband_Voltage_Cold[8]; // mV [signed] 348 int16_t SOC_Guardband_Voltage_Mid[8]; // mV [signed] [all …]
|
H A D | smu13_driver_if_v13_0_7.h | 79 #define FEATURE_FAN_CONTROL_BIT 30 504 uint8_t SnapToDiscrete; // 0 - Fine grained DPM, 1 - Discrete DPM 507 LinearInt_t ConversionToAvfsClk; // Transfer function to AVFS Clock (GHz->GHz) 872 uint16_t InitGfx; // In mV(Q2) , should be 0? 873 uint16_t InitSoc; // In mV(Q2) 874 uint16_t InitU; // In Mv(Q2) not applicable 928 uint16_t DcTol; // mV Q2 929 uint16_t DcBtcGb; // mV Q2 931 uint16_t DcBtcMin; // mV Q2 932 uint16_t DcBtcMax; // mV Q2 [all …]
|
H A D | smu11_driver_if_arcturus.h | 44 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1) 45 #define MAX_VCLK_DPM_LEVEL (NUM_VCLK_DPM_LEVELS - 1) 46 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1) 47 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1) 48 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1) 49 #define MAX_UCLK_DPM_LEVEL (NUM_UCLK_DPM_LEVELS - 1) 50 #define MAX_FCLK_DPM_LEVEL (NUM_FCLK_DPM_LEVELS - 1) 51 #define MAX_XGMI_LEVEL (NUM_XGMI_LEVELS - 1) 52 #define MAX_XGMI_PSTATE_LEVEL (NUM_XGMI_PSTATE_LEVELS - 1) 90 #define FEATURE_SPARE_30_BIT 30 [all …]
|
H A D | smu14_driver_if_v14_0.h | 76 #define FEATURE_GFX_DCS_BIT 30 517 uint8_t SnapToDiscrete; // 0 - Fine grained DPM, 1 - Discrete DPM 520 LinearInt_t ConversionToAvfsClk; // Transfer function to AVFS Clock (GHz->GHz) 757 uint16_t VddGfxVmax; // in mV 820 uint16_t VddGfxVmax; // in mV 964 uint16_t InitGfx; // In mV(Q2) , should be 0? 965 uint16_t InitSoc; // In mV(Q2) 966 uint16_t InitVddIoMem; // In mV(Q2) MemVdd 967 uint16_t InitVddCiMem; // In mV(Q2) VMemP 1019 uint16_t DcTol; // mV Q2 [all …]
|
H A D | smu11_driver_if_navi10.h | 50 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1) 51 #define MAX_SMNCLK_DPM_LEVEL (NUM_SMNCLK_DPM_LEVELS - 1) 52 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1) 53 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1) 54 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1) 55 #define MAX_VCLK_DPM_LEVEL (NUM_VCLK_DPM_LEVELS - 1) 56 #define MAX_DCEFCLK_DPM_LEVEL (NUM_DCEFCLK_DPM_LEVELS - 1) 57 #define MAX_DISPCLK_DPM_LEVEL (NUM_DISPCLK_DPM_LEVELS - 1) 58 #define MAX_PIXCLK_DPM_LEVEL (NUM_PIXCLK_DPM_LEVELS - 1) 59 #define MAX_PHYCLK_DPM_LEVEL (NUM_PHYCLK_DPM_LEVELS - 1) [all …]
|
H A D | smu11_driver_if_sienna_cichlid.h | 53 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1) 54 #define MAX_SMNCLK_DPM_LEVEL (NUM_SMNCLK_DPM_LEVELS - 1) 55 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1) 56 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1) 57 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1) 58 #define MAX_VCLK_DPM_LEVEL (NUM_VCLK_DPM_LEVELS - 1) 59 #define MAX_DCEFCLK_DPM_LEVEL (NUM_DCEFCLK_DPM_LEVELS - 1) 60 #define MAX_DISPCLK_DPM_LEVEL (NUM_DISPCLK_DPM_LEVELS - 1) 61 #define MAX_PIXCLK_DPM_LEVEL (NUM_PIXCLK_DPM_LEVELS - 1) 62 #define MAX_PHYCLK_DPM_LEVEL (NUM_PHYCLK_DPM_LEVELS - 1) [all …]
|
H A D | smu13_driver_if_v13_0_0.h | 78 #define FEATURE_FAN_CONTROL_BIT 30 503 uint8_t SnapToDiscrete; // 0 - Fine grained DPM, 1 - Discrete DPM 506 LinearInt_t ConversionToAvfsClk; // Transfer function to AVFS Clock (GHz->GHz) 863 uint16_t InitGfx; // In mV(Q2) , should be 0? 864 uint16_t InitSoc; // In mV(Q2) 865 uint16_t InitU; // In Mv(Q2) 919 uint16_t DcTol; // mV Q2 920 uint16_t DcBtcGb; // mV Q2 922 uint16_t DcBtcMin; // mV Q2 923 uint16_t DcBtcMax; // mV Q2 [all …]
|
/linux/drivers/cpufreq/ |
H A D | armada-37xx-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Gregory CLEMENT <gregory.clement@free-electrons.com> 24 #include "cpufreq-dt.h" 47 #define ARMADA_37XX_NB_VDD_EN BIT(30) 58 #define ARMADA_37XX_AVS_ENABLE BIT(30) 77 /* AVS value for the corresponding voltage (in mV) */ 166 * Set cpu divider based on the pre-computed array in in armada37xx_cpufreq_dvfs_setup() 187 * the round-up closest to the target voltage value. 193 /* Find out the round-up closest supported voltage value */ in armada_37xx_avs_val_match() 203 avs = ARRAY_SIZE(avs_map) - 1; in armada_37xx_avs_val_match() [all …]
|
H A D | longhaul.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2001-2004 Dave Jones. 13 * Present in Samuel 2 (steppings 1-7 only) (C5B), and Ezra (C5C). 16 * It is present in Ezra-T (C5M), Nehemiah (C5X) and above. 192 /* Dummy op - must do something useless after P_LVL3 in do_powersaver() 210 /* Dummy op - must do something useless after P_LVL3 read */ in do_powersaver() 229 /* Dummy op - must do something useless after P_LVL3 in do_powersaver() 261 if (mult == -1) in longhaul_setstate() 262 return -EINVAL; in longhaul_setstate() 266 return -EINVAL; in longhaul_setstate() [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | mediatek,mt6370-charger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/mediatek,mt6370-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiaEn Wu <chiaen_wu@richtek.com> 18 const: mediatek,mt6370-charger 34 - description: irq of "USB is plugged in" 35 - description: irq of "BC1.2 is done" 36 - description: irq of "Minimum Input Voltage Regulation loop is active" 38 interrupt-names: [all …]
|
/linux/drivers/media/pci/tw5864/ |
H A D | tw5864-reg.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * TW5864 driver - registers description 8 /* According to TW5864_datasheet_0.6d.pdf, tw5864b1-ds.pdf */ 10 /* Register Description - Direct Map Space */ 11 /* 0x0000 ~ 0x1ffc - H264 Register Map */ 76 * 0->3 4 VLC data buffer in DDR (1M each) 77 * 0->7 8 VLC data buffer in DDR (512k each) 92 /* MV Vector Valid */ 94 /* MV Flag Valid */ 147 /* DDR-DPR Burst Read Enable */ [all …]
|
/linux/drivers/regulator/ |
H A D | qcom_rpm-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 16 #include <dt-bindings/mfd/qcom-rpm.h> 27 struct request_member mV; /* used if voltage is in mV */ member 45 (((reg)->parts->fm.mask >> (reg)->parts->fm.shift) == 3) 67 .mV = { 0, 0x00000FFF, 0 }, 71 .pf = { 0, 0xC0000000, 30 }, 78 .mV = { 0, 0x00000FFF, 0 }, 82 .pf = { 0, 0xC0000000, 30 }, 100 .mV = { 0, 0x00000FFF, 0 }, [all …]
|
H A D | bd71815-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 // bd71815-regulator.c ROHM BD71815 regulator driver 21 #include <linux/mfd/rohm-generic.h> 22 #include <linux/mfd/rohm-bd71815.h> 31 10, 20, 30, 50, 70, 100, 200, 300, 500, 700, 1000, 2000, 3000, 4000, 179 return rohm_regulator_set_dvs_levels(data->dvs, np, desc, cfg->regmap); in set_hw_dvs_levels() 185 * by a control bit in register - or by HW state. If HW state specific voltages 186 * are given - then we assume HW state based control should be used. 188 * If volatge value is updated to currently selected register - then output 203 if (of_property_present(np, "rohm,dvs-run-voltage") || in buck12_set_hw_dvs_levels() [all …]
|
/linux/drivers/hwmon/pmbus/ |
H A D | adm1275.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller 116 [0] = { 27169, 0, -1 }, /* voltage */ 117 [1] = { 806, 20475, -1 }, /* current, irange25 */ 118 [2] = { 404, 20475, -1 }, /* current, irange50 */ 119 [3] = { 8549, 0, -1 }, /* power, irange25 */ 120 [4] = { 4279, 0, -1 }, /* power, irange50 */ 124 [0] = { 6770, 0, -2 }, /* voltage, vrange 60V */ 125 [1] = { 4062, 0, -2 }, /* voltage, vrange 100V */ 126 [2] = { 1326, 20480, -1 }, /* current, vsense range 15mV */ [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_ddi_buf_trans.c | 1 // SPDX-License-Identifier: MIT 53 /* Idx NT mV d T mV d db */ 126 /* Idx NT mV d T mV df db */ 362 /* Idx NT mV diff db */ 381 /* Idx NT mV diff db */ 399 /* BSpec has 2 recommended values - entries 0 and 8. 403 /* Idx NT mV diff db */ 419 .hdmi_default_entry = ARRAY_SIZE(_bxt_trans_hdmi) - 1, 424 /* NT mV Trans mV db */ 443 /* NT mV Trans mV db */ [all …]
|
/linux/drivers/power/supply/ |
H A D | 88pm860x_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 68 /* OCV -- Open Circuit Voltage */ 83 * corresponding resistor value -- Ohm / C degeree. 85 #define TBAT_NEG_25D 127773 /* -25 */ 86 #define TBAT_NEG_10D 54564 /* -10 */ 90 #define TBAT_30D 8072 /* 30 */ 140 {3760, 30}, {3754, 29}, {3750, 28}, {3749, 27}, {3744, 26}, 151 * register 1 bit[7:0] -- bit[11:4] of measured value of voltage 152 * register 0 bit[3:0] -- bit[3:0] of measured value of voltage 160 ret = pm860x_bulk_read(info->i2c, offset, 2, buf); in measure_12bit_voltage() [all …]
|
/linux/drivers/phy/marvell/ |
H A D | phy-pxa-usb.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <dt-bindings/phy/phy.h> 37 #define UTMI_CTRL_SUSPEND_SET1 (1 << 30) 42 #define UTMI_CTRL_INPKT_DELAY_SHIFT 30 162 void __iomem *base = pxa_usb_phy->base; in pxa_usb_phy_init() 165 dev_info(&phy->dev, "initializing Marvell PXA USB PHY"); in pxa_usb_phy_init() 168 if (pxa_usb_phy->version == PXA_USB_PHY_PXA910) { in pxa_usb_phy_init() 203 if (pxa_usb_phy->version == PXA_USB_PHY_PXA168) { in pxa_usb_phy_init() 205 * fixing Microsoft Altair board interface with NEC hub issue - in pxa_usb_phy_init() 230 dev_warn(&phy->dev, "calibrate timeout, UTMI_PLL %x\n", in pxa_usb_phy_init() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-adc-mt6360 | 12 Indicated MT6360 VBUS ADC with lower accuracy(+-75mA) 13 higher measure range(1~22mV) 20 Indicated MT6360 VBUS ADC with higher accuracy(+-30mA)
|
/linux/drivers/iio/accel/ |
H A D | adis16209.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer 27 /* Output, +/- 90 degrees X-axis inclination */ 30 /* Output, +/-180 vertical rotational position */ 60 /* Data-ready polarity: 1 = active high, 0 = active low */ 114 return -EINVAL; in adis16209_write_raw() 116 switch (chan->type) { in adis16209_write_raw() 122 return -EINVAL; in adis16209_write_raw() 125 return adis_write_reg_16(st, adis16209_addresses[chan->scan_index][0], in adis16209_write_raw() 145 switch (chan->type) { in adis16209_read_raw() [all …]
|