/linux/Documentation/devicetree/bindings/soc/tegra/ |
H A D | nvidia,tegra20-pmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/tegra/nvidia,tegra20-pmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Tegra Power Management Controller (PMC) 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 16 - nvidia,tegra20-pmc 17 - nvidia,tegra30-pmc 18 - nvidia,tegra114-pmc [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | snps,dwmac.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandre Torgue <alexandre.torgue@foss.st.com> 11 - Giuseppe Cavallaro <peppe.cavallaro@st.com> 12 - Jose Abreu <joabreu@synopsys.com> 23 - snps,dwmac 24 - snps,dwmac-3.40a 25 - snps,dwmac-3.50a 26 - snps,dwmac-3.610 [all …]
|
/linux/drivers/clk/bcm/ |
H A D | clk-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "clk-kona.h" 12 #include <linux/clk-provider.h> 17 * "Normal", and "Turbo".) A lower policy number has lower power 27 /* Produces a mask of set bits covering a range of a 32-bit value */ 30 return ((1 << width) - 1) << shift; in bitfield_mask() 52 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 62 u64 combined; in scaled_div_build() local 67 combined = (u64)div_value * BILLION + billionths; in scaled_div_build() 68 combined <<= div->u.s.frac_width; in scaled_div_build() [all …]
|
/linux/drivers/hid/ |
H A D | hid-ft260.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * hid-ft260.c - FTDI FT260 USB HID to I2C host bridge 11 #include "hid-ids.h" 32 #define FT260_I2C_DATA_REPORT_ID(len) (FT260_I2C_REPORT_MIN + (len - 1) / 4) 39 * reports. To achieve better performance with the multi-report read data 54 * second - USB HID to UART bridge function. 147 u8 chip_mode; /* DCNF0 and DCNF1 status, bits 0-1 */ 148 u8 clock_ctl; /* 0 - 12MHz, 1 - 24MHz, 2 - 48MHz */ 149 u8 suspend_status; /* 0 - not suspended, 1 - suspended */ 150 u8 pwren_status; /* 0 - FT260 is not ready, 1 - ready */ [all …]
|
/linux/drivers/net/ethernet/intel/ice/devlink/ |
H A D | devlink.c | 1 // SPDX-License-Identifier: GPL-2.0 39 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in ice_info_get_dsn() 41 snprintf(ctx->buf, sizeof(ctx->buf), "%8phD", dsn); in ice_info_get_dsn() 46 struct ice_hw *hw = &pf->hw; in ice_info_pba() 49 status = ice_read_pba_string(hw, (u8 *)ctx->buf, sizeof(ctx->buf)); in ice_info_pba() 58 struct ice_hw *hw = &pf->hw; in ice_info_fw_mgmt() 60 snprintf(ctx->buf, sizeof(ctx->buf), "%u.%u.%u", in ice_info_fw_mgmt() 61 hw->fw_maj_ver, hw->fw_min_ver, hw->fw_patch); in ice_info_fw_mgmt() 66 struct ice_hw *hw = &pf->hw; in ice_info_fw_api() 68 snprintf(ctx->buf, sizeof(ctx->buf), "%u.%u.%u", hw->api_maj_ver, in ice_info_fw_api() [all …]
|
/linux/drivers/nvme/host/ |
H A D | apple.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (c) 2011-2014, Intel Corporation. 9 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 14 #include <linux/blk-mq.h> 16 #include <linux/dma-mapping.h> 19 #include <linux/io-64-nonatomic-lo-hi.h> 69 * cannot be higher than 0x40 which effectively limits the combined 76 #define APPLE_NVME_AQ_MQ_TAG_DEPTH (APPLE_NVME_AQ_DEPTH - 1) 91 * An exception to this are Apple's vendor-specific commands (opcode 0xD8 on the 159 struct nvme_request req; member [all …]
|
/linux/drivers/block/ |
H A D | virtio_blk.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/blk-mq.h> 16 #include <linux/blk-mq-virtio.h> 59 * virtblk_remove() sets vblk->vdev to NULL. 61 * blk-mq, virtqueue processing, and sysfs attribute code paths are 62 * shut down before vblk->vdev is set to NULL and therefore do not need 77 /* Ida index - used to track minor number allocations. */ 134 struct virtio_blk *vblk = hctx->queue->queuedata; in get_virtio_blk_vq() 135 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; in get_virtio_blk_vq() 145 sg_init_one(&out_hdr, &vbr->out_hdr, sizeof(vbr->out_hdr)); in virtblk_add_req() [all …]
|
/linux/Documentation/networking/ |
H A D | packet_mmap.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 - Ulisses Alonso Camaró <uaca@i.hate.spam.alumni.uv.es> 23 - Johann Baudy 67 [setup] socket() -------> creation of the capture socket 68 setsockopt() ---> allocation of the circular buffer (ring) 70 mmap() ---------> mapping of the allocated buffer to the 73 [capture] poll() ---------> to wait for incoming packets 75 [shutdown] close() --------> destruction of the capture socket and 88 supported and a link level pseudo-header is provided 107 [setup] socket() -------> creation of the transmission socket [all …]
|
/linux/drivers/usb/host/ |
H A D | isp1362-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005 Lothar Wassmann <LW@KARO-electronics.de> 21 * 2. Implement platform-specific delay function possibly 22 * combined with configuring the memory controller; see 99 #define DRIVER_VERSION "2005-04-04" 105 static const char hcd_name[] = "isp1362-hcd"; 110 /*-------------------------------------------------------------------------*/ 113 * When called from the interrupthandler only isp1362_hcd->irqenb is modified, 114 * since the interrupt handler will write isp1362_hcd->irqenb to HCuPINT upon 121 if ((isp1362_hcd->irqenb | mask) == isp1362_hcd->irqenb) in isp1362_enable_int() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | debugfs.c | 1 // SPDX-License-Identifier: ISC 29 dev->ibf = !!val; in mt7915_implicit_txbf_set() 39 *val = dev->ibf; in mt7915_implicit_txbf_get() 52 struct mt7915_phy *phy = file->private_data; in mt7915_sys_recovery_set() 53 struct mt7915_dev *dev = phy->dev; in mt7915_sys_recovery_set() 54 bool band = phy->mt76->band_idx; in mt7915_sys_recovery_set() 60 return -EINVAL; in mt7915_sys_recovery_set() 63 return -EFAULT; in mt7915_sys_recovery_set() 65 if (count && buf[count - 1] == '\n') in mt7915_sys_recovery_set() 66 buf[count - 1] = '\0'; in mt7915_sys_recovery_set() [all …]
|
/linux/drivers/soc/tegra/ |
H A D | pmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved. 12 #define pr_fmt(fmt) "tegra-pmc: " fmt 14 #include <linux/arm-smccc.h> 16 #include <linux/clk-provider.h> 18 #include <linux/clk/clk-conf.h> 37 #include <linux/pinctrl/pinconf-generic.h> 56 #include <dt-bindings/interrupt-controller/arm-gic.h> 57 #include <dt-bindings/pinctrl/pinctrl-tegra-io-pad.h> 58 #include <dt-bindings/gpio/tegra186-gpio.h> [all …]
|
/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_ethtool.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Copyright (C) 2015-2024 Google LLC 18 strscpy(info->driver, gve_driver_name, sizeof(info->driver)); in gve_get_drvinfo() 19 strscpy(info->version, gve_version_str, sizeof(info->version)); in gve_get_drvinfo() 20 strscpy(info->bus_info, pci_name(priv->pdev), sizeof(info->bus_info)); in gve_get_drvinfo() 27 priv->msg_enable = value; in gve_set_msglevel() 34 return priv->msg_enable; in gve_get_msglevel() 83 "report-stats", 105 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_get_strings() 139 (priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS) + in gve_get_sset_count() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | mvm.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 24 #include "iwl-op-mode.h" 25 #include "iwl-trans.h" 26 #include "fw/notif-wait.h" 27 #include "iwl-nvm-utils.h" 29 #include "iwl-config.h" 31 #include "fw-api.h" [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 325 { OUTER_DST_MAC, 48, KEY_OPT_MAC, -1, -1 }, 326 { OUTER_SRC_MAC, 48, KEY_OPT_MAC, -1, -1 }, 327 { OUTER_VLAN_TAG_FST, 16, KEY_OPT_LE16, -1, -1 }, 328 { OUTER_VLAN_TAG_SEC, 16, KEY_OPT_LE16, -1, -1 }, 329 { OUTER_ETH_TYPE, 16, KEY_OPT_LE16, -1, -1 }, 330 { OUTER_L2_RSV, 16, KEY_OPT_LE16, -1, -1 }, 331 { OUTER_IP_TOS, 8, KEY_OPT_U8, -1, -1 }, 332 { OUTER_IP_PROTO, 8, KEY_OPT_U8, -1, -1 }, [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | mac.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 25 #include "wmi-tlv.h" 26 #include "wmi-ops.h" 100 #define ath10k_a_rates_size (ARRAY_SIZE(ath10k_rates) - \ 135 for (i = 0; i < sband->n_bitrates; i++) { in ath10k_mac_hw_rate_to_idx() 136 rate = &sband->bitrates[i]; in ath10k_mac_hw_rate_to_idx() [all …]
|
/linux/drivers/net/wireless/virtual/ |
H A D | mac80211_hwsim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 6 * Copyright (c) 2016 - 2017 Intel Deutschland GmbH 7 * Copyright (C) 2018 - 2024 Intel Corporation 12 * - Add TSF sync and fix IBSS beacon transmission by adding 14 * - RX filtering based on filter configuration (data->rx_filter) 66 MODULE_PARM_DESC(support_p2p_device, "Support P2P-Device interface type"); 77 * enum hwsim_regtest - the type of regulatory tests we offer 92 * this by using a custom beacon-capable regulatory domain for the first 107 * domain settings, combined with secondary driver regulatory domain [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | sdma.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright(c) 2015 - 2018 Intel Corporation. 22 /* must be a power of 2 >= 64 <= 32768 */ 212 * sdma_state_name() - return state string from enum 222 kref_get(&ss->kref); in sdma_get() 230 complete(&ss->comp); in sdma_complete() 235 kref_put(&ss->kref, sdma_complete); in sdma_put() 241 wait_for_completion(&ss->comp); in sdma_finalput() 249 write_kctxt_csr(sde->dd, sde->this_idx, offset0, value); in write_sde_csr() 256 return read_kctxt_csr(sde->dd, sde->this_idx, offset0); in read_sde_csr() [all …]
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | commands.h | 8 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 29 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 33 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 92 /* Multi-Station support */ 112 /* Power Management */ 138 /* RF-KILL commands and notifications */ 184 * when sending the response to each driver-originated command, so 196 * 0:7 tfd idx - position within TX queue 199 * 14 huge - driver sets this to indicate command is in the 201 * 15 unsolicited RX or uCode-originated notification [all …]
|
/linux/drivers/clk/ |
H A D | clk-stm32f4.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Inspired by clk-asm9260.c . 8 #include <linux/clk-provider.h> 25 #include <dt-bindings/clock/stm32fx-clock.h> 42 #define NONE -1 369 * have gate bits associated with them. Its combined hweight is 71. 403 * The APBx dividers are power-of-two dividers and, if *not* running in 1:1 420 if (readl(base + STM32F4_RCC_CFGR) & BIT(am->bit_idx)) in clk_apb_mul_recalc_rate() 432 if (readl(base + STM32F4_RCC_CFGR) & BIT(am->bit_idx)) in clk_apb_mul_round_rate() 472 return ERR_PTR(-ENOMEM); in clk_register_apb_mul() [all …]
|
/linux/include/net/ |
H A D | mac80211.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * mac80211 <-> driver interface 5 * Copyright 2002-2005, Devicescape Software, Inc. 6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH 9 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH 10 * Copyright (C) 2018 - 2024 Intel Corporation 31 * only partial functionality in hard- or firmware. This document 32 * defines the interface between mac80211 and low-level hardware [all …]
|
H A D | cfg80211.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH 9 * Copyright 2015-2017 Intel Deutschland GmbH 10 * Copyright (C) 2018-2024 Intel Corporation 72 * enum ieee80211_channel_flags - channel flags 79 * @IEEE80211_CHAN_PSD: Power spectral density (in dBm) is set for this 129 * with very low power (VLP), even if otherwise set to NO_IR. 167 * struct ieee80211_channel - channel definition 174 * @hw_value: hardware-specific value for the channel [all …]
|
/linux/include/uapi/linux/ |
H A D | nl80211.h | 6 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 13 * Copyright 2015-2017 Intel Deutschland GmbH 14 * Copyright (C) 2018-2024 Intel Corporation 32 * be careful not to break things - i.e. don't move anything around or so 74 * - a setup station entry is added, not yet authorized, without any rate 76 * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 79 * - %NL80211_TDLS_ENABLE_LINK is then used 80 * - after this, the only valid operation is to remove it by tearing down 95 * Frame registration is done on a per-interface basis and registrations 137 * software, like the AP-VLAN type in mac80211 for example, there's [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | mac.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 100 /* Operating Classes 131-135 */ 241 #define ath12k_a_rates_size (ARRAY_SIZE(ath12k_legacy_rates) - 4) 270 return "11na-ht20"; in ath12k_mac_phymode_str() 272 return "11ng-ht20"; in ath12k_mac_phymode_str() 274 return "11na-ht40"; in ath12k_mac_phymode_str() 276 return "11ng-ht40"; in ath12k_mac_phymode_str() 278 return "11ac-vht20"; in ath12k_mac_phymode_str() [all …]
|
/linux/kernel/locking/ |
H A D | lockdep.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * - lock inversion scenarios 16 * - circular lock dependencies 17 * - hardirq/softirq safe/unsafe locking bugs 122 if (current->lockdep_recursion) in lockdep_enabled() 133 * to use a raw spinlock - we really dont want the spinlock 212 #define KEYHASH_BITS (MAX_LOCKDEP_KEYS_BITS - 1) 223 unsigned int class_idx = hlock->class_idx; in hlock_class() 225 /* Don't re-read hlock->class_idx, can't use READ_ONCE() on bitfield */ in hlock_class() 237 * At this point, if the passed hlock->class_idx is still garbage, in hlock_class() [all …]
|
/linux/drivers/message/fusion/ |
H A D | mptbase.c | 8 * Copyright (c) 1999-2008 LSI Corporation 9 * (mailto:DL-MPTFusionLinux@lsi.com) 12 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 26 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 45 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 47 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 61 #include <linux/dma-mapping.h> 68 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 106 " debug level - refer to mptdebug.h - (default=0)"); 112 "Enable detection of Firmware fault and halt Firmware on fault - (default=0)"); [all …]
|