/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/dma/ |
H A D | qcom_hidma_mgmt.txt | 7 Each HIDMA HW instance consists of multiple DMA channels. These channels 9 among channels based on the priority and weight assignments. 18 - compatible: "qcom,hidma-mgmt-1.0"; 19 - reg: Address range for DMA device 20 - dma-channels: Number of channels supported by this DMA controller. 21 - max-write-burst-bytes: Maximum write burst in bytes that HIDMA can 26 - max-read-burst-bytes: Maximum read burst in bytes that HIDMA can 31 - max-write-transactions: This value is how many times a write burst is 34 - max-read-transactions: This value is how many times a read burst is 36 - channel-reset-timeout-cycles: Channel reset timeout in cycles for this SOC. [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/qemu/audio/ |
H A D | jackaudio.c | 28 #include "qemu/main-loop.h" 47 int channels; member 80 HWVoiceOut hw; member 86 HWVoiceIn hw; member 96 static void qjack_buffer_create(QJackBuffer *buffer, int channels, int frames) in qjack_buffer_create() argument 98 buffer->channels = channels; in qjack_buffer_create() 99 buffer->frames = frames; in qjack_buffer_create() 100 buffer->used = 0; in qjack_buffer_create() 101 buffer->rptr = 0; in qjack_buffer_create() 102 buffer->wptr = 0; in qjack_buffer_create() [all …]
|
H A D | paaudio.c | 31 HWVoiceOut hw; member 37 HWVoiceIn hw; member 80 qpa_logerr(pa_context_errno((c)->context), msg); \ 87 if (!(c)->context || !PA_CONTEXT_IS_GOOD (pa_context_get_state((c)->context)) || \ 89 if (((c)->context && pa_context_get_state ((c)->context) == PA_CONTEXT_FAILED) || \ 91 qpa_logerr(pa_context_errno((c)->context), msg); \ 99 static void *qpa_get_buffer_in(HWVoiceIn *hw, size_t *size) in qpa_get_buffer_in() argument 101 PAVoiceIn *p = (PAVoiceIn *) hw; in qpa_get_buffer_in() 102 PAConnection *c = p->g->conn; in qpa_get_buffer_in() 105 pa_threaded_mainloop_lock(c->mainloop); in qpa_get_buffer_in() [all …]
|
H A D | pwaudio.c | 8 * SPDX-License-Identifier: GPL-2.0-or-later 14 #include "qemu/error-report.h" 16 #include <spa/param/audio/format-utils.h> 26 #define RINGBUFFER_MASK (RINGBUFFER_SIZE - 1) 31 uint32_t channels; member 60 HWVoiceOut hw; member 65 HWVoiceIn hw; member 76 spa_hook_remove(&v->stream_listener); in stream_destroy() 77 v->stream = NULL; in stream_destroy() 91 assert(v->stream); in playback_on_process() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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> 14 - qcom,spmi-adc-tm5 15 - qcom,spmi-adc-tm5-gen2 16 - qcom,adc-tm7 # Incomplete / subject to change 24 "#thermal-sensor-cells": 30 "#address-cells": [all …]
|
/openbmc/linux/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_buffer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * LSM6DS3/LSM6DS3H/LSM6DSL/LSM6DSM/ISM330DLC/LSM6DS3TR-C: 9 * - 1st data set is reserved for gyroscope data 10 * - 2nd data set is reserved for accelerometer data 21 * source (gyroscope, accelerometer, hw timer). 24 * - BYPASS: FIFO disabled 25 * - CONTINUOUS: FIFO enabled. When the buffer is full, the FIFO index 86 u32 decimator = max_odr / sensor->odr; in st_lsm6dsx_get_decimator_val() 97 sensor->decimator = decimator; in st_lsm6dsx_get_decimator_val() 101 static void st_lsm6dsx_get_max_min_odr(struct st_lsm6dsx_hw *hw, in st_lsm6dsx_get_max_min_odr() argument [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/net/wireless/intersil/orinoco/ |
H A D | cfg.c | 7 #include "hw.h" 13 /* Supported bitrates. Must agree with hw.c */ 28 wiphy->privid = orinoco_wiphy_privid; in orinoco_wiphy_init() 30 set_wiphy_dev(wiphy, priv->dev); in orinoco_wiphy_init() 37 int i, channels = 0; in orinoco_wiphy_register() local 39 if (priv->firmware_type == FIRMWARE_TYPE_AGERE) in orinoco_wiphy_register() 40 wiphy->max_scan_ssids = 1; in orinoco_wiphy_register() 42 wiphy->max_scan_ssids = 0; in orinoco_wiphy_register() 44 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); in orinoco_wiphy_register() 46 /* TODO: should we set if we only have demo ad-hoc? in orinoco_wiphy_register() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 57 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_get_buffer() 58 if (buf->indio_dev == indio_dev) in iio_hw_consumer_get_buffer() 62 buf = kzalloc(struct_size(buf, scan_mask, BITS_TO_LONGS(indio_dev->masklength)), in iio_hw_consumer_get_buffer() 67 buf->buffer.access = &iio_hw_buf_access; in iio_hw_consumer_get_buffer() [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/hw/i2c/ |
H A D | i2c_mux_pca954x.c | 19 #include "hw/i2c/i2c.h" 20 #include "hw/i2c/i2c_mux_pca954x.h" 21 #include "hw/i2c/smbus_slave.h" 22 #include "hw/qdev-core.h" 23 #include "hw/qdev-properties.h" 24 #include "hw/sysbus.h" 35 * struct Pca954xState - The pca954x state object. 37 * @channel: The set of i2c channel buses that act as channels which own the 52 * struct Pca954xClass - The pca954x class object. 53 * @nchans: The number of i2c channels this device has. [all …]
|
/openbmc/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 …]
|