| /linux/drivers/usb/typec/ |
| H A D | pd.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/usb/pd.h> 12 #include "pd.h" 33 /* -------------------------------------------------------------------------- */ 39 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_DUAL_ROLE)); in dual_role_power_show() 46 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_SUSPEND)); in usb_suspend_supported_show() 53 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_HIGHER_CAP)); in higher_capability_show() 60 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_EXTPOWER)); in unconstrained_power_show() 67 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_USB_COMM)); in usb_communication_capable_show() 74 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_DATA_SWAP)); in dual_role_data_show() [all …]
|
| H A D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 u16 revision; member 18 struct usb_power_delivery *pd; member
|
| H A D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Type-C Connector Class 21 #include "pd.h" 29 /* ------------------------------------------------------------------------- */ 38 /* Product types defined in USB PD Specification R3.0 V2.0 */ 66 return partner->identity; in get_pd_identity() 70 return cable->identity; in get_pd_identity() 77 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type() 85 if (port->data_role == TYPEC_HOST) in get_pd_product_type() 86 ptype = product_type_ufp[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type() [all …]
|
| /linux/drivers/video/fbdev/omap/ |
| H A D | lcd_mipid.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * LCD driver for MIPI DBI-C / DCS compatible LCDs 16 #include <linux/platform_data/lcd-mipid.h> 39 int revision; member 64 BUG_ON(md->spi == NULL); in mipid_transfer() 72 x->tx_buf = &cmd; in mipid_transfer() 73 x->bits_per_word = 9; in mipid_transfer() 74 x->len = 2; in mipid_transfer() 79 x->tx_buf = wbuf; in mipid_transfer() 80 x->len = wlen; in mipid_transfer() [all …]
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | mid_bios.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * - Split functions by vbt type 10 * - Make them all take drm_device 11 * - Check ioremap failures 22 struct pci_dev *pdev = to_pci_dev(dev->dev); in mid_get_fuse_settings() 24 pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), in mid_get_fuse_settings() 48 dev_priv->iLVDS_enable = fuse_value & FB_MIPI_DISABLE; in mid_get_fuse_settings() 51 dev_priv->iLVDS_enable ? "LVDS display" : "MIPI display"); in mid_get_fuse_settings() 54 if (dev_priv->iLVDS_enable) { in mid_get_fuse_settings() 55 dev_priv->is_lvds_on = true; in mid_get_fuse_settings() [all …]
|
| /linux/drivers/input/misc/ |
| H A D | soc_button_array.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 MODULE_PARM_DESC(use_low_level_irq, "Use low-level triggered IRQ instead of edge triggered"); 52 * Some 2-in-1s which use the soc_button_array driver have this ugly issue in 53 * their DSDT where the _LID method modifies the irq-type settings of the GPIOs 57 * problematic because when re-enabling the irq, which happens whenever _LID 59 * irq-type to IRQ_TYPE_LEVEL_LOW. Where as the gpio-keys driver programs the 61 * To work around this we don't set gpio_keys_button.gpio on these 2-in-1s, 69 * Acer Switch 10 SW5-012. _LID method messes with home- and 70 * power-button GPIO IRQ settings. When (re-)enabling the irq 72 * ones, leading to an irq-type of IRQ_TYPE_LEVEL_LOW | [all …]
|
| /linux/drivers/mfd/ |
| H A D | sec-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 24 #include "sec-core.h" 27 MFD_CELL_NAME("s5m8767-pmic"), 28 MFD_CELL_NAME("s5m-rtc"), 29 MFD_CELL_OF("s5m8767-clk", NULL, NULL, 0, 0, "samsung,s5m8767-clk"), 33 MFD_CELL_NAME("s2dos05-regulator"), 37 MFD_CELL_NAME("s2mpg10-meter"), 38 MFD_CELL_NAME("s2mpg10-regulator"), 39 MFD_CELL_NAME("s2mpg10-rtc"), 40 MFD_CELL_OF("s2mpg10-clk", NULL, NULL, 0, 0, "samsung,s2mpg10-clk"), [all …]
|
| H A D | wm8994-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8994-core.c -- Device access for Wolfson WM8994 31 .name = "wm8994-ldo", 36 .name = "wm8994-ldo", 60 .name = "wm8994-codec", 66 .name = "wm8994-gpio", 119 switch (wm8994->type) { in wm8994_suspend() 136 if (!wm8994->ldo_ena_always_driven) in wm8994_suspend() 147 regcache_mark_dirty(wm8994->regmap); in wm8994_suspend() 152 ret = regcache_sync_region(wm8994->regmap, WM8994_GPIO_1, in wm8994_suspend() [all …]
|
| /linux/drivers/pinctrl/mediatek/ |
| H A D | pinctrl-mtk-common-v2.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <dt-bindings/pinctrl/mt65xx.h> 19 #include "mtk-eint.h" 20 #include "pinctrl-mtk-common-v2.h" 23 * struct mtk_drive_desc - the structure that holds the information 30 * formula: output = ((input) / step - 1) * scal 50 writel_relaxed(val, pctl->base[i] + reg); in mtk_w32() 55 return readl_relaxed(pctl->base[i] + reg); in mtk_r32() 63 spin_lock_irqsave(&pctl->lock, flags); in mtk_rmw() 70 spin_unlock_irqrestore(&pctl->lock, flags); in mtk_rmw() [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-facebook-bletchley.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/usb/pd.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/i2c/i2c.h> 14 compatible = "facebook,bletchley-bmc", "aspeed,ast2600"; 29 iio-hwmon { [all …]
|
| /linux/arch/x86/kernel/cpu/microcode/ |
| H A D | amd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2008-2011 Advanced Micro Devices Inc. 9 * 2013-2018 Borislav Petkov <bp@alien8.de> 146 * 2. To match which patches to load because the patch revision ID 163 struct patch_digest *pd = (struct patch_digest *)elem; in cmp_id() local 166 if (patch_id == pd->patch_id) in cmp_id() 168 else if (patch_id < pd->patch_id) in cmp_id() 169 return -1; in cmp_id() 193 pr_info_once("No current revision, generating the lowest one: 0x%x\n", cur_rev); in need_sha_check() 231 …pr_info("You should not be seeing this. Please send the following couple of lines to x86-<at>-kern… in need_sha_check() [all …]
|
| /linux/include/dt-bindings/usb/ |
| H A D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 64 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */ 89 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 99 * -------------------- 107 * <15:0> :: USB-IF assigned VID for this cable vendor 110 /* PD Rev2.0 definition */ 139 * ------------- 140 * <31:0> : USB-IF assigned XID for this cable 146 * ----------- 153 * UFP VDO (PD Revision 3.0+ only) [all …]
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 26 #include <linux/usb/pd.h> 213 VDM_STATE_ERR_BUSY = -3, 214 VDM_STATE_ERR_SEND = -2, 215 VDM_STATE_ERR_TMOUT = -1, 244 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 309 struct usb_power_delivery *pd; member 446 /* USB PD objects */ 491 /* PD state for Vendor Defined Messages */ [all …]
|
| /linux/include/linux/usb/ |
| H A D | pd_vdo.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2015-2017 Google, Inc 9 #include "pd.h" 22 * ---------- 27 * <10:8> :: object position (1-7 valid ... used for enter/exit mode only) 86 * SVDM Identity request -> response 112 * -------------------- 120 * <15:0> :: USB-IF assigned VID for this cable vendor 123 /* PD Rev2.0 definition */ 163 * ------------- [all …]
|
| /linux/drivers/hsi/controllers/ |
| H A D | omap_ssi_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <linux/dma-mapping.h> 42 struct hsi_controller *ssi = m->private; in ssi_regs_show() 44 void __iomem *sys = omap_ssi->sys; in ssi_regs_show() 46 pm_runtime_get_sync(ssi->device.parent); in ssi_regs_show() 47 seq_printf(m, "REVISION\t: 0x%08x\n", readl(sys + SSI_REVISION_REG)); in ssi_regs_show() 50 pm_runtime_put(ssi->device.parent); in ssi_regs_show() 57 struct hsi_controller *ssi = m->private; in ssi_gdd_regs_show() 59 void __iomem *gdd = omap_ssi->gdd; in ssi_gdd_regs_show() 60 void __iomem *sys = omap_ssi->sys; in ssi_gdd_regs_show() [all …]
|
| /linux/drivers/net/ethernet/broadcom/genet/ |
| H A D | bcmmii.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014-2025 Broadcom 24 #include <linux/platform_data/mdio-bcm-unimac.h> 31 struct phy_device *phydev = dev->phydev; in bcmgenet_mac_config() 36 if (phydev->speed == SPEED_1000) in bcmgenet_mac_config() 38 else if (phydev->speed == SPEED_100) in bcmgenet_mac_config() 45 if (phydev->duplex != DUPLEX_FULL) { in bcmgenet_mac_config() 50 if (priv->autoneg_pause) { in bcmgenet_mac_config() 53 if (phydev->autoneg) in bcmgenet_mac_config() 63 if (!priv->rx_pause) in bcmgenet_mac_config() [all …]
|
| /linux/arch/alpha/kernel/ |
| H A D | setup.c | 1 // SPDX-License-Identifier: GPL-2.0 100 * "srmcons" - early callback prints 101 * "console=srm" - full callback based console, including early prints 137 * i386-setup code. This is just enough to make the console 228 for (hose = hose_head; hose; hose = hose->next) in reserve_std_resources() 229 if (hose->index == 0) { in reserve_std_resources() 230 io = hose->io_space; in reserve_std_resources() 241 for ((_cluster) = (memdesc)->cluster, (i) = 0; \ 242 (i) < (memdesc)->numclusters; (i)++, (_cluster)++) 271 size = initrd_end - initrd_start; in move_initrd() [all …]
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun8i-v3s-netcube-kumquat.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include "sun8i-v3s.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/gpio/gpio.h> 15 compatible = "netcube,kumquat", "allwinner,sun8i-v3s"; 25 stdout-path = "serial0:115200n8"; 29 clk_can0: clock-can0 { 30 compatible = "fixed-clock"; [all …]
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_hw_v2.c | 2 * Copyright (c) 2016-2017 Hisilicon Limited. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 100 dseg->lkey = cpu_to_le32(sg->lkey); in set_data_seg_v2() 101 dseg->addr = cpu_to_le64(sg->addr); in set_data_seg_v2() 102 dseg->len = cpu_to_le32(sg->length); in set_data_seg_v2() 106 * mapped-value = 1 + real-value 134 return hns_roce_op_code[ib_opcode] ? hns_roce_op_code[ib_opcode] - 1 : in to_hr_opcode() 143 struct hns_roce_mr *mr = to_hr_mr(wr->mr); in set_frmr_seg() 149 wr->access & IB_ACCESS_REMOTE_ATOMIC); in set_frmr_seg() [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | qcom_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 39 * struct minidump_region - Minidump region 55 * struct minidump_subsystem - Subsystem's SMEM Table of content 73 * struct minidump_global_toc - Global Table of Content 75 * @md_revision : Minidump revision 99 list_for_each_entry_safe(entry, tmp, &rproc->dump_segments, node) { in qcom_minidump_cleanup() 100 list_del(&entry->node); in qcom_minidump_cleanup() 101 kfree(entry->priv); in qcom_minidump_cleanup() 117 if (WARN_ON(!list_empty(&rproc->dump_segments))) { in qcom_add_minidump_segments() [all …]
|
| /linux/arch/m68k/include/asm/ |
| H A D | MC68328.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /* include/asm-m68knommu/MC68328.h: '328 control registers 8 * Based on include/asm-m68knommu/MC68332.h 26 * 0xFFFFF0xx -- System Control 36 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */ 39 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */ 42 #define SCR_BETO 0x80 /* Bus-Error TimeOut */ 45 * Mask Revision Register 52 * 0xFFFFF1xx -- Chip-Select logic 58 * 0xFFFFF2xx -- Phase Locked Loop (PLL) & Power Control [all …]
|
| H A D | MC68EZ328.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /* include/asm-m68knommu/MC68EZ328.h: 'EZ328 control registers 8 * Based on include/asm-m68knommu/MC68332.h 27 * 0xFFFFF0xx -- System Control 37 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */ 40 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */ 43 #define SCR_BETO 0x80 /* Bus-Error TimeOut */ 46 * Silicon ID Register (Mask Revision Register (MRR) for '328 Compatibility) 53 * 0xFFFFF1xx -- Chip-Select logic 84 #define CSA_EN 0x0001 /* Chip-Select Enable */ [all …]
|
| /linux/arch/arm/common/ |
| H A D | sa1111.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include <linux/dma-map-ops.h> 30 #include <asm/mach-types.h> 107 int irq_base; /* base for cascaded on-chip IRQs */ 199 return irq_create_mapping(sachip->irqdomain, hwirq); in sa1111_map_irq() 212 void __iomem *mapbase = sachip->base + SA1111_INTC; in sa1111_irq_handler() 219 desc->irq_data.chip->irq_ack(&desc->irq_data); in sa1111_irq_handler() 228 irqdomain = sachip->irqdomain; in sa1111_irq_handler() 238 /* For level-based interrupts */ in sa1111_irq_handler() 239 desc->irq_data.chip->irq_unmask(&desc->irq_data); in sa1111_irq_handler() [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | mcdi_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2009-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 13 /* Power-on reset state */ 35 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 38 /* The rest of these are firmware-defined */ 46 /* Values to be written to the per-port status dword in shared 71 * | | \--- Response 72 * | \------- Error 73 * \------------------------------ Resync (always set) [all …]
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_typec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #define DRV_NAME "cros-ec-typec" 36 switch_fwnode = fwnode_find_reference(fwnode, "usb-role-switch", 0); in cros_typec_role_switch_quirk() 40 if (adev && !adev->pld_crc) in cros_typec_role_switch_quirk() 41 adev->pld_crc = to_acpi_device_node(fwnode)->pld_crc; in cros_typec_role_switch_quirk() 51 .port = port->port_num, in cros_typec_enter_usb_mode() 57 return cros_ec_cmd(port->typec_data->ec, 0, EC_CMD_TYPEC_CONTROL, in cros_typec_enter_usb_mode() 64 struct cros_typec_data *data = port->typec_data; in cros_typec_perform_role_swap() 70 if (!data->pd_ctrl_ver) in cros_typec_perform_role_swap() 71 return -EOPNOTSUPP; in cros_typec_perform_role_swap() [all …]
|