/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | bq24257.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Bq24250, bq24251 and bq24257 Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24250 20 - ti,bq24251 21 - ti,bq24257 29 ti,battery-regulation-voltage: [all …]
|
H A D | bq2415x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI bq2415x Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24150 20 - ti,bq24150a 21 - ti,bq24151 22 - ti,bq24151a [all …]
|
H A D | bq25890.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - enum: 20 - ti,bq25890 21 - items: 22 - enum: [all …]
|
H A D | sc2731-charger.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/sc2731-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 17 const: sprd,sc2731-charger 26 monitored-battery: 29 - charge-term-current-microamp: current for charge termination phase. 30 - constant-charge-voltage-max-microvolt: maximum constant input voltage.
|
H A D | richtek,rt9467.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 11 - ChiaEn Wu <chiaen_wu@richtek.com> 14 RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for 16 MOSFETs, input current sensing and regulation, high-accuracy voltage 17 regulation, and charge termination. The charge current is regulated through 20 The RT9467 also features USB On-The-Go (OTG) support. It also integrates 21 D+/D- pin for USB host/charging port detection. [all …]
|
H A D | rohm,bd99954.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Matti Vaittinen <mazziesaccount@gmail.com> 11 - Markus Laine <markus.laine@fi.rohmeurope.com> 12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com> 15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion 16 secondary battery intended to be used in space-constraint equipment such 18 provides a Dual-source Battery Charger, two port BC1.2 detection and a 21 $ref: power-supply.yaml# [all …]
|
H A D | battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 14 In smart batteries, these are typically stored in non-volatile memory 16 no appropriate non-volatile memory, or it is unprogrammed/incorrect. 27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle. 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery 34 device-chemistry: [all …]
|
/linux/include/linux/power/ |
H A D | bq2415x_charger.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org> 14 * value is -1 then default chip value (specified in datasheet) will be 18 * termination current. If it is less or equal to zero, configuring charge 19 * and termination current will not be possible. 23 * POWER_SUPPLY_PROP_CURRENT_MAX when current changed. 26 /* Supported modes with maximal current limit */
|
/linux/include/linux/ |
H A D | prime_numbers.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * for_each_prime_number - iterate over each prime upto a value 12 * @prime: the current prime number in this iteration 16 * the @max value. On each iteration, @prime is set to the current prime number. 17 * @max should be less than ULONG_MAX to ensure termination. To begin with 25 * for_each_prime_number_from - iterate over each prime upto a value 26 * @prime: the current prime number in this iteration 31 * @max value. On each iteration, @prime is set to the current prime number. 33 * termination.
|
H A D | scatterlist.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 #define sg_dma_address(sg) ((sg)->dma_address) 34 #define sg_dma_len(sg) ((sg)->dma_length) 36 #define sg_dma_len(sg) ((sg)->length) 73 * Those low bits are there for everyone! (thanks mason :-) 79 return sg->page_link & SG_PAGE_LINK_MASK; in __sg_flags() 84 return (struct scatterlist *)(sg->page_link & ~SG_PAGE_LINK_MASK); in sg_chain_ptr() 98 * sg_next - return the next scatterlist entry in a list 99 * @sg: The current sg entry 120 * sg_assign_page - Assign a given page to an SG entry [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_pxp.c | 1 // SPDX-License-Identifier: MIT 41 * timeout for activation where only one of those is involved. Termination 50 return xe->info.has_pxp && IS_ENABLED(CONFIG_INTEL_MEI_GSC_PROXY); in xe_pxp_is_supported() 60 struct xe_gt *gt = pxp->gt; in pxp_prerequisites_done() 77 ready = xe_huc_is_authenticated(>->uc.huc, XE_HUC_AUTH_VIA_GSC) && in pxp_prerequisites_done() 78 xe_gsc_proxy_init_done(>->uc.gsc); in pxp_prerequisites_done() 86 * xe_pxp_get_readiness_status - check whether PXP is ready for userspace use 100 return -ENODEV; in xe_pxp_get_readiness_status() 103 if (xe_uc_fw_status_to_error(pxp->gt->uc.huc.fw.status) || in xe_pxp_get_readiness_status() 104 xe_uc_fw_status_to_error(pxp->gt->uc.gsc.fw.status)) in xe_pxp_get_readiness_status() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch_offloads_termtbl.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 26 hash = jhash_1word(flow_act->action, 0); in mlx5_eswitch_termtbl_hash() 27 hash = jhash((const void *)&flow_act->vlan, in mlx5_eswitch_termtbl_hash() 28 sizeof(flow_act->vlan), hash); in mlx5_eswitch_termtbl_hash() 29 hash = jhash((const void *)&dest->vport.num, in mlx5_eswitch_termtbl_hash() 30 sizeof(dest->vport.num), hash); in mlx5_eswitch_termtbl_hash() 31 hash = jhash((const void *)&dest->vport.vhca_id, in mlx5_eswitch_termtbl_hash() 32 sizeof(dest->vport.num), hash); in mlx5_eswitch_termtbl_hash() 33 if (flow_act->pkt_reformat) in mlx5_eswitch_termtbl_hash() 34 hash = jhash(flow_act->pkt_reformat, in mlx5_eswitch_termtbl_hash() [all …]
|
/linux/drivers/scsi/ |
H A D | advansys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * advansys.c - Linux Host Driver for AdvanSys SCSI Adapters 5 * Copyright (c) 1995-2000 Advanced System Products, Inc. 6 * Copyright (c) 2000-2001 ConnectCom Solutions, Inc. 34 #include <linux/dma-mapping.h> 109 #define ASC_CHIP_LATEST_VER_EISA ((ASC_CHIP_MIN_VER_EISA - 1) + 3) 125 * Narrow boards only support 12-byte commands, while wide boards 126 * extend to 16-byte commands. 391 #define ASC_IERR_BIST_PRE_TEST 0x0800 /* BIST pre-test error */ 412 * is Ultra-capable or not. These tables let us convert from one to the other. [all …]
|
/linux/Documentation/driver-api/dmaengine/ |
H A D | client.rst | 8 ``Documentation/crypto/async-tx-api.rst`` 11 Below is a guide to device driver writers on how to use the Slave-DMA API of the 19 - Allocate a DMA slave channel 21 - Set slave and controller specific parameters 23 - Get a descriptor for transaction 25 - Submit the transaction 27 - Issue pending requests and wait for callback notification 40 .. code-block:: c 66 .. code-block:: c 79 DMA-engine are: [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, 91 * Initial current capability of the new source when vSafe5V is applied. 99 * -------------------- 107 * <15:0> :: USB-IF assigned VID for this cable vendor 139 * ------------- 140 * <31:0> : USB-IF assigned XID for this cable 146 * ----------- 154 * -------- [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 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 163 * ------------- 164 * <31:0> : USB-IF assigned XID for this cable 171 * ----------- [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-cht-wc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) 2011 - 2014 Intel Corporation. All rights reserved. 62 mutex_lock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler() 65 ret = regmap_read(adap->regmap, CHT_WC_EXTCHGRIRQ, ®); in cht_wc_i2c_adap_thread_handler() 67 dev_err(&adap->adapter.dev, "Error reading extchgrirq reg\n"); in cht_wc_i2c_adap_thread_handler() 68 mutex_unlock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler() 72 reg &= ~adap->irq_mask; in cht_wc_i2c_adap_thread_handler() 75 ret = regmap_read(adap->regmap, CHT_WC_I2C_RDDATA, &adap->read_data); in cht_wc_i2c_adap_thread_handler() 77 adap->io_error = true; in cht_wc_i2c_adap_thread_handler() 81 * handling the previous ones our irq will re-trigger when we're done. in cht_wc_i2c_adap_thread_handler() [all …]
|
/linux/drivers/scsi/aic7xxx/ |
H A D | aic79xx_pci.c | 5 * Copyright (c) 1994-2001 Justin T. Gibbs. 6 * Copyright (c) 2000-2002 Adaptec Inc. 20 * 3. Neither the names of the above-listed copyright holders nor the names 220 "PCI-X 101-133MHz", 221 "PCI-X 67-100MHz", 222 "PCI-X 50-66MHz", 278 if (entry->full_id == (full_id & entry->id_mask)) { in ahd_find_pci_device() 280 if (entry->name == NULL) in ahd_find_pci_device() 296 ahd->description = entry->name; in ahd_pci_config() 300 subvendor = ahd_pci_read_config(ahd->dev_softc, in ahd_pci_config() [all …]
|
H A D | aic7xxx_pci.c | 6 * Copyright (c) 1994-2001 Justin T. Gibbs. 7 * Copyright (c) 2000-2001 Adaptec Inc. 21 * 3. Neither the names of the above-listed copyright holders nor the names 346 "Adaptec AAA-131 Ultra2 RAID adapter", 694 if (entry->full_id == (full_id & entry->id_mask)) { in ahc_find_pci_device() 696 if (entry->name == NULL) in ahc_find_pci_device() 717 error = entry->setup(ahc); in ahc_pci_config() 720 ahc->chip |= AHC_PCI; in ahc_pci_config() 721 ahc->description = entry->name; in ahc_pci_config() 723 pci_set_power_state(ahc->dev_softc, AHC_POWER_STATE_D0); in ahc_pci_config() [all …]
|
H A D | aic79xx.h | 4 * Copyright (c) 1994-2002 Justin T. Gibbs. 5 * Copyright (c) 2000-2002 Adaptec Inc. 19 * 3. Neither the names of the above-listed copyright holders nor the names 78 SCSIID_OUR_ID((scb)->hscb->scsiid) 80 SCSIID_TARGET((ahd), (scb)->hscb->scsiid) 82 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid) 84 ((scb)->hscb->lun) 92 && (((scb)->flags & SCB_SILENT) != 0)) 95 (((scb)->flags & SCB_SILENT) != 0) 103 (tcl & (AHD_NUM_LUNS - 1)) [all …]
|
/linux/Documentation/arch/riscv/ |
H A D | vector.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Vector Extension Support for RISC-V Linux 8 order to support the use of the RISC-V Vector Extension. 11 --------------------- 19 are not portable to non-Linux, nor non-RISC-V environments, so it is discourage 27 argument consists of two 2-bit enablement statuses and a bit for inheritance 30 Enablement status is a tri-state value each occupying 2-bit of space in 33 * :c:macro:`PR_RISCV_V_VSTATE_CTRL_DEFAULT`: Use the system-wide default 34 enablement status on execve(). The system-wide default setting can be 41 instructions under such condition will trap and casuse the termination of the thread. [all …]
|
/linux/arch/alpha/lib/ |
H A D | strncat.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Append no more than COUNT characters from the null-terminated string SRC 7 * to the null-terminated string DST. Always null-terminate the new DST. 29 lda $2, -1($31) 58 /* Worry about the null termination. */ 71 /* Here there are bytes left in the current word. Clear one. */ 72 addq $24, $24, $24 # end-of-count bit <<= 1
|
H A D | ev67-strncat.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev67-strncat.S 4 * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> 6 * Append no more than COUNT characters from the null-terminated string SRC 7 * to the null-terminated string DST. Always null-terminate the new DST. 16 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 18 * E - either cluster 19 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 20 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 38 lda $2, -1($31) # E : [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | pm44xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010-2013 Texas Instruments, Inc. 38 * struct static_dep_map - Static dependency map 58 /* Save current powerdomain state */ in omap4_pm_suspend() 60 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 61 pwrst->saved_logic_state = pwrdm_read_logic_retst(pwrst->pwrdm); in omap4_pm_suspend() 66 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap4_pm_suspend() 67 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->next_logic_state); in omap4_pm_suspend() 83 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 84 if (state > pwrst->next_state) { in omap4_pm_suspend() [all …]
|
/linux/include/linux/mfd/ |
H A D | rt5033-private.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 116 /* RT5033 charger property - model, manufacturer */ 121 * While RT5033 charger can limit the fast-charge current (as in CHGCTRL1 122 * register), AICR mode limits the input current. For example, the AIRC 100 123 * mode limits the input current to 100 mA. 163 /* RT5033 charger termination enable */ 177 /* RT5033 charger pre-charge current limits (as in CHGCTRL4 register), uA */ 183 /* RT5033 charger fast-charge current (as in CHGCTRL5 register), uA */ 190 * RT5033 charger const-charge end of charger current ( 200 * RT5033 charger pre-charge threshold volt limits
|