/linux-6.15/drivers/usb/typec/ ! |
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 …]
|
D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 u16 revision; member 18 struct usb_power_delivery *pd; member
|
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-6.15/include/linux/usb/ ! |
D | typec.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 /* USB Type-C Specification releases */ 102 * struct enter_usb_data - Enter_USB Message details 106 * @active_link_training is a flag that should be set with uni-directional SBRX 107 * communication, and left 0 with passive cables and with bi-directional SBRX 116 * struct usb_pd_identity - USB Power Delivery identity data 138 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor 141 * @vdo: VDO returned by Discover Modes USB PD command 192 * struct typec_plug_desc - USB Type-C Cable Plug Descriptor 196 * Represents USB Type-C Cable Plug. [all …]
|
D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2015-2017 Google, Inc 13 /* USB PD Messages */ 29 /* 14-15 Reserved */ 36 /* 22-23 Reserved */ 38 /* 25-31 Reserved */ 51 /* 9-11 Reserved */ 53 /* 13-14 Reserved */ 55 /* 16-31 Reserved */ 74 /* 15-31 Reserved */ [all …]
|
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-6.15/Documentation/devicetree/bindings/connector/ ! |
D | usb-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 20 - enum: 21 - usb-a-connector 22 - usb-b-connector 23 - usb-c-connector 25 - items: [all …]
|
/linux-6.15/drivers/video/fbdev/omap/ ! |
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-6.15/drivers/gpu/drm/gma500/ ! |
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-6.15/Documentation/devicetree/bindings/usb/ ! |
D | maxim,max33359.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Maxim TCPCI Type-C PD controller 10 - Badhri Jagan Sridharan <badhri@google.com> 12 description: Maxim TCPCI Type-C PD controller 17 - enum: 18 - maxim,max33359 19 - items: 20 - const: maxim,max77759-tcpci [all …]
|
/linux-6.15/drivers/input/misc/ ! |
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-6.15/drivers/platform/chrome/ ! |
D | cros_ec_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 #define DRV_NAME "cros-ec-sysfs" 32 "ro|rw|cancel|cold|disable-jump|hibernate|cold-ap-off"); in reboot_show() 33 count += sysfs_emit_at(buf, count, " [at-shutdown]\n"); in reboot_show() 49 {"cold-ap-off", EC_REBOOT_COLD_AP_OFF, 0}, in reboot_store() 51 {"disable-jump", EC_REBOOT_DISABLE_JUMP, 0}, in reboot_store() 53 {"at-shutdown", -1, EC_REBOOT_FLAG_ON_AP_SHUTDOWN}, in reboot_store() 64 return -ENOMEM; in reboot_store() 66 param = (struct ec_params_reboot_ec *)msg->data; in reboot_store() 68 param->flags = 0; in reboot_store() [all …]
|
/linux-6.15/drivers/pinctrl/mediatek/ ! |
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-6.15/arch/x86/kernel/cpu/microcode/ ! |
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() 211 …pr_info("You should not be seeing this. Please send the following couple of lines to x86-<at>-kern… in need_sha_check() 212 pr_info("CPUID(1).EAX: 0x%x, current revision: 0x%x\n", bsp_cpuid_1_eax, cur_rev); in need_sha_check() [all …]
|
/linux-6.15/include/dt-bindings/usb/ ! |
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-6.15/drivers/usb/typec/tcpm/ ! |
D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 26 #include <linux/usb/pd.h> 212 VDM_STATE_ERR_BUSY = -3, 213 VDM_STATE_ERR_SEND = -2, 214 VDM_STATE_ERR_TMOUT = -1, 243 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 308 struct usb_power_delivery *pd; member 441 /* USB PD objects */ 486 /* PD state for Vendor Defined Messages */ [all …]
|
/linux-6.15/drivers/mfd/ ! |
D | sec-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 29 { .name = "s5m8767-pmic", }, 30 { .name = "s5m-rtc", }, 32 .name = "s5m8767-clk", 33 .of_compatible = "samsung,s5m8767-clk", 38 { .name = "s2dos05-regulator", }, 42 { .name = "s2mps11-regulator", }, 43 { .name = "s2mps14-rtc", }, 45 .name = "s2mps11-clk", 46 .of_compatible = "samsung,s2mps11-clk", [all …]
|
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-6.15/drivers/hsi/controllers/ ! |
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-6.15/drivers/net/ethernet/broadcom/genet/ ! |
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-6.15/drivers/staging/sm750fb/ ! |
D | ddk750_sii164.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 59 * Device Revision 74 /* Power down (PD) */ 139 /* De-skewing Enable bit (DKEN) */ 143 /* De-skewing Setting (DK[3:1])*/
|
/linux-6.15/drivers/cdx/ ! |
D | cdx.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 16 * the FPGA program manager and the APUs. The RPU provides memory-mapped 21 * +--------------------------------------+ 30 * +-----------------------------|--------+ 34 * +------------------------| RPU if |----+ 39 * +--------------------------------------+ 41 * +---------------------|----------------+ 43 * | +-----------------------+ | 45 * | +-------+ +-------+ +-------+ | [all …]
|
/linux-6.15/arch/alpha/kernel/ ! |
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-6.15/arch/arm/boot/dts/allwinner/ ! |
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-6.15/drivers/infiniband/hw/hns/ ! |
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 98 dseg->lkey = cpu_to_le32(sg->lkey); in set_data_seg_v2() 99 dseg->addr = cpu_to_le64(sg->addr); in set_data_seg_v2() 100 dseg->len = cpu_to_le32(sg->length); in set_data_seg_v2() 104 * mapped-value = 1 + real-value 132 return hns_roce_op_code[ib_opcode] ? hns_roce_op_code[ib_opcode] - 1 : in to_hr_opcode() 141 struct hns_roce_mr *mr = to_hr_mr(wr->mr); in set_frmr_seg() 145 hr_reg_write_bool(fseg, FRMR_BIND_EN, wr->access & IB_ACCESS_MW_BIND); in set_frmr_seg() [all …]
|