| /linux/fs/smb/client/ |
| H A 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/drivers/comedi/drivers/ |
| H A 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 …]
|
| H A 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 …]
|
| H A D | s626.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 2002-2004 Sensoray Co., Inc. 43 * insn.n=1; //number of operation (must be 1) 68 * struct s626_private - Working data for s626 driver. 69 * @ai_cmd_running: non-zero if ai_cmd is running. 70 * @ai_sample_timer: time between samples in units of the timer. 71 * @ai_convert_count: conversion counter. 72 * @ai_convert_timer: time between conversion in units of the timer. 74 * @adc_items: number of items in ADC poll list. [all …]
|
| /linux/fs/smb/server/ |
| H A 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/include/acpi/ |
| H A 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 - 2025, Intel Corp. 55 * Success is always zero, failure is non-zero 204 * String versions of the exception codes above 245 "The interface is not part of the current subsystem configuration"), 249 "Overflow during string-to-integer conversion"), 251 "Overflow during ASCII hex-to-binary conversion"), 253 "Overflow during ASCII decimal-to-binary conversion"), 255 "Overflow during ASCII octal-to-binary conversion"), [all …]
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A 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/Documentation/userspace-api/media/v4l/ |
| H A D | pixfmt-v4l2.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 5 Single-planar format structure 14 .. flat-table:: struct v4l2_pix_format 15 :header-rows: 0 16 :stub-columns: 0 19 * - __u32 20 - ``width`` 21 - Image width in pixels. 22 * - __u32 23 - ``height`` [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | rzt2h_adc.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/iio/adc-helpers.h> 53 reg = readw(adc->base + RZT2H_ADCSR_REG); in rzt2h_adc_start() 55 /* Set conversion type */ in rzt2h_adc_start() 58 /* Set end of conversion interrupt and start bit. */ in rzt2h_adc_start() 61 writew(reg, adc->base + RZT2H_ADCSR_REG); in rzt2h_adc_start() 68 reg = readw(adc->base + RZT2H_ADCSR_REG); in rzt2h_adc_stop() 70 /* Clear end of conversion interrupt and start bit. */ in rzt2h_adc_stop() 73 writew(reg, adc->base + RZT2H_ADCSR_REG); in rzt2h_adc_stop() 80 ret = pm_runtime_resume_and_get(adc->dev); in rzt2h_adc_read_single() [all …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | mcp3564.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2022-2023 Microchip Technology Inc. and its subsidiaries 10 …s/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP3561-2-4-Family-Data-Sheet-DS20006181… 12 …ds/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3561_2_4R-Data-Sheet-DS200006391C.pdf 14 …ProductDocuments/DataSheets/MCP3461-2-4-Two-Four-Eight-Channel-153.6-ksps-Low-Noise-16-Bit-Delta-S… 16 …/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4R-Family-Data-Sheet-DS20006404… 64 * ADC Output Data Format 32-bit (25-bit right justified data + Channel ID): 65 * CHID[3:0] + SGN extension (4 bits) + 24-bit ADC data. 70 * ADC Output Data Format 32-bit (25-bit right justified data): 71 * SGN extension (8-bit) + 24-bit ADC data. [all …]
|
| /linux/tools/lib/bpf/ |
| H A 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 31 * To allow use of SEC() with externs (e.g., for extern .maps declarations), 47 _Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \ 53 /* Avoid 'linux/stddef.h' definition of '__always_inline'. */ 65 * Use __hidden attribute to mark a non-static BPF subprogram effectively 72 /* When utilizing vmlinux.h with BPF CO-RE, user BPF programs can't include 73 * any system-level headers (such as stddef.h, linux/version.h, etc), and 74 * commonly-used macros like NULL and KERNEL_VERSION aren't available through 75 * vmlinux.h. This just adds unnecessary hurdles and forces users to re-define [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A 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 …]
|
| H A 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 - 2025, 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 …]
|
| H A 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 - 2025, 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 …]
|
| H A 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() 58 if (aml_resource->common_serial_bus.type > in acpi_rs_convert_aml_to_resources() 66 [aml_resource->common_serial_bus.type]; in acpi_rs_convert_aml_to_resources() 92 if (!resource->length) { in acpi_rs_convert_aml_to_resources() 94 "Zero-length resource returned from RsConvertAmlToResource")); in acpi_rs_convert_aml_to_resources() 100 resource->length)); in acpi_rs_convert_aml_to_resources() [all …]
|
| /linux/drivers/iio/light/ |
| H A 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. 85 * Factor as specified by conversion equation in datasheet. 94 * Factor used to align decimal part of proccessed value to six decimal 231 for (i = 0; i < ARRAY_SIZE(*opt->chip_info->scales); i++) { in opt3001_find_scale() 232 const struct opt3001_scale *scale = &(*opt->chip_info->scales)[i]; in opt3001_find_scale() [all …]
|
| /linux/arch/x86/coco/tdx/ |
| H A 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 …]
|
| /linux/drivers/iio/pressure/ |
| H A 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… 58 * @irq: end of conversion irq. used to distinguish between irq mode and 64 * @buffer: raw conversion data
|
| /linux/drivers/comedi/drivers/ni_routing/ |
| H A 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/Documentation/admin-guide/media/ |
| H A 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/include/linux/ |
| H A D | jiffies.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * The following defines establish the engineering parameters of the PLL 21 * nearest power of two in order to avoid hardware multiply operations. 44 # error Invalid value of HZ. 51 * longer fit in 32 bits. The following way of calculating this gives us 53 * - (NOM / DEN) fits in (32 - LSH) bits. 54 * - (NOM % DEN) fits in (32 - LSH) bits. 75 * The 64-bit value is not atomic on 32-bit systems - you MUST NOT read it 79 * jiffies and jiffies_64 are at the same address for little-endian systems 80 * and for 64-bit big-endian systems. [all …]
|
| /linux/mm/ |
| H A 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/arch/x86/include/asm/xen/ |
| H A 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 …]
|