/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 | abituguru-datasheet.rst | 5 First of all, what I know about uGuru is no fact based on any help, hints or 10 Winbond (W83L950D). And no, reading the manual for this specific uC or 14 Olle Sandberg <ollebull@gmail.com>, 2005-05-25 19 and extended with write support and info on more databanks, the write support 27 Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-2006 33 As far as known the uGuru is always placed at and using the (ISA) I/O-ports 34 0xE0 and 0xE4, so we don't have to scan any port-range, just check what the two 35 ports are holding for detection. We will refer to 0xE0 as CMD (command-port) 39 present. We have to check for two different values at data-port, because 41 later on attached again data-port will hold 0x08, more about this later. [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 …]
|
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 …]
|
/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 …]
|
H A D | oaktrail_crtc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 87 struct drm_device *dev = crtc->dev; in mrst_limit() 92 switch (dev_priv->core_freq) { in mrst_limit() 107 dev_err(dev->dev, "mrst_limit Wrong display type.\n"); in mrst_limit() 116 clock->dot = (refclk * clock->m) / (14 * clock->p1); in mrst_lvds_clock() 122 clock->dot, clock->m, clock->m1, clock->m2, clock->n, in mrst_print_pll() 123 clock->p1, clock->p2); in mrst_print_pll() 137 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { in mrst_sdvo_find_best_pll() 138 for (clock.n = limit->n.min; clock.n <= limit->n.max; in mrst_sdvo_find_best_pll() 140 for (clock.p1 = limit->p1.min; in mrst_sdvo_find_best_pll() [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 …]
|
/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/scsi/ |
H A D | scsicam.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * scsicam.c - SCSI CAM support functions, use for HDIO_GETGEO, etc. 9 * +1 (303) 786-7975 11 * For more information, please consult the SCSI-CAM draft. 26 * scsi_bios_ptable - Read PC partition table out of first sector of device. 35 struct address_space *mapping = bdev_whole(dev)->bd_mapping; in scsi_bios_ptable() 50 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table 73 int largest_cyl = -1, i; in scsi_partsize() 76 if (!p->sys_ind) in scsi_partsize() 82 cyl = p->cyl + ((p->sector & 0xc0) << 2); in scsi_partsize() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_lvds.c | 2 * Copyright © 2006-2007 Intel Corporation 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 58 /* Private structure for the integrated LVDS support */ 105 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in intel_lvds_get_hw_state() 110 wakeref = intel_display_power_get_if_enabled(i915, encoder->power_domain); in intel_lvds_get_hw_state() 114 ret = intel_lvds_port_enabled(i915, lvds_encoder->reg, pipe); in intel_lvds_get_hw_state() 116 intel_display_power_put(i915, encoder->power_domain, wakeref); in intel_lvds_get_hw_state() 124 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_lvds_get_config() 128 crtc_state->output_types |= BIT(INTEL_OUTPUT_LVDS); in intel_lvds_get_config() 130 tmp = intel_de_read(dev_priv, lvds_encoder->reg); in intel_lvds_get_config() [all …]
|
H A D | g4x_hdmi.c | 1 // SPDX-License-Identifier: MIT 5 * HDMI support for G4x,ILK,SNB,IVB,VLV,CHV (HSW+ handled by the DDI code). 30 struct drm_device *dev = encoder->base.dev; in intel_hdmi_prepare() 32 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_hdmi_prepare() 34 const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in intel_hdmi_prepare() 40 if (!HAS_PCH_SPLIT(dev_priv) && crtc_state->limited_color_range) in intel_hdmi_prepare() 42 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_hdmi_prepare() 44 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_hdmi_prepare() 47 if (crtc_state->pipe_bpp > 24) in intel_hdmi_prepare() 52 if (crtc_state->has_hdmi_sink) in intel_hdmi_prepare() [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 28 #include <linux/dma-mapping.h> 46 #include <linux/platform_data/i2c-imx.h> 53 #define DRIVER_NAME "imx-i2c" 68 * to provide support for all these chips, split the 81 * All of the layerscape series SoCs support IBIC register. 108 * - write zero to clear(w0c) INT flag on i.MX, 109 * - but write one to clear(w1c) INT flag on Vybrid. 111 * - 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/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/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd_arcturus.c | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 76 dev_warn(adev->dev, in get_sdma_rlc_reg_offset() 82 mmSDMA0_RLC0_RB_CNTL) - mmSDMA0_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() 86 mmSDMA1_RLC0_RB_CNTL) - mmSDMA1_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() 90 mmSDMA2_RLC0_RB_CNTL) - mmSDMA2_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() 94 mmSDMA3_RLC0_RB_CNTL) - mmSDMA3_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() 98 mmSDMA4_RLC0_RB_CNTL) - mmSDMA4_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() 102 mmSDMA5_RLC0_RB_CNTL) - mmSDMA5_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() 106 mmSDMA6_RLC0_RB_CNTL) - mmSDMA6_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() 110 mmSDMA7_RLC0_RB_CNTL) - mmSDMA7_RLC0_RB_CNTL; in get_sdma_rlc_reg_offset() [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 …]
|