Home
last modified time | relevance | path

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

12345678910>>...41

/linux/drivers/char/tpm/
H A Dtpm_ppi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012-2014 Intel Corporation
10 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
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/Documentation/ABI/testing/
H A Dsysfs-bus-iio-dac3 Contact: linux-iio@vger.kernel.org
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-iio@vger.kernel.org
19 code in INPUT_N (_rawN), where N is the integer value of the symbol.
24 Contact: linux-iio@vger.kernel.org
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-iio@vger.kernel.org
[all …]
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A 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/drivers/iio/health/
H A 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/sound/soc/codecs/
H A 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/drivers/pci/
H A 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/drivers/platform/x86/dell/dell-wmi-sysman/
H A 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/Documentation/userspace-api/media/v4l/
H A 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/crypto/
H A 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/Documentation/firmware-guide/acpi/apei/
H A 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/fs/9p/
H A Dv9fs.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com>
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/sound/pci/cs5535audio/
H A Dcs5535audio_olpc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * OLPC XO-1 additional sound features
6 * Copyright © 2007-2008 Andres Salomon <dilinger@debian.org>
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/sound/pci/echoaudio/
H A Dechoaudio.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2003-2004 Giuliano Pochini <pochini@shiny.it>
27 static const DECLARE_TLV_DB_SCALE(db_scale_output_gain, -12800, 100, 1);
37 if (chip->fw_cache[fw_index]) { in get_firmware()
38 dev_dbg(chip->card->dev, in get_firmware()
39 "firmware requested: %s is cached\n", in get_firmware()
41 *fw_entry = chip->fw_cache[fw_index]; in get_firmware()
45 dev_dbg(chip->card->dev, in get_firmware()
46 "firmware requested: %s\n", card_fw[fw_index].data); in get_firmware()
48 err = request_firmware(fw_entry, name, &chip->pci->dev); in get_firmware()
[all …]
/linux/drivers/platform/x86/
H A 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 <matan@svgalib.org>
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 …]
/linux/sound/usb/6fire/
H A Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * - Holger Ruckdeschel: he found out how to control individual channel
29 * values dumped from windows driver and filtered by trial'n'error.
53 static DECLARE_TLV_DB_MINMAX(tlv_output, -9000, 0);
54 static DECLARE_TLV_DB_MINMAX(tlv_input, -1500, 1500);
62 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update()
67 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update()
68 comm_rt->write8(comm_rt, 0x12, 0x0f + i, in usb6fire_control_output_vol_update()
69 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update()
70 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update()
[all …]
/linux/drivers/hwtracing/coresight/
H A 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 != - in coresight_add_out_conn()
453 int i, n; acpi_validate_dsd_graph() local
[all...]
/linux/sound/ppc/
H A Dtumbler.c1 // SPDX-License-Identifier: GPL-2.0-or-later
114 err = i2c_smbus_write_byte_data(i2c->client, in send_init_client()
118 DBG("(W) i2c error %d\n", err); in send_init_client()
120 } while (count--); in send_init_client()
122 return -ENXIO; in send_init_client()
136 DBG("(I) tumbler init client\n"); in tumbler_init_client()
145 /* normal operation, all-pass mode */ in snapper_init_client()
147 /* normal output, no deemphasis, A input, power-up, line-in */ in snapper_init_client()
151 DBG("(I) snapper init client\n"); in snapper_init_client()
159 pmac_call_feature(PMAC_FTR_WRITE_GPIO, NULL, (gp)->addr, val)
[all …]
H A Dburgundy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--) in snd_pmac_burgundy_busy_wait()
26 printk(KERN_DEBUG "burgundy_busy_wait: timeout\n"); in snd_pmac_burgundy_busy_wait()
34 while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) in snd_pmac_burgundy_extend_wait()
37 printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n"); in snd_pmac_burgundy_extend_wait()
39 while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) in snd_pmac_burgundy_extend_wait()
42 printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n"); in snd_pmac_burgundy_extend_wait()
48 out_le32(&chip->awacs->codec_ctrl, addr + 0x200c00 + (val & 0xff)); in snd_pmac_burgundy_wcw()
50 out_le32(&chip->awacs->codec_ctrl, addr + 0x200d00 +((val>>8) & 0xff)); in snd_pmac_burgundy_wcw()
52 out_le32(&chip->awacs->codec_ctrl, addr + 0x200e00 +((val>>16) & 0xff)); in snd_pmac_burgundy_wcw()
[all …]
/linux/lib/
H A 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/sound/firewire/oxfw/
H A Doxfw-spkr.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * oxfw-spkr.c - a part of driver for OXFW970/971 based devices
37 return -ENOMEM; in avc_audio_feature_mute()
64 dev_err(&unit->device, "short FCP response\n"); in avc_audio_feature_mute()
65 err = -EIO; in avc_audio_feature_mute()
69 dev_err(&unit->device, "mute command failed\n"); in avc_audio_feature_mute()
70 err = -EIO; in avc_audio_feature_mute()
95 return -ENOMEM; in avc_audio_feature_volume()
125 dev_err(&unit->device, "short FCP response\n"); in avc_audio_feature_volume()
126 err = -EIO; in avc_audio_feature_volume()
[all …]
/linux/tools/perf/scripts/python/
H A Devent_analyzing_sample.py2 # SPDX-License-Identifier: GPL-2.0
27 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
42 print("In trace_begin:\n")
61 flags integer,
62 ip integer,
63 status integer,
64 dse integer,
65 dla integer,
66 lat integer
107 print("In trace_end:\n")
[all …]
/linux/drivers/acpi/
H A Dacpi_adxl.c1 // SPDX-License-Identifier: GPL-2.0
46 pr_info("DSM call failed for cmd=%d\n", cmd); in adxl_dsm()
50 if (obj->package.count != 2) { in adxl_dsm()
51 pr_info("Bad pkg count %d\n", obj->package.count); in adxl_dsm()
55 o = obj->package.elements; in adxl_dsm()
56 if (o->type != ACPI_TYPE_INTEGER) { in adxl_dsm()
57 pr_info("Bad 1st element type %d\n", o->type); in adxl_dsm()
60 if (o->integer.value) { in adxl_dsm()
61 pr_info("Bad ret val %llu\n", o->integer.value); in adxl_dsm()
65 o = obj->package.elements + 1; in adxl_dsm()
[all …]
/linux/Documentation/networking/
H A Dipvs-sysctl.rst1 .. SPDX-License-Identifier: GPL-2.0
4 IPvs-sysctl
10 am_droprate - INTEGER
16 amemthresh - INTEGER
25 backup_only - BOOLEAN
26 - 0 - disabled (default)
27 - not 0 - enabled
32 conn_reuse_mode - INTEGER
33 1 - default
52 conntrack - BOOLEAN
[all …]
/linux/scripts/dtc/
H A Ddtc-lexer.l1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 %option noyywrap nounput noinput never-interactive
12 PROPNODECHAR [a-zA-Z0-9,._+*#?@-]
14 LABEL [a-zA-Z_][a-zA-Z0-9_]*
19 LINECOMMENT "//".*\n
24 #include "dtc-parser.tab.h"
44 #define BEGIN_DEFAULT() DPRINT("<V1>\n"); \
56 yytext[yyleng-1] = '\0';
60 <*>^"#"(line)?[ \t]+[0-9]+[ \t]+{STRING}([ \t]+[0-9]+)* {
72 for (fnend = yytext + yyleng - 1;
[all …]
/linux/drivers/gpu/drm/amd/display/dc/spl/
H A Dspl_fixpt31_32.c1 // SPDX-License-Identifier: MIT
17 return (unsigned long long)(-arg); in abs_i64()
41 ((1ULL << FIXED31_32_BITS_PER_FRACTIONAL_PART) - 1)
56 unsigned long long arg1_value = arg1_negative ? -numerator : numerator; in spl_fixpt_from_fraction()
57 unsigned long long arg2_value = arg2_negative ? -denominator : denominator; in spl_fixpt_from_fraction()
61 /* determine integer part */ in spl_fixpt_from_fraction()
79 remainder -= arg2_value; in spl_fixpt_from_fraction()
81 } while (--i != 0); in spl_fixpt_from_fraction()
88 SPL_ASSERT(res_value <= (unsigned long long)LLONG_MAX - summand); in spl_fixpt_from_fraction()
96 res.value = -res.value; in spl_fixpt_from_fraction()
[all …]

12345678910>>...41