| /kernel/linux/linux-6.6/drivers/nfc/s3fwrn5/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct phy_common common; member 31 static void s3fwrn5_i2c_set_mode(void *phy_id, enum s3fwrn5_mode mode) in s3fwrn5_i2c_set_mode() argument 35 mutex_lock(&phy->common.mutex); in s3fwrn5_i2c_set_mode() 37 if (s3fwrn5_phy_power_ctrl(&phy->common, mode) == false) in s3fwrn5_i2c_set_mode() 40 phy->irq_skip = true; in s3fwrn5_i2c_set_mode() 43 mutex_unlock(&phy->common.mutex); in s3fwrn5_i2c_set_mode() 51 mutex_lock(&phy->common.mutex); in s3fwrn5_i2c_write() 53 phy->irq_skip = false; in s3fwrn5_i2c_write() 55 ret = i2c_master_send(phy->i2c_dev, skb->data, skb->len); in s3fwrn5_i2c_write() [all …]
|
| /kernel/linux/linux-6.6/drivers/clk/zynqmp/ |
| D | pll.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016-2018 Xilinx 9 #include <linux/clk-provider.h> 11 #include "clk-zynqmp.h" 14 * struct zynqmp_pll - PLL clock 15 * @hw: Handle between common and hardware-specific interfaces 44 * zynqmp_pll_get_mode() - Get mode of PLL 45 * @hw: Handle between common and hardware-specific interfaces 47 * Return: Mode of PLL 52 u32 clk_id = clk->clk_id; in zynqmp_pll_get_mode() [all …]
|
| /kernel/linux/linux-6.6/drivers/clk/sunxi-ng/ |
| D | ccu_mp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 7 #include <linux/clk-provider.h> 28 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best() 107 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate() 108 rate *= cmp->fixed_post_div; in ccu_mp_round_rate() 110 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_round_rate() 111 max_p = cmp->p.max ?: 1 << ((1 << cmp->p.width) - 1); in ccu_mp_round_rate() 113 if (!clk_hw_can_set_rate_parent(&cmp->common.hw)) { in ccu_mp_round_rate() 120 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
| D | ccu_mp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 7 #include <linux/clk-provider.h> 28 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best() 105 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate() 106 rate *= cmp->fixed_post_div; in ccu_mp_round_rate() 108 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_round_rate() 109 max_p = cmp->p.max ?: 1 << ((1 << cmp->p.width) - 1); in ccu_mp_round_rate() 111 if (!clk_hw_can_set_rate_parent(&cmp->common.hw)) { in ccu_mp_round_rate() 119 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
| D | am65-cpsw-nuss.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 31 #include <linux/dma/ti-cppi5.h> 32 #include <linux/dma/k3-udma-glue.h> 37 #include "am65-cpsw-nuss.h" 38 #include "am65-cpsw-switchdev.h" 39 #include "k3-cppi-desc-pool.h" 40 #include "am65-cpts.h" 117 /* The PTP event messages - Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. */ 146 writel(mac_hi, slave->port_base + AM65_CPSW_PORTN_REG_SA_H); in am65_cpsw_port_set_sl_mac() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/zynqmp/ |
| D | pll.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016-2018 Xilinx 9 #include <linux/clk-provider.h> 11 #include "clk-zynqmp.h" 14 * struct zynqmp_pll - PLL clock 15 * @hw: Handle between common and hardware-specific interfaces 43 * zynqmp_pll_get_mode() - Get mode of PLL 44 * @hw: Handle between common and hardware-specific interfaces 46 * Return: Mode of PLL 51 u32 clk_id = clk->clk_id; in zynqmp_pll_get_mode() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/ |
| D | silabs,si5341.txt | 6 https://www.silabs.com/documents/public/data-sheets/Si5341-40-D-DataSheet.pdf 8 https://www.silabs.com/documents/public/reference-manuals/Si5341-40-D-RM.pdf 10 https://www.silabs.com/documents/public/reference-manuals/Si5345-44-42-D-RM.pdf 20 The driver can be used in "as is" mode, reading the current settings from the 21 chip at boot, in case you have a (pre-)programmed device. If the PLL is not 27 The driver currently only supports XTAL input mode, and does not support any 34 - compatible: shall be one of the following: 35 "silabs,si5340" - Si5340 A/B/C/D 36 "silabs,si5341" - Si5341 A/B/C/D 37 "silabs,si5342" - Si5342 A/B/C/D [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
| D | common-spectral.c | 32 if (!spec_priv->rfs_chan_spec_scan) in ath_debug_send_fft_sample() 35 length = __be16_to_cpu(fft_sample_tlv->length) + in ath_debug_send_fft_sample() 37 relay_write(spec_priv->rfs_chan_spec_scan, fft_sample_tlv, length); in ath_debug_send_fft_sample() 54 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN - 1) in ath_cmn_max_idx_verify_ht20_fft() 55 return -1; in ath_cmn_max_idx_verify_ht20_fft() 57 mag_info = (struct ath_ht20_mag_info *) (sample_end - in ath_cmn_max_idx_verify_ht20_fft() 60 sample = sample_end - SPECTRAL_HT20_SAMPLE_LEN + 1; in ath_cmn_max_idx_verify_ht20_fft() 62 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 63 max_magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 65 max_exp = mag_info->max_exp & 0xf; in ath_cmn_max_idx_verify_ht20_fft() [all …]
|
| D | htc_drv_main.c | 2 * Copyright (c) 2010-2011 Atheros Communications Inc. 34 enum ath9k_power_mode mode) in ath9k_htc_setpower() argument 38 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_setpower() 39 ret = ath9k_hw_setpower(priv->ah, mode); in ath9k_htc_setpower() 40 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_setpower() 47 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 48 if (++priv->ps_usecount != 1) in ath9k_htc_ps_wakeup() 50 ath9k_hw_setpower(priv->ah, ATH9K_PM_AWAKE); in ath9k_htc_ps_wakeup() 53 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 60 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_restore() [all …]
|
| /kernel/linux/linux-5.10/arch/sh/include/mach-se/mach/ |
| D | mrshpc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 * PC-Card window open in mrshpc_setup_windows() 20 * flag == COMMON/ATTRIBUTE/IO in mrshpc_setup_windows() 22 /* common window open */ in mrshpc_setup_windows() 25 /* common mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 28 /* common mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 34 /* attribute mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 37 /* attribute mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 42 __raw_writew(0x0008, MRSHPC_CDCR); /* I/O card mode */ in mrshpc_setup_windows()
|
| /kernel/linux/linux-6.6/arch/sh/include/mach-se/mach/ |
| D | mrshpc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 * PC-Card window open in mrshpc_setup_windows() 20 * flag == COMMON/ATTRIBUTE/IO in mrshpc_setup_windows() 22 /* common window open */ in mrshpc_setup_windows() 25 /* common mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 28 /* common mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 34 /* attribute mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 37 /* attribute mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 42 __raw_writew(0x0008, MRSHPC_CDCR); /* I/O card mode */ in mrshpc_setup_windows()
|
| /kernel/linux/linux-6.6/drivers/dma/ |
| D | fsldma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights reserved. 18 * command. Please be aware that this setting may result in read pre-fetching 29 #include <linux/dma-mapping.h> 40 dev_dbg(chan->dev, "%s: " fmt, chan->name, ##arg) 42 dev_err(chan->dev, "%s: " fmt, chan->name, ##arg) 52 FSL_DMA_OUT(chan, &chan->regs->sr, val, 32); in set_sr() 57 return FSL_DMA_IN(chan, &chan->regs->sr, 32); in get_sr() 62 FSL_DMA_OUT(chan, &chan->regs->mr, val, 32); in set_mr() 67 return FSL_DMA_IN(chan, &chan->regs->mr, 32); in get_mr() [all …]
|
| /kernel/linux/linux-5.10/drivers/dma/ |
| D | fsldma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights reserved. 18 * command. Please be aware that this setting may result in read pre-fetching 29 #include <linux/dma-mapping.h> 39 dev_dbg(chan->dev, "%s: " fmt, chan->name, ##arg) 41 dev_err(chan->dev, "%s: " fmt, chan->name, ##arg) 51 FSL_DMA_OUT(chan, &chan->regs->sr, val, 32); in set_sr() 56 return FSL_DMA_IN(chan, &chan->regs->sr, 32); in get_sr() 61 FSL_DMA_OUT(chan, &chan->regs->mr, val, 32); in set_mr() 66 return FSL_DMA_IN(chan, &chan->regs->mr, 32); in get_mr() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
| D | common-spectral.c | 32 if (!spec_priv->rfs_chan_spec_scan) in ath_debug_send_fft_sample() 35 length = __be16_to_cpu(fft_sample_tlv->length) + in ath_debug_send_fft_sample() 37 relay_write(spec_priv->rfs_chan_spec_scan, fft_sample_tlv, length); in ath_debug_send_fft_sample() 54 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN - 1) in ath_cmn_max_idx_verify_ht20_fft() 55 return -1; in ath_cmn_max_idx_verify_ht20_fft() 57 mag_info = (struct ath_ht20_mag_info *) (sample_end - in ath_cmn_max_idx_verify_ht20_fft() 60 sample = sample_end - SPECTRAL_HT20_SAMPLE_LEN + 1; in ath_cmn_max_idx_verify_ht20_fft() 62 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 63 max_magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 65 max_exp = mag_info->max_exp & 0xf; in ath_cmn_max_idx_verify_ht20_fft() [all …]
|
| D | htc_drv_main.c | 2 * Copyright (c) 2010-2011 Atheros Communications Inc. 34 enum ath9k_power_mode mode) in ath9k_htc_setpower() argument 38 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_setpower() 39 ret = ath9k_hw_setpower(priv->ah, mode); in ath9k_htc_setpower() 40 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_setpower() 47 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 48 if (++priv->ps_usecount != 1) in ath9k_htc_ps_wakeup() 50 ath9k_hw_setpower(priv->ah, ATH9K_PM_AWAKE); in ath9k_htc_ps_wakeup() 53 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 60 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_restore() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| D | tps6105x.txt | 3 The TP61050/TPS61052 is a high-power "white LED driver". The 7 - compatible: "ti,tps61050" or "ti,tps61052" 8 - reg: Specifies the I2C slave address 10 Optional sub-node: 12 This subnode selects the chip's operational mode. 15 - regulator: presence of this sub-node puts the chip in regulator mode. 18 - led: presence of this sub-node puts the chip in led mode. 20 - function : see ../leds/common.txt 21 - color : see ../leds/common.txt 22 - label : see ../leds/common.txt [all …]
|
| D | max77693.txt | 1 Maxim MAX77693 multi-function device 4 - PMIC, 5 - CHARGER, 6 - LED, 7 - MUIC, 8 - HAPTIC 14 - compatible : Must be "maxim,max77693". 15 - reg : Specifies the i2c slave address of PMIC block. 16 - interrupts : This i2c device has an IRQ line connected to the main SoC. 19 - regulators : The regulators of max77693 have to be instantiated under subnode [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/ |
| D | tps6105x.txt | 3 The TP61050/TPS61052 is a high-power "white LED driver". The 7 - compatible: "ti,tps61050" or "ti,tps61052" 8 - reg: Specifies the I2C slave address 10 Optional sub-node: 12 This subnode selects the chip's operational mode. 15 - regulator: presence of this sub-node puts the chip in regulator mode. 18 - led: presence of this sub-node puts the chip in led mode. 20 - function : see ../leds/common.txt 21 - color : see ../leds/common.txt 22 - label : see ../leds/common.txt [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/clock/ |
| D | silabs,si5341.txt | 6 https://www.silabs.com/documents/public/data-sheets/Si5341-40-D-DataSheet.pdf 8 https://www.silabs.com/documents/public/reference-manuals/Si5341-40-D-RM.pdf 10 https://www.silabs.com/documents/public/reference-manuals/Si5345-44-42-D-RM.pdf 20 The driver can be used in "as is" mode, reading the current settings from the 21 chip at boot, in case you have a (pre-)programmed device. If the PLL is not 33 - compatible: shall be one of the following: 34 "silabs,si5340" - Si5340 A/B/C/D 35 "silabs,si5341" - Si5341 A/B/C/D 36 "silabs,si5342" - Si5342 A/B/C/D 37 "silabs,si5344" - Si5344 A/B/C/D [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ |
| D | hw.c | 23 #define REG_READ (common->ops->read) 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) 27 * ath_hw_set_bssid_mask - filter out bssids we listen 29 * @common: the ath_common struct for the device. 33 * to decide which packets to ACK. In station mode and AP mode with a single 34 * BSS every bit matters since we lock to only one BSS. In AP mode with 46 * When you do this you are essentially computing the common bits of all your 52 * BSSID-01 and BSSID-02. Lets assume BSSID-01 will not use the MAC address. 53 * There is another BSSID-03 but you are not part of it. For simplicity's sake, 58 * BSSID-01: 0100 | --> Belongs to us [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ |
| D | hw.c | 23 #define REG_READ (common->ops->read) 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) 27 * ath_hw_setbssidmask - filter out bssids we listen 29 * @common: the ath_common struct for the device. 33 * to decide which packets to ACK. In station mode and AP mode with a single 34 * BSS every bit matters since we lock to only one BSS. In AP mode with 46 * When you do this you are essentially computing the common bits of all your 52 * BSSID-01 and BSSID-02. Lets assume BSSID-01 will not use the MAC address. 53 * There is another BSSID-03 but you are not part of it. For simplicity's sake, 58 * BSSID-01: 0100 | --> Belongs to us [all …]
|
| /kernel/linux/linux-5.10/net/ncsi/ |
| D | ncsi-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 44 h->mc_id = 0; in ncsi_cmd_build_header() 45 h->revision = NCSI_PKT_REVISION; in ncsi_cmd_build_header() 46 h->reserved = 0; in ncsi_cmd_build_header() 47 h->id = nca->id; in ncsi_cmd_build_header() 48 h->type = nca->type; in ncsi_cmd_build_header() 49 h->channel = NCSI_TO_CHANNEL(nca->package, in ncsi_cmd_build_header() 50 nca->channel); in ncsi_cmd_build_header() 51 h->length = htons(nca->payload); in ncsi_cmd_build_header() [all …]
|
| /kernel/linux/linux-6.6/net/ncsi/ |
| D | ncsi-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 44 h->mc_id = 0; in ncsi_cmd_build_header() 45 h->revision = NCSI_PKT_REVISION; in ncsi_cmd_build_header() 46 h->reserved = 0; in ncsi_cmd_build_header() 47 h->id = nca->id; in ncsi_cmd_build_header() 48 h->type = nca->type; in ncsi_cmd_build_header() 49 h->channel = NCSI_TO_CHANNEL(nca->package, in ncsi_cmd_build_header() 50 nca->channel); in ncsi_cmd_build_header() 51 h->length = htons(nca->payload); in ncsi_cmd_build_header() [all …]
|
| D | ncsi-rsp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 20 #include "ncsi-netlink.h" 46 h = (struct ncsi_rsp_pkt_hdr *)skb_network_header(nr->rsp); in ncsi_validate_rsp_pkt() 48 if (h->common.revision != NCSI_PKT_REVISION) { in ncsi_validate_rsp_pkt() 49 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 51 return -EINVAL; in ncsi_validate_rsp_pkt() 53 if (ntohs(h->common.length) != payload) { in ncsi_validate_rsp_pkt() 54 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 56 return -EINVAL; in ncsi_validate_rsp_pkt() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qede/ |
| D | qede_main.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 17 #include <linux/dma-mapping.h> 125 return -EINVAL; in qede_set_vf_vlan() 129 return -EPROTONOSUPPORT; in qede_set_vf_vlan() 134 return edev->ops->iov->set_vlan(edev->cdev, vlan, vf); in qede_set_vf_vlan() 145 return -EINVAL; in qede_set_vf_mac() 148 return edev->ops->iov->set_mac(edev->cdev, mac, vfidx); in qede_set_vf_mac() 154 struct qed_dev_info *qed_info = &edev->dev_info.common; in qede_sriov_configure() [all …]
|