| /linux/fs/overlayfs/ |
| H A D | copy_up.c | 1 // SPDX-License-Identifier: GPL-2.0-only 58 if (err == -ENODATA || err == -EOPNOTSUPP) in ovl_copy_acl() 66 return -ENOMEM; in ovl_copy_acl() 77 struct dentry *old = oldpath->dentry; in ovl_copy_xattr() 83 if (!old->d_inode->i_op->listxattr || !new->d_inode->i_op->listxattr) in ovl_copy_xattr() 88 if (list_size == -EOPNOTSUPP) in ovl_copy_xattr() 95 return -ENOMEM; in ovl_copy_xattr() 108 error = -EIO; in ovl_copy_xattr() 111 list_size -= slen; in ovl_copy_xattr() 117 if (error == -ECANCELED) { in ovl_copy_xattr() [all …]
|
| /linux/lib/xz/ |
| H A D | xz_dec_stream.c | 1 // SPDX-License-Identifier: 0BSD 34 /* Position in variable-length integers and Check fields */ 37 /* Variable-length integer decoded by dec_vli() */ 128 } temp; member 151 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller 152 * must have set s->temp.pos to indicate how much data we are supposed 153 * to copy into s->temp.buf. Return true once s->temp.pos has reached 154 * s->temp.size. 159 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 161 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | sysfs-interface.rst | 5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is 6 completely chip-independent. It assumes that all the kernel drivers 8 This makes adding or updating support for any given chip very easy, as 10 This is a major improvement compared to lm-sensors 2. 13 There is no standard that ensures, for example, that the second 22 For this reason, even if we aim at a chip-independent libsensors, it will 37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes 38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found 42 libsensors won't support the driver in question. 48 types for sensor chips are "in" (voltage), "temp" (temperature) and [all …]
|
| H A D | w83791d.rst | 10 Addresses scanned: I2C 0x2c - 0x2f 12 Datasheet: http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W83791D_W83791Gb.pdf 22 - Frodo Looijaard <frodol@dds.nl>, 23 - Philip Edelbrock <phil@netroedge.com>, 24 - Mark Studebaker <mdsxyz123@yahoo.com> 28 - Shane Huang (Winbond), 29 - Rudolf Marek <r.marek@assembler.cz> 33 - Sven Anders <anders@anduras.de> 34 - Marc Hulsman <m.hulsman@tudelft.nl> 37 ----------------- [all …]
|
| H A D | lm85.rst | 79 - Philip Pokorny <ppokorny@penguincomputing.com>, 80 - Frodo Looijaard <frodol@dds.nl>, 81 - Richard Barrington <rich_b_nz@clear.net.nz>, 82 - Margit Schubert-While <margitsw@t-online.de>, 83 - Justin Thiessen <jthiessen@penguincomputing.com> 86 ----------- 88 This driver implements support for the National Semiconductor LM85 and 92 The LM85 uses the 2-wire interface compatible with the SMBUS 2.0 94 temperatures and five (5) voltages. It has four (4) 16-bit counters for 127 ---------------- [all …]
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | gma_display.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright © 2006-2011 Intel Corporation 32 struct drm_device *dev = crtc->dev; in gma_pipe_has_type() 38 if (connector->encoder && connector->encoder->crtc == crtc) { in gma_pipe_has_type() 41 if (gma_encoder->type == type) { in gma_pipe_has_type() 61 struct drm_device *dev = crtc->dev; in gma_pipe_set_base() 64 struct drm_framebuffer *fb = crtc->primary->fb; in gma_pipe_set_base() 66 int pipe = gma_crtc->pipe; in gma_pipe_set_base() 67 const struct psb_offset *map = &dev_priv->regmap[pipe]; in gma_pipe_set_base() 75 /* no fb bound */ in gma_pipe_set_base() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | ehci-hub.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2001-2004 by David Brownell 6 /* this file is part of ehci-hcd.c */ 8 /*-------------------------------------------------------------------------*/ 16 /*-------------------------------------------------------------------------*/ 26 return !udev->maxchild && udev->persist_enabled && in persist_enabled_on_companion() 27 udev->bus->root_hub->speed < USB_SPEED_HIGH; in persist_enabled_on_companion() 41 if (!ehci->owned_ports) in ehci_handover_companion_ports() 55 port = HCS_N_PORTS(ehci->hcs_params); in ehci_handover_companion_ports() 56 while (port--) { in ehci_handover_companion_ports() [all …]
|
| H A D | ehci-pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2000-2004 by David Brownell 15 #include "pci-quirks.h" 19 static const char hcd_name[] = "ehci-pci"; 27 /*-------------------------------------------------------------------------*/ 31 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000() 32 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000() 62 /* called after powerup, by probe or system-pm "wakeup" */ 71 /* PCI Memory-Write-Invalidate cycle support is optional (uncommon) */ in ehci_pci_reinit() 83 ehci->regs->intel_quark_x1000_insnreg01); in ehci_pci_reinit() [all …]
|
| H A D | xhci-hub.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include "xhci-trace.h" 54 bos->bLength = USB_DT_BOS_SIZE; in xhci_create_usb3x_bos_desc() 55 bos->bDescriptorType = USB_DT_BOS; in xhci_create_usb3x_bos_desc() 56 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 58 bos->bNumDeviceCaps = 1; in xhci_create_usb3x_bos_desc() 61 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3x_bos_desc() 62 u8 major = xhci->port_caps[i].maj_rev; in xhci_create_usb3x_bos_desc() 63 u8 minor = xhci->port_caps[i].min_rev; in xhci_create_usb3x_bos_desc() 68 port_cap = &xhci->port_caps[i]; in xhci_create_usb3x_bos_desc() [all …]
|
| H A D | oxu210hp-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * This code is *strongly* based on EHCI-HCD code by David Brownell since 7 * the chip is a quasi-EHCI compatible. 26 #include <linux/dma-mapping.h> 83 #define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 86 #define EHCI_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 102 u32 hcs_params; /* HCSPARAMS - offset 0x4 */ 111 u32 hcc_params; /* HCCPARAMS - offset 0x8 */ 117 #define HCC_64BIT_ADDR(p) ((p)&(1)) /* true: can use 64-bit addr */ 118 u8 portroute[8]; /* nibbles for routing - offset 0xC */ [all …]
|
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | maxim,max8925.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lee Jones <lee@kernel.org> 22 interrupt-controller: true 24 "#interrupt-cells": 29 maxim,tsc-irq: 37 "^SDV[1-3]$|^LDO[1-9]$|^LDO1[0-9]$|^LDO20$": 38 description: regulator configuration for SDV1-3 and LDO1-20 47 maxim,max8925-dual-string: [all …]
|
| /linux/drivers/cpufreq/ |
| H A D | cpufreq-nforce2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2004-2006 Sebastian Witt <se.witt@gmx.net> 59 "Minimum FSB to use, if not defined: current FSB - 50"); 62 * nforce2_calc_fsb - calculate FSB 81 * nforce2_calc_pll - calculate PLL value 105 return -1; in nforce2_calc_pll() 111 * nforce2_write_pll - write PLL value to chipset 118 int temp; in nforce2_write_pll() local 124 for (temp = 0; temp <= 0x3f; temp++) in nforce2_write_pll() 129 * nforce2_fsb_read - Read FSB [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-viapro.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>, 6 Copyright (C) 2005 - 2008 Jean Delvare <jdelvare@suse.de> 14 VT82C596A 0x3050 no 15 VT82C596B 0x3051 no 16 VT82C686A 0x3057 0x30 no 18 VT8231 0x8235 no? 118 for (; i < I2C_SMBUS_BLOCK_MAX - 1; i++) in vt596_dump_regs() 127 /* Return -1 on error, 0 on success */ 130 int temp; in vt596_transaction() local [all …]
|
| H A D | i2c-imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2002 Motorola GSG-China 29 #include <linux/dma-mapping.h> 47 #include <linux/platform_data/i2c-imx.h> 54 #define DRIVER_NAME "imx-i2c" 69 * to provide support for all these chips, split the 82 * All of the layerscape series SoCs support IBIC register. 109 * - write zero to clear(w0c) INT flag on i.MX, 110 * - but write one to clear(w1c) INT flag on Vybrid. 112 * - set I2CR_IEN bit enable the module on i.MX, [all …]
|
| /linux/drivers/hwmon/ |
| H A D | ds620.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ds620.c - Support for temperature sensor and thermostat DS620 16 #include <linux/hwmon-sysfs.h> 52 #define DS620_COM_START 0x51 /* no data */ 53 #define DS620_COM_STOP 0x22 /* no data */ 62 s16 temp[3]; /* Register values, word */ member 67 struct ds620_platform_data *ds620_info = dev_get_platdata(&client->dev); in ds620_init_client() 75 /* already high at power-on, but don't trust the BIOS! */ in ds620_init_client() 78 if (ds620_info && ds620_info->pomode == 1) in ds620_init_client() 80 else if (ds620_info && ds620_info->pomode == 2) in ds620_init_client() [all …]
|
| /linux/tools/perf/tests/shell/ |
| H A D | record+script_probe_vfs_getname.sh | 5 # then use it with 'perf record' using 'touch' to write to a temp file, then 7 # perf.data file, with the temp file name as the pathname argument. 9 # SPDX-License-Identifier: GPL-2.0 16 [ "$(id -u)" = 0 ] || exit 2 23 # Check presence of libtraceevent support to run perf record 25 if [ $? -eq 2 ]; then 26 echo "WARN: Skipping test record_open_file. No libtraceevent support" 29 perf record -o ${perfdata} -e probe:vfs_getname\* touch $file 34 perf script -i ${perfdata} | \ 35 …grep -E " +touch +[0-9]+ +\[[0-9]+\] +[0-9]+\.[0-9]+: +probe:vfs_getname[_0-9]*: +\([[:xdigit:]]+\… [all …]
|
| /linux/drivers/acpi/ |
| H A D | thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * acpi_thermal.c - ACPI Thermal Zone Driver ($Revision: 41 $) 12 * 2. Enhance passive cooling (CPU) states/limit interface to support 48 #define ACPI_THERMAL_TRIP_PASSIVE (-1) 55 * when re-evaluating the AML code. 57 * We need to re-bind the cooling devices of a thermal zone when this occurs. 61 acpi_handle_info(tz->device->handle, \ 63 "Please report to linux-acpi@vger.kernel.org\n", str); \ 80 MODULE_PARM_DESC(off, "Set to disable ACPI thermal support."); 124 /* -------------------------------------------------------------------------- [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | therm.c | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 40 nvkm_error(&bios->subdev, in therm_table() 75 /* we only support the core domain for now */ in nvbios_therm_sensor_parse() 77 return -EINVAL; in nvbios_therm_sensor_parse() 81 sensor_section = -1; in nvbios_therm_sensor_parse() 90 return 0; /* we do not try to support ambient */ in nvbios_therm_sensor_parse() 96 sensor->offset_constant = offset; in nvbios_therm_sensor_parse() 102 sensor->thrs_critical.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse() 103 sensor->thrs_critical.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 109 sensor->thrs_down_clock.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse() [all …]
|
| /linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| H A D | vdec_h264_req_common.c | 1 // SPDX-License-Identifier: GPL-2.0 11 { dst_param->cond = ((src_param->flags & flag) ? (1) : (0)); } 13 { dst_param->param = src_param->param; } 22 * TODO The firmware does not support field decoding. Future in mtk_vdec_h264_get_ref_list() 33 memset(&ref_list[num_valid], 0x20, 32 - num_valid); in mtk_vdec_h264_get_ref_list() 38 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, id); in mtk_vdec_h264_get_ctrl_ptr() 41 return ERR_PTR(-EINVAL); in mtk_vdec_h264_get_ctrl_ptr() 43 return ctrl->p_cur.p; in mtk_vdec_h264_get_ctrl_ptr() 56 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in mtk_vdec_h264_fill_dpb_info() 59 dpb = &decode_params->dpb[index]; in mtk_vdec_h264_fill_dpb_info() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | musb_virthub.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MUSB OTG driver virtual root hub support 6 * Copyright (C) 2005-2006 by Texas Instruments 7 * Copyright (C) 2006-2007 Nokia Corporation 29 spin_lock_irqsave(&musb->lock, flags); in musb_host_finish_resume() 31 power = musb_readb(musb->mregs, MUSB_POWER); in musb_host_finish_resume() 34 musb_writeb(musb->mregs, MUSB_POWER, power); in musb_host_finish_resume() 41 musb->is_active = 1; in musb_host_finish_resume() 42 musb->port1_status &= ~(USB_PORT_STAT_SUSPEND | MUSB_PORT_STAT_RESUME); in musb_host_finish_resume() 43 musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16; in musb_host_finish_resume() [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | armv8_deprecated.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include "trace-events-emulation.h" 25 * The runtime support for deprecated instruction support can be in one of 26 * following three states - 80 * Implement emulation of the SWP/SWPB instructions using load-exclusive and 81 * store-exclusive. 90 * Error-checking SWP macros implemented using ldxr{b}/stxr{b} 93 /* Arbitrary constant to ensure forward-progress of the LL/SC loop */ 96 #define __user_swpX_asm(data, addr, res, temp, temp2, B) \ argument 113 : "=&r" (res), "+r" (data), "=&r" (temp), "=&r" (temp2) \ [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 24 ixgbe_attr->sensor->location); in ixgbe_hwmon_show_location() 35 /* reset the temp field */ in ixgbe_hwmon_show_temp() 36 ixgbe_attr->hw->mac.ops.get_thermal_sensor_data(ixgbe_attr->hw); in ixgbe_hwmon_show_temp() 38 value = ixgbe_attr->sensor->temp; in ixgbe_hwmon_show_temp() 52 unsigned int value = ixgbe_attr->sensor->caution_thresh; in ixgbe_hwmon_show_cautionthresh() 66 unsigned int value = ixgbe_attr->sensor->max_op_thresh; in ixgbe_hwmon_show_maxopthresh() 75 * ixgbe_add_hwmon_attr - Create hwmon attr table for a hwmon sysfs file. 90 n_attr = adapter->ixgbe_hwmon_buff->n_hwmon; in ixgbe_add_hwmon_attr() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | sma1303.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 // sma1303.c -- sma1303 ALSA SoC Audio driver 236 static const DECLARE_TLV_DB_SCALE(sma1303_spk_tlv, -6000, 50, 0); 242 int cnt = sma1303->retry_cnt; in sma1303_regmap_write() 244 while (cnt--) { in sma1303_regmap_write() 245 ret = regmap_write(sma1303->regmap, reg, val); in sma1303_regmap_write() 247 dev_err(sma1303->dev, in sma1303_regmap_write() 259 int cnt = sma1303->retry_cnt; in sma1303_regmap_update_bits() 261 while (cnt--) { in sma1303_regmap_update_bits() 262 ret = regmap_update_bits_check(sma1303->regmap, reg, in sma1303_regmap_update_bits() [all …]
|
| /linux/arch/mips/loongson2ef/common/cs5536/ |
| H A D | cs5536_isa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * the ISA Virtual Support Module of AMD CS5536 100 ((bar_space_len[n] - 4) << 12) | 0x01; in pci_isa_write_bar() 137 u32 temp; in pci_isa_write_reg() local 148 temp = lo & 0x0000ffff; in pci_isa_write_reg() 151 temp |= SB_TAS_ERR_FLAG; in pci_isa_write_reg() 155 temp |= SB_TAR_ERR_FLAG; in pci_isa_write_reg() 159 temp |= SB_MAR_ERR_FLAG; in pci_isa_write_reg() 163 temp |= SB_PARE_ERR_FLAG; in pci_isa_write_reg() 165 lo = temp; in pci_isa_write_reg() [all …]
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | igb_hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 30 igb_attr->sensor->location); in igb_hwmon_show_location() 41 /* reset the temp field */ in igb_hwmon_show_temp() 42 igb_attr->hw->mac.ops.get_thermal_sensor_data(igb_attr->hw); in igb_hwmon_show_temp() 44 value = igb_attr->sensor->temp; in igb_hwmon_show_temp() 58 unsigned int value = igb_attr->sensor->caution_thresh; in igb_hwmon_show_cautionthresh() 72 unsigned int value = igb_attr->sensor->max_op_thresh; in igb_hwmon_show_maxopthresh() 80 /* igb_add_hwmon_attr - Create hwmon attr table for a hwmon sysfs file. 96 n_attr = adapter->igb_hwmon_buff->n_hwmon; in igb_add_hwmon_attr() [all …]
|