/linux/drivers/net/ieee802154/ |
H A D | fakelb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2007-2012 Siemens AG 9 * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> 31 struct ieee802154_hw *hw; member 42 static int fakelb_hw_ed(struct ieee802154_hw *hw, u8 *level) in fakelb_hw_ed() argument 50 static int fakelb_hw_channel(struct ieee802154_hw *hw, u8 page, u8 channel) in fakelb_hw_channel() argument 52 struct fakelb_phy *phy = hw->priv; in fakelb_hw_channel() 55 phy->page = page; in fakelb_hw_channel() 56 phy->channel = channel; in fakelb_hw_channel() 61 static int fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb) in fakelb_hw_xmit() argument [all …]
|
H A D | mac802154_hwsim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright 2007-2012 Siemens AG 10 * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> 72 struct ieee802154_hw *hw; member 87 static int hwsim_hw_ed(struct ieee802154_hw *hw, u8 *level) in hwsim_hw_ed() argument 94 static int hwsim_update_pib(struct ieee802154_hw *hw, u8 page, u8 channel, in hwsim_update_pib() argument 98 struct hwsim_phy *phy = hw->priv; in hwsim_update_pib() 103 return -ENOMEM; in hwsim_update_pib() 105 pib_old = rtnl_dereference(phy->pib); in hwsim_update_pib() 107 pib->page = page; in hwsim_update_pib() [all …]
|
/linux/drivers/iio/humidity/ |
H A D | hts221_buffer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 42 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_trig_set_state() local 44 return regmap_update_bits(hw->regmap, HTS221_REG_DRDY_EN_ADDR, in hts221_trig_set_state() 55 struct hts221_hw *hw = private; in hts221_trigger_handler_thread() local 58 err = regmap_read(hw->regmap, HTS221_REG_STATUS_ADDR, &status); in hts221_trigger_handler_thread() 65 * Here we can assume data channels are both available if H_DA bit in hts221_trigger_handler_thread() 71 iio_trigger_poll_nested(hw->trig); in hts221_trigger_handler_thread() 78 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_allocate_trigger() local 79 struct st_sensors_platform_data *pdata = dev_get_platdata(hw->dev); in hts221_allocate_trigger() 84 irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); in hts221_allocate_trigger() [all …]
|
/linux/net/mac80211/ |
H A D | scan.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 10 * Copyright 2013-2015 Intel Mobile Communications GmbH 11 * Copyright 2016-2017 Intel Deutschland GmbH 12 * Copyright (C) 2018-2024 Intel Corporation 25 #include "driver-ops.h" 37 cfg80211_put_bss(local->hw.wiphy, in ieee80211_rx_bss_put() 45 if (elems->wmm_info && elems->wmm_info_len == 7 in is_uapsd_supported() 46 && elems->wmm_info[5] == 1) in is_uapsd_supported() 47 qos_info = elems->wmm_info[6]; in is_uapsd_supported() [all …]
|
/linux/sound/firewire/dice/ |
H A D | dice-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dice_pcm.c - a part of driver for DICE based devices 6 * Copyright (c) 2014 Takashi Sakamoto <o-takashi@sakamocchi.jp> 14 struct snd_pcm_substream *substream = rule->private; in dice_rate_constraint() 15 struct snd_dice *dice = substream->private_data; in dice_rate_constraint() 16 unsigned int index = substream->pcm->device; in dice_rate_constraint() 29 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_rate_constraint() 30 pcm_channels = dice->tx_pcm_chs[index]; in dice_rate_constraint() 32 pcm_channels = dice->rx_pcm_chs[index]; in dice_rate_constraint() 52 struct snd_pcm_substream *substream = rule->private; in dice_channels_constraint() [all …]
|
/linux/Documentation/devicetree/bindings/spi/ |
H A D | sprd,spi-adi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/sprd,spi-adi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Orson Zhai <orsonzhai@gmail.com> 11 - Baolin Wang <baolin.wang7@gmail.com> 12 - Chunyan Zhang <zhang.lyra@gmail.com> 15 ADI is the abbreviation of Anolog-Digital interface, which is used to access 20 ADI controller has 50 channels including 2 software read/write channels and 21 48 hardware channels to access analog chip. For 2 software read/write channels, [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_cn10k.c | 1 // SPDX-License-Identifier: GPL-2.0 30 dev_err(rvu->dev, "Failed to setup lmt map table mapping!!\n"); in lmtst_map_table_ops() 31 return -ENOMEM; in lmtst_map_table_ops() 55 return ((rvu_get_pf(pcifunc) * rvu->hw->total_vfs) + in rvu_get_lmtst_tbl_index() 66 dev_err(rvu->dev, "%s Requested Null address for transulation\n", __func__); in rvu_get_lmtaddr() 67 return -EINVAL; in rvu_get_lmtaddr() 70 mutex_lock(&rvu->rsrc_lock); in rvu_get_lmtaddr() 79 dev_err(rvu->dev, "%s LMTLINE iova transulation failed\n", __func__); in rvu_get_lmtaddr() 84 dev_err(rvu->dev, "%s LMTLINE iova transulation failed err:%llx\n", __func__, val); in rvu_get_lmtaddr() 85 err = -EIO; in rvu_get_lmtaddr() [all …]
|
/linux/Documentation/sound/cards/ |
H A D | audiophile-usb.rst | 2 Guide to using M-Audio Audiophile USB with ALSA and Jack 9 This document is a guide to using the M-Audio Audiophile USB (tm) device with 15 * v1.4 - Thibault Le Meur (2007-07-11) 17 - Added Low Endianness nature of 16bits-modes 19 - Modifying document structure 21 * v1.5 - Thibault Le Meur (2007-07-12) 22 - Added AC3/DTS passthru info 35 - This port supports 2 pairs of line-level audio inputs (1/4" TS and RCA) 36 - When the 1/4" TS (jack) connectors are connected, the RCA connectors 57 * 16-bit/48kHz ==> 4 channels in + 4 channels out [all …]
|
H A D | cmipci.rst | 2 Brief Notes on C-Media 8338/8738/8768/8770 Driver 8 Front/Rear Multi-channel Playback 9 --------------------------------- 12 channels can be used for front/rear playbacks. Since there are two 13 DACs, both streams are handled independently unlike the 4/6ch multi- 16 As default, ALSA driver assigns the first PCM device (i.e. hw:0,0 for 18 (hw:0,1) is assigned to the second DAC for rear playback. 22 - The first DAC supports U8 and S16LE formats, while the second DAC 24 - The second DAC supports only two channel stereo. 44 on and "double DAC" mode. Actually I could hear separate 4 channels [all …]
|
/linux/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_buffer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * - 1st data set is reserved for gyroscope data 10 * - 2nd data set is reserved for accelerometer data 18 * - ISM330DLC 19 * - LSM6DS3 20 * - LSM6DS3H 21 * - LSM6DS3TR-C 22 * - LSM6DSL 23 * - LSM6DSM 28 * source (gyroscope, accelerometer, hw timer). [all …]
|
/linux/Documentation/devicetree/bindings/thermal/ |
H A D | qcom-spmi-adc-tm5.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm5.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 11 $ref: thermal-sensor.yaml# 16 - qcom,spmi-adc-tm5 17 - qcom,spmi-adc-tm5-gen2 18 - qcom,adc-tm7 # Incomplete / subject to change 26 "#thermal-sensor-cells": [all …]
|
/linux/sound/pci/emu10k1/ |
H A D | emupcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Lee Revell <rlrevell@joe-job.com> 5 * James Courtier-Dutton <James@superbug.co.uk> 25 epcm = voice->epcm; in snd_emu10k1_pcm_interrupt() 28 if (epcm->substream == NULL) in snd_emu10k1_pcm_interrupt() 31 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt() 33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 34 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1_pcm_interrupt() 35 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1_pcm_interrupt() 37 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1_pcm_interrupt() [all …]
|
/linux/sound/firewire/motu/ |
H A D | motu-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * motu-pcm.c - a part of driver for MOTU FireWire series 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 14 struct snd_motu_packet_format *formats = rule->private; in motu_rate_constraint() 29 pcm_channels = formats->pcm_chunks[mode]; in motu_rate_constraint() 43 struct snd_motu_packet_format *formats = rule->private; in motu_channels_constraint() 49 struct snd_interval channels = { in motu_channels_constraint() local 61 pcm_channels = formats->pcm_chunks[mode]; in motu_channels_constraint() 62 channels.min = min(channels.min, pcm_channels); in motu_channels_constraint() 63 channels.max = max(channels.max, pcm_channels); in motu_channels_constraint() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ethtool.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2 /* Copyright 2014-2016 Freescale Semiconductor Inc. 3 * Copyright 2016-2022 NXP 10 #include "dpaa2-eth.h" 14 "[hw] rx frames", 15 "[hw] rx bytes", 16 "[hw] rx mcast frames", 17 "[hw] rx mcast bytes", 18 "[hw] rx bcast frames", 19 "[hw] rx bcast bytes", [all …]
|
/linux/sound/isa/sb/ |
H A D | emu8000_pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 * define the following if you want to use this pcm with non-interleaved mode 21 /* NOTE: for using the non-interleaved mode with alsa-lib, you have to set 27 * type hw 34 * besides, for the time being, the non-interleaved mode doesn't work well on 35 * alsa-lib... 65 * open up channels for the simultaneous data transfer and playback 68 emu8k_open_dram_for_pcm(struct snd_emu8000 *emu, int channels) in emu8k_open_dram_for_pcm() argument 73 snd_emux_lock_voice(emu->emu, 0); in emu8k_open_dram_for_pcm() 74 if (channels > 1) in emu8k_open_dram_for_pcm() [all …]
|
/linux/sound/firewire/fireworks/ |
H A D | fireworks_pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * fireworks_pcm.c - a part of driver for Fireworks based devices 5 * Copyright (c) 2009-2010 Clemens Ladisch 6 * Copyright (c) 2013-2014 Takashi Sakamoto 12 * Fireworks changes its AMDTP channels for PCM data according to its sampling 14 * 0: 32.0- 48.0 kHz then snd_efw_hwinfo.amdtp_XX_pcm_channels applied 15 * 1: 88.2- 96.0 kHz then snd_efw_hwinfo.amdtp_XX_pcm_channels_2x applied 16 * 2: 176.4-192.0 kHz then snd_efw_hwinfo.amdtp_XX_pcm_channels_4x applied 18 * The number of PCM channels for analog input and output are always fixed but 19 * the number of PCM channels for digital input and output are differed. [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-meson.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 13 * Setting the duty cycle will disable and re-enable the PWM output. 19 * https://dl.khadas.com/Hardware/VIM2/Datasheet/S912_Datasheet_V0.220170314publicversion-Wesion.pdf 23 * https://dn.odroid.com/S922X/ODROID-N2/Datasheet/S922X_Public_Datasheet_V0.2.pdf 33 #include <linux/clk-provider.h> 106 struct meson_pwm_channel channels[MESON_NUM_PWMS]; member 123 struct meson_pwm_channel *channel = &meson->channels[pwm->hwpwm]; in meson_pwm_request() 127 err = clk_prepare_enable(channel->clk); in meson_pwm_request() 130 __clk_get_name(channel->clk), err); in meson_pwm_request() 140 struct meson_pwm_channel *channel = &meson->channels[pwm->hwpwm]; in meson_pwm_free() [all …]
|
/linux/drivers/iio/buffer/ |
H A D | industrialio-hw-consumer.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Author: Lars-Peter Clausen <lars@metafoo.de> 14 #include <linux/iio/hw-consumer.h> 18 * struct iio_hw_consumer - IIO hw consumer block 20 * @channels: IIO provider channels. 24 struct iio_channel *channels; member 58 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_get_buffer() 59 if (buf->indio_dev == indio_dev) in iio_hw_consumer_get_buffer() 67 buf->buffer.access = &iio_hw_buf_access; in iio_hw_consumer_get_buffer() 68 buf->indio_dev = indio_dev; in iio_hw_consumer_get_buffer() [all …]
|
/linux/drivers/net/wireless/silabs/wfx/ |
H A D | scan.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc. 6 * Copyright (c) 2010, ST-Ericsson 15 static void wfx_ieee80211_scan_completed_compat(struct ieee80211_hw *hw, bool aborted) in wfx_ieee80211_scan_completed_compat() argument 21 ieee80211_scan_completed(hw, &info); in wfx_ieee80211_scan_completed_compat() 29 skb = ieee80211_probereq_get(wvif->wdev->hw, vif->addr, NULL, 0, in update_probe_tmpl() 30 req->ie_len); in update_probe_tmpl() 32 return -ENOMEM; in update_probe_tmpl() 34 skb_put_data(skb, req->ie, req->ie_len); in update_probe_tmpl() 46 for (i = start_idx; i < req->n_channels; i++) { in send_scan_req() [all …]
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00dev.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com> 34 if (rt2x00dev->intf_sta_count) in rt2x00lib_get_bssidx() 36 return vif->addr[5] & (rt2x00dev->ops->max_ap_intf - 1); in rt2x00lib_get_bssidx() 51 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_enable_radio() 63 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_ON); in rt2x00lib_enable_radio() 67 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_IRQ_ON); in rt2x00lib_enable_radio() 72 set_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags); in rt2x00lib_enable_radio() 90 if (!test_and_clear_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_disable_radio() 104 rt2x00queue_stop_queue(rt2x00dev->bcn); in rt2x00lib_disable_radio() [all …]
|
/linux/drivers/net/wireless/ti/wlcore/ |
H A D | scan.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Nokia Corporation 35 mutex_lock(&wl->mutex); in wl1271_scan_complete_work() 37 if (unlikely(wl->state != WLCORE_STATE_ON)) in wl1271_scan_complete_work() 40 if (wl->scan.state == WL1271_SCAN_STATE_IDLE) in wl1271_scan_complete_work() 43 wlvif = wl->scan_wlvif; in wl1271_scan_complete_work() 47 * prevents just-finished scans from triggering the watchdog in wl1271_scan_complete_work() 51 wl->scan.state = WL1271_SCAN_STATE_IDLE; in wl1271_scan_complete_work() 52 memset(wl->scan.scanned_ch, 0, sizeof(wl->scan.scanned_ch)); in wl1271_scan_complete_work() 53 wl->scan.req = NULL; in wl1271_scan_complete_work() [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | qcom,spmi-vadc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 15 voltage. The VADC is a 15-bit sigma-delta ADC. 17 voltage. The VADC is a 16-bit sigma-delta ADC. 22 - items: 23 - const: qcom,pms405-adc [all …]
|
/linux/sound/firewire/fireface/ |
H A D | ff-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ff-pcm.c - a part of driver for RME Fireface series 5 * Copyright (c) 2015-2017 Takashi Sakamoto 13 const unsigned int *pcm_channels = rule->private; in hw_rule_rate() 44 const unsigned int *pcm_channels = rule->private; in hw_rule_channels() 72 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, in limit_channels_and_rates() argument 75 unsigned int rate, channels; in limit_channels_and_rates() local 78 hw->channels_min = UINT_MAX; in limit_channels_and_rates() 79 hw->channels_max = 0; in limit_channels_and_rates() 80 hw->rate_min = UINT_MAX; in limit_channels_and_rates() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | regd.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 25 *Only these channels all allow active 29 REG_RULE(2412-10, 2462+10, 40, 0, 20, 0) 36 REG_RULE(2467-10, 2472+10, 40, 0, 20,\ 40 REG_RULE(2484-10, 2484+10, 40, 0, 20, \ 44 /* 5G chan 36 - chan 64*/ 46 REG_RULE(5150-10, 5350+10, 80, 0, 30, 0) 47 /* 5G chan 100 - chan 165*/ 49 REG_RULE(5470-10, 5850+10, 80, 0, 30, 0) [all …]
|
/linux/drivers/dma/ |
H A D | sprd-dma.c | 4 * SPDX-License-Identifier: GPL-2.0 8 #include <linux/dma-mapping.h> 9 #include <linux/dma/sprd-dma.h> 22 #include "virt-dma.h" 41 #define SPRD_DMA_GLB_REQ_UID(uid) (0x4 * ((uid) - 1)) 215 struct sprd_dma_chn channels[] __counted_by(total_chns); 233 return container_of(schan, struct sprd_dma_dev, channels[c->chan_id]); in to_sprd_dma_dev() 244 u32 orig = readl(sdev->glb_base + reg); in sprd_dma_glb_update() 248 writel(tmp, sdev->glb_base + reg); in sprd_dma_glb_update() 254 u32 orig = readl(schan->chn_base + reg); in sprd_dma_chn_update() [all …]
|