/linux-6.12.1/drivers/iio/temperature/ |
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-6.12.1/Documentation/devicetree/bindings/iio/temperature/ |
D | adi,ltc2983.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: Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system 10 - Nuno Sá <nuno.sa@analog.com> 13 Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital 16 https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf 18 https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf 19 https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf [all …]
|
/linux-6.12.1/drivers/iio/pressure/ |
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-6.12.1/drivers/scsi/ |
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-6.12.1/Documentation/hwmon/ |
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 …]
|
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 …]
|
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 …]
|
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-6.12.1/drivers/gpu/drm/msm/dsi/phy/ |
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-6.12.1/drivers/hwmon/ |
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 …]
|
D | abituguru.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * abituguru.c Copyright (c) 2005-2006 Hans de Goede <hdegoede@redhat.com> 7 * the custom Abit uGuru chip found on Abit uGuru motherboards. Note: because 23 #include <linux/hwmon-sysfs.h> 29 #define ABIT_UGURU_SENSOR_BANK1 0x21 /* 16x volt and temp */ 32 /* max nr of sensors in bank1, a bank1 sensor can be in, temp or nc */ 43 #define ABIT_UGURU_TEMP_HIGH_ALARM_ENABLE 0x01 /* temp over warn */ 46 #define ABIT_UGURU_TEMP_HIGH_ALARM_FLAG 0x10 /* temp is over warn */ 64 * of the time it will reach this status within 30 - 90 ISA reads, and thus we 99 * sum of strlen of: temp??_input\0, temp??_max\0, temp??_crit\0, [all …]
|
D | abituguru3.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2006-2008 Hans de Goede <hdegoede@redhat.com> 9 * This driver supports the sensor part of revision 3 of the custom Abit uGuru 25 #include <linux/hwmon-sysfs.h> 38 #define ABIT_UGURU3_TEMP_HIGH_ALARM_ENABLE 0x01 /* temp over warn */ 41 #define ABIT_UGURU3_TEMP_HIGH_ALARM_FLAG 0x10 /* temp is over warn */ 55 * cpu-speed independent, since the ISA-bus and not the CPU should be the 81 * sum of strlen +1 of: temp??_input\0, temp??_max\0, temp??_crit\0, 82 * temp??_alarm\0, temp??_alarm_enable\0, temp??_beep\0, temp??_shutdown\0, 83 * temp??_label\0 [all …]
|
/linux-6.12.1/drivers/staging/media/atomisp/pci/css_2401_system/hrt/ |
D | mipi_backend_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 96 …ACKEND_STREAMING_PIX_A_MSB(pix_width) (_HRT_MIPI_BACKEND_STREAMING_PIX_A_LSB + (pix_width) - 1) 99 …AMING_PIX_B_MSB(pix_width) (_HRT_MIPI_BACKEND_STREAMING_PIX_B_LSB(pix_width) + (pix_width) - 1) 106 /* Custom Decoding */ 107 /* These Custom Defs are defined based on design-time config in "mipi_backend_pixel_formatter.chdl"… 113 #define _HRT_MIPI_BACKEND_CUST_MODE_ALL 1 /* Enable Custom Decoding for all D… 114 #define _HRT_MIPI_BACKEND_CUST_MODE_ONE 3 /* Enable Custom Decoding for ONE D… 140 …PI_BACKEND_CUST_PIX_VALID_EOP_NOR_VALID_IDX 0 /* Normal (NO less get_bits case) Valid - 1bits */ 141 …MIPI_BACKEND_CUST_PIX_VALID_EOP_NOR_EOP_IDX 1 /* Normal (NO less get_bits case) EoP - 1bits */ 142 …IPI_BACKEND_CUST_PIX_VALID_EOP_ESP_VALID_IDX 2 /* Especial (less get_bits case) Valid - 1bits */ [all …]
|
/linux-6.12.1/drivers/memory/ |
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-6.12.1/lib/xz/ |
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-6.12.1/include/linux/ |
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-6.12.1/drivers/staging/media/atomisp/pci/ |
D | sh_css_mipi.c | 1 // SPDX-License-Identifier: GPL-2.0 37 * - A line is multiple of 4 bytes = 1 word. 38 * - Each frame has SOF and EOF (each 1 word). 39 * - Each line has format header and optionally SOL and EOL (each 1 word). 40 * - Odd and even lines of YUV420 format are different in bites per pixel size. 41 * - Custom size of embedded data. 42 * -- Interleaved frames are not taken into account. 43 * -- Lines are multiples of 8B, and not necessary of (custom 3B, or 7B 72 * in the non-continuous use scenario. in ia_css_mipi_frame_calculate_size() 96 * in the non-continuous use scenario. in ia_css_mipi_frame_calculate_size() [all …]
|
/linux-6.12.1/drivers/power/supply/ |
D | max17042_battery.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/devm-helpers.h> 94 static int max17042_get_temperature(struct max17042_chip *chip, int *temp) in max17042_get_temperature() argument 98 struct regmap *map = chip->regmap; in max17042_get_temperature() 104 *temp = sign_extend32(data, 15); in max17042_get_temperature() 105 /* The value is converted into deci-centigrade scale */ in max17042_get_temperature() 107 *temp = *temp * 10 / 256; in max17042_get_temperature() 117 ret = power_supply_am_i_supplied(chip->battery); in max17042_get_status() 128 * The MAX170xx has builtin end-of-charge detection and will update in max17042_get_status() 133 * continuously once end-of-charge detection kicks in, so allow the in max17042_get_status() [all …]
|
D | power_supply_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 91 [POWER_SUPPLY_CHARGE_TYPE_CUSTOM] = "Custom", 117 [POWER_SUPPLY_TECHNOLOGY_LION] = "Li-ion", 118 [POWER_SUPPLY_TECHNOLOGY_LIPO] = "Li-poly", 141 [POWER_SUPPLY_CHARGE_BEHAVIOUR_INHIBIT_CHARGE] = "inhibit-charge", 142 [POWER_SUPPLY_CHARGE_BEHAVIOUR_FORCE_DISCHARGE] = "force-discharge", 199 POWER_SUPPLY_ATTR(TEMP), 237 return to_ps_attr(attr) - power_supply_attrs; in dev_attr_psp() 262 return -EINVAL; in power_supply_show_enum_with_available() 266 buf[count - 1] = '\n'; in power_supply_show_enum_with_available() [all …]
|
/linux-6.12.1/drivers/video/fbdev/sis/ |
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 …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/ |
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_sync(ddev->dev); in amdgpu_get_power_dpm_state() 150 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | aldebaran_ppt.c | 98 {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, 229 struct smu_table_context *smu_table = &smu->smu_table; in aldebaran_tables_init() 230 struct smu_table *tables = smu_table->tables; in aldebaran_tables_init() 247 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in aldebaran_tables_init() 248 if (!smu_table->metrics_table) in aldebaran_tables_init() 249 return -ENOMEM; in aldebaran_tables_init() 250 smu_table->metrics_time = 0; in aldebaran_tables_init() 252 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_3); in aldebaran_tables_init() 253 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in aldebaran_tables_init() 254 if (!smu_table->gpu_metrics_table) { in aldebaran_tables_init() [all …]
|
D | smu_v13_0_6_ppt.c | 126 // clang-format off 181 // clang-format on 256 #define GET_METRIC_FIELD(field) ((adev->flags & AMD_IS_APU) ?\ 257 (metrics_a->field) : (metrics_x->field)) 272 struct amdgpu_device *adev = smu->adev; in smu_v13_0_6_init_microcode() 275 int var = (adev->pdev->device & 0xF); in smu_v13_0_6_init_microcode() 282 if (!(adev->flags & AMD_IS_APU)) { in smu_v13_0_6_init_microcode() 290 ret = amdgpu_ucode_request(adev, &adev->pm.fw, "amdgpu/%s.bin", ucode_prefix); in smu_v13_0_6_init_microcode() 294 hdr = (const struct common_firmware_header *)adev->pm.fw->data; in smu_v13_0_6_init_microcode() 300 v2_1 = (const struct smc_firmware_header_v2_1 *)adev->pm.fw->data; in smu_v13_0_6_init_microcode() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
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 …]
|
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 …]
|