Home
last modified time | relevance | path

Searched +full:reg +full:- +full:data (Results 1 – 25 of 1151) sorted by relevance

12345678910>>...47

/freebsd/sys/contrib/alpine-hal/
H A Dal_hal_reg_utils.h1 /*-
10 found at http://www.gnu.org/licenses/gpl-2.0.html
30 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
53 /* *INDENT-OFF* */
57 /* *INDENT-ON* */
66 #define AL_REG_FIELD_GET(reg, mask, shift) (((reg) & (mask)) >> (shift)) argument
69 #define AL_REG_FIELD_SET(reg, mask, shift, val) \ argument
70 (reg) = \
71 (((reg) & (~(mask))) | \
75 #define AL_REG_FIELD_SET_64(reg, mask, shift, val) \ argument
[all …]
/freebsd/sys/amd64/pci/
H A Dpci_cfgreg.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
53 int reg, int bytes);
56 unsigned slot, unsigned func, unsigned reg, unsigned bytes);
58 unsigned slot, unsigned func, unsigned reg, int data,
60 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
61 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
66 * For amd64 we assume that type 1 I/O port-based access always works.
68 * switch to memory-mapped access.
[all …]
/freebsd/sys/contrib/device-tree/Bindings/gpio/
H A Dgpio-ep9301.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/gpio-ep9301.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
11 - Bartosz Golaszewski <brgl@bgdev.pl>
12 - Nikita Shubin <nikita.shubin@maquefel.me>
17 - const: cirrus,ep9301-gpio
18 - items:
19 - enum:
[all …]
/freebsd/sys/dev/ixgbe/
H A Dixgbe_dcb_82598.c2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
41 * ixgbe_dcb_get_tc_stats_82598 - Return status data for each traffic class
46 * This function returns the status data for each of the Traffic Classes in use.
62 stats->qptc[tc] += IXGBE_READ_REG(hw, IXGBE_QPTC(tc)); in ixgbe_dcb_get_tc_stats_82598()
64 stats->qbtc[tc] += IXGBE_READ_REG(hw, IXGBE_QBTC(tc)); in ixgbe_dcb_get_tc_stats_82598()
66 stats->qprc[tc] += IXGBE_READ_REG(hw, IXGBE_QPRC(tc)); in ixgbe_dcb_get_tc_stats_82598()
68 stats->qbrc[tc] += IXGBE_READ_REG(hw, IXGBE_QBRC(tc)); in ixgbe_dcb_get_tc_stats_82598()
75 * ixgbe_dcb_get_pfc_stats_82598 - Returns CBFC status data
[all …]
/freebsd/sys/dev/etherswitch/arswitch/
H A Darswitch_phy.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2011-2012 Stefan Bethke.
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
71 arswitch_readphy_external(device_t dev, int phy, int reg) in arswitch_readphy_external() argument
79 ret = (MDIO_READREG(device_get_parent(dev), phy, reg)); in arswitch_readphy_external()
81 "%s: phy=0x%08x, reg=0x%08x, ret=0x%08x\n", in arswitch_readphy_external()
82 __func__, phy, reg, ret); in arswitch_readphy_external()
89 arswitch_writephy_external(device_t dev, int phy, int reg, int data) in arswitch_writephy_external() argument
97 reg, data); in arswitch_writephy_external()
[all …]
H A Darswitch_reg.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2011-2012 Stefan Bethke.
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
66 uint16_t *reg) in arswitch_split_setpage() argument
73 *reg = (addr >> 1) & 0x1f; in arswitch_split_setpage()
75 if (sc->page != page) { in arswitch_split_setpage()
78 sc->page = page; in arswitch_split_setpage()
84 * the sequence of half-word accesses matters. The register addresses
85 * are word-even (mod 4).
[all …]
/freebsd/sys/amd64/amd64/
H A Dptrace_machdep.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 #include <sys/reg.h>
58 struct segbasereg *reg; in get_segbases() local
62 KASSERT(*sizep == sizeof(*reg), ("%s: invalid size", __func__)); in get_segbases()
63 reg = buf; in get_segbases()
65 pcb = td->td_pcb; in get_segbases()
66 reg->r_fsbase = pcb->pcb_fsbase; in get_segbases()
67 reg->r_gsbase = pcb->pcb_gsbase; in get_segbases()
[all …]
/freebsd/sys/arm64/nvidia/tegra210/
H A Dmax77620_rtc.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
83 #define LOCK(_sc) sx_xlock(&(_sc)->lock)
84 #define UNLOCK(_sc) sx_xunlock(&(_sc)->lock)
85 #define LOCK_INIT(_sc) sx_init(&(_sc)->lock, "max77620_rtc")
86 #define LOCK_DESTROY(_sc) sx_destroy(&(_sc)->lock);
100 max77620_rtc_read(struct max77620_rtc_softc *sc, uint8_t reg, uint8_t *val) in max77620_rtc_read() argument
109 msgs[0].slave = sc->bus_addr; in max77620_rtc_read()
110 msgs[1].slave = sc->bus_addr; in max77620_rtc_read()
[all …]
/freebsd/sys/dev/mii/
H A Dmcommphy.c22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
98 #define LOWEST_SET_BIT(mask) ((((mask) - 1) & (mask)) ^ (mask))
143 if (sc->mii_mpd_model == MCOMMPHY_YT8531_MODEL && in mcommphy_service()
144 (sc->mii_media_active != mii->mii_media_active || in mcommphy_service()
145 sc->mii_media_status != mii->mii_media_status)) { in mcommphy_service()
170 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MCOMMPHY_YT8511_OUI && in mcommphy_probe()
171 MII_MODEL(ma->mii_id2) == MCOMMPHY_YT8511_MODEL && in mcommphy_probe()
172 MII_REV(ma->mii_id2) == MCOMMPHY_YT8511_REV) { in mcommphy_probe()
184 uint16_t oldaddr, data; in mcommphy_yt8511_setup() local
189 data = PHY_READ(sc, EXT_REG_DATA); in mcommphy_yt8511_setup()
[all …]
/freebsd/sys/i386/pci/
H A Dpci_cfgreg.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
84 "Enable support for PCI-e memory mapped config access");
87 int reg, int bytes);
89 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
90 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
93 unsigned slot, unsigned func, unsigned reg, unsigned bytes);
95 unsigned slot, unsigned func, unsigned reg, int data,
101 * numbers in the range 128-254 to indicate something strange and
[all …]
/freebsd/sys/dev/mmc/host/
H A Ddwmmc.c1 /*-
2 * Copyright (c) 2014-2019 Ruslan Bukin <br@bsdpad.com>
6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * Chapter 14, Altera Cyclone V Device Handbook (CV-5V2 2014.07.22)
89 bus_read_4((_sc)->res[0], _reg)
91 bus_write_4((_sc)->res[0], _reg, _val)
95 #define DWMMC_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
96 #define DWMMC_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
98 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dfman_memac_mii_acc.c2 * Copyright 2008-2013 Freescale Semiconductor Inc.
27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37 uint8_t phy_addr, uint8_t reg, uint16_t data) in write_phy_reg_10g() argument
41 tmp_reg = ioread32be(&mii_regs->mdio_cfg); in write_phy_reg_10g()
45 change of data signal */ in write_phy_reg_10g()
49 iowrite32be(tmp_reg, &mii_regs->mdio_cfg); in write_phy_reg_10g()
52 while ((ioread32be(&mii_regs->mdio_cfg)) & MDIO_CFG_BSY) in write_phy_reg_10g()
56 iowrite32be(phy_addr, &mii_regs->mdio_ctrl); in write_phy_reg_10g()
57 iowrite32be(reg, &mii_regs->mdio_addr); in write_phy_reg_10g()
60 while ((ioread32be(&mii_regs->mdio_cfg)) & MDIO_CFG_BSY) in write_phy_reg_10g()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/qcom/
H A Dqdu1000.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/clock/qcom,qdu1000-gcc.h>
7 #include <dt-bindings/clock/qcom,rpmh.h>
8 #include <dt-bindings/dma/qcom-gpi.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interconnect/qcom,icc.h>
11 #include <dt-bindings/interconnect/qcom,qdu1000-rpmh.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/power/qcom-rpmpd.h>
14 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
[all …]
/freebsd/sys/contrib/device-tree/Bindings/soc/ti/
H A Dti,pruss.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 TI Programmable Real-Time Unit and Industrial Communication Subsystem
11 - Suman Anna <s-anna@ti.com>
15 The Programmable Real-Time Unit and Industrial Communication Subsystem
16 (PRU-ICSS a.k.a. PRUSS) is present on various TI SoCs such as AM335x, AM437x,
17 Keystone 66AK2G, OMAP-L138/DA850 etc. A PRUSS consists of dual 32-bit RISC
18 cores (Programmable Real-Time Units, or PRUs), shared RAM, data and
23 peripheral interfaces, fast real-time responses, or specialized data handling.
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Ddbg.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2005-2014, 2018-2025 Intel Corporation
4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2015-2017 Intel Deutschland GmbH
11 #include "iwl-drv.h"
15 #include "iwl-io.h"
16 #include "iwl-prph.h"
17 #include "iwl-csr.h"
18 #include "iwl-fh.h"
20 * struct iwl_fw_dump_ptrs - set of pointers needed for the fw-error-dump
[all …]
/freebsd/sys/dev/firewire/
H A Dfwcrom.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
4 * Copyright (c) 2002-2003
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
66 #define MAX_ROM (1024 - sizeof(uint32_t) * 5)
67 #define CROM_END(cc) ((vm_offset_t)(cc)->stack[0].dir + MAX_ROM - 1)
75 if (hdr->info_len <= 1) { in crom_init_context()
77 cc->depth = -1; in crom_init_context()
80 p += 1 + hdr->info_len; in crom_init_context()
83 if (((struct csrdirectory *)p)->crc_len == 0) { in crom_init_context()
[all …]
/freebsd/sys/dev/ixl/
H A Dixl_pf_i2c.c3 Copyright (c) 2013-2018, Intel Corporation
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
48 I40E_GLGEN_I2CPARAMS(_hw->func_caps.mdio_port_num)
50 /* I2C bit-banging functions */
51 static s32 ixl_set_i2c_data(struct ixl_pf *pf, u32 *i2cctl, bool data);
55 static s32 ixl_clock_out_i2c_bit(struct ixl_pf *pf, bool data);
57 static s32 ixl_clock_out_i2c_byte(struct ixl_pf *pf, u8 data);
58 static s32 ixl_clock_in_i2c_bit(struct ixl_pf *pf, bool *data);
59 static s32 ixl_clock_in_i2c_byte(struct ixl_pf *pf, u8 *data);
67 * ixl_i2c_bus_clear - Clears the I2C bus
[all …]
/freebsd/sys/contrib/device-tree/Bindings/devfreq/event/
H A Dexynos-ppmu.txt5 each IP. PPMU provides the primitive values to get performance data. These
9 The Exynos PPMU driver uses the devfreq-event class to provide event data
10 to various devfreq devices. The devfreq devices would use the event data when
14 - compatible: Should be "samsung,exynos-ppmu" or "samsung,exynos-ppmu-v2.
15 - reg: physical base address of each PPMU and length of memory mapped region.
18 - clock-names : the name of clock used by the PPMU, "ppmu"
19 - clocks : phandles for clock specified in "clock-names" property
22 - event-name : the unique event name among PPMU device
24 - event-data-type : Define the type of data which shell be counted
25 by the counter. You can check include/dt-bindings/pmu/exynos_ppmu.h for
[all …]
H A Dsamsung,exynos-ppmu.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/devfreq/event/samsung,exynos-ppmu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chanwoo Choi <cw00.choi@samsung.com>
11 - Krzyszto
[all...]
/freebsd/sys/dev/bhnd/cores/chipc/
H A Dchipc_spi.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
48 * action 0 - read current MISO byte to data register (interactive mode)
49 * action 1 = read 2nd byte to data register
50 * action 2 = read 4th byte to data register (surprise! see action 6)
51 * action 3 = read 5th byte to data register
52 * action 4 = read bytes 5-8 to data register in swapped order
53 * action 5 = read bytes 9-12 to data register in swapped order
54 * action 6 = read 3rd byte to data register
[all …]
/freebsd/sys/dev/xilinx/
H A Dxlnx_pcib.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2020-2025 Ruslan Bukin <br@bsdpad.com>
8 * Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
98 { -1, 0 }
109 { "xlnx,xdma-host-3.00", 1 },
110 { "xlnx,axi-pcie-host-1.00.a", 1 },
117 uint32_t reg; in xlnx_pcib_clear_err_interrupts() local
119 reg = bus_read_4(sc->res, XLNX_PCIE_RPERRFRR); in xlnx_pcib_clear_err_interrupts()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFStreamer.cpp1 //===- lib/MC/AArch64ELFStreamer.cpp - ELF Object Output for AArch64 ------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // regions of data and code.
13 //===----------------------------------------------------------------------===//
53 OS << "\t.variant_pcs\t" << Symbol->getName() << "\n"; in emitDirectiveVariantPCS()
68 void emitARM64WinCFISaveReg(unsigned Reg, int Offset) override { in emitARM64WinCFISaveReg() argument
69 OS << "\t.seh_save_reg\tx" << Reg << ", " << Offset << "\n"; in emitARM64WinCFISaveReg()
71 void emitARM64WinCFISaveRegX(unsigned Reg, int Offset) override { in emitARM64WinCFISaveRegX() argument
72 OS << "\t.seh_save_reg_x\tx" << Reg << ", " << Offset << "\n"; in emitARM64WinCFISaveRegX()
[all …]
/freebsd/sys/dev/iser/
H A Diser_memory.c1 /*-
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 mtx_lock(&ib_conn->lock); in iser_reg_desc_get()
34 desc = list_first_entry(&ib_conn->fastreg.pool, in iser_reg_desc_get()
36 list_del(&desc->list); in iser_reg_desc_get()
37 mtx_unlock(&ib_conn->lock); in iser_reg_desc_get()
46 mtx_lock(&ib_conn->lock); in iser_reg_desc_put()
47 list_add(&desc->list, &ib_conn->fastreg.pool); in iser_reg_desc_put()
48 mtx_unlock(&ib_conn->lock); in iser_reg_desc_put()
54 * iser_data_buf_aligned_len - Tries to determine the maximal correctly aligned
[all …]
/freebsd/sys/dev/etherswitch/
H A Detherswitch.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2011-2012 Stefan Bethke.
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
105 sc->sc_dev = dev; in etherswitch_attach()
112 err = make_dev_s(&devargs, &sc->sc_devnode, "etherswitch%d", in etherswitch_attach()
127 if (sc->sc_devnode) in etherswitch_detach()
128 destroy_dev(sc->sc_devnode); in etherswitch_detach()
134 etherswitchioctl(struct cdev *cdev, u_long cmd, caddr_t data, int flags, struct thread *td) in etherswitchioctl() argument
136 struct etherswitch_softc *sc = cdev->si_drv1; in etherswitchioctl()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/display/bridge/
H A Dtoshiba,tc358775.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Vinay Simha BN <simhavcs@gmail.com>
15 MIPI DSI-RX Data 4-lane, CLK 1-lane with data rates up to 800 Mbps/lane.
17 Up to 1600x1200 24-bit/pixel resolution for single-link LVDS display panel
19 Up to WUXGA (1920x1200 24-bit pixels) resolution for dual-link LVDS display
25 - toshiba,tc358765
26 - toshiba,tc358775
28 reg:
[all …]

12345678910>>...47