| /kernel/linux/linux-5.10/drivers/char/tpm/ |
| D | tpm_ppi.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/char/tpm/ |
| D | tpm_ppi.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/i2c/busses/ |
| D | i2c-scmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 86 struct acpi_smbus_cmi *smbus_cmi = adap->algo_data; in acpi_smbus_cmi_access() 97 dev_dbg(&adap->dev, "access size: %d %s\n", size, in acpi_smbus_cmi_access() 105 mt_params[3].integer.value = 0; in acpi_smbus_cmi_access() 107 mt_params[4].integer.value = 0; in acpi_smbus_cmi_access() 115 mt_params[3].integer.value = 0; in acpi_smbus_cmi_access() 117 mt_params[4].integer.value = 0; in acpi_smbus_cmi_access() 127 mt_params[3].integer.value = 1; in acpi_smbus_cmi_access() 129 mt_params[4].integer.value = data->byte; in acpi_smbus_cmi_access() 137 mt_params[3].integer.value = 2; in acpi_smbus_cmi_access() [all …]
|
| /kernel/linux/linux-6.6/drivers/i2c/busses/ |
| D | i2c-scmi.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/hp/hp-bioscfg/ |
| D | int-attributes.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/ |
| D | control.rst | 1 .. 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 …]
|
| D | ext-ctrls-fm-tx.rst | 1 .. 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 …]
|
| /kernel/linux/linux-5.10/drivers/iio/health/ |
| D | afe4404.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/iio/health/ |
| D | afe4404.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/acpi/ |
| D | pfr_telemetry.c | 1 // 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 …]
|
| D | pfr_update.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/dell/dell-wmi-sysman/ |
| D | int-attributes.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
| D | hns_dsaf_misc.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/ |
| D | hns_dsaf_misc.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | wm8958-dsp2.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | wm8958-dsp2.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/ |
| D | acpi.c | 9 * Copyright (C) 2019 - 2020 Intel Corporation 25 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 30 * Copyright (C) 2019 - 2020 Intel Corporation 62 #include "iwl-drv.h" 63 #include "iwl-debug.h" 80 "ACPI: Could not retrieve root port handle\n"); in iwl_acpi_get_handle() 81 return -ENOENT; in iwl_acpi_get_handle() 87 "ACPI: %s method not found\n", method); in iwl_acpi_get_handle() 88 return -ENOENT; in iwl_acpi_get_handle() 102 return ERR_PTR(-ENOENT); in iwl_acpi_get_object() [all …]
|
| /kernel/liteos_m/testsuites/unittest/posix/src/stdlib/ |
| D | atoi_test.c | 2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 64 LOG("+-------------------------------------------+\n"); in PosixStdlibAtoiTestTearDown() 70 * @tc.name : convert string to integer 71 * @tc.desc : [C- SOFTWARE -0200] 77 LOG("[DEMO] posix stdlib test case 1:atoi(%d) ok.\n", value); 79 LOG("[DEMO] posix stdlib test case 1:atoi(%d) fail.\n", value); 87 * @tc.name : convert string to integer 88 * @tc.desc : [C- SOFTWARE -0200] 92 int value = atoi("-2147483648"); [all …]
|
| D | atoll_test.c | 2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 65 LOG("+-------------------------------------------+\n"); in PosixStdlibAtollTestTearDown() 71 * @tc.name : convert string to long long integer 72 * @tc.desc : [C- SOFTWARE -0200] 78 LOG("[DEMO] posix stdlib test case 1:atoll(%lld) ok.\n", value); 80 LOG("[DEMO] posix stdlib test case 1:atoll(%lld) fail.\n", value); 88 * @tc.name : convert string to long long integer 89 * @tc.desc : [C- SOFTWARE -0200] 93 long long value = atoll("-9223372036854775808"); [all …]
|
| D | atol_test.c | 2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 64 LOG("+-------------------------------------------+\n"); in PosixStdlibAtolTestTearDown() 70 * @tc.name : convert string to long integer 71 * @tc.desc : [C- SOFTWARE -0200] 77 LOG("[DEMO] posix stdlib test case 1:atol(%ld) ok.\n", value); 79 LOG("[DEMO] posix stdlib test case 1:atol(%ld) fail.\n", value); 87 * @tc.name : convert string to long integer 88 * @tc.desc : [C- SOFTWARE -0200] 92 const long value = atol("-2147483648"); [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/ |
| D | acpi.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 4 * Copyright (C) 2019-2023 Intel Corporation 8 #include "iwl-drv.h" 9 #include "iwl-debug.h" 44 { .ident = "GOOGLE-HP", 50 { .ident = "GOOGLE-ASUS", 56 { .ident = "GOOGLE-SAMSUNG", 89 "ACPI: Could not retrieve root port handle\n"); in iwl_acpi_get_handle() 90 return -ENOENT; in iwl_acpi_get_handle() 96 "ACPI: %s method not found\n", method); in iwl_acpi_get_handle() [all …]
|
| /kernel/linux/linux-6.6/drivers/pci/ |
| D | pci-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/pci-acpi.h> 25 * here to PCI-SIG members: 26 * https://members.pcisig.com/wg/PCI-SIG/document/15350 35 struct device *dev = &adev->dev; in acpi_get_rc_addr() 47 dev_err(dev, "failed to parse _CRS method, error code %d\n", in acpi_get_rc_addr() 53 dev_err(dev, "no IO and memory resources present in _CRS\n"); in acpi_get_rc_addr() 54 return -EINVAL; in acpi_get_rc_addr() 58 *res = *entry->res; in acpi_get_rc_addr() 88 dev_err(dev, "can't find _HID %s device to locate resources\n", in acpi_get_rc_resources() [all …]
|
| /kernel/linux/linux-5.10/drivers/pci/ |
| D | pci-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/pci-acpi.h> 33 struct device *dev = &adev->dev; in acpi_get_rc_addr() 45 dev_err(dev, "failed to parse _CRS method, error code %d\n", in acpi_get_rc_addr() 51 dev_err(dev, "no IO and memory resources present in _CRS\n"); in acpi_get_rc_addr() 52 return -EINVAL; in acpi_get_rc_addr() 56 *res = *entry->res; in acpi_get_rc_addr() 86 dev_err(dev, "can't find _HID %s device to locate resources\n", in acpi_get_rc_resources() 88 return -ENODEV; in acpi_get_rc_resources() 97 dev_err(dev, "can't get resource from %s\n", in acpi_get_rc_resources() [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | control.rst | 1 .. 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 …]
|
| D | ext-ctrls-fm-tx.rst | 1 .. 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 …]
|