/linux-6.12.1/Documentation/devicetree/bindings/iio/adc/ |
D | nxp,imx93-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/nxp,imx93-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Haibo Chen <haibo.chen@nxp.com> 13 The ADC on iMX93 is a 8-channel 12-bit 1MS/s ADC with 4 channels 15 One-Shot and Scan (continuous) conversions. Programmable DMA 18 also has Self-test logic and Software-initiated calibration. 22 const: nxp,imx93-adc 29 - description: WDGnL, watchdog threshold interrupt requests. [all …]
|
D | ti,adc12138.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments ADC12138 and similar self-calibrating ADCs 10 - Akinobu Mita <akinobu.mita@gmail.com> 19 - ti,adc12130 20 - ti,adc12132 21 - ti,adc12138 28 description: End of Conversion (EOC) interrupt 32 description: Conversion clock input. [all …]
|
/linux-6.12.1/fs/smb/client/ |
D | cifs_unicode.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SFM_CHR) in cifs_remap() 21 else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR) in cifs_remap() 29 /* Convert character using the SFU - "Services for Unix" remapping range */ 63 /* Convert character using the SFM - "Services for Mac" remapping range */ 68 *target = src_char - 0xF000; in convert_sfm_char() 107 * cifs_mapchar - convert a host-endian char to proper char in codepage 108 * @target - where converted character should be copied 109 * @src_char - 2 byte host-endian source character 110 * @cp - codepage to which character should be converted [all …]
|
/linux-6.12.1/drivers/comedi/drivers/ |
D | mpc624.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Hardware driver for a Micro/sys inc. MPC-624 PC/104 board 6 * COMEDI - Linux Control and Measurement Device Interface 12 * Description: Micro/sys MPC-624 PC/104 board 13 * Devices: [Micro/sys] MPC-624 (mpc624) 18 * The Micro/sys MPC-624 board is based on the LTC2440 24-bit sigma-delta 22 * - Analog In: supported 23 * - Digital I/O: not supported 24 * - LEDs: not supported 25 * - EEPROM: not supported [all …]
|
D | mf6x4.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 26 #define MF6X4_GPIOC_EOLC BIT(17) /* End Of Last Conversion */ 50 /* We need to keep track of the order of BARs used by the cards */ 78 * offsets -- this variable makes the access easier 88 data[1] = ioread16(dev->mmio + MF6X4_DIN_REG) & MF6X4_DIN_MASK; in mf6x4_di_insn_bits() 90 return insn->n; in mf6x4_di_insn_bits() 99 iowrite16(s->state, dev->mmio + MF6X4_DOUT_REG); in mf6x4_do_insn_bits() 101 data[1] = s->state; in mf6x4_do_insn_bits() 103 return insn->n; in mf6x4_do_insn_bits() [all …]
|
/linux-6.12.1/fs/smb/server/ |
D | unicode.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Some of the source code in this file came from fs/cifs/cifs_unicode.c 17 * cifs_mapchar() - convert a host-endian char to proper char in codepage 19 * @from: host-endian source string 23 * This function handles the conversion of a single character. It is the 24 * responsibility of the caller to ensure that the target buffer is large 25 * enough to hold the result of the conversion (at least NLS_MAX_CHARSET_SIZE). 27 * Return: string length after conversion 73 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar() 81 if (strcmp(cp->charset, "utf8")) in cifs_mapchar() [all …]
|
/linux-6.12.1/include/acpi/ |
D | acexcep.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 4 * Name: acexcep.h - Exception codes returned by the ACPI subsystem 6 * Copyright (C) 2000 - 2023, Intel Corp. 55 * Success is always zero, failure is non-zero 202 * String versions of the exception codes above 243 "The interface is not part of the current subsystem configuration"), 247 "Overflow during string-to-integer conversion"), 249 "Overflow during ASCII hex-to-binary conversion"), 251 "Overflow during ASCII decimal-to-binary conversion"), 253 "Overflow during ASCII octal-to-binary conversion"), [all …]
|
/linux-6.12.1/Documentation/userspace-api/media/v4l/ |
D | pixfmt-v4l2.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 Single-planar format structure 13 .. flat-table:: struct v4l2_pix_format 14 :header-rows: 0 15 :stub-columns: 0 18 * - __u32 19 - ``width`` 20 - Image width in pixels. 21 * - __u32 22 - ``height`` [all …]
|
/linux-6.12.1/drivers/acpi/acpica/ |
D | utstrsuppt.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: utstrsuppt - Support functions for string-to-integer conversion 27 * PARAMETERS: string - Null terminated input string 28 * return_value_ptr - Where the converted value is returned 30 * RETURN: Status and 64-bit converted integer 32 * DESCRIPTION: Performs a base 8 conversion of the input string to an 35 * NOTE: Maximum 64-bit unsigned octal value is 01777777777777777777777 36 * Maximum 32-bit unsigned octal value is 037777777777 49 * Character must be ASCII 0-7, otherwise: in acpi_ut_convert_octal_string() 81 * PARAMETERS: string - Null terminated input string [all …]
|
D | amlcode.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 4 * Name: amlcode.h - Definitions for AML, as included in "definition blocks" 8 * Copyright (C) 2000 - 2023, Intel Corp. 111 * Combination opcodes (actually two one-byte opcodes) 118 /* Prefixed (2-byte) opcodes (with AML_EXTENDED_PREFIX) */ 120 #define AML_EXTENDED_OPCODE (u16) 0x5b00 /* Prefix for 2-byte opcodes */ 165 * any valid ACPI ASCII values (A-Z, 0-9, '-') 182 * Each field in the arg_types u32 is 5 bits, allowing for a maximum of 6 arguments. 184 * Zero is reserved as end-of-list indicator 210 * Each field in the arg_types u32 is 5 bits, allowing for a maximum of 6 arguments. [all …]
|
D | exconvrt.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: exconvrt - Object conversion routines 6 * Copyright (C) 2000 - 2023, Intel Corp. 27 * PARAMETERS: obj_desc - Object to be converted. Must be an 29 * result_desc - Where the new Integer object is returned 30 * implicit_conversion - Used for string conversion 51 switch (obj_desc->common.type) { in acpi_ex_convert_to_integer() 54 /* No conversion necessary */ in acpi_ex_convert_to_integer() 62 /* Note: Takes advantage of common buffer/string fields */ in acpi_ex_convert_to_integer() 64 pointer = obj_desc->buffer.pointer; in acpi_ex_convert_to_integer() [all …]
|
D | rslist.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: rslist - Linked list utilities 20 * resource_ptr - Pointer to the buffer that will 25 * DESCRIPTION: Convert an AML resource to an internal representation of the 53 /* Get the appropriate conversion info table */ in acpi_rs_convert_aml_to_resources() 98 if (!resource->length) { in acpi_rs_convert_aml_to_resources() 100 "Zero-length resource returned from RsConvertAmlToResource")); in acpi_rs_convert_aml_to_resources() 106 resource->length)); in acpi_rs_convert_aml_to_resources() 118 * PARAMETERS: resource - Pointer to the resource linked list 119 * aml_size_needed - Calculated size of the byte stream [all …]
|
/linux-6.12.1/drivers/gpu/drm/ |
D | drm_format_helper.c | 1 // SPDX-License-Identifier: GPL-2.0 or MIT 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 12 #include <linux/iosys-map.h> 24 * drm_format_conv_state_init - Initialize format-conversion state 32 state->tmp.mem = NULL; in drm_format_conv_state_init() 33 state->tmp.size = 0; in drm_format_conv_state_init() 34 state->tmp.preallocated = false; in drm_format_conv_state_init() 39 * drm_format_conv_state_copy - Copy format-conversion state 43 * Copies format-conversion state from @old_state to @state; except for [all …]
|
/linux-6.12.1/arch/x86/coco/tdx/ |
D | tdx-shared.c | 21 * Bits 2:0 of RCX encode page size: 0 - 4K, 1 - 2M, 2 - 1G. in try_accept_one() 44 bool tdx_accept_memory(phys_addr_t start, phys_addr_t end) in tdx_accept_memory() argument 47 * For shared->private conversion, accept the page using in tdx_accept_memory() 50 while (start < end) { in tdx_accept_memory() 51 unsigned long len = end - start; in tdx_accept_memory() 57 * process by cutting number of hypercalls (if successful). in tdx_accept_memory() 76 * For TDVMCALL explicitly set RCX to the bitmap of shared registers. in __tdx_hypercall() 77 * The caller isn't expected to set @args->rcx anyway. in __tdx_hypercall() 79 args->rcx = TDVMCALL_EXPOSE_REGS_MASK; in __tdx_hypercall() 82 * Failure of __tdcall_saved_ret() indicates a failure of the TDVMCALL in __tdx_hypercall() [all …]
|
D | tdx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2021-2022 Intel Corporation */ 16 #include <asm/insn-eval.h> 82 * tdx_mcall_get_report0() - Wrapper to get TDREPORT0 (a.k.a. TDREPORT 84 * @reportdata: Address of the input buffer which contains user-defined 86 * @tdreport: Address of the output buffer to store TDREPORT. 92 * Return 0 on success, -EINVAL for invalid operands, or -EIO on 107 return -EINVAL; in tdx_mcall_get_report0() 108 return -EIO; in tdx_mcall_get_report0() 116 * tdx_hcall_get_quote() - Wrapper to request TD Quote using GetQuote [all …]
|
/linux-6.12.1/drivers/iio/light/ |
D | opt3001.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * opt3001.c - Texas Instruments OPT3001 Light Sensor 5 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com 55 /* The end-of-conversion enable is located in the low-limit register */ 65 * Time to wait for conversion result to be ready. The device datasheet 67 * This results in worst-case max values of 113ms or 883ms, respectively. 161 * purposes. Use milli lux precision to avoid 32-bit integer in opt3001_find_scale() 165 (scale->val * 1000 + scale->val2 / 1000)) { in opt3001_find_scale() 171 return -EINVAL; in opt3001_find_scale() 181 *val2 = (lux - (*val * 1000)) * 1000; in opt3001_to_iio_ret() [all …]
|
/linux-6.12.1/drivers/iio/adc/ |
D | ltc2497.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ltc2497.c - Driver for Analog Devices/Linear Technology LTC2497 ADC 49 if (st->recv_size == 3) in ltc2497_result_and_measure() 50 ret = i2c_master_recv(st->client, (char *)&st->data.d8, in ltc2497_result_and_measure() 51 st->recv_size); in ltc2497_result_and_measure() 53 ret = i2c_master_recv(st->client, (char *)&st->data.d32, in ltc2497_result_and_measure() 54 st->recv_size); in ltc2497_result_and_measure() 56 dev_err(&st->client->dev, "i2c_master_recv failed\n"); in ltc2497_result_and_measure() 66 if (st->recv_size == 3) { in ltc2497_result_and_measure() 67 *val = (get_unaligned_be24(st->data.d8) >> 6) in ltc2497_result_and_measure() [all …]
|
D | qcom-spmi-iadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. 15 #include <linux/of.h> 94 * struct iadc_chip - IADC Current ADC device structure. 98 * @rsense: Values of the internal and external sense resister in micro Ohms. 99 * @poll_eoc: Poll for end of conversion instead of waiting for IRQ. 101 * @gain: Raw gain of the channels. 103 * @complete: ADC notification after end of conversion interrupt is received. 122 ret = regmap_read(iadc->regmap, iadc->base + offset, &val); in iadc_read() 132 return regmap_write(iadc->regmap, iadc->base + offset, data); in iadc_write() [all …]
|
D | twl6030-gpadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2013 Texas Instruments Inc. 13 * Based on twl4030-madc.c 74 * struct twl6030_chnl_calib - channel calibration 77 * @offset_error: offset of the real curve 86 * struct twl6030_ideal_code - GPADC calibration parameters 88 * to the and of the measurable input range 92 * @code2: ideal code for at the end of the range 94 * @volt2: voltage input at the end(high voltage) 107 * struct twl6030_gpadc_platform_data - platform specific data [all …]
|
/linux-6.12.1/drivers/iio/pressure/ |
D | mprls0025pa.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * MPRLS0025PA - Honeywell MicroPressure pressure sensor series driver 5 * Copyright (c) Andreas Klinger <ak@it-klinger.de> 8 …-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/bo… 68 * @irq: end of conversion irq. used to distinguish between irq mode and 72 * @buffer: raw conversion data
|
/linux-6.12.1/tools/lib/bpf/ |
D | bpf_helpers.h | 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 7 * vmlinux.h (auto-generated from BTF) or linux/types.h 23 * To allow use of SEC() with externs (e.g., for extern .maps declarations), 39 _Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \ 45 /* Avoid 'linux/stddef.h' definition of '__always_inline'. */ 57 * Use __hidden attribute to mark a non-static BPF subprogram effectively 64 /* When utilizing vmlinux.h with BPF CO-RE, user BPF programs can't include 65 * any system-level headers (such as stddef.h, linux/version.h, etc), and 66 * commonly-used macros like NULL and KERNEL_VERSION aren't available through 67 * vmlinux.h. This just adds unnecessary hurdles and forces users to re-define [all …]
|
/linux-6.12.1/drivers/comedi/drivers/ni_routing/ |
D | README | 3 The contents of this directory are primarily for maintaining and formatting all 15 increasingly hard to find and the NI-MHDDK (comments in in example code). 16 There is no one place to find the various valid values of the registers. 19 gain any sense of intuition of which values, or even enums one should use 20 for various registers. There was some attempt in prior use of comedi to 22 varying purposes, but the end-user had to gain a knowledge of register 26 programming manuals and vendor-provided documentation are _not_ even 27 close to the same names that are in the end-user documentation. 29 4) The sets of routes that are valid are not consistent from device to device. 32 NIDAQmx(-base) c-libraries, nor with register level programming, _nor_ [all …]
|
/linux-6.12.1/Documentation/admin-guide/media/ |
D | qcom_camss.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 ------------ 14 The current version of the driver supports the Camera Subsystem found on 25 ---------------------------------- 28 the driver consists of: 30 - 2 / 3 CSIPHY modules. They handle the Physical layer of the CSI2 receivers. 31 A separate camera sensor can be connected to each of the CSIPHY module; 32 - 2 / 4 CSID (CSI Decoder) modules. They handle the Protocol and Application 33 layer of the CSI2 receivers. A CSID can decode data stream from any of the 36 - ISPIF (ISP Interface) module. Handles the routing of the data streams from [all …]
|
/linux-6.12.1/mm/ |
D | percpu-internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * Each chunk's bitmap is split into a number of full blocks. 12 * All units are in terms of bits. 23 position of the scan hint */ 26 position of the contig hint */ 27 int left_free; /* size of free space along 28 the left side of the block */ 29 int right_free; /* size of free space along 30 the right side of the block */ 31 int first_free; /* block position of first free */ [all …]
|
/linux-6.12.1/arch/x86/include/asm/xen/ |
D | page.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 24 /* Xen pseudo-physical address */ 30 #define XEN_PHYSICAL_MASK __sme_clr((1UL << 52) - 1) 41 /**** MACHINE <-> PHYSICAL CONVERSION MACROS ****/ 43 #define FOREIGN_FRAME_BIT (1UL<<(BITS_PER_LONG-1)) 44 #define IDENTITY_FRAME_BIT (1UL<<(BITS_PER_LONG-2)) 125 * - pfn_to_mfn() returns either INVALID_P2M_ENTRY or the mfn. No indicator 127 * - __pfn_to_mfn() returns the found entry of the p2m table. A possibly set 130 * - get_phys_to_machine() is to be called by __pfn_to_mfn() only in special 161 * Some x86 code are still using pfn_to_mfn instead of in pfn_to_mfn() [all …]
|