/linux/drivers/iio/temperature/ |
H A D | ltc2983.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System 60 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG) 62 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG) 237 __be32 temp __aligned(IIO_DMA_MINALIGN); 263 struct ltc2983_custom_sensor *custom; member 270 struct ltc2983_custom_sensor *custom; member 279 struct ltc2983_custom_sensor *custom; member 304 struct ltc2983_custom_sensor *custom; member 312 * instance a resolution of 2^-10 means we have 10 fractional bits. [all …]
|
/linux/drivers/iio/pressure/ |
H A D | st_pressure_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 * ------------------------------------------ 45 * --------------------------------------------------------- 49 * temp[Celsius] = offset[Celsius] + (raw / sensitivity) 58 * temp[mCelsius] = temp[Celsius] * 10^3 65 * temp[mCelsius] = (OFFSET + raw) * SCALE 113 /* LPS001WP pressure and temp L addresses */ 117 /* LPS25H pressure and temp L addresses */ 227 * CUSTOM VALUES FOR LPS331AP SENSOR 302 * CUSTOM VALUES FOR LPS001WP SENSOR [all …]
|
/linux/drivers/scsi/ |
H A D | scsicam.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * scsicam.c - SCSI CAM support functions, use for HDIO_GETGEO, etc. 7 * (Unix and Linux consulting and custom programming) 9 * +1 (303) 786-7975 11 * For more information, please consult the SCSI-CAM draft. 26 * scsi_bios_ptable - Read PC partition table out of first sector of device. 35 struct address_space *mapping = bdev_whole(dev)->bd_mapping; in scsi_bios_ptable() 50 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table 73 int largest_cyl = -1, i; in scsi_partsize() 76 if (!p->sys_ind) in scsi_partsize() [all …]
|
/linux/Documentation/hwmon/ |
H A D | abituguru.rst | 15 abituguru-datasheet. 24 - uGuru 1.00 ~ 1.24 (AI7, KV8-MAX3, AN7) [1]_ 25 - uGuru 2.0.0.0 ~ 2.0.4.2 (KV8-PRO) 26 - uGuru 2.1.0.0 ~ 2.1.2.8 (AS8, AV8, AA8, AG8, AA8XE, AX8) 27 - uGuru 2.2.0.0 ~ 2.2.0.6 (AA8 Fatal1ty) 28 - uGuru 2.3.0.0 ~ 2.3.0.9 (AN8) 29 - uGuru 3.0.0.0 ~ 3.0.x.x (AW8, AL8, AT8, NI8 SLI, AT8 32X, AN8 32X, 30 AW9D-MAX) [2]_ 33 sensortype (Volt or Temp) for bank1 sensors, for revision 1 uGuru's 46 - Hans de Goede <j.w.r.degoede@hhs.nl>, [all …]
|
H A D | asb100.rst | 6 * Asus ASB100 and ASB100-A "Bach" 17 ----------- 19 This driver implements support for the Asus ASB100 and ASB100-A "Bach". 20 These are custom ASICs available only on Asus mainboards. Asus refuses to 30 these, the ASB100-A also implements a single PWM controller for fans 2 and 48 - 0x0001 => in0 (?) 49 - 0x0002 => in1 (?) 50 - 0x0004 => in2 51 - 0x0008 => in3 52 - 0x0010 => temp1 [1]_ [all …]
|
H A D | asc7621.rst | 20 Andigilog has both the PECI and pre-PECI versions of the Heceta-6, as 21 Intel calls them. Heceta-6e has high frequency PWM and Heceta-6p has 23 Heceta-6e part and aSC7621 is the Heceta-6p part. They are both in 28 have used registers below 20h for vendor-specific functions in addition 29 to those in the Intel-specified vendor range. 32 The fan speed control uses this finer value to produce a "step-less" fan 33 PWM output. These two bytes are "read-locked" to guarantee that once a 34 high or low byte is read, the other byte is locked-in until after the 37 sheet says 10-bits of resolution, although you may find the lower bits 47 We offer GPIO features on the former VID pins. These are open-drain [all …]
|
H A D | it87.rst | 174 - Christophe Gauthron 175 - Jean Delvare <jdelvare@suse.de> 179 ----------------- 192 misconfigured by BIOS - PWM values would be inverted. This option tries 209 Provided since there are reports that system-wide acpi_enfore_resources=lax 217 ------------------- 219 All the chips supported by this driver are LPC Super-I/O chips, accessed 220 through the LPC bus (ISA-like I/O ports). The IT8712F additionally has an 228 ----------- 247 is stored in the Super-I/O configuration space. Due to technical limitations, [all …]
|
/linux/drivers/gpu/drm/msm/dsi/phy/ |
H A D | dsi_phy_28nm_8960.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 6 #include <linux/clk-provider.h> 14 * DSI PLL 28nm (8960/A family) - clock diagram (eg: DSI1): 17 * +------+ 18 * dsi1vco_clk ----o-----| DIV1 |---dsi1pllbit (not exposed as clock) 19 * F * byte_clk | +------+ 22 * | +------+ 23 * o-----| DIV2 |---dsi0pllbyte---o---> To byte RCG 24 * | +------+ | (sets parent rate) [all …]
|
/linux/drivers/hwmon/ |
H A D | nzxt-kraken3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 #include <linux/hwmon-sysfs.h> 36 #define CUSTOM_CURVE_POINTS 40 /* For temps from 20C to 59C (critical temp) */ 75 "Coolant temp", 134 switch (priv->kind) { in kraken3_is_visible() 154 switch (priv->kind) { in kraken3_is_visible() 189 mutex_lock(&priv->buffer_lock); in kraken3_write_expanded() 191 memcpy_and_pad(priv->buffer, MAX_REPORT_LENGTH, cmd, cmd_length, 0x00); in kraken3_write_expanded() 192 ret = hid_hw_output_report(priv->hdev, priv->buffer, MAX_REPORT_LENGTH); in kraken3_write_expanded() 194 mutex_unlock(&priv->buffer_lock); in kraken3_write_expanded() [all …]
|
/linux/drivers/memory/ |
H A D | emif.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 * struct emif_data - Per device static data for driver's use 38 * to this EMIF - read from MR4 register. If there 43 * @base: base address of memory-mapped IO registers. 47 * frequencies, to avoid re-calculating them on 77 u32 type = emif->plat_data->device_info->type; in do_emif_regdump_show() 78 u32 ip_rev = emif->plat_data->ip_rev; in do_emif_regdump_show() 81 regs->freq/1000000); in do_emif_regdump_show() 83 seq_printf(s, "ref_ctrl_shdw\t: 0x%08x\n", regs->ref_ctrl_shdw); in do_emif_regdump_show() 84 seq_printf(s, "sdram_tim1_shdw\t: 0x%08x\n", regs->sdram_tim1_shdw); in do_emif_regdump_show() [all …]
|
/linux/lib/xz/ |
H A D | xz_dec_stream.c | 1 // SPDX-License-Identifier: 0BSD 34 /* Position in variable-length integers and Check fields */ 37 /* Variable-length integer decoded by dec_vli() */ 128 } temp; member 151 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller 152 * must have set s->temp.pos to indicate how much data we are supposed 153 * to copy into s->temp.buf. Return true once s->temp.pos has reached 154 * s->temp.size. 159 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 161 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() [all …]
|
/linux/include/linux/ |
H A D | trace_events.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 77 * The trace entry - the most basic unit of tracing. This is what 80 * bash-15816 [01] 235.197585: idle_cpu <- irq_enter 90 ((1 << (sizeof(((struct trace_entry *)0)->type) * 8)) - 1) 93 * Trace iterator - used by printout routines who present trace 105 void *temp; /* temp holder */ member 177 entry->preempt_count = trace_ctx & 0xff; in tracing_generic_entry_update() 178 entry->pid = current->pid; in tracing_generic_entry_update() 179 entry->type = type; in tracing_generic_entry_update() 180 entry->flags = trace_ctx >> 16; in tracing_generic_entry_update() [all …]
|
/linux/drivers/power/supply/ |
H A D | max17042_battery.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/devm-helpers.h> 96 static int max17042_get_temperature(struct max17042_chip *chip, int *temp) in max17042_get_temperature() 100 struct regmap *map = chip->regmap; in max17042_get_temperature() 106 *temp = sign_extend32(data, 15); in max17042_get_temperature() 107 /* The value is converted into deci-centigrade scale */ in max17042_get_temperature() 109 *temp = *temp * 1 in max17042_get_temperature() 94 max17042_get_temperature(struct max17042_chip * chip,int * temp) max17042_get_temperature() argument 176 int temp, vavg, vbatt, ret; max17042_get_battery_health() local 447 int8_t temp; max17042_set_property() local [all...] |
/linux/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_pm.c | 33 #include <linux/hwmon-sysfs.h> 94 "CUSTOM", 108 * - battery 110 * - balanced 112 * - performance 144 return -EPERM; in amdgpu_get_power_dpm_state() 145 if (adev->in_suspend && !adev->in_runpm) in amdgpu_get_power_dpm_state() 146 return -EPERM; in amdgpu_get_power_dpm_state() 148 ret = pm_runtime_get_if_active(ddev->dev); in amdgpu_get_power_dpm_state() 150 return ret ?: -EPERM; in amdgpu_get_power_dpm_state() [all …]
|
/linux/drivers/video/fbdev/sis/ |
H A D | init301.c | 10 * Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria 27 * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA 55 * Formerly based on non-functional code-fragements for 300 series by SiS, Inc. 255 /* VESA non-VESA noscale */ 420 if(SiS_Pr->ChipType == XGI_20) in SiS_UnLockCRT2() 422 else if(SiS_Pr->ChipType >= SIS_315H) in SiS_UnLockCRT2() 423 SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2f,0x01); in SiS_UnLockCRT2() 425 SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x24,0x01); in SiS_UnLockCRT2() 432 if(SiS_Pr->ChipType == XGI_20) in SiS_LockCRT2() 434 else if(SiS_Pr->ChipType >= SIS_315H) in SiS_LockCRT2() [all …]
|
H A D | sis_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 2001-2005 Thomas Winischhofer, Vienna, Austria. 19 * which is (c) 1998 Gerd Knorr <kraxel@goldbach.in-berlin.de> 52 /* ---------------------- Prototypes ------------------------- */ 105 /* ------------------ Internal helper routines ----------------- */ 112 sisfb_accel = -1; in sisfb_setdefaultparms() 113 sisfb_ypan = -1; in sisfb_setdefaultparms() 114 sisfb_max = -1; in sisfb_setdefaultparms() 115 sisfb_userom = -1; in sisfb_setdefaultparms() 116 sisfb_useoem = -1; in sisfb_setdefaultparms() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect_dynptr.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 26 #pragma GCC diagnostic ignored "-Waddress-of-packed-member" 29 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER))) 88 offsetofend(struct bpf_sock_tuple, ipv4.dport) - 89 offsetof(struct bpf_sock_tuple, ipv4.sport) - 1, 93 offsetofend(struct bpf_sock_tuple, ipv6.dport) - 94 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 108 static const ret_t CONTINUE_PROCESSING = -1; 121 uint16_t frag_off = ip->frag_off & bpf_htons(IP_OFFSET_MASK); in ipv4_is_fragment() 122 return (ip->frag_off & bpf_htons(IP_MF)) != 0 || frag_off > 0; in ipv4_is_fragment() [all …]
|
H A D | test_cls_redirect.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 26 #pragma GCC diagnostic ignored "-Waddress-of-packed-member" 35 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER))) 94 offsetofend(struct bpf_sock_tuple, ipv4.dport) - 95 offsetof(struct bpf_sock_tuple, ipv4.sport) - 1, 99 offsetofend(struct bpf_sock_tuple, ipv6.dport) - 100 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 109 static const ret_t CONTINUE_PROCESSING = -1; 141 * a - b + c in buf_off() 144 * r? -= b in buf_off() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 5 Contact: linux-pm@vger.kernel.org 14 Contact: linux-pm@vger.kernel.org 23 Contact: linux-pm@vger.kernel.org 32 Contact: linux-pm@vger.kernel.org 43 Contact: linux-pm@vger.kernel.org 66 Contact: linux-pm@vger.kernel.org 81 Contact: linux-pm@vger.kernel.org 94 read-only reporting, unless the 'online' state of the supply 104 What: /sys/class/power_supply/<supply_name>/temp 106 Contact: linux-p [all...] |
/linux/sound/pci/lx6464es/ |
H A D | lx_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* -*- linux-c -*- * 5 * low-level interface 20 /* low-level register access */ 57 void __iomem *base_address = chip->port_dsp_bar; in lx_dsp_register() 114 void __iomem *base_address = chip->port_plx_remapped; in lx_plx_register() 142 u32 dcCodeOp; /* Op Code of the command (usually 1st 24-bits 153 - OpCode: 155 - CmdLength 157 - StatusType [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
H A D | smu_v13_0_6_ppt.c | 144 // clang-format off 200 // clang-format on 276 (metrics_a->field) : (metrics_x->field)) 288 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_set() 290 dpm_context->caps |= BIT_ULL(cap); in smu_v13_0_6_cap_set() 296 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_clear() 298 dpm_context->caps &= ~BIT_ULL(cap); in smu_v13_0_6_cap_clear() 304 struct smu_13_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; in smu_v13_0_6_cap_supported() 306 return !!(dpm_context->caps & BIT_ULL(cap)); in smu_v13_0_6_cap_supported() 320 uint32_t fw_ver = smu->smc_fw_version; in smu_v13_0_14_init_caps() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | metronomefb.c | 2 * linux/drivers/video/metronomefb.c -- FB driver for Metronome controller 12 * This work was made possible by help and equipment support from E-Ink 34 #include <linux/dma-mapping.h> 48 /* frame differs from image. frame includes non-visible pixels */ 163 while (length--) in calc_img_cksum() 183 u8 *metromem = par->metromem_wfm; in load_waveform() 184 struct device *dev = par->info->device; in load_waveform() 187 epd_frame_table[par->dt].wfm_size = user_wfm_size; in load_waveform() 189 if (size != epd_frame_table[par->dt].wfm_size) { in load_waveform() 191 epd_frame_table[par->dt].wfm_size); in load_waveform() [all …]
|
/linux/drivers/s390/cio/ |
H A D | vfio_ccw_cp.c | 1 // SPDX-License-Identifier: GPL-2.0 43 * page_array_alloc() - alloc memory for page array 55 * -EINVAL if pa->pa_nr is not initially zero, or pa->pa_iova is not NULL 56 * -ENOMEM if alloc failed 60 if (pa->pa_nr || pa->pa_iova) in page_array_alloc() 61 return -EINVAL; in page_array_alloc() 64 return -EINVAL; in page_array_alloc() 66 pa->pa_nr = len; in page_array_alloc() 68 pa->pa_iova = kcalloc(len, sizeof(*pa->pa_iova), GFP_KERNEL); in page_array_alloc() 69 if (!pa->pa_iova) in page_array_alloc() [all …]
|
/linux/arch/m68k/kernel/ |
H A D | head.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 2 ** -*- mode: asm -*- 4 ** head.S -- This file contains the initial boot code for the 20 ** ++ Bjoern & Roman: ATARI-68040 support for the Medusa 23 ** Magnum- and FX-alternate ram 26 ** for linux-2.1.115 49 * 1) Remove register dependency through-out the file. 57 * write-ups on the structure of the file, and the features of the 61 * ------------------ 70 * actual per-machine specific code very simple. [all …]
|
/linux/Documentation/virt/uml/ |
H A D | user_mode_linux_howto_v2.rst | 1 .. SPDX-License-Identifier: GPL-2.0 25 Most OSes today have built-in support for a number of "fake" 27 User Mode Linux takes this concept to the ultimate extreme - there 30 concepts which map onto something provided by the host - files, sockets, 36 The UML kernel is just a process running on Linux - same as any other 57 * You can run a usermode kernel as a non-root user (you may need to 99 This is extremely easy on Debian - you can do it using debootstrap. It is 100 also easy on OpenWRT - the build process can build UML images. All other 101 distros - YMMV. 114 or by running ``tune2fs -o discard /dev/ubdXX`` will request UML to [all …]
|