/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | sbs,sbs-battery.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 16 - $ref: power-supply.yaml# 21 - items: 22 - enum: 23 - ti,bq20z45 24 - ti,bq20z65 [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_probe_helper.c | 2 * Copyright (c) 2006-2008 Intel Corporation 57 * track of a per-connector hpd interrupt. 68 module_param_named(poll, drm_kms_helper_poll, bool, 0600); 74 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag() 78 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag() 82 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag() 95 struct drm_device *dev = connector->dev; in drm_mode_validate_pipeline() 120 &connector->display_info, in drm_mode_validate_pipeline() 150 cmdline_mode = &connector->cmdline_mode; in drm_helper_probe_add_cmdline_mode() 151 if (!cmdline_mode->specified) in drm_helper_probe_add_cmdline_mode() [all …]
|
/linux/arch/arm/boot/dts/ |
H A D | cros-ec-sbs.dtsi | 2 * Smart battery dts fragment for devices that use cros-ec-sbs 6 * This file is dual-licensed: you can use it either under the terms 46 battery: sbs-battery@b { 47 compatible = "sbs,sbs-battery"; 49 sbs,i2c-retry-count = <2>; 50 sbs,poll-retry-count = <1>;
|
/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-arb-gpio-challenge.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-arb-gpio-challenge.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO-based I2C Arbitration Using a Challenge & Response Mechanism 10 - Doug Anderson <dianders@chromium.org> 11 - Peter Rosin <peda@axentia.se> 18 standard I2C multi-master rules. Using GPIOs is generally useful in the case 30 others can see. These are all active low with pull-ups enabled. We'll 47 6. Go back to 1 (until retry time has expired). [all …]
|
/linux/drivers/acpi/ |
H A D | acpi_dbg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/poll.h> 28 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 30 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 34 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 150 * The usage count is prepared to avoid race conditions between the in acpi_aml_used() 209 ret = -EFAULT; in acpi_aml_lock_write() 213 ret = -EAGAIN; in acpi_aml_lock_write() 228 ret = -EFAULT; in acpi_aml_lock_read() [all …]
|
/linux/drivers/net/ethernet/apple/ |
H A D | mace.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * mace.h - definitions for the registers in the Am79C940 MACE 16 REG(xmtrc); /* transmit retry count */ 19 REG(fifofc); /* FIFO frame count */ 22 REG(pr); /* poll register */ 36 REG(mpc); /* missed packet count (clears when read) */ 38 REG(rntpc); /* runt packet count (clears when read) */ 39 REG(rcvcc); /* recv collision count (clears when read) */ 47 #define DRTRY 0x80 /* don't retry transmission after collision */ 49 #define AUTO_PAD_XMIT 0x01 /* auto-pad short packets on transmission */ [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | txtimestamp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - SCHED, SND and ACK timestamps 9 * - RAW, UDP and TCP 10 * - IPv4 and IPv6 11 * - various packet sizes (to test GSO and TSO) 17 * A simple `nc6 [-u] -l -p $DESTPORT` will do 38 #include <poll.h> 85 static int saved_tskey = -1; 86 static int saved_tskey_type = -1; 92 int count; member [all …]
|
/linux/drivers/net/ethernet/sun/ |
H A D | sunqe.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #define GLOB_MSIZE 0x0cUL /* Local-memory Size */ 45 /* The following registers are for per-qe channel information/status. */ 59 #define CREG_PIPG 0x34UL /* Inter-Frame Gap */ 74 #define CREG_STAT_CCOFLOW 0x00100000 /* TX Coll-counter Overflow */ 79 #define CREG_STAT_RCCOFLOW 0x00001000 /* RX Coll-counter Overflow */ 85 #define CREG_STAT_CECOFLOW 0x00000040 /* CRC Error-counter Overflow*/ 115 #define CREG_MMASK_ERETRY 0x04000000 /* Excess retry */ 121 #define CREG_MMASK_RXCOLL 0x00000400 /* RX Coll-Cntr overflow */ 129 /* Per-channel AMD 79C940 MACE registers. */ [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd_gfx_v10.c | 47 mutex_lock(&adev->srbm_mutex); in lock_srbm() 54 mutex_unlock(&adev->srbm_mutex); in unlock_srbm() 60 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in acquire_queue() 61 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in acquire_queue() 69 unsigned int bit = pipe_id * adev->gfx.mec.num_queue_per_pipe + in get_queue_mask() 136 /* TODO - RING0 form of field is obsolete, seems to date back to SI 146 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in kgd_init_interrupts() 147 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in kgd_init_interrupts() 166 mmSDMA0_RLC0_RB_CNTL) - mmSDMA0_RLC0_RB_CNTL, in get_sdma_rlc_reg_offset() 174 mmSDMA1_RLC0_RB_CNTL) - mmSDMA0_RLC0_RB_CNTL in get_sdma_rlc_reg_offset() [all …]
|
H A D | si_dma.c | 43 return *ring->rptr_cpu_addr; in si_dma_ring_get_rptr() 48 struct amdgpu_device *adev = ring->adev; in si_dma_ring_get_wptr() 49 u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1; in si_dma_ring_get_wptr() 56 struct amdgpu_device *adev = ring->adev; in si_dma_ring_set_wptr() 57 u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1; in si_dma_ring_set_wptr() 59 WREG32(DMA_RB_WPTR + sdma_offsets[me], (ring->wptr << 2) & 0x3fffc); in si_dma_ring_set_wptr() 71 while ((lower_32_bits(ring->wptr) & 7) != 5) in si_dma_ring_emit_ib() 74 amdgpu_ring_write(ring, (ib->gpu_addr & 0xFFFFFFE0)); in si_dma_ring_emit_ib() 75 amdgpu_ring_write(ring, (ib->length_dw << 12) | (upper_32_bits(ib->gpu_addr) & 0xFF)); in si_dma_ring_emit_ib() 80 * si_dma_ring_emit_fence - emit a fence on the DMA ring [all …]
|
/linux/drivers/net/ethernet/amd/ |
H A D | ariadne.h | 4 * © Copyright 1995 by Geert Uytterhoeven (geert@linux-m68k.org) 8 * ---------------------------------------------------------------------------------- 13 * Written 1993-94 by Donald Becker. 15 * Am79C960: PCnet(tm)-ISA Single-Chip Ethernet Controller 22 * ---------------------------------------------------------------------------------- 28 * ---------------------------------------------------------------------------------- 30 * The Ariadne is a Zorro-II board made by Village Tronic. It contains: 32 * - an Am79C960 PCnet-ISA Single-Chip Ethernet Controller with both 33 * 10BASE-2 (thin coax) and 10BASE-T (UTP) connectors 35 * - an MC68230 Parallel Interface/Timer configured as 2 parallel ports [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_aux.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 35 aux110->base.ctx 37 (aux110->regs->reg_name) 40 engine->ctx->logger 51 aux110->shift->field_name, aux110->mask->field_name 83 dal_ddc_close(engine->ddc); in release_engine() 85 engine->ddc = NULL; in release_engine() 144 /*poll HW to make sure reset it done*/ in acquire_engine() 192 ((request->type == AUX_TRANSACTION_TYPE_DP) && in submit_channel_request() 193 (request->action == I2CAUX_TRANSACTION_ACTION_DP_WRITE)) || in submit_channel_request() [all …]
|
/linux/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_hdcp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved. 82 int retry = 5; in msm_hdmi_ddc_read() local 98 retry: in msm_hdmi_ddc_read() 99 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read() 101 retry--; in msm_hdmi_ddc_read() 104 else if (retry > 0) in msm_hdmi_ddc_read() 105 goto retry; in msm_hdmi_ddc_read() 107 rc = -EIO; in msm_hdmi_ddc_read() 120 int retry = 10; in msm_hdmi_ddc_write() local [all …]
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2008-2013 Solarflare Communications Inc. 18 * Management-Controller-to-Driver Interface 59 "Enable MCDI logging on newly-probed functions"); 66 int rc = -ENOMEM; in efx_siena_mcdi_init() 68 efx->mcdi = kzalloc(sizeof(*efx->mcdi), GFP_KERNEL); in efx_siena_mcdi_init() 69 if (!efx->mcdi) in efx_siena_mcdi_init() 73 mcdi->efx = efx; in efx_siena_mcdi_init() 75 /* consuming code assumes buffer is page-sized */ in efx_siena_mcdi_init() 76 mcdi->logging_buffer = (char *)__get_free_page(GFP_KERNEL); in efx_siena_mcdi_init() [all …]
|
/linux/drivers/scsi/cxlflash/ |
H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 41 * process_cmd_err() - command error handler 49 struct afu *afu = cmd->parent; in process_cmd_err() 50 struct cxlflash_cfg *cfg = afu->parent; in process_cmd_err() 51 struct device *dev = &cfg->dev->dev; in process_cmd_err() 55 ioasa = &(cmd->sa); in process_cmd_err() 57 if (ioasa->rc.flags & SISL_RC_FLAGS_UNDERRUN) { in process_cmd_err() 58 resid = ioasa->resid; in process_cmd_err() 64 if (ioasa->rc.flags & SISL_RC_FLAGS_OVERRUN) { in process_cmd_err() 67 scp->result = (DID_ERROR << 16); in process_cmd_err() [all …]
|
/linux/drivers/usb/class/ |
H A D | cdc-wdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cdc-wdm.c 7 * Copyright (c) 2007-2009 Oliver Neukum 9 * Some code taken from cdc-acm.c 23 #include <linux/poll.h> 30 #include <linux/usb/cdc-wdm.h> 67 /* CDC-WMC r1.1 requires wMaxCommand to be "at least 256 decimal (0x100)" */ 74 /* --- method tables --- */ 98 int count; member 126 if (desc->intf == intf) in wdm_find_device() [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | uffd-common.h | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2023 Red Hat, Inc. 21 #include <poll.h> 63 * count is placed in the page after pthread_mutex_t naturally aligned 64 * to avoid non alignment faults on non-x86 archs. 70 sizeof(unsigned long long) - 1) & \ 72 - 1))) 77 /* Whether apply wr-protects when installing pages */ 123 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp);
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | vas-window.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2016-17 IBM Corp. 18 #include <asm/ppc-opcode.h> 21 #include "copy-paste.h" 24 #include "vas-trace.h" 28 * ->paste_base_addr and ->paste_win_id_shift we got from device tree. 35 base = window->vinst->paste_base_addr; in vas_win_paste_addr() 36 shift = window->vinst->paste_win_id_shift; in vas_win_paste_addr() 37 winid = window->vas_win.winid; in vas_win_paste_addr() 51 pbaddr = window->vinst->hvwc_bar_start; in get_hvwc_mmio_bar() [all …]
|
/linux/drivers/fsi/ |
H A D | fsi-master-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * A FSI master controller, using a simple GPIO bit-banging interface 18 #include "fsi-master.h" 49 static void clock_toggle(struct fsi_master_gpio *master, int count) in clock_toggle() argument 53 for (i = 0; i < count; i++) { in clock_toggle() 54 if (!master->no_delays) in clock_toggle() 56 gpiod_set_value(master->gpio_clk, 0); in clock_toggle() 57 if (!master->no_delays) in clock_toggle() 59 gpiod_set_value(master->gpio_clk, 1); in clock_toggle() 67 if (!master->no_delays) in sda_clock_in() [all …]
|
/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-fileops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 6 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 10 #include "ivtv-driver.h" 11 #include "ivtv-fileops.h" 12 #include "ivtv-i2c.h" 13 #include "ivtv-queue.h" 14 #include "ivtv-udma.h" 15 #include "ivtv-irq.h" 16 #include "ivtv-vbi.h" [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2008-2013 Solarflare Communications Inc. 17 * Management-Controller-to-Driver Interface 57 "Enable MCDI logging on newly-probed functions"); 64 int rc = -ENOMEM; in efx_mcdi_init() 66 efx->mcdi = kzalloc(sizeof(*efx->mcdi), GFP_KERNEL); in efx_mcdi_init() 67 if (!efx->mcdi) in efx_mcdi_init() 71 mcdi->efx = efx; in efx_mcdi_init() 73 /* consuming code assumes buffer is page-sized */ in efx_mcdi_init() 74 mcdi->logging_buffer = (char *)__get_free_page(GFP_KERNEL); in efx_mcdi_init() [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6q-evi.dts | 4 * This file is dual-licensed: you can use it either under the terms 44 /dts-v1/; 46 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/interrupt-controller/irq.h> 51 compatible = "uniwest,imx6q-evi", "fsl,imx6q"; 58 reg_usbh1_vbus: regulator-usbhubreset { 59 compatible = "regulator-fixed"; 60 regulator-name = "usbh1_vbus"; 61 regulator-min-microvolt = <5000000>; 62 regulator-max-microvolt = <5000000>; [all …]
|
/linux/drivers/iio/adc/ |
H A D | qcom-spmi-iadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. 94 * struct iadc_chip - IADC Current ADC device structure. 99 * @poll_eoc: Poll for end of conversion instead of waiting for IRQ. 122 ret = regmap_read(iadc->regmap, iadc->base + offset, &val); in iadc_read() 132 return regmap_write(iadc->regmap, iadc->base + offset, data); in iadc_write() 191 dev_err(iadc->dev, in iadc_status_show() 235 if (!iadc->poll_eoc) in iadc_configure() 236 reinit_completion(&iadc->complete); in iadc_configure() 248 unsigned int count, retry; in iadc_poll_wait_eoc() local [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | reg.h | 2 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 3 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 4 * Copyright (c) 2007-2008 Michael Taylor <mike.taylor@apprion.com> 28 * 5210 - http://nova.stanford.edu/~bbaas/ps/isscc2002_slides.pdf 30 * 5211 - http://www.hotchips.org/archives/hc14/3_Tue/16_mcfarland.pdf 33 * Atheros's ART program (Atheros Radio Test), on ath9k, on legacy-hal 42 * AR5210-Specific TXDP registers 46 #define AR5K_NOQCU_TXDP0 0x0000 /* Queue 0 - data */ 47 #define AR5K_NOQCU_TXDP1 0x0004 /* Queue 1 - beacons */ 70 #define AR5K_CFG_SWTD 0x00000001 /* Byte-swap TX descriptor (for big endian archs) */ [all …]
|
/linux/drivers/char/tpm/ |
H A D | tpm-interface.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 22 #include <linux/poll.h> 33 * Bug workaround - some TPM's don't flush the most 35 * with an extend to the selected _unused_ non-volatile pcr. 43 * tpm_calc_ordinal_duration() - calculate the maximum command duration 54 if (chip->flags & TPM_CHIP_FLAG_TPM2) in tpm_calc_ordinal_duration() 66 u32 count, ordinal; in tpm_try_transmit() local 70 return -EINVAL; in tpm_try_transmit() 75 count = be32_to_cpu(header->length); in tpm_try_transmit() [all …]
|