| /linux/drivers/hwmon/pmbus/ | 
| H A D | mp2856.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 79 	bool negative = false;  in val2linear11()  local 85 		negative = true;  in val2linear11() 86 		val = -val;  in val2linear11() 95 	while (val < MIN_LIN_MANTISSA && exponent > -15) {  in val2linear11() 96 		exponent--;  in val2linear11() 100 	/* Convert mantissa from milli-units to units */  in val2linear11() 104 	if (negative)  in val2linear11() 105 		mantissa = -mantissa;  in val2linear11() 112 mp2856_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg,  in mp2856_read_word_helper()  argument [all …] 
 | 
| H A D | mp2975.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3  * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers 138 		return -ENODATA;  in mp2975_read_byte_data() 143 mp2975_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg,  in mp2975_read_word_helper()  argument 146 	int ret = pmbus_read_word_data(client, page, phase, reg);  in mp2975_read_word_helper() 157 			return 250 + (val - 1) * 5;  in mp2975_vid2direct() 161 			return 500 + (val - 1) * 10;  in mp2975_vid2direct() 165 			return 200 + (val - 1) * 10;  in mp2975_vid2direct() 168 		return -EINVAL;  in mp2975_vid2direct() 176 /* Converts a milli-unit DIRECT value to LINEAR11 format */ [all …] 
 | 
| H A D | zl6100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 57 /* Convert linear sensor value to milli-units */ 69 	/* scale result to milli-units */  in zl6100_l2d() 75 		val >>= -exponent;  in zl6100_l2d() 86 	bool negative = false;  in zl6100_d2l()  local 93 		negative = true;  in zl6100_d2l() 94 		val = -val;  in zl6100_d2l() 103 	while (val < MIN_MANTISSA && exponent > -15) {  in zl6100_d2l() 104 		exponent--;  in zl6100_d2l() 108 	/* Convert mantissa from milli-units to units */  in zl6100_d2l() [all …] 
 | 
| /linux/drivers/base/power/ | 
| H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0 3  * drivers/base/power/common.c - Common device power management code. 19  * dev_pm_get_subsys_data - Create or refcount power.subsys_data for device. 24  * increased, otherwise negative error code. 32 		return -ENOMEM;  in dev_pm_get_subsys_data() 34 	spin_lock_irq(&dev->power.lock);  in dev_pm_get_subsys_data() 36 	if (dev->power.subsys_data) {  in dev_pm_get_subsys_data() 37 		dev->power.subsys_data->refcount++;  in dev_pm_get_subsys_data() 39 		spin_lock_init(&psd->lock);  in dev_pm_get_subsys_data() 40 		psd->refcount = 1;  in dev_pm_get_subsys_data() [all …] 
 | 
| /linux/drivers/net/ethernet/intel/ice/ | 
| H A D | ice_dpll.c | 1 // SPDX-License-Identifier: GPL-2.0 53  * enum ice_dpll_pin_type - enumerate ice pin types: 71 	[ICE_DPLL_PIN_TYPE_RCLK_INPUT] = "rclk-input", 83  * ice_dpll_is_sw_pin - check if given pin shall be controlled by SW 88  * Check if the pin shall be controlled by SW - instead of providing raw access 89  * for pin control. For E810 NIC with dpll there is additional MUX-related logic 95  * * true - pin controlled by SW 96  * * false - pin not controlled by SW 100 	if (input && pf->hw.device_id == ICE_DEV_ID_E810C_QSFP)  in ice_dpll_is_sw_pin() 101 		index -= ICE_DPLL_SW_PIN_INPUT_BASE_QSFP -  in ice_dpll_is_sw_pin() [all …] 
 | 
| /linux/Documentation/ABI/testing/ | 
| H A D | sysfs-bus-iio-frequency-admv1013 | 1 What:		/sys/bus/iio/devices/iio:deviceX/in_altvoltage0-altvoltage1_i_calibphase 3 Contact:	linux-iio@vger.kernel.org 5 		Read/write unscaled value for the Local Oscillatior path quadrature I phase shift. 7 What:		/sys/bus/iio/devices/iio:deviceX/in_altvoltage0-altvoltage1_q_calibphase 9 Contact:	linux-iio@vger.kernel.org 11 		Read/write unscaled value for the Local Oscillatior path quadrature Q phase shift. 15 Contact:	linux-iio@vger.kernel.org 22 Contact:	linux-iio@vger.kernel.org 28 Contact:	linux-iio@vger.kernel.org 30 		Read/write raw value for the Local Oscillatior Feedthrough Offset Calibration I Negative [all …] 
 | 
| /linux/drivers/base/regmap/ | 
| H A D | regmap-sccb.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Register map access API - SCCB support 11  * sccb_is_available - Check if the adapter supports SCCB protocol 31  * regmap_sccb_read - Read data from SCCB slave device 36  * This executes the 2-phase write transmission cycle that is followed by a 37  * 2-phase read transmission cycle, returning negative errno else zero on 47 	i2c_lock_bus(i2c->adapter, I2C_LOCK_SEGMENT);  in regmap_sccb_read() 49 	ret = __i2c_smbus_xfer(i2c->adapter, i2c->addr, i2c->flags,  in regmap_sccb_read() 54 	ret = __i2c_smbus_xfer(i2c->adapter, i2c->addr, i2c->flags,  in regmap_sccb_read() 61 	i2c_unlock_bus(i2c->adapter, I2C_LOCK_SEGMENT);  in regmap_sccb_read() [all …] 
 | 
| /linux/drivers/net/ethernet/amazon/ena/ | 
| H A D | ena_com.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 3  * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved. 11 #include <linux/dma-mapping.h> 136 	u8 phase;  member 179 	u8 phase;  member 190 	u8 phase;  member 201 	u8 phase;  member 252 	u8 phase;  member 274 	/* PHC shared memory - virtual address */ 300 	/* PHC shared memory - physical address */ [all …] 
 | 
| /linux/drivers/staging/sm750fb/ | 
| H A D | ddk750_mode.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 	NEG, /* negative */ 32 	/* Clock Phase. This clock phase only applies to Panel. */
  | 
| /linux/Documentation/devicetree/bindings/iio/frequency/ | 
| H A D | adi,adf4350.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10   - Michael Hennerich <michael.hennerich@analog.com> 15       - adi,adf4350 16       - adi,adf4351 21   spi-max-frequency: 28   clock-names: 31   '#clock-cells': 34   clock-output-names: [all …] 
 | 
| H A D | adi,admv1013.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10   - Antoniu Miclaus <antoniu.miclaus@analog.com> 21       - adi,admv1013 26   spi-max-frequency: 34   clock-names: 36       - const: lo_in 38   vcm-supply: 42   vcc-drv-supply: [all …] 
 | 
| H A D | adi,admv1014.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10   - Antoniu Miclaus <antoniu.miclaus@analog.com> 21       - adi,admv1014 26   spi-max-frequency: 32   clock-names: 34       - const: lo_in 38   vcm-supply: 40       Common-mode voltage regulator. [all …] 
 | 
| /linux/fs/ubifs/ | 
| H A D | log.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5  * Copyright (C) 2006-2008 Nokia Corporation. 23  * ubifs_search_bud - search bud LEB. 24  * @c: UBIFS file-system description object 35 	spin_lock(&c->buds_lock);  in ubifs_search_bud() 36 	p = c->buds.rb_node;  in ubifs_search_bud() 39 		if (lnum < bud->lnum)  in ubifs_search_bud() 40 			p = p->rb_left;  in ubifs_search_bud() 41 		else if (lnum > bud->lnum)  in ubifs_search_bud() 42 			p = p->rb_right;  in ubifs_search_bud() [all …] 
 | 
| /linux/include/uapi/linux/media/raspberrypi/ | 
| H A D | pisp_be_config.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 5  * Copyright (C) 2021 - Raspberry Pi Ltd 98  * struct pisp_be_global_config - PiSP global enable bitmaps 112  * struct pisp_be_input_buffer_config - PiSP Back End input buffer 121  * struct pisp_be_dpc_config - PiS [all...] | 
| /linux/drivers/isdn/hardware/mISDN/ | 
| H A D | isdnhdlc.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3  * hdlc.h  --  General purpose ISDN HDLC decoder. 10  *	2009	Karsten Keil		<keil@b1-systems.de> 11  *	2002	Wolfgang Mües		<wolfgang@iksw-muees.de> 39 	/* set if in closing phase (need to send CRC + flag) */ 53   or a negative error number
  | 
| /linux/tools/lib/bpf/ | 
| H A D | libbpf.h | 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 6  * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org> 41  * human-readable form, e.g., "v1.7". 71  * human-readable string. 75  * @return 0, on success; negative error code, otherwise 125  * @brief **libbpf_set_print()** sets user-provide [all...] | 
| /linux/drivers/gpu/drm/xe/ | 
| H A D | xe_bo_evict.c | 1 // SPDX-License-Identifier: MIT 24 	spin_lock(&xe->pinned.lock);  in xe_bo_apply_to_pinned() 31 		list_move_tail(&bo->pinned_link, &still_in_list);  in xe_bo_apply_to_pinned() 32 		spin_unlock(&xe->pinned.lock);  in xe_bo_apply_to_pinned() 36 			spin_lock(&xe->pinned.lock);  in xe_bo_apply_to_pinned() 42 			if (!list_empty(&bo->pinned_link))  in xe_bo_apply_to_pinned() 43 				list_move(&bo->pinned_link, pinned_list);  in xe_bo_apply_to_pinned() 44 			spin_unlock(&xe->pinned.lock);  in xe_bo_apply_to_pinned() 47 		spin_lock(&xe->pinned.lock);  in xe_bo_apply_to_pinned() 50 	spin_unlock(&xe->pinned.lock);  in xe_bo_apply_to_pinned() [all …] 
 | 
| /linux/drivers/gpu/drm/i915/display/ | 
| H A D | intel_tv_regs.h | 1 /* SPDX-License-Identifier: MIT */ 41 /* Sets the colorburst to PAL mode.  Required for non-M PAL modes. */ 56 /* Read-only state that reports all features enabled */ 58 /* Read-only state that reports that Macrovision is disabled in hardware*/ 60 /* Read-only state that reports that TV-out is disabled in hardware. */ 64 /* Encoder test pattern 1 - combo pattern */ 66 /* Encoder test pattern 2 - full screen vertical 75% color bars */ 68 /* Encoder test pattern 3 - full screen horizontal 75% color bars */ 70 /* Encoder test pattern 4 - random noise */ 72 /* Encoder test pattern 5 - linear color ramps */ [all …] 
 | 
| /linux/include/uapi/linux/ | 
| H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3  * Copyright (c) 1999-2002 Vojtech Pavlik 20 #include "input-event-codes.h" 56  * IOCTLs (0x00 - 0x7f) 67  * struct input_absinfo - use 411 __u16 phase; global()  member  [all...] | 
| /linux/drivers/scsi/ | 
| H A D | NCR5380.c | 1 // SPDX-License-Identifier: GPL-2.0 4  * to implement 5380 SCSI drivers under Linux with a non-trantor 13  * +1 (303) 666-5836 24  * 1+ (719) 578-3400 25  * 1+ (800) 334-5454 42  * transfer - some PC's will use the I/O bus, 68K's must use 46  * each 5380 in the system - commands that haven't been issued yet, 51  * allowing multiple commands to propagate all the way to a SCSI-II device 57  * When used in a PIO or pseudo-dma mode, the NCR5380 is a braindead 74  * phase goes through the various phases as instructed by the target. [all …] 
 | 
| /linux/drivers/iio/adc/ | 
| H A D | ad7944.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 #include <linux/iio/buffer-dmaengine.h> 40 	/* datasheet calls this "4-wire mode" */ 42 	/* datasheet calls this "3-wire mode" (not related to SPI_3WIRE!) */ 48 /* maps adi,spi-mode property value to enum */ 67 	/* Chip-specific timing specifications. */ 73 	/* Indicates TURBO is hard-wired to be always enabled. */ 118  * AD7944_DEFINE_CHIP_INFO - Define a chip info structure for a specific chip 170  * - There is no soft timestamp since everything is done in hardware. 171  * - There is a sampling frequency attribute added. This controls the SPI [all …] 
 | 
| /linux/sound/soc/ | 
| H A D | soc-utils.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-util.c  --  ALSA SoC Audio Layer utility functions 27 	/* Negative values might be errors */  in snd_soc_ret() 29 	case -EPROBE_DEFER:  in snd_soc_ret() 30 	case -ENOTSUPP:  in snd_soc_ret() 31 	case -EOPNOTSUPP:  in snd_soc_ret() 84  * snd_soc_tdm_params_to_bclk - calculate bclk from params and tdm slot info. 87  * tdm slot width. Optionally round-up the slot count to a given multiple. 95  * I2S mode, which has a left and right phase so the number of slots is always 106  * Return: bclk frequency in Hz, else a negative error code if params format [all …] 
 | 
| /linux/Documentation/scsi/ | 
| H A D | ChangeLog.sym53c8xx | 1 Sat May 12 12:00 2001 Gerard Roudier (groudier@club-internet.fr) 2 	* version sym53c8xx-1.7.3c 3 	- Ensure LEDC bit in GPCNTL is cleared when reading the NVRAM. 4 	  Fix sent by Stig Telfer <stig@api-networks.com>. 5 	- Backport from SYM-2 the work-around that allows to support  7 	- Check that we received at least 8 bytes of INQUIRY response  9 	- Define scsi_set_pci_device() as nil for kernel < 2.4.4. 10 	- + A couple of minor changes. 12 Sat Apr 7 19:30 2001 Gerard Roudier (groudier@club-internet.fr) 13 	* version sym53c8xx-1.7.3b [all …] 
 | 
| /linux/drivers/acpi/ | 
| H A D | cppc_acpi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15  * P-state scale which is tied to CPU frequency only. In brief, the basic 18  * - OS makes a CPU performance request. (Can provide min and max bounds) 20  * - Platform (such as BMC) is free to optimize request within requested bounds 23  * - Platform conveys its decision back to OS 69 	 * For non-performance critical usecases(init) 97 #define GET_PCC_VADDR(offs, pcc_ss_id) (pcc_data[pcc_ss_id]->pcc_channel->shmem + \ 101 #define CPC_IN_PCC(cpc) ((cpc)->type == ACPI_TYPE_BUFFER &&		\ 102 				(cpc)->cpc_entry.reg.space_id ==	\ 106 #define CPC_IN_FFH(cpc) ((cpc)->type == ACPI_TYPE_BUFFER &&		\ [all …] 
 | 
| /linux/Documentation/i2c/ | 
| H A D | fault-codes.rst | 10 ---------------------------------- 14 some cases, such as re-initializing (and maybe resetting).  After such 27 ------------------------- 28 These are returned as negative numbers from most calls, with zero or 29 some positive number indicating a non-fault return.  The specific 31 though most Linux systems use <asm-generic/errno*.h> numbering. 93 	Returned by I2C adapters to indicate that the address phase 119 	or SMBus (or chip-specific) protocol specifications.  One 121 	(from the SMBus slave) is outside the range 1-32 bytes.
  |