| /linux/Documentation/devicetree/bindings/interrupt-controller/ |
| H A D | arm,gic-v5.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/arm,gic-v5.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lorenzo Pieralisi <lpieralisi@kernel.org> 11 - Marc Zyngier <maz@kernel.org> 21 - one or more IRS (Interrupt Routing Service) 22 - zero or more ITS (Interrupt Translation Service) 25 - PE-Private Peripheral Interrupts (PPI) 26 - Shared Peripheral Interrupts (SPI) [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_ptp.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. 31 * qede_ptp_adjfine() - Adjust the frequency of the PTP cycle counter. 36 * Scaled parts per million is ppm with a 16-bit binary fractional field. 44 struct qede_dev *edev = ptp->edev; in qede_ptp_adjfine() 48 if (edev->state == QEDE_STATE_OPEN) { in qede_ptp_adjfine() 49 spin_lock_bh(&ptp->lock); in qede_ptp_adjfine() 50 rc = ptp->ops->adjfreq(edev->cdev, ppb); in qede_ptp_adjfine() 51 spin_unlock_bh(&ptp->lock); in qede_ptp_adjfine() [all …]
|
| /linux/Documentation/devicetree/bindings/mips/cavium/ |
| H A D | bootbus.txt | 7 - compatible: "cavium,octeon-3860-bootbus" 11 - reg: The base address of the Boot Bus' register bank. 13 - #address-cells: Must be <2>. The first cell is the chip select 16 - #size-cells: Must be <1>. 18 - ranges: There must be one one triplet of (child-bus-address, 19 parent-bus-address, length) for each active chip select. If the 27 - compatible: "cavium,octeon-3860-bootbus-config" 29 - cavium,cs-index: A single cell indicating the chip select that 32 - cavium,t-adr: A cell specifying the ADR timing (in nS). 34 - cavium,t-ce: A cell specifying the CE timing (in nS). [all …]
|
| /linux/security/tomoyo/ |
| H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005-2011 NTT DATA CORPORATION 25 /* CONFIG::file group */ 49 /* CONFIG::network group */ 65 /* CONFIG::misc group */ 67 /* CONFIG group */ 173 /* Permit policy management by non-root user? */ 179 * tomoyo_addprintf - strncat()-like-snprintf(). 181 * @buffer: Buffer to write to. Must be '\0'-terminated. 194 vsnprintf(buffer + pos, len - pos - 1, fmt, args); in tomoyo_addprintf() [all …]
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | igb_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 /* The 82580 timesync updates the system timer every 8ns by 8ns, 38 * +--------------+ +---+---+------+ 40 * +--------------+ +---+---+------+ 43 * +----------+---+ +--------------+ 45 * +----------+---+ +--------------+ 50 * 2^45 * 10^-9 / 3600 = 9.77 hours. 53 * 2^40 * 10^-9 / 60 = 18.3 minutes. 67 #define INCVALUE_82576_MASK GENMASK(E1000_TIMINCA_16NS_SHIFT - 1, 0) 79 struct e1000_hw *hw = &igb->hw; in igb_ptp_read_82576() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | test_ingress_egress_chaining.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # Kselftest framework requirement - SKIP code is 4. 10 if [ "$(id -u)" -ne 0 ];then 20 ns="ns$((RANDOM%899+100))" 34 killall -q -9 udpgso_bench_rx 37 ip netns del $ns &> /dev/null 41 function config() { function 47 ip netns add $ns 48 ip link set dev $peer2 netns $ns 49 ip netns exec $ns ip addr add $ip_peer2/24 dev $peer2 [all …]
|
| H A D | fcnal-test.sh | 2 # SPDX-License-Identifier: GPL-2.0 9 # 2. client, server, no-server 13 # 6. VRF and non-VRF permutations 16 # ns-A | ns-B 18 # [ lo ] [ eth1 ]---|---[ eth1 ] [ lo ] 21 # [ red ]---[ eth1 ]---|---[ eth1 ] [ lo ] 23 # ns-A: 30 # ns-B: 35 # ns-A to ns-C connection - only for VRF and same config 36 # as ns-A to ns-B [all …]
|
| H A D | vrf_route_leaking.sh | 2 # SPDX-License-Identifier: GPL-2.0 13 # +----+ .253 +----+ .253 +----+ 14 # | h1 |-------------------| r1 |-------------------| h2 | 15 # +----+ .1 +----+ .2 +----+ 42 # .253 +----+ .253 43 # +----| r1 |----+ 44 # | +----+ | 45 # +----+ | | +----+ 46 # | h1 |--------------+ +--------------| h2 | 47 # +----+ .1 | | .2 +----+ [all …]
|
| H A D | fib_nexthop_multiprefix.sh | 2 # SPDX-License-Identifier: GPL-2.0 9 # h0 - r1 - h2 30 if [ ${rc} -eq ${expected} ]; then 31 printf "TEST: %-60s [ OK ]\n" "${msg}" 36 printf "TEST: %-60s [FAIL]\n" "${msg}" 60 if [ "$VERBOSE" = "1" -a -n "$out" ]; then 70 # config 74 local ns=${1} 76 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1 77 case ${ns} in [all …]
|
| /linux/arch/x86/platform/scx200/ |
| H A D | scx200_32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com> 21 MODULE_AUTHOR("Christer Weinigel <wingel@nano-system.com>"); 31 { PCI_VDEVICE(NS, PCI_DEVICE_ID_NS_SCx200_BRIDGE) }, 32 { PCI_VDEVICE(NS, PCI_DEVICE_ID_NS_SC1100_BRIDGE) }, 33 { PCI_VDEVICE(NS, PCI_DEVICE_ID_NS_SCx200_XBUS) }, 34 { PCI_VDEVICE(NS, PCI_DEVICE_ID_NS_SC1100_XBUS) }, 62 if (pdev->device == PCI_DEVICE_ID_NS_SCx200_BRIDGE || in scx200_probe() 63 pdev->device == PCI_DEVICE_ID_NS_SC1100_BRIDGE) { in scx200_probe() 70 return -EBUSY; in scx200_probe() [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 18 * period of 6.4ns. In order to convert the scale counter into 20 * used. The SYSTIME registers need to be converted to ns values by use 30 * Period * [ 2 ^ ( MaxWidth - PeriodWidth ) ] 32 * For the X540, MaxWidth is 31 bits, and the base period is 6.4 ns 33 * For the 82599, MaxWidth is 24 bits, and the base period is 6.4 ns 37 * At 1Gb link, the period is multiplied by 10. (64ns) 38 * At 100Mb link, the period is multiplied by 100. (640ns) 47 * +--------------+ +--------------+ [all …]
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | fec_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 92 * fec_ptp_read - read raw cycle counter (to be used by time counter) 96 * cyclecounter structure used to construct a ns counter from the 105 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read() 107 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read() 109 if (fep->quirks & FEC_QUIRK_BUG_CAPTURE) in fec_ptp_read() 112 return readl(fep->hwp + FEC_ATIME); in fec_ptp_read() 127 u64 ns; in fec_ptp_enable_pps() local 129 spin_lock_irqsave(&fep->tmreg_lock, flags); in fec_ptp_enable_pps() 131 if (fep->perout_enable) { in fec_ptp_enable_pps() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_xdp_veth.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Create 3 namespaces with 3 veth peers, and forward packets in-between using 7 * ------ 48 static struct veth_configuration config[VETH_PAIRS_COUNT] = { global() variable [all...] |
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | omap2420-n8x0-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 stdout-path = &uart3; 16 compatible = "i2c-cbus-gpio"; 21 #address-cells = <1>; 22 #size-cells = <0>; 25 interrupt-parent = <&gpio4>; 34 clock-frequency = <400000>; 44 clock-frequency = <400000>; 50 /* gpio-irq for dma: 26 */ 53 #address-cells = <1>; [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 5 #include <linux/posix-clock.h> 16 * At 40Gb, 25Gb, or no link, the period is 1.6ns. 17 * At 10Gb or 5Gb link, the period is multiplied by 2. (3.2ns) 18 * At 1Gb link, the period is multiplied by 20. (32ns) 39 CANT_DO_PINS = -1, 52 end = -2, 66 led_end = -2, 145 * i40e_ptp_extts0_work - workqueue task function [all …]
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2015 - 2025 Beijing WangXun Technology Co., Ltd. */ 3 /* Copyright (c) 1999 - 2025 Intel Corporation. */ 37 u64 ns; in wx_ptp_timecounter_cyc2time() local 40 seq = read_seqbegin(&wx->hw_tc_lock); in wx_ptp_timecounter_cyc2time() 41 ns = timecounter_cyc2time(&wx->hw_tc, timestamp); in wx_ptp_timecounter_cyc2time() 42 } while (read_seqretry(&wx->hw_tc_lock, seq)); in wx_ptp_timecounter_cyc2time() 44 return ns; in wx_ptp_timecounter_cyc2time() 71 incval = READ_ONCE(wx->base_incval); in wx_ptp_adjfine() 74 mask = (wx->mac.type == wx_mac_em) ? 0x7FFFFFF : 0xFFFFFF; in wx_ptp_adjfine() [all …]
|
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 27 struct igc_hw *hw = &adapter->hw; in igc_ptp_read() 34 ts->tv_sec = sec; in igc_ptp_read() 35 ts->tv_nsec = nsec; in igc_ptp_read() 41 struct igc_hw *hw = &adapter->hw; in igc_ptp_write_i225() 43 wr32(IGC_SYSTIML, ts->tv_nsec); in igc_ptp_write_i225() 44 wr32(IGC_SYSTIMH, ts->tv_sec); in igc_ptp_write_i225() 51 struct igc_hw *hw = &igc->hw; in igc_ptp_adjfine_i225() 58 scaled_ppm = -scaled_ppm; in igc_ptp_adjfine_i225() 80 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_adjtime_i225() [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | smsc47b397.rst | 6 * SMSC LPC47B397-NC 8 * SMSC SCH5307-NS 14 Addresses scanned: none, address read from Super I/O config space 20 - Mark M. Hoffman <mhoffman@lightlink.com> 21 - Utilitek Systems, Inc. 25 The following specification describes the SMSC LPC47B397-NC [1]_ sensor chip 27 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected 30 .. [1] And SMSC SCH5307-NS and SCH5317, which have different device IDs but are 33 ------------------------------------------------------------------------- 36 ------------------------------------------------------------------------- [all …]
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * iavf_ptp_disable_rx_tstamp - Disable timestamping in Rx rings 18 for (u32 i = 0; i < adapter->num_active_queues; i++) in iavf_ptp_disable_rx_tstamp() 19 adapter->rx_rings[i].flags &= ~IAVF_TXRX_FLAGS_HW_TSTAMP; in iavf_ptp_disable_rx_tstamp() 23 * iavf_ptp_enable_rx_tstamp - Enable timestamping in Rx rings 30 for (u32 i = 0; i < adapter->num_active_queues; i++) in iavf_ptp_enable_rx_tstamp() 31 adapter->rx_rings[i].flags |= IAVF_TXRX_FLAGS_HW_TSTAMP; in iavf_ptp_enable_rx_tstamp() 35 * iavf_ptp_set_timestamp_mode - Set device timestamping mode 37 * @config: pointer to kernel_hwtstamp_config 47 struct kernel_hwtstamp_config *config) in iavf_ptp_set_timestamp_mode() argument [all …]
|
| /linux/drivers/gpu/drm/sprd/ |
| H A D | sprd_dsi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 68 u8 refin; /* Pre-divider control signal */ 75 u32 freq; /* panel config, unit: KHz */ 98 /* maximum time (ns) for data lanes from HS to LP */ 100 /* maximum time (ns) for data lanes from LP to HS */ 102 /* maximum time (ns) for clk lanes from HS to LP */ 104 /* maximum time (ns) for clk lanes from LP to HS */ 106 /* maximum time (ns) for BTA operation - REQUIRED */ 108 /* enable receiving frame ack packets - for video mode */ 110 /* enable receiving tear effect ack packets - for cmd mode */
|
| /linux/drivers/net/netdevsim/ |
| H A D | psp.c | 1 // SPDX-License-Identifier: GPL-2.0 18 nsim_do_psp(struct sk_buff *skb, struct netdevsim *ns, in nsim_do_psp() argument 40 if (*ptr != ns) { in nsim_do_psp() 45 net = sock_net(skb->sk); in nsim_do_psp() 46 if (!psp_dev_encapsulate(net, skb, pas->tx.spi, pas->version, 0)) { in nsim_do_psp() 52 peer_psd = rcu_dereference(peer_ns->psp.dev); in nsim_do_psp() 53 if (peer_psd && peer_psd->config.versions & (1 << pas->version)) { in nsim_do_psp() 62 generation = pas->tx.key[0]; in nsim_do_psp() 65 skb->mac_len = ETH_HLEN; in nsim_do_psp() 66 if (psp_dev_rcv(skb, peer_psd->id, generation, strip_icv)) { in nsim_do_psp() [all …]
|
| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icss_iep.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ 51 * struct icss_iep_plat_data - Plat data to handle SoC variants 52 * @config: Regmap configuration data 57 const struct regmap_config *config; member 69 int clk_tick_time; /* one refclk tick time in ns */ 91 void (*settime)(void *clockops_data, u64 ns);
|
| /linux/tools/testing/selftests/vsock/ |
| H A D | vmtest.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # * virtme-ng 8 # * busybox-static (used by virtme-ng) 9 # * qemu (used by virtme-ng) 14 readonly SCRIPT_DIR="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" 30 declare -A PIDFILES 32 # virtme-ng offers a netdev for ssh when using "--ssh", but we also need a 33 # control port forwarded for vsock_test. Because virtme-ng doesn't support 34 # adding an additional port to forward to the device created from "--ssh" and 35 # virtme-init mistakenly sets identical IPs to the ssh device and additional [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * idpf_ptp_get_access - Determine the access type of the PTP features 18 if (adapter->ptp->caps & direct) in idpf_ptp_get_access() 20 else if (adapter->ptp->caps & mailbox) in idpf_ptp_get_access() 27 * idpf_ptp_get_features_access - Determine the access type of PTP features 35 struct idpf_ptp *ptp = adapter->ptp; in idpf_ptp_get_features_access() 41 ptp->get_dev_clk_time_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() 48 ptp->get_cross_tstamp_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() 55 ptp->set_dev_clk_time_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() 62 ptp->adj_dev_clk_time_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() [all …]
|
| /linux/tools/perf/util/ |
| H A D | drm_pmu.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 52 "ns", 60 "1ns", 65 return pmu && pmu->type >= PERF_PMU_TYPE_DRM_START && in perf_pmu__is_drm() 66 pmu->type <= PERF_PMU_TYPE_DRM_END; in perf_pmu__is_drm() 71 return perf_pmu__is_drm(evsel->pm in evsel__is_drm() [all...] |