/linux/drivers/macintosh/ |
H A D | windfarm_smu_controls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 s32 min, max; /* min/max values */ member 56 struct smu_cmd cmd; in smu_set_fan() local 62 cmd.cmd = SMU_CMD_FAN_COMMAND; in smu_set_fan() 75 cmd.data_len = 4; in smu_set_fan() 78 return -EINVAL; in smu_set_fan() 84 cmd.data_len = 14; in smu_set_fan() 87 cmd.reply_len = 16; in smu_set_fan() 88 cmd.data_buf = cmd.reply_buf = buffer; in smu_set_fan() 89 cmd.status = 0; in smu_set_fan() [all …]
|
/linux/drivers/crypto/ |
H A D | atmel-sha204a.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include "atmel-i2c.h" 24 struct atmel_i2c_client_priv *i2c_priv = work_data->ctx; in atmel_sha204a_rng_done() 28 dev_warn_ratelimited(&i2c_priv->client->dev, in atmel_sha204a_rng_done() 32 rng->priv = (unsigned long)work_data; in atmel_sha204a_rng_done() 33 atomic_dec(&i2c_priv->tfm_count); in atmel_sha204a_rng_done() 37 size_t max) in atmel_sha204a_rng_read_nonblocking() argument 45 if (!atomic_add_unless(&i2c_priv->tfm_count, 1, 1)) in atmel_sha204a_rng_read_nonblocking() 48 if (rng->priv) { in atmel_sha204a_rng_read_nonblocking() 49 work_data = (struct atmel_i2c_work_data *)rng->priv; in atmel_sha204a_rng_read_nonblocking() [all …]
|
/linux/sound/soc/intel/atom/ |
H A D | sst-atom-controls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sst-atom-controls.c - Intel MID Platform driver DPCM ALSA controls for Mrfld 5 * Copyright (C) 2013-14 Intel Corp 20 #include "sst-mfld-platform.h" 21 #include "sst-atom-controls.h" 28 struct snd_sst_bytes_v2 *byte_data = drv->byte_stream; in sst_fill_byte_control() 30 byte_data->type = SST_CMD_BYTES_SET; in sst_fill_byte_control() 31 byte_data->ipc_msg = ipc_msg; in sst_fill_byte_control() 32 byte_data->block = block; in sst_fill_byte_control() 33 byte_data->task_id = task_id; in sst_fill_byte_control() [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | nlctrl.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: nlctrl 4 protocol: genetlink-legacy 5 uapi-header: linux/genetlink.h 8 genetlink meta-family that exposes information about all genetlink 12 - 13 name: op-flags 15 enum-name: 17 - admin-perm [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | das16.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 16 * Devices: [Keithley Metrabyte] DAS-16 (das-16), DAS-16G (das-16g), 17 * DAS-16F (das-16f), DAS-1201 (das-1201), DAS-1202 (das-1202), 18 * DAS-1401 (das-1401), DAS-1402 (das-1402), DAS-1601 (das-1601), 19 * DAS-1602 (das-1602), 20 * [ComputerBoards] PC104-DAS16/JR (pc104-das16jr), 21 * PC104-DAS16JR/16 (pc104-das16jr/16), CIO-DAS16 (cio-das16), 22 * CIO-DAS16F (cio-das16/f), CIO-DAS16/JR (cio-das16/jr), 23 * CIO-DAS16JR/16 (cio-das16jr/16), CIO-DAS1401/12 (cio-das1401/12), [all …]
|
/linux/drivers/nvdimm/ |
H A D | dimm_devs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 14 #include "nd-core.h" 29 if (!nvdimm->cmd_mask || in nvdimm_check_config_data() 30 !test_bit(ND_CMD_GET_CONFIG_DATA, &nvdimm->cmd_mask)) { in nvdimm_check_config_data() 31 if (test_bit(NDD_LABELING, &nvdimm->flags)) in nvdimm_check_config_data() 32 return -ENXIO; in nvdimm_check_config_data() 34 return -ENOTTY; in nvdimm_check_config_data() 45 return -EINVAL; in validate_dimm() 47 rc = nvdimm_check_config_data(ndd->dev); in validate_dimm() [all …]
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | devlink_port_split.py | 2 # SPDX-License-Identifier: GPL-2.0 12 # Test port split configuration using devlink-port lanes attribute. 21 # Kselftest framework requirement - SKIP code is 4 23 Port = collections.namedtuple('Port', 'bus_info name') 26 def run_command(cmd, should_fail=False): argument 32 p = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True) 37 print("Error sending command: %s" % cmd) 57 cmd = "devlink -j port show" 58 stdout, stderr = run_command(cmd) 67 arr.append(Port(bus_info=port, name=ports[port]['netdev'])) [all …]
|
/linux/drivers/net/ethernet/cisco/enic/ |
H A D | enic_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 char name[ETH_GSTRING_LEN]; member 21 .name = #stat, \ 26 .name = #stat, \ 31 .name = #stat, \ 36 .name = "rq[%d]_"#stat, \ 41 .name = "wq[%d]_"#stat, \ 123 for (i = 0; i < enic->rq_count; i++) { in enic_intr_coal_set_rx() 125 vnic_intr_coalescing_timer_set(&enic->intr[intr], timer); in enic_intr_coal_set_rx() 133 struct ethtool_link_settings *base = &ecmd->base; in enic_get_ksettings() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | cyttsp5.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2012-2015 Cypress Semiconductor 13 #include <linux/crc-itu-t.h> 32 #define CY_NUM_BTN_EVENT_ID GENMASK(CY_BITS_PER_BTN - 1, 0) 161 size_t max; /* max value */ member 219 static int cyttsp5_read(struct cyttsp5 *ts, u8 *buf, u32 max) in cyttsp5_read() argument 226 error = regmap_bulk_read(ts->regmap, HID_INPUT_REG, temp, sizeof(temp)); in cyttsp5_read() 234 if (size > max) in cyttsp5_read() 235 return -EINVAL; in cyttsp5_read() 238 return regmap_bulk_read(ts->regmap, HID_INPUT_REG, buf, size); in cyttsp5_read() [all …]
|
/linux/sound/pci/pcxhr/ |
H A D | pcxhr_mixer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 25 #define PCXHR_LINE_CAPTURE_LEVEL_MIN 0 /* -112.0 dB */ 27 #define PCXHR_LINE_CAPTURE_ZERO_LEVEL 224 /* 0.0 dB ( 0 dBu -> 0 dBFS ) */ 29 #define PCXHR_LINE_PLAYBACK_LEVEL_MIN 0 /* -104.0 dB */ 31 #define PCXHR_LINE_PLAYBACK_ZERO_LEVEL 104 /* 0.0 dB ( 0 dBFS -> 0 dBu ) */ 33 static const DECLARE_TLV_DB_SCALE(db_scale_analog_capture, -1120 953 int i, err, cmd; pcxhr_iec958_update_byte() local [all...] |
/linux/drivers/clk/at91/ |
H A D | clk-peripheral.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 #include <linux/clk-provider.h> 52 u32 id = periph->id; in clk_peripheral_enable() 58 regmap_write(periph->regmap, offset, PERIPHERAL_MASK(id)); in clk_peripheral_enable() 67 u32 id = periph->id; in clk_peripheral_disable() 73 regmap_write(periph->regmap, offset, PERIPHERAL_MASK(id)); in clk_peripheral_disable() 81 u32 id = periph->id; in clk_peripheral_is_enabled() 87 regmap_read(periph->regmap, offset, &status); in clk_peripheral_is_enabled() 99 at91_clk_register_peripheral(struct regmap *regmap, const char *name, in at91_clk_register_peripheral() argument 108 if (!name || !(parent_name || parent_hw) || id > PERIPHERAL_ID_MAX) in at91_clk_register_peripheral() [all …]
|
H A D | clk-generated.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Based on clk-programmable & clk-peripheral drivers by Boris BREZILLON. 10 #include <linux/clk-provider.h> 43 spin_lock_irqsave(gck->lock, flags); in clk_generated_set() 44 regmap_write(gck->regmap, gck->layout->offset, in clk_generated_set() 45 (gck->id & gck->layout->pid_mask)); in clk_generated_set() 46 regmap_update_bits(gck->regmap, gck->layout->offset, in clk_generated_set() 47 AT91_PMC_PCR_GCKDIV_MASK | gck->layout->gckcss_mask | in clk_generated_set() 48 gck->layout->cmd | enable, in clk_generated_set() 49 field_prep(gck->layout->gckcss_mask, gck->parent_id) | in clk_generated_set() [all …]
|
/linux/drivers/gpu/drm/tests/ |
H A D | drm_framebuffer_test.c | 1 // SPDX-License-Identifier: GPL-2.0 30 struct drm_mode_fb_cmd2 cmd; member 31 const char *name; member 35 { .buffer_created = 1, .name = "ABGR8888 normal sizes", 36 .cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_ABGR8888, 40 { .buffer_created = 1, .name = "ABGR8888 max sizes", 41 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 45 { .buffer_created = 1, .name = "ABGR8888 pitch greater than min required", 46 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 50 { .buffer_created = 0, .name = "ABGR8888 pitch less than min required", [all …]
|
/linux/sound/soc/sof/ |
H A D | ipc3-control.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 10 #include "sof-priv.h" 11 #include "sof-audio.h" 12 #include "ipc3-priv.h" 18 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scontrol->scomp); in sof_ipc3_set_get_kcontrol_data() 19 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; in sof_ipc3_set_get_kcontrol_data() 20 const struct sof_ipc_ops *iops = sdev->ipc->ops; in sof_ipc3_set_get_kcontrol_data() 27 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc3_set_get_kcontrol_data() 28 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc3_set_get_kcontrol_data() 35 dev_err(sdev->dev, "%s: can't find widget with id %d\n", __func__, in sof_ipc3_set_get_kcontrol_data() [all …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8390-genio-common.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Author: Chris Chen <chris-qj.chen@mediatek.com> 9 * Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/interrupt-controller/irq.h> 17 #include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h> 18 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h> 19 #include <dt-bindings/spmi/spmi.h> 20 #include <dt-bindings/usb/pd.h> [all …]
|
H A D | mt8186-corsola.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 /dts-v1/; 7 #include <dt-bindings/pinctrl/mt8186-pinfunc.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/input/gpio-keys.h> 11 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h> 26 stdout-path = "serial0:115200n8"; 35 backlight_lcd0: backlight-lcd0 { 36 compatible = "pwm-backlight"; [all …]
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6e63m0-dsi.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "panel-samsung-s6e63m0.h" 17 #define S6E63M0_DSI_MAX_CHUNK 15 /* CMD + 15 bytes max */ 20 const u8 cmd, u8 *data) in s6e63m0_dsi_dcs_read() argument 25 ret = mipi_dsi_dcs_read(dsi, cmd, data, 1); in s6e63m0_dsi_dcs_read() 27 dev_err(dev, "could not read DCS CMD %02x\n", cmd); in s6e63m0_dsi_dcs_read() 31 dev_dbg(dev, "DSI read CMD %02x = %02x\n", cmd, *data); in s6e63m0_dsi_dcs_read() 41 u8 cmd; in s6e63m0_dsi_dcs_write() local 50 cmd = *seqp; in s6e63m0_dsi_dcs_write() 53 remain = len - 1; in s6e63m0_dsi_dcs_write() [all …]
|
/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_devlink.h | 1 /* SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2020-2021 Intel Corporation. 15 /* Image ext max len */ 27 /* MAX file name length */ 31 /* MAX number of regions supported */ 33 /* MAX number of SNAPSHOTS supported */ 44 * enum iosm_devlink_param_id - Enum type to different devlink params 55 * enum iosm_rpsi_cmd_code - Enum type for RPSI command list 70 * enum iosm_flash_comp_type - Enum for different flash component types 84 * struct iosm_devlink_sio - SIO instance [all …]
|
/linux/tools/testing/selftests/tpm2/ |
H A D | tpm2.py | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 212 def __init__(self, name): argument 213 self.name = name 216 return name 233 self.name = TPM2_FMT1_ERRORS.get(rc & 0x3f, "TPM_RC_UNKNOWN") 235 self.name = TPM2_WARN_ERRORS.get(rc & 0x7f, "TPM_RC_UNKNOWN") 237 self.name = TPM2_VER1_ERRORS.get(rc & 0x7f, "TPM_RC_UNKNOWN") 239 self.name = TPM2_VER0_ERRORS.get(rc & 0x7f, "TPM_RC_UNKNOWN") 243 return '%s: cc=0x%08x, rc=0x%08x' % (self.name, self.cc, self.rc) 245 return '%s: rc=0x%08x' % (self.name, self.rc) [all …]
|
/linux/include/uapi/linux/ |
H A D | wireless.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 7 * Authors : Jean Tourrilhes - HPL - <jt@hpl.hp.com> 8 * Copyright (c) 1997-2007 Jean Tourrilhes, All Rights Reserved. 16 * Initial APIs (1996 -> onward) : 17 * ----------------------------- 44 * New driver API (2002 -> onward) : 45 * ------------------------------- 53 * Wireless Events (2002 -> onward) : 54 * -------------------------------- 59 * -------------- [all …]
|
/linux/drivers/char/hw_random/ |
H A D | jh7110-trng.c | 1 // SPDX-License-Identifier: GPL-2.0 42 /* CTRL CMD */ 113 MODULE_PARM_DESC(autoreq, "Auto-reseeding after random number requests by host reaches specified co… 114 " 0 - disable counter\n" 115 " other - reload value for internal counter"); 119 MODULE_PARM_DESC(autoage, "Auto-reseeding after specified timer countdowns to 0:\n" 120 " 0 - disable timer\n" 121 " other - reload value for internal timer"); 127 return readl_relaxed_poll_timeout(trng->base + STARFIVE_STAT, stat, in starfive_trng_wait_idle() 136 u32 data = readl(trng->base + STARFIVE_ISTAT); in starfive_trng_irq_mask_clear() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-cgbc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 * Reference code defines 1kHz as min freq and 6.1MHz as max freq. 118 struct i2c_algo_cgbc_data *algo_data = adap->algo_data; in cgbc_i2c_get_status() 120 struct cgbc_device_data *cgbc = i2c->cgbc; in cgbc_i2c_get_status() 121 u8 cmd = CGBC_I2C_CMD_STAT | algo_data->bus_id; in cgbc_i2c_get_status() local 125 ret = cgbc_command(cgbc, &cmd, sizeof(cmd), NULL, 0, &status); in cgbc_i2c_get_status() 135 struct i2c_algo_cgbc_data *algo_data = adap->algo_data; in cgbc_i2c_set_frequency() 137 struct cgbc_device_data *cgbc = i2c->cgbc; in cgbc_i2c_set_frequency() 138 u8 cmd[2], data; in cgbc_i2c_set_frequency() local 143 dev_info(i2c->dev, "invalid frequency %u, using default\n", bus_frequency); in cgbc_i2c_set_frequency() [all …]
|
/linux/sound/core/oss/ |
H A D | mixer_oss.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 return -ENODEV; in snd_mixer_oss_open() 41 if (card->mixer_oss == NULL) { in snd_mixer_oss_open() 43 return -ENODEV; in snd_mixer_oss_open() 54 return -ENOMEM; in snd_mixer_oss_open() 56 fmixer->card = card; in snd_mixer_oss_open() 57 fmixer->mixer = card->mixer_oss; in snd_mixer_oss_open() 58 file->private_data = fmixer; in snd_mixer_oss_open() 59 if (!try_module_get(card->module)) { in snd_mixer_oss_open() 63 return -EFAULT; in snd_mixer_oss_open() [all …]
|
/linux/drivers/media/platform/st/sti/hva/ |
H A D | hva-hw.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include "hva-hw.h" 74 * H264_MAX_SLICE_NUMBER: VECH264 max slice number reached 80 * NO_INT_COMPLETION: Time-out on interrupt completion 106 hva->sts_reg = readl_relaxed(hva->regs + HVA_HIF_FIFO_STS); in hva_hw_its_interrupt() 107 hva->sfl_reg = readl_relaxed(hva->regs + HVA_HIF_REG_SFL); in hva_hw_its_interrupt() 110 writel_relaxed(0x1, hva->regs + HVA_HIF_REG_IT_ACK); in hva_hw_its_interrupt() 119 u32 status = hva->sts_reg & 0xFF; in hva_hw_its_irq_thread() 124 HVA_PREFIX, __func__, hva->sts_reg & 0xFF, hva->sfl_reg & 0xF); in hva_hw_its_irq_thread() 130 ctx_id = (hva->sts_reg & 0xFF00) >> 8; in hva_hw_its_irq_thread() [all …]
|
/linux/net/core/ |
H A D | netdev-genl-gen.c | 1 // SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 /* Do not edit directly, auto-generated from: */ 4 /* YNL-GEN kernel source */ 9 #include "netdev-genl-gen.h" 17 .max = U32_MAX, 22 .max = S32_MAX, 26 .max = S32_MAX, 40 /* NETDEV_CMD_DEV_GET - do */ 45 /* NETDEV_CMD_PAGE_POOL_GET - do */ 52 /* NETDEV_CMD_PAGE_POOL_STATS_GET - do */ [all …]
|