/freebsd/sys/contrib/device-tree/Bindings/iio/adc/ |
H A D | ti,am3359-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/ti,am3359-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI AM3359 ADC 10 - Miquel Raynal <miquel.raynal@bootlin.com> 15 - enum: 16 - ti,am3359-adc 17 - ti,am4372-adc 18 - items: [all …]
|
H A D | adi,ad7280a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7280a.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 11 - Jonathan Cameron <jic23@kernel.org> 18 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7280A.pdf 28 description: IRQ line for the ADC 31 adi,voltage-alert-last-chan: 40 adi,acquisition-time-ns: [all …]
|
H A D | qcom,spmi-vadc.txt | 1 Qualcomm's SPMI PMIC ADC 3 - SPMI PMIC voltage ADC (VADC) provides interface to clients to read 4 voltage. The VADC is a 15-bit sigma-delta ADC. 5 - SPMI PMIC5 voltage ADC (ADC) provides interface to clients to read 6 voltage. The VADC is a 16-bit sigma-delta ADC. 10 - compatible: 13 Definition: Should contain "qcom,spmi-vadc". 14 Should contain "qcom,spmi-adc5" for PMIC5 ADC driver. 15 Should contain "qcom,spmi-adc-rev2" for PMIC rev2 ADC driver. 16 Should contain "qcom,pms405-adc" for PMS405 PMIC [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/ |
H A D | ti-tsc-adc.txt | 1 * TI - TSC ADC (Touschscreen and analog digital converter) 5 - mfd 7 "ti,am3359-tscadc" for AM335x/AM437x SoCs 8 "ti,am654-tscadc", "ti,am3359-tscadc" for AM654 SoCs 9 - child "tsc" 10 compatible: Should be "ti,am3359-tsc". 13 ti,x-plate-resistance: X plate resistance 14 ti,coordinate-readouts: The sequencer supports a total of 16 22 remaining 4 can be used by the ADC. 23 ti,wire-config: Different boards could have a different order for [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/qcom/ |
H A D | qcom-pma8084.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/interrupt-controller/irq.h> 4 #include <dt-bindings/spmi/spmi.h> 9 compatible = "qcom,pma8084", "qcom,spmi-pmic"; 11 #address-cell [all...] |
H A D | qcom-pm8226.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/input/linux-event-codes.h> 4 #include <dt-binding [all...] |
H A D | qcom-pm8941.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/interrupt-controller/irq.h> 4 #include <dt-bindings/spmi/spmi.h> 8 thermal-zones { 9 pm8941-therma [all...] |
/freebsd/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_cal.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 40 static uint16_t ar5416GetDefaultNF(struct ath_hal *ah, const struct ieee80211_channel *chan); 48 * ADC GAIN/DC offset calibration is for calibrating two ADCs that 51 * the secondary ADC is never enabled. It is enabled however for 61 * Analog-to-Digital Converters." 64 ar5416IsCalSupp(struct ath_hal *ah, const struct ieee80211_channel *chan, in ar5416IsCalSupp() argument 67 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416IsCalSupp() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9287_attach.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 47 .calName = "ADC Gain", .calType = ADC_GAIN_CAL, 54 .calName = "ADC DC", .calType = ADC_DC_CAL, 61 .calName = "ADC Init DC", .calType = ADC_DC_INIT_CAL, 73 const struct ieee80211_channel *chan); 85 .totalSizeDesired = { -55, -55, -55, -55, -62 }, in ar9287AniSetup() 86 .coarseHigh = { -14, -14, -14, -14, -12 }, in ar9287AniSetup() 87 .coarseLow = { -64, -64, -64, -64, -70 }, in ar9287AniSetup() [all …]
|
H A D | ar9280_attach.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 43 .calName = "ADC Gain", .calType = ADC_GAIN_CAL, 50 .calName = "ADC DC", .calType = ADC_DC_CAL, 57 .calName = "ADC Init DC", .calType = ADC_DC_INIT_CAL, 69 const struct ieee80211_channel *chan); 81 .totalSizeDesired = { -55, -55, -55, -55, -62 }, in ar9280AniSetup() 82 .coarseHigh = { -14, -14, -14, -14, -12 }, in ar9280AniSetup() 83 .coarseLow = { -64, -64, -64, -64, -70 }, in ar9280AniSetup() [all …]
|
H A D | ar9285_attach.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 48 .calName = "ADC Gain", .calType = ADC_GAIN_CAL, 55 .calName = "ADC DC", .calType = ADC_DC_CAL, 62 .calName = "ADC Init DC", .calType = ADC_DC_INIT_CAL, 74 const struct ieee80211_channel *chan); 86 .totalSizeDesired = { -55, -55, -55, -55, -62 }, in ar9285AniSetup() 87 .coarseHigh = { -14, -14, -14, -14, -12 }, in ar9285AniSetup() 88 .coarseLow = { -64, -64, -64, -64, -70 }, in ar9285AniSetup() [all …]
|
H A D | ar9287_cal.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2010 Atheros Communications Inc. 49 * This is like Merlin but without ADC disable 52 ar9287InitCalHardware(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar9287InitCalHardware() argument
|
/freebsd/sys/dev/iicbus/adc/ |
H A D | ad7417.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 52 /* CPU A/B sensors, temp and adc: AD7417. */ 121 static MALLOC_DEFINE(M_AD7417, "ad7417", "Supply-Monitor AD7417"); 145 return (-1); in ad7417_write() 173 return (-1); in ad7417_read_1() 201 return (-1); in ad7417_read_2() 217 { addr, IIC_M_WR | IIC_M_NOSTOP, 1, &in->reg }, in ad7417_write_read() 231 in->val = *((uint16_t*)buf); in ad7417_write_read() 236 return (-1); in ad7417_write_read() [all …]
|
H A D | ad7418.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 56 #define AD7418_VOLT 4 /* ADC aka Voltage (r/o) */ 76 device_set_desc(dev, "Analog Devices AD7418 ADC"); in ad7418_probe() 86 sx_xlock(&sc->sc_lock); in ad7418_sysctl_temp() 88 temp = (sc->sc_curtemp / 64) * 25; in ad7418_sysctl_temp() 89 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_temp() 99 sx_xlock(&sc->sc_lock); in ad7418_sysctl_voltage() 101 volt = (sc->sc_curvolt >> 6) * 564 / 10; in ad7418_sysctl_voltage() 102 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_voltage() [all …]
|
H A D | ads111x.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 28 * Driver for Texas Instruments ADS101x and ADS111x family i2c ADC chips. 72 * On config write, the operational-state bit starts a measurement, on read it 79 * The default values for config items that are not per-channel. Mostly, this 90 * Per-channel defaults. The chip only has one control register, and we load 91 * per-channel values into it every time we make a measurement on that channel. 93 * values we maintain on a per-channel basis. 99 * Full-scale ranges for each available amplifier setting, in microvolts. The 100 * ADS1x13 chips are fixed-range, the other chips contain a programmable gain [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar9001/ |
H A D | ar9160_attach.c | 1 /*- 2 * SPDX-License-Identifier: ISC 39 .calName = "ADC Gain", .calType = ADC_GAIN_CAL, 46 .calName = "ADC DC", .calType = ADC_DC_CAL, 53 .calName = "ADC Init DC", .calType = ADC_DC_INIT_CAL, 67 .totalSizeDesired = { -55, -55, -55, -55, -62 }, in ar9160AniSetup() 68 .coarseHigh = { -14, -14, -14, -14, -12 }, in ar9160AniSetup() 69 .coarseLow = { -64, -64, -64, -64, -70 }, in ar9160AniSetup() 70 .firpwr = { -78, -78, -78, -78, -80 }, in ar9160AniSetup() 85 AH5416(ah)->ah_ani_function &= ~(1 << HAL_ANI_NOISE_IMMUNITY_LEVEL); in ar9160AniSetup() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5312_reset.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 41 const struct ieee80211_channel *chan, uint16_t *rfXpdGain); 62 #define V(r, c) (ia)->data[((r)*(ia)->cols) + (c)] in write_common() 66 for (i = 0; i < ia->rows; i++) { in write_common() 90 struct ieee80211_channel *chan, in ar5312Reset() argument 110 HALASSERT(ah->ah_magic == AR5212_MAGIC); in ar5312Reset() 111 ee = AH_PRIVATE(ah)->ah_eeprom; in ar5312Reset() [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | envy24.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 46 /* -------------------------------------------------------------------- */ 151 /* ADC/DAC number and info */ 153 void *adc[4], *dac[4]; member 176 struct sc_chinfo chan[11]; member 179 /* -------------------------------------------------------------------- */ 208 /* M-Audio Delta series AK4524 access interface */ 215 /* -------------------------------------------------------------------- */ 221 /* API -> hardware channel map */ [all …]
|
H A D | envy24ht.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 35 * generous gift - an 'Audiotrak Prodigy HD2' audio card! I also want to 58 /* -------------------------------------------------------------------- */ 150 /* ADC/DAC number and info */ 152 void *adc[4], *dac[4]; member 175 struct sc_chinfo chan[11]; member 178 /* -------------------------------------------------------------------- */ 214 /* -------------------------------------------------------------------- */ 220 /* API -> hardware channel map */ [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/ |
H A D | am335x-pocketbeagle.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 7 /dts-v1/; 10 #include "am335x-osd335x-common.dtsi" 11 #include <dt-bindings/leds/common.h> 15 compatible = "ti,am335x-pocketbeagle", "ti,am335x-bon [all...] |
/freebsd/sys/dev/rtwn/rtl8812a/ |
H A D | r12a_chan.c | 1 /*- 67 /* Write per-MCS Tx power. */ in r12a_write_txpower_ht() 78 if (sc->ntxchains >= 2) { in r12a_write_txpower_ht() 91 /* TODO: HT MCS 16 -> 31 */ in r12a_write_txpower_ht() 114 if (sc->ntxchains == 1) { in r12a_write_txpower_vht() 129 if (sc->ntxchains > 1) { in r12a_write_txpower_vht() 138 if (sc->ntxchains > 1) { in r12a_write_txpower_vht() 156 /* Write per-CCK rate Tx power. */ in r12a_write_txpower_cck() 170 /* Write per-OFDM rate Tx power. */ in r12a_write_txpower_ofdm() 196 power_level -= 10; in r12a_tx_power_training() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_cam.c | 1 /*- 113 io->tgt_io.state = OCS_CAM_IO_FREE; in ocs_target_io_free() 114 io->tgt_io.flags = 0; in ocs_target_io_free() 115 io->tgt_io.app = NULL; in ocs_target_io_free() 117 if(io->ocs->io_in_use != 0) in ocs_target_io_free() 118 atomic_subtract_acq_32(&io->ocs->io_in_use, 1); in ocs_target_io_free() 122 ocs_attach_port(ocs_t *ocs, int chan) in ocs_attach_port() argument 128 ocs_fcport *fcp = FCPORT(ocs, chan); in ocs_attach_port() 131 device_get_name(ocs->dev), ocs, in ocs_attach_port() 132 device_get_unit(ocs->dev), &ocs->sim_lock, in ocs_attach_port() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_reset.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2006 Atheros Communications, Inc. 50 { 1, 0x46, 96 }, /* 2312 -19 */ 51 { 1, 0x46, 97 }, /* 2317 -18 */ 52 { 1, 0x46, 98 }, /* 2322 -17 */ 53 { 1, 0x46, 99 }, /* 2327 -16 */ 54 { 1, 0x46, 100 }, /* 2332 -15 */ 55 { 1, 0x46, 101 }, /* 2337 -14 */ [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_reset.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 47 const struct ieee80211_channel *chan, uint16_t *rfXpdGain); 78 #define V(r, c) (ia)->data[((r)*(ia)->cols) + (c)] in write_common() 82 for (r = 0; r < ia->rows; r++) { in write_common() 118 struct ieee80211_channel *chan, in ar5212Reset() argument 141 HALASSERT(ah->ah_magic == AR5212_MAGIC); in ar5212Reset() 142 ee = AH_PRIVATE(ah)->ah_eeprom; in ar5212Reset() [all …]
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | rtw8851b.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2022-2023 Realtek Corporation 227 {255, 0, 0, 7}, /* 0 -> original */ 228 {255, 2, 0, 7}, /* 1 -> for BT-connected ACI issue && BTG co-r 756 rtw8851b_set_channel_mac(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,u8 mac_idx) rtw8851b_set_channel_mac() argument 998 rtw8851b_ctrl_ch(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,enum rtw89_phy_idx phy_idx) rtw8851b_ctrl_ch() argument 1147 rtw8851b_spur_freq(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan) rtw8851b_spur_freq() argument 1171 rtw8851b_set_csi_tone_idx(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,enum rtw89_phy_idx phy_idx) rtw8851b_set_csi_tone_idx() argument 1203 rtw8851b_set_nbi_tone_idx(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan) rtw8851b_set_nbi_tone_idx() argument 1271 rtw8851b_set_cfr(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan) rtw8851b_set_cfr() argument 1296 rtw8851b_5m_mask(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,enum rtw89_phy_idx phy_idx) rtw8851b_5m_mask() argument 1455 rtw8851b_set_channel_bb(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,enum rtw89_phy_idx phy_idx) rtw8851b_set_channel_bb() argument 1491 rtw8851b_set_channel(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,enum rtw89_mac_idx mac_idx,enum rtw89_phy_idx phy_idx) rtw8851b_set_channel() argument 1528 rtw8851b_set_channel_help(struct rtw89_dev * rtwdev,bool enter,struct rtw89_channel_help_params * p,const struct rtw89_chan * chan,enum rtw89_mac_idx mac_idx,enum rtw89_phy_idx phy_idx) rtw8851b_set_channel_help() argument 1649 rtw8851b_bb_set_tx_shape_dfir(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,u8 tx_shape_idx,enum rtw89_phy_idx phy_idx) rtw8851b_bb_set_tx_shape_dfir() argument 1706 rtw8851b_set_tx_shape(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,enum rtw89_phy_idx phy_idx) rtw8851b_set_tx_shape() argument 1722 rtw8851b_set_txpwr(struct rtw89_dev * rtwdev,const struct rtw89_chan * chan,enum rtw89_phy_idx phy_idx) rtw8851b_set_txpwr() argument 1785 const struct rtw89_chan *chan = rtw89_chan_get(rtwdev, RTW89_SUB_ENTITY_0); rtw8851b_bb_ctrl_btc_preagc() local 1807 const struct rtw89_chan *chan = rtw89_chan_get(rtwdev, RTW89_SUB_ENTITY_0); rtw8851b_ctrl_btg() local 1852 const struct rtw89_chan *chan = rtw89_chan_get(rtwdev, RTW89_SUB_ENTITY_0); rtw8851b_bb_ctrl_rx_path() local 2201 u16 chan = phy_ppdu->chan_idx; rtw8851b_fill_freq_with_ppdu() local [all...] |