/freebsd/sys/contrib/device-tree/Bindings/arm/tegra/ |
H A D | nvidia,tegra20-pmc.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/arm/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 …]
|
/freebsd/sys/contrib/device-tree/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 …]
|
/freebsd/sys/dev/axgbe/ |
H A D | xgbe-sysctl.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 37 #include "xgbe-common.h" 173 #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) 244 return(-EINVAL); in exit_bad_op() 248 get_ubuf(struct sysctl_req *req, char *ubuf) in get_ubuf() argument 252 printf("%s: len:0x%li idx:0x%li\n", __func__, req->newlen, in get_ubuf() 253 req->newidx); in get_ubuf() 254 if (req->newlen >= SYSCTL_BUF_LEN) in get_ubuf() 255 return (-EINVAL); in get_ubuf() [all …]
|
/freebsd/sys/arm/nvidia/tegra124/ |
H A D | tegra124_pmc.c | 1 /*- 135 #define WR4(_sc, _r, _v) bus_write_4((_sc)->mem_res, (_r), (_v)) 136 #define RD4(_sc, _r) bus_read_4((_sc)->mem_res, (_r)) 138 #define PMC_LOCK(_sc) mtx_lock(&(_sc)->mtx) 139 #define PMC_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) 140 #define PMC_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \ 141 device_get_nameunit(_sc->dev), "tegra124_pmc", MTX_DEF) 142 #define PMC_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx); 143 #define PMC_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED); 144 #define PMC_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED); [all …]
|
/freebsd/sys/contrib/device-tree/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 …]
|
/freebsd/sys/arm64/nvidia/tegra210/ |
H A D | tegra210_pmc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 142 #define PMC_LOCK(_sc) mtx_lock(&(_sc)->mtx) 143 #define PMC_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) 144 #define PMC_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \ 145 device_get_nameunit(_sc->dev), "tegra210_pmc", MTX_DEF) 146 #define PMC_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx); 147 #define PMC_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED); 148 #define PMC_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED); 173 {"nvidia,tegra210-pmc", 1}, [all …]
|
/freebsd/sys/kern/ |
H A D | kern_cpu.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2007 Nate Lawson (SDG) 168 sc->dev = dev; in cpufreq_attach() 169 sysctl_ctx_init(&sc->sysctl_ctx); in cpufreq_attach() 170 TAILQ_INIT(&sc->all_levels); in cpufreq_attach() 171 CF_MTX_INIT(&sc->lock); in cpufreq_attach() 172 sc->curr_level.total_set.freq = CPUFREQ_VAL_UNKNOWN; in cpufreq_attach() 173 SLIST_INIT(&sc->saved_freq); in cpufreq_attach() 175 sc->max_mhz = cpu_get_nominal_mhz(dev); in cpufreq_attach() [all …]
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_x550.c | 3 Copyright (c) 2001-2020, Intel Corporation 47 * ixgbe_init_ops_X550 - Inits func ptrs and MAC type 55 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550() 56 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_X550() 62 mac->ops.dmac_config = ixgbe_dmac_config_X550; in ixgbe_init_ops_X550() 63 mac->ops.dmac_config_tcs = ixgbe_dmac_config_tcs_X550; in ixgbe_init_ops_X550() 64 mac->ops.dmac_update_tcs = ixgbe_dmac_update_tcs_X550; in ixgbe_init_ops_X550() 65 mac->ops.setup_eee = NULL; in ixgbe_init_ops_X550() 66 mac->ops.set_source_address_pruning = in ixgbe_init_ops_X550() 68 mac->ops.set_ethertype_anti_spoofing = in ixgbe_init_ops_X550() [all …]
|
H A D | if_ix.c | 3 Copyright (c) 2001-2017, Intel Corporation 48 static const char ixgbe_driver_version[] = "4.0.1-k"; 93 "Intel(R) X520-T 82599 LOM"), 97 "Intel(R) X520 82599 (Combined Backplane)"), 105 "Intel(R) X520-1 82599EN (SFP+)"), 107 "Intel(R) X520-4 82599 (Quad SFP+)"), 109 "Intel(R) X520-Q1 82599 (QSFP+)"), 111 "Intel(R) X540-AT2"), 112 PVID(IXGBE_INTEL_VENDOR_ID, IXGBE_DEV_ID_X540T1, "Intel(R) X540-T1"), 113 PVID(IXGBE_INTEL_VENDOR_ID, IXGBE_DEV_ID_X550T, "Intel(R) X550-T2"), [all …]
|
/freebsd/sys/powerpc/powermac/ |
H A D | smu.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 242 /* Power event types */ 276 sc->sc_cmd_phys = segs[0].ds_addr; in smu_phys_callback() 288 mtx_init(&sc->sc_mtx, "smu", NULL, MTX_DEF); in smu_attach() 289 sc->sc_cur_cmd = NULL; in smu_attach() 290 sc->sc_doorbellirqid = -1; in smu_attach() 292 sc->sc_u3 = 0; in smu_attach() 293 if (OF_finddevice("/u3") != -1) in smu_attach() 294 sc->sc_u3 = 1; in smu_attach() [all …]
|
/freebsd/sys/net80211/ |
H A D | ieee80211_ioctl.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 78 /* MIB-related state */ 88 /* Hardware A-MSDU decode */ 89 uint32_t ns_rx_amsdu_more; /* RX decap A-MSDU, more coming from A-MSDU */ 90 uint32_t ns_rx_amsdu_more_end; /* RX decap A-MSDU (or any other frame), no more coming */ 161 uint32_t is_crypto_tkipenmic; /* tkip en-MIC done in s/w */ 162 uint32_t is_crypto_tkipdemic; /* tkip de-MIC done in s/w */ 174 uint32_t is_crypto_enmicfail; /* en-MIC failed */ [all …]
|
/freebsd/sys/contrib/dev/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 …]
|
/freebsd/sys/cam/ |
H A D | cam_iosched.c | 1 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 60 * Default I/O scheduler for FreeBSD. This implementation is just a thin-vineer 85 * alpha_bits = -log_2(alpha) 86 * alpha = 2^-alpha_bits 103 * published read-only since at present they are compile time constants. 127 * Number of total buckets. Starting at BUCKET_BASE, each one is a power of 2. 130 #define LAT_BUCKETS 20 /* < 20us < 40us ... < 2^(n-1)*20us >= 2^(n-1)*20us */ 254 int l_value1; /* per-limiter scratch value 1. */ 255 int l_value2; /* per-limiter scratch value 2. */ [all …]
|
/freebsd/sys/dev/usb/net/ |
H A D | if_umb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 18 * Copyright (c) 2022 ADISTA SAS (re-write for FreeBSD) 20 * Re-write for FreeBSD by Pierre Pronchery <pierre@defora.net> 25 * - Redistributions of source code must retain the above copyright notice, 27 * - Redistributions in binary form must reproduce the above copyright notice, 30 * - Neither the name of the copyright holder nor the names of its contributors 54 * http://www.usb.org/developers/docs/devclass_docs/MBIM-Compliance-1.0.pdf 128 #define DEVNAM(sc) device_get_nameunit((sc)->sc_dev) 370 if (uaa->usb_mode != USB_MODE_HOST) in umb_probe() [all …]
|
/freebsd/sys/contrib/dev/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 26 #include "iwl-o 1153 struct cfg80211_pmsr_request *req; global() member [all...] |
/freebsd/sys/geom/journal/ |
H A D | g_journal.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 64 * On-disk journal format: 66 * JH - Journal header 67 * RH - Record header 69 * %%%%%% ****** +------+ +------+ ****** +------+ %%%%%% 71 * %%%%%% ****** +------+ +------+ ****** +------+ %%%%%% 123 error = sysctl_handle_int(oidp, &entries, 0, req); in g_journal_record_entries_sysctl() 124 if (error != 0 || req->newptr == NULL) in g_journal_record_entries_sysctl() [all …]
|
/freebsd/sbin/ifconfig/ |
H A D | ifieee80211.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 30 /*- 110 #define IEEE80211_NODE_PWR_MGT 0x000010 /* power save mode enabled */ 118 #define IEEE80211_NODE_MIMO_PS 0x001000 /* MIMO power save enabled */ 131 /* XXX should also figure out where to put these for k/u-space sharing. */ 257 errx(-1, "missing or corrupted regdomain database"); in getregdata() 272 const struct ieee80211_channel *fc = &chaninfo->ic_chans[i]; in canpromote() 275 if ((fc->ic_flags & from) != from) in canpromote() 278 if (i+1 < chaninfo->ic_nchans && in canpromote() [all …]
|
/freebsd/sys/dev/iwi/ |
H A D | if_iwi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2005-2006 Sam Leffler, Errno Consulting 33 /*- 266 for (ident = iwi_ident_table; ident->name != NULL; ident++) { in iwi_probe() 267 if (pci_get_vendor(dev) == ident->vendor && in iwi_probe() 268 pci_get_device(dev) == ident->device) { in iwi_probe() 269 device_set_desc(dev, ident->name); in iwi_probe() 280 struct ieee80211com *ic = &sc->sc_ic; in iwi_attach() 284 sc->sc_dev = dev; in iwi_attach() [all …]
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright 2009-2013 Konstantin Belousov <kib@FreeBSD.ORG>. 8 * Copyright 2014-2017 The FreeBSD Foundation 210 static bool ld_dynamic_weak = true; /* True if non-weak definition overrides 267 /* Only here to fix -Wmissing-prototypes warnings */ 319 * the currently-loaded objects. Keep this as a macro since it calls 323 ((dlp)->objs = alloca(obj_count * sizeof(dlp)->objs[0]), \ 324 assert((dlp)->objs != NULL), (dlp)->num_alloc = obj_count, \ 325 (dlp)->num_used = 0) [all …]
|
/freebsd/sys/dev/otus/ |
H A D | if_otus.c | 3 /*- 98 device_printf(sc->sc_dev, __VA_ARGS__); \ 275 if (uaa->usb_mode != USB_MODE_HOST || in otus_match() 276 uaa->info.bIfaceIndex != 0 || in otus_match() 277 uaa->info.bConfigIndex != 0) in otus_match() 292 sc->sc_udev = uaa->device; in otus_attach() 293 sc->sc_dev = self; in otus_attach() 295 mtx_init(&sc->sc_mtx, device_get_nameunit(self), MTX_NETWORK_LOCK, in otus_attach() 298 TIMEOUT_TASK_INIT(taskqueue_thread, &sc->scan_to, 0, otus_next_scan, sc); in otus_attach() 299 TIMEOUT_TASK_INIT(taskqueue_thread, &sc->calib_to, 0, otus_calibrate_to, sc); in otus_attach() [all …]
|
/freebsd/sys/dev/igc/ |
H A D | if_igc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2001-2024, Intel Corporation 6 * Copyright (c) 2021-2024 Rubicon Communications, LLC (Netgate) 51 /* Intel(R) PRO/1000 Network Connection - igc */ 53 "Intel(R) Ethernet Controller I225-LM"), 55 "Intel(R) Ethernet Controller I225-V"), 57 "Intel(R) Ethernet Controller I225-K"), 59 "Intel(R) Ethernet Controller I225-IT"), 61 "Intel(R) Ethernet Controller I220-V"), [all …]
|
/freebsd/sys/contrib/dev/athk/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. 26 #include "wmi-tlv.h" 27 #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() 138 if (ath10k_mac_bitrate_is_cck(rate->bitrate) != cck) in ath10k_mac_hw_rate_to_idx() [all …]
|
/freebsd/sys/dev/e1000/ |
H A D | if_em.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2001-2024, Intel Corporation 40 static const char em_driver_version[] = "7.7.8-fbsd"; 41 static const char igb_driver_version[] = "2.5.28-fbsd"; 55 /* Intel(R) - lem-class legacy devices */ 136 /* Intel(R) - em-class devices */ 185 PVID(0x8086, E1000_DEV_ID_ICH8_82567V_3, "Intel(R) 82567V-3 ICH8"), 189 "Intel(R) 82566DM-2 ICH9 AMT"), 190 PVID(0x8086, E1000_DEV_ID_ICH9_IGP_C, "Intel(R) 82566DC-2 ICH9"), [all …]
|
/freebsd/sys/dev/arcmsr/ |
H A D | arcmsr.h | 11 ** SPDX-License-Identifier: BSD-3-Clause 13 ** Copyright (C) 2002 - 2012, Areca Technology Corporation All rights reserved. 43 #define ARCMSR_VIRTUAL_DEVICE_ID (ARCMSR_MAX_TARGETID - 1) 71 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) 197 #define CHIP_REG_READ32(s, b, r) bus_space_read_4(acb->btag[b], acb->bhandle[b], offsetof(struct s,… 198 #define CHIP_REG_WRITE32(s, b, r, d) bus_space_write_4(acb->btag[b], acb->bhandle[b], offsetof(stru… 199 #define READ_CHIP_REG32(b, r) bus_space_read_4(acb->btag[b], acb->bhandle[b], r) 200 #define WRITE_CHIP_REG32(b, r, d) bus_space_write_4(acb->btag[b], acb->bhandle[b], r, d) 374 ** Set if Outbound Doorbell register bits 30:1 have a non-zero 486 /* ARC-1884 doorbell sync */ [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_main.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 270 * Each tunable is set to a default value here if it's known at compile-time. 271 * Otherwise it is set to -n as an indication to tweak_tunables() that it should 288 int t4_ntxq = -NTXQ; 294 int t4_nrxq = -NRXQ; 300 static int t4_ntxq_vi = -NTXQ_VI; 305 static int t4_nrxq_vi = -NRXQ_VI; 311 0, "Reserve TX queue 0 of each VI for non-flowid packets"); 315 static int t4_nofldtxq = -NOFLDTXQ; [all …]
|