Home
last modified time | relevance | path

Searched +full:integer +full:- +full:n (Results 1 – 25 of 1010) sorted by relevance

12345678910>>...41

/linux-6.14.4/Documentation/ABI/testing/
Dsysfs-bus-iio-dac3 Contact: linux-[email protected]
9 - disable toggle operation;
10 - change out_currentY_rawN, where N is the integer value of the symbol;
11 - enable toggle operation.
15 Contact: linux-[email protected]
19 code in INPUT_N (_rawN), where N is the integer value of the symbol.
24 Contact: linux-[email protected]
29 output, denoted as out_currentY_rawN, where N is the integer value
30 of the symbol. Writing an integer value N will select out_currentY_rawN.
34 Contact: linux-[email protected]
[all …]
/linux-6.14.4/drivers/char/tpm/
Dtpm_ppi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012-2014 Intel Corporation
10 * Maintained by: <tpmdd-[email protected]>
55 return scnprintf(buf, PAGE_SIZE, "%s\n", chip->ppi_version); in tpm_show_ppi_version()
61 ssize_t size = -EINVAL; in tpm_show_ppi_request()
67 if (strcmp(chip->ppi_version, "1.2") < 0) in tpm_show_ppi_request()
70 obj = tpm_eval_dsm(chip->acpi_dev_handle, TPM_PPI_FN_GETREQ, in tpm_show_ppi_request()
73 return -ENXIO; in tpm_show_ppi_request()
81 if (obj->package.count == 3 && in tpm_show_ppi_request()
82 obj->package.elements[0].type == ACPI_TYPE_INTEGER && in tpm_show_ppi_request()
[all …]
/linux-6.14.4/drivers/i2c/busses/
Di2c-scmi.c1 // SPDX-License-Identifier: GPL-2.0-only
79 struct acpi_smbus_cmi *smbus_cmi = adap->algo_data; in acpi_smbus_cmi_access()
90 dev_dbg(&adap->dev, "access size: %d %s\n", size, in acpi_smbus_cmi_access()
98 mt_params[3].integer.value = 0; in acpi_smbus_cmi_access()
100 mt_params[4].integer.value = 0; in acpi_smbus_cmi_access()
108 mt_params[3].integer.value = 0; in acpi_smbus_cmi_access()
110 mt_params[4].integer.value = 0; in acpi_smbus_cmi_access()
120 mt_params[3].integer.value = 1; in acpi_smbus_cmi_access()
122 mt_params[4].integer.value = data->byte; in acpi_smbus_cmi_access()
130 mt_params[3].integer.value = 2; in acpi_smbus_cmi_access()
[all …]
/linux-6.14.4/drivers/net/wireless/intel/iwlwifi/fw/
Dacpi.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
4 * Copyright (C) 2019-2024 Intel Corporation
7 #include "iwl-drv.h"
8 #include "iwl-debug.h"
42 "ACPI: Could not retrieve root port handle\n"); in iwl_acpi_get_handle()
43 return -ENOENT; in iwl_acpi_get_handle()
49 "ACPI: %s method not found\n", method); in iwl_acpi_get_handle()
50 return -ENOENT; in iwl_acpi_get_handle()
64 return ERR_PTR(-ENOENT); in iwl_acpi_get_object()
70 "ACPI: %s method invocation failed (status: 0x%x)\n", in iwl_acpi_get_object()
[all …]
/linux-6.14.4/drivers/platform/x86/hp/hp-bioscfg/
Dint-attributes.c1 // SPDX-License-Identifier: GPL-2.0
3 * Functions corresponding to integer type attributes under
4 * BIOS Enumeration GUID for use with hp-bioscfg driver.
6 * Copyright (c) 2022 Hewlett-Packard Inc.
11 GET_INSTANCE_ID(integer);
18 return -EIO; in current_value_show()
20 return sysfs_emit(buf, "%d\n", in current_value_show()
25 * validate_integer_input() -
38 if (integer_data->common.is_readonly) in validate_integer_input()
39 return -EIO; in validate_integer_input()
[all …]
/linux-6.14.4/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_misc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2014-2015 Hisilicon Limited.
35 if (dsaf_dev->sub_ctrl) in dsaf_write_sub()
36 dsaf_write_syscon(dsaf_dev->sub_ctrl, reg, val); in dsaf_write_sub()
38 dsaf_write_reg(dsaf_dev->sc_base, reg, val); in dsaf_write_sub()
46 if (dsaf_dev->sub_ctrl) { in dsaf_read_sub()
47 err = dsaf_read_syscon(dsaf_dev->sub_ctrl, reg, &ret); in dsaf_read_sub()
49 dev_err(dsaf_dev->dev, "dsaf_read_syscon error %d!\n", in dsaf_read_sub()
52 ret = dsaf_read_reg(dsaf_dev->sc_base, reg); in dsaf_read_sub()
64 obj_args[0].integer.type = ACPI_TYPE_INTEGER; in hns_dsaf_acpi_ledctrl_by_port()
[all …]
/linux-6.14.4/drivers/iio/health/
Dafe4404.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * AFE4404 Heart Rate Monitors and Low-Cost Pulse Oximeters
5 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
79 * struct afe4404_data - AFE4404 device instance data
144 { .integer = 500000, .fract = 0 },
145 { .integer = 250000, .fract = 0 },
146 { .integer = 100000, .fract = 0 },
147 { .integer = 50000, .fract = 0 },
148 { .integer = 25000, .fract = 0 },
149 { .integer = 10000, .fract = 0 },
[all …]
/linux-6.14.4/drivers/acpi/
Dpfr_telemetry.c1 // SPDX-License-Identifier: GPL-2.0
76 return container_of(file->private_data, struct pfrt_log_device, miscdev); in to_pfrt_log_dev()
82 acpi_handle handle = ACPI_HANDLE(pfrt_log_dev->parent_dev); in get_pfrt_log_data_info()
84 int ret = -EBUSY; in get_pfrt_log_data_info()
93 in_buf.integer.value = pfrt_log_dev->info.log_type; in get_pfrt_log_data_info()
96 pfrt_log_dev->info.log_revid, PFRT_FUNC_GET_DATA, in get_pfrt_log_data_info()
99 return -EINVAL; in get_pfrt_log_data_info()
101 if (out_obj->package.count < LOG_NR_IDX || in get_pfrt_log_data_info()
102 out_obj->package.elements[LOG_STATUS_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
103 out_obj->package.elements[LOG_EXT_STATUS_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
[all …]
Dpfr_update.c1 // SPDX-License-Identifier: GPL-2.0
116 return container_of(file->private_data, struct pfru_device, miscdev); in to_pfru_dev()
122 acpi_handle handle = ACPI_HANDLE(pfru_dev->parent_dev); in query_capability()
124 int ret = -EINVAL; in query_capability()
127 pfru_dev->rev_id, in query_capability()
133 if (out_obj->package.count < CAP_NR_IDX || in query_capability()
134 out_obj->package.elements[CAP_STATUS_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
135 out_obj->package.elements[CAP_UPDATE_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
136 out_obj->package.elements[CAP_CODE_TYPE_IDX].type != ACPI_TYPE_BUFFER || in query_capability()
137 out_obj->package.elements[CAP_FW_VER_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
[all …]
Dutils.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * acpi_utils.c - ACPI Utility Functions ($Revision: 10 $)
23 /* --------------------------------------------------------------------------
25 -------------------------------------------------------------------------- */
28 acpi_handle_debug(h, "Evaluate [%s]: %s\n", p, acpi_format_exception(s)); in acpi_util_eval_error()
44 if (!package || (package->type != ACPI_TYPE_PACKAGE) in acpi_extract_package()
45 || (package->package.count < 1)) { in acpi_extract_package()
46 pr_debug("Invalid package argument\n"); in acpi_extract_package()
50 if (!format || !format->pointer || (format->length < 1)) { in acpi_extract_package()
51 pr_debug("Invalid format argument\n"); in acpi_extract_package()
[all …]
/linux-6.14.4/Documentation/userspace-api/media/v4l/
Dcontrol.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
9 Devices typically have a number of user-settable controls such as
21 pre-defined control IDs have the prefix ``V4L2_CID_``, and are listed in
22 :ref:`control-id`. The ID is used when querying the attributes of a
27 the user is supposed to understand. When the purpose is non-intuitive
28 the driver writer should provide a user manual, a user interface plug-in
57 .. _control-id:
68 ``V4L2_CID_BRIGHTNESS`` ``(integer)``
71 ``V4L2_CID_CONTRAST`` ``(integer)``
74 ``V4L2_CID_SATURATION`` ``(integer)``
[all …]
Dext-ctrls-fm-tx.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _fm-tx-controls:
15 .. _fm-tx-control-id:
25 ``V4L2_CID_RDS_TX_DEVIATION (integer)``
27 step are driver-specific.
29 ``V4L2_CID_RDS_TX_PI (integer)``
32 ``V4L2_CID_RDS_TX_PTY (integer)``
34 to 31 pre-defined programme types.
44 which can scroll strings sized as 8 x N characters. So, this control
52 programme-related information or any other text. In these cases,
[all …]
/linux-6.14.4/sound/soc/codecs/
Dwm8958-dsp2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8958-dsp2.c -- WM8958 DSP2 support
53 if (wm8994->cur_fw == fw) in wm8958_dsp2_fw()
56 if (fw->size < 32) { in wm8958_dsp2_fw()
57 dev_err(component->dev, "%s: firmware too short (%zd bytes)\n", in wm8958_dsp2_fw()
58 name, fw->size); in wm8958_dsp2_fw()
62 if (memcmp(fw->data, "WMFW", 4) != 0) { in wm8958_dsp2_fw()
63 data32 = get_unaligned_be32(fw->data); in wm8958_dsp2_fw()
64 dev_err(component->dev, "%s: firmware has bad file magic %08x\n", in wm8958_dsp2_fw()
69 len = get_unaligned_be32(fw->data + 4); in wm8958_dsp2_fw()
[all …]
/linux-6.14.4/drivers/platform/x86/dell/dell-wmi-sysman/
Dint-attributes.c1 // SPDX-License-Identifier: GPL-2.0
3 * Functions corresponding to integer type attributes under BIOS Integer GUID for use with
4 * dell-wmi-sysman
9 #include "dell-wmi-sysman.h"
13 get_instance_id(integer);
27 return -EIO; in current_value_show()
28 if (obj->package.elements[CURRENT_VAL].type != ACPI_TYPE_INTEGER) { in current_value_show()
30 return -EINVAL; in current_value_show()
32 ret = snprintf(buf, PAGE_SIZE, "%lld\n", obj->package.elements[CURRENT_VAL].integer.value); in current_value_show()
38 * validate_integer_input() - Validate input of current_value against lower and upper bound
[all …]
/linux-6.14.4/drivers/pci/
Dpci-acpi.c1 // SPDX-License-Identifier: GPL-2.0
17 #include <linux/pci-acpi.h>
18 #include <linux/pci-ecam.h>
26 * here to PCI-SIG members:
27 * https://members.pcisig.com/wg/PCI-SIG/document/15350
36 struct device *dev = &adev->dev; in acpi_get_rc_addr()
48 dev_err(dev, "failed to parse _CRS method, error code %d\n", in acpi_get_rc_addr()
54 dev_err(dev, "no IO and memory resources present in _CRS\n"); in acpi_get_rc_addr()
55 return -EINVAL; in acpi_get_rc_addr()
59 *res = *entry->res; in acpi_get_rc_addr()
[all …]
/linux-6.14.4/sound/aoa/codecs/
Dtas.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * - How to distinguish between 3004 and versions?
11 * - This codec driver doesn't honour the 'connected'
15 * - Driver assumes that the microphone is always
17 * the input. This should also be a codec-dependent
23 * - As Apple notes in their code, the tas3004 seems
36 * - this should actually register *two* aoa_codec
71 MODULE_DESCRIPTION("tas codec driver for snd-aoa");
74 #include "tas-gain-table.h"
75 #include "tas-basstreble.h"
[all …]
Donyx.c1 // SPDX-License-Identifier: GPL-2.0-only
24 * But snd-aoa assumes that there's at most one card, so
37 MODULE_DESCRIPTION("pcm3052 (onyx) codec driver for snd-aoa");
44 #define PFX "snd-aoa-codec-onyx: "
47 /* cache registers 65 to 80, they are write-only! */
71 *value = onyx->cache[reg-FIRSTREGISTER]; in onyx_read_register()
74 v = i2c_smbus_read_byte_data(onyx->i2c, reg); in onyx_read_register()
77 return -1; in onyx_read_register()
80 onyx->cache[ONYX_REG_CONTROL-FIRSTREGISTER] = *value; in onyx_read_register()
88 result = i2c_smbus_write_byte_data(onyx->i2c, reg, value); in onyx_write_register()
[all …]
/linux-6.14.4/crypto/
Drsaprivkey.asn11 -- SPDX-License-Identifier: BSD-3-Clause
2 --
3 -- Copyright (C) 2016 IETF Trust and the persons identified as authors
4 -- of the code
5 --
6 -- https://www.rfc-editor.org/rfc/rfc8017#appendix-A.1.2
9 version INTEGER,
10 n INTEGER ({ rsa_get_n }),
11 e INTEGER ({ rsa_get_e }),
12 d INTEGER ({ rsa_get_d }),
[all …]
/linux-6.14.4/Documentation/firmware-guide/acpi/apei/
Doutput_format.rst1 .. SPDX-License-Identifier: GPL-2.0
12 severity: <integer>, <severity string>
13 section: <integer>, severity: <integer>, <severity string>
14 flags: <integer>
35 [processor_type: <integer>, <proc type string>]
36 [processor_isa: <integer>, <proc isa string>]
37 [error_type: <integer>
39 [operation: <integer>, <proc operation string>]
40 [flags: <integer>
42 [level: <integer>]
[all …]
/linux-6.14.4/sound/pci/cs5535audio/
Dcs5535audio_olpc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * OLPC XO-1 additional sound features
6 * Copyright © 2007-2008 Andres Salomon <[email protected]>
17 #define DRV_NAME "cs5535audio-olpc"
35 dev_err(ac97->bus->card->dev, in olpc_analog_input()
36 "setting High Pass Filter - %d\n", err); in olpc_analog_input()
45 * OLPC XO-1's V_REFOUT is a mic bias enable.
58 dev_err(ac97->bus->card->dev, "setting MIC Bias - %d\n", err); in olpc_mic_bias()
64 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; in olpc_dc_info()
65 uinfo->count = 1; in olpc_dc_info()
[all …]
/linux-6.14.4/drivers/pci/pcie/
Dedr.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/pci-acpi.h>
30 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_enable_dpc()
38 if (!acpi_check_dsm(adev->handle, &pci_acpi_dsm_guid, 6, in acpi_enable_dpc()
43 req.integer.value = 1; in acpi_enable_dpc()
49 obj = acpi_evaluate_dsm(adev->handle, &pci_acpi_dsm_guid, 6, in acpi_enable_dpc()
54 if (obj->type != ACPI_TYPE_INTEGER) { in acpi_enable_dpc()
55 pci_err(pdev, FW_BUG "Enable DPC _DSM returned non integer\n"); in acpi_enable_dpc()
56 status = -EIO; in acpi_enable_dpc()
59 if (obj->integer.value != 1) { in acpi_enable_dpc()
[all …]
/linux-6.14.4/fs/9p/
Dv9fs.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2004-2008 by Eric Van Hensbergen <[email protected]>
36 /* Options that take integer arguments */
72 int version = -EINVAL; in get_cache_mode()
76 p9_debug(P9_DEBUG_9P, "Cache mode: loose\n"); in get_cache_mode()
79 p9_debug(P9_DEBUG_9P, "Cache mode: fscache\n"); in get_cache_mode()
82 p9_debug(P9_DEBUG_9P, "Cache mode: mmap\n"); in get_cache_mode()
85 p9_debug(P9_DEBUG_9P, "Cache mode: readahead\n"); in get_cache_mode()
88 p9_debug(P9_DEBUG_9P, "Cache mode: none\n"); in get_cache_mode()
90 version = -EINVAL; in get_cache_mode()
[all …]
/linux-6.14.4/lib/
Dpolynomial.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic polynomial calculation using integer coefficients.
18 * Originally this was part of drivers/hwmon/bt1-pvt.c.
22 * to PVT data and vice-versa are following:
24 * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) +
26 * T = -1.6743e-11*(N^4) + 8.1542e-8*(N^3) + -1.8201e-4*(N^2) +
27 * 3.1020e-1*(N^1) - 4.838e1
29 * where T = [-48.380, 147.438]C and N = [0, 1023].
31 * They must be accordingly altered to be suitable for the integer arithmetics.
34 * within the integer numbers limit. In addition we need to translate the
[all …]
/linux-6.14.4/drivers/hwtracing/coresight/
Dcoresight-platform.c1 // SPDX-License-Identifier: GPL-2.0
19 #include "coresight-priv.h"
24 * If the output port is already assigned on this device, return -EINVAL
37 for (i = 0; i < pdata->nr_outconns; ++i) { in coresight_add_out_conn()
38 conn = pdata->out_conns[i]; in coresight_add_out_conn()
39 /* Output == -1 means ignore the port for example for helpers */ in coresight_add_out_conn()
40 if (conn->src_port != -1 && in coresight_add_out_conn()
41 conn->src_port == new_conn->src_port) { in coresight_add_out_conn()
42 dev_warn(dev, "Duplicate output port %d\n", in coresight_add_out_conn()
43 conn->src_port); in coresight_add_out_conn()
[all …]
/linux-6.14.4/drivers/platform/x86/
Dlg-laptop.c1 // SPDX-License-Identifier: GPL-2.0+
3 * lg-laptop.c - LG Gram ACPI features and hotkeys Driver
5 * Copyright (C) 2018 Matan Ziv-Av <[email protected]>
16 #include <linux/input/sparse-keymap.h>
33 MODULE_AUTHOR("Matan Ziv-Av");
57 #define WMI_EVENT_GUID0 "E4FB94F9-7F2B-4173-AD1A-CD1D95086248"
58 #define WMI_EVENT_GUID1 "023B133E-49D1-4E10-B313-698220140DC2"
59 #define WMI_EVENT_GUID2 "37BE1AC0-C3F2-4B1F-BFBE-8FDEAF2814D6"
60 #define WMI_EVENT_GUID3 "911BAD44-7DF8-4FBB-9319-BABA1C4B293B"
61 #define WMI_METHOD_WMAB "C3A72B38-D3EF-42D3-8CBB-D5A57049F66D"
[all …]

12345678910>>...41