/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 1 // SPDX-License-Identifier: GPL-2.0 77 * ice_sect_id - returns section ID 90 * ice_hw_ptype_ena - check if the PTYPE is enabled or not 97 test_bit(ptype, hw->hw_ptype); in ice_hw_ptype_ena() 112 * ice_gen_key_word - generate 16-bits of a key/mask word 120 * This function generates 16-bits from a 8-bit value, an 8-bit don't care mask 121 * and an 8-bit never match mask. The 16-bits of output are divided into 8 bits 133 * ------------------------------ 145 return -EIO; in ice_gen_key_word() 150 /* encode the 8 bits into 8-bit key and 8-bit key invert */ in ice_gen_key_word() [all …]
|
/linux/drivers/power/supply/ |
H A D | max14577_charger.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max14577_charger.c - Battery charger driver for the Maxim 14577/77836 11 #include <linux/mfd/max14577-private.h> 47 static int max14577_get_charger_state(struct max14577_charger *chg, int *val) in max14577_get_charger_state() argument 49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state() 55 * - CHGCTRL2/MBCHOSTEN == 1 in max14577_get_charger_state() 56 * - STATUS2/CGMBC == 1 in max14577_get_charger_state() 59 * - handle FULL after Top-off timer (EOC register may be off in max14577_get_charger_state() 61 * - handle properly dead-battery charging (respect timer) in max14577_get_charger_state() 62 * - handle timers (fast-charge and prequal) /MBCCHGERR/ in max14577_get_charger_state() [all …]
|
H A D | da9052-battery.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 171 int status; member 190 if (bat->status == POWER_SUPPLY_STATUS_DISCHARGING) in da9052_read_chgend_current() 191 return -EINVAL; in da9052_read_chgend_current() 193 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_END_REG); in da9052_read_chgend_current() 206 if (bat->status == POWER_SUPPLY_STATUS_DISCHARGING) in da9052_read_chg_current() 207 return -EINVAL; in da9052_read_chg_current() 209 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_AV_REG); in da9052_read_chg_current() 218 static int da9052_bat_check_status(struct da9052_battery *bat, int *status) in da9052_bat_check_status() argument 233 ret = da9052_group_read(bat->da9052, DA9052_STATUS_A_REG, 2, v); in da9052_bat_check_status() [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | pm8226.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/input/linux-event-codes.h> 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/spmi/spmi.h> 8 thermal-zones { 9 pm8226-thermal { 10 polling-delay-passive = <100>; 11 polling-delay = <0>; 12 thermal-sensors = <&pm8226_temp>; [all …]
|
H A D | pm8941.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/interrupt-controller/irq.h> 4 #include <dt-bindings/spmi/spmi.h> 8 thermal-zones { 9 pm8941-thermal { 10 polling-delay-passive = <100>; 11 polling-delay = <0>; 12 thermal-sensors = <&pm8941_temp>; 40 compatible = "qcom,pm8941", "qcom,spmi-pmic"; [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | maxim,max8903.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 19 dok-gpios: 23 uok-gpios: 27 cen-gpios: 31 chg-gpios: 33 description: Charger status pin (active low, input) [all …]
|
H A D | charger-manager.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 18 const: charger-manager 20 cm-chargers: 22 $ref: /schemas/types.yaml#/definitions/string-array 24 cm-num-chargers: 28 cm-fuel-gauge: [all …]
|
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio-pca95xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/gpio-pca95xx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 19 - items: 20 - const: toradex,ecgpiol16 21 - const: nxp,pcal6416 22 - items: 23 - const: diodes,pi4ioe5v6534q [all …]
|
/linux/sound/pci/echoaudio/ |
H A D | echoaudio_dsp.h | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 41 /**** Echo24: Gina24, Layla24, Mona, Mia, Mia-midi ****/ 81 * These are the offsets for the memory-mapped DSP registers; the DSP base 133 #define MIDI_IN_SKIP_DATA (-1) 136 /*---------------------------------------------------------------------------- 151 -Set the clock select bits in the control register to 0xe (see the #define 154 -Set double-speed mode if you want to use sample rates above 50 kHz [all …]
|
/linux/drivers/scsi/sym53c8xx_2/ |
H A D | sym_hipd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * of PCI-SCSI IO processors. 6 * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr> 7 * Copyright (c) 2003-2005 Matthew Wilcox <matthew@wil.cx> 10 * Copyright (C) 1998-2000 Gerard Roudier 13 * a port of the FreeBSD ncr driver to Linux-1.2.13. 17 * Stefan Esser <se@mi.Uni-Koeln.de> 25 *----------------------------------------------------------------------------- 55 while (n-- > 0) in sym_printl_hex() 62 sym_print_addr(cp->cmd, "%s: ", label); in sym_print_msg() [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6sl-kobo-aura2.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Name on mainboard is: 37NB-E60QL0+4B1 11 /dts-v1/; 13 #include <dt-bindings/input/input.h> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/leds/common.h> 28 stdout-path = &uart1; 31 gpio_keys: gpio-keys { 32 compatible = "gpio-keys"; 33 pinctrl-names = "default"; [all …]
|
/linux/sound/soc/codecs/ |
H A D | pcm6240.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (C) 2022 - 2024 Texas Instruments Incorporated 12 // Author: Shenghao Ding <shenghao-ding@ti.com> 500 -10000, 2700); 502 -12750, 0); 504 -25500, 0); 506 -11450, 2000); 508 -1005 1233 pcmdevice_add_config(void * ctxt,const unsigned char * config_data,unsigned int config_size,int * status) pcmdevice_add_config() argument [all...] |
/linux/mm/ |
H A D | hugetlb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 56 #include <linux/page-isolation.h> 140 if (spool->count) in subpool_is_free() 142 if (spool->max_hpages != -1) in subpool_is_free() 143 return spool->used_hpages == 0; in subpool_is_free() 144 if (spool->min_hpages != -1) in subpool_is_free() 145 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free() 153 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool() 159 if (spool->min_hpages != -1) in unlock_or_release_subpool() 160 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool() [all …]
|
/linux/drivers/mfd/ |
H A D | tps65010.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * tps65010 - driver for tps6501x power management chips 6 * Copyright (C) 2004-2005 David Brownell 28 /*-------------------------------------------------------------------------*/ 38 /*-------------------------------------------------------------------------*/ 46 * to tps65010 and tps65012. The tps65013 has a NO_CHG status/irq. 48 * battery-insert != device-on. 85 /*-------------------------------------------------------------------------*/ 185 struct tps65010 *tps = s->private; in dbg_show() 191 switch (tps->model) { in dbg_show() [all …]
|
/linux/arch/arm64/boot/dts/hisilicon/ |
H A D | hi3660-hikey960.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 12 #include "hikey960-pinctrl.dtsi" 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/interrupt-controller/irq.h> 16 #include <dt-bindings/usb/pd.h> 20 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660"; 35 stdout-path = "serial6:115200n8"; 44 reserved-memory { [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-orangepi.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "dt-bindings/pwm/pwm.h" 9 #include "dt-bindings/input/input.h" 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include "dt-bindings/usb/pd.h" 16 compatible = "xunlong,rk3399-orangepi", "rockchip,rk3399"; 26 stdout-path = "serial2:1500000n8"; 29 clkin_gmac: external-gmac-clock { 30 compatible = "fixed-clock"; [all …]
|
H A D | rk3399-base.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/rk3399-cru.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/power/rk3399-power.h> 12 #include <dt-bindings/thermal/thermal.h> 17 interrupt-parent = <&gic>; 18 #address-cells = <2>; [all …]
|
/linux/drivers/extcon/ |
H A D | extcon-max8997.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // extcon-max8997.c - MAX8997 extcon driver to support MAX8997 MUIC 8 #include <linux/devm-helpers.h> 18 #include <linux/mfd/max8997-private.h> 19 #include <linux/extcon-provider.h> 22 #define DEV_NAME "max8997-muic" 39 { MAX8997_MUICIRQ_ADCError, "muic-ADCERROR" }, 40 { MAX8997_MUICIRQ_ADCLow, "muic-ADCLOW" }, 41 { MAX8997_MUICIRQ_ADC, "muic-ADC" }, 42 { MAX8997_MUICIRQ_VBVolt, "muic-VBVOLT" }, [all …]
|
/linux/drivers/scsi/ |
H A D | ncr53c8xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 ** Device driver for the PCI-SCSI NCR538XX controller family. 8 **----------------------------------------------------------------------------- 22 ** Stefan Esser <se@mi.Uni-Koeln.de> 27 **----------------------------------------------------------------------------- 38 ** Support for Fast-20 scsi. 42 ** Support for Fast-40 scsi. 43 ** Support for on-Board RAM. 46 ** Full support for scsi scripts instructions pre-fetching. 57 ** Low PCI traffic for command handling when on-chip RAM is present. [all …]
|
H A D | esp_scsi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #define ESP_STATUS 0x04UL /* ro ESP status register 0x10 */ 40 /* ESP config reg 1, read-write, found on all ESP chips */ 48 /* ESP config reg 2, read-write, found only on esp100a+esp200+esp236 chips */ 52 #define ESP_CONFIG2_SCSI2ENAB 0x08 /* Enable SCSI-2 features (tgtmode) */ 55 #define ESP_CONFIG2_BCM 0x20 /* Enable byte-ctrl (236) */ 58 #define ESP_CONFIG2_SPL 0x40 /* Enable status-phase latch (236) */ 63 /* ESP config register 3 read-write, found only esp236+fas236+fas100a+hme chips */ 65 #define ESP_CONFIG3_TEM 0x01 /* Enable thresh-8 mode (esp/fas236) */ 67 #define ESP_CONFIG3_ADMA 0x02 /* Enable alternate-dma (esp/fas236) */ [all …]
|
/linux/drivers/iio/adc/ |
H A D | qcom-spmi-rradc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2016-2017, 2019, The Linux Foundation. All rights reserved. 28 #include <soc/qcom/qcom-spmi-pmic.h> 30 #define DRIVER_NAME "qcom-spmi-rradc" 219 * struct rradc_channel - rradc channel data 222 * @status: Channel status address 232 u8 status; member 263 dev_err(chip->dev, in rradc_read() 266 return -EINVAL; in rradc_read() 270 ret = regmap_bulk_read(chip->regmap, chip->base + addr, buf, in rradc_read() [all …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8395-genio-1200-evk.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 14 #include <dt-bindings/pinctrl/mt8195-pinfunc.h> 15 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h> 16 #include <dt-bindings/spmi/spmi.h> 17 #include <dt-bindings/usb/pd.h> 20 model = "MediaTek Genio 1200 EVK-P1V2-EMMC"; [all …]
|
/linux/drivers/usb/serial/ |
H A D | io_usbvend.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 4 * USBVEND.H Vendor-specific USB definitions 7 * must be kept backward-compatible with older firmware. 34 // We break the USB-defined PID into an OEM Id field (upper 6 bits) 40 // ION-device OEM IDs 50 // ION-device Device IDs 51 // Product IDs - assigned to match middle digit of serial number (No longer true) 77 // ION_DEVICE_ID_EDGEPORT_8_HANDBUILT 0x009 // Hand-built Edgeport/8 (Placeholder, used in middle d… 83 #define ION_DEVICE_ID_EDGEPORT_8 0x00F // Edgeport/8 (single-CPU) 88 #define ION_DEVICE_ID_EDGEPORT_8I 0x014 // Edgeport/8 RS422 (single-CPU) [all …]
|
/linux/drivers/ata/ |
H A D | sata_sil.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * sata_sil.c - Silicon Image SATA 6 * Please ALWAYS copy linux-ide@vger.kernel.org 9 * Copyright 2003-2005 Red Hat, Inc. 13 * as Documentation/driver-api/libata.rst 16 * http://gkernel.sourceforge.net/specs/sii/3112A_SiI-DS-0095-B2.pdf.bz2 78 SIL_DMA_RDWR = (1 << 3), /* DMA Rd-Wr */ 127 /* TODO firmware versions should be added - eric */ 218 /* per-port register offsets */ 241 MODULE_DESCRIPTION("low-level driver for Silicon Image SATA controller"); [all …]
|
/linux/drivers/message/fusion/ |
H A D | mptbase.h | 8 * Copyright (c) 1999-2008 LSI Corporation 9 * (mailto:DL-MPTFusionLinux@lsi.com) 12 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 26 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 45 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 50 /*{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 69 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 76 #define COPYRIGHT "Copyright (c) 1999-2008 " MODULEAUTHOR 80 #define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.04.20" 86 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ [all …]
|