| /linux/tools/testing/selftests/ptp/ | 
| H A D | testptp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later3  * PTP 1588 clock support - User space test program
 35 #define CLOCK_INVALID -1
 43 static int clock_adjtime(clockid_t id, struct timex *tx)  in clock_adjtime()  argument
 45 	return syscall(__NR_clock_adjtime, id, tx);  in clock_adjtime()
 113 	return t->sec * NSEC_PER_SEC + t->nsec;  in pctns()
 120 		" -c         query the ptp clock's capabilities\n"  in usage()
 121 		" -d name    device to open\n"  in usage()
 122 		" -e val     read 'val' external time stamp events\n"  in usage()
 123 		" -E val     enable rising (1), falling (2), or both (3) edges\n"  in usage()
 [all …]
 
 | 
| /linux/drivers/crypto/caam/ | 
| H A D | dpseci.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */3  * Copyright 2013-2016 Freescale Semiconductor Inc.
 4  * Copyright 2017-2018 NXP
 10  * Data Path SEC Interface API
 21  * Maximum number of Tx/Rx queues per DPSECI object
 28 #define DPSECI_ALL_QUEUES	(u8)(-1)
 41  * struct dpseci_cfg - Structure representing DPSECI configuration
 44  * @num_tx_queues: num of queues towards the SEC
 45  * @num_rx_queues: num of queues back from the SEC
 46  * @priorities: Priorities for the SEC hardware processing;
 [all …]
 
 | 
| /linux/drivers/net/ethernet/intel/igbvf/ | 
| H A D | igbvf.h | 1 /* SPDX-License-Identifier: GPL-2.0 */2 /* Copyright(c) 2009 - 2018 Intel Corporation. */
 22 #define IGBVF_START_ITR		488 /* ~8000 ints/sec */
 39 /* Tx/Rx descriptor defines */
 48 #define IGBVF_MIN_ITR_USECS	10 /* 100000 irq/sec */
 49 #define IGBVF_MAX_ITR_USECS	10000 /* 100    irq/sec */
 52  * PTHRESH - MAC will consider prefetch if it has fewer than this number of
 55  * HTHRESH - MAC will only prefetch if there are at least this many descriptors
 58  * WTHRESH - RX descriptor writeback threshold - MAC will delay writing back
 71 /* How many Tx Descriptors do we need to call netif_wake_queue ? */
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/net/ | 
| H A D | ibm,emac.txt | 8     correct clock-frequency property.13     - device_type       : "network"
 15     - compatible        : compatible list, contains 2 entries, first is
 16 			  "ibm,emac-CHIP" where CHIP is the host ASIC (440gx,
 18 			  "ibm,emac4".  For Axon, thus, we have: "ibm,emac-axon",
 20     - interrupts        : <interrupt mapping for EMAC IRQ and WOL IRQ>
 21     - reg               : <registers mapping>
 22     - local-mac-address : 6 bytes, MAC address
 23     - mal-device        : phandle of the associated McMAL node
 24     - mal-tx-channel    : 1 cell, index of the tx channel on McMAL associated
 [all …]
 
 | 
| /linux/tools/testing/selftests/bpf/progs/ | 
| H A D | xdp_features.c | 1 // SPDX-License-Identifier: GPL-2.015 #include <asm-generic/errno-base.h>
 38 } stats SEC(".maps");
 45 } dut_stats SEC(".maps");
 52 } cpu_map SEC(".maps");
 59 } dev_map SEC(".maps");
 67 	void *data_end = (void *)(long)xdp->data_end;  in xdp_process_echo_packet()
 68 	void *data = (void *)(long)xdp->data;  in xdp_process_echo_packet()
 75 		return -EINVAL;  in xdp_process_echo_packet()
 77 	if (eh->h_proto == bpf_htons(ETH_P_IP)) {  in xdp_process_echo_packet()
 [all …]
 
 | 
| H A D | lsm_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.08 char _license[] SEC("license") = "GPL";
 30 } cgroup_storage SEC(".maps");
 57 	/* Reject non-tx-only AF_PACKET. */  in real_create()
 61 	sk = sock->sk;  in real_create()
 84 SEC("lsm_cgroup/socket_post_create")
 93 SEC("lsm_cgroup/socket_post_create")
 106 	struct sock *sk = sock->sk;  in real_bind()
 111 	if (sk->__sk_common.skc_family != AF_PACKET)  in real_bind()
 114 	if (sk->sk_kern_sock)  in real_bind()
 [all …]
 
 | 
| /linux/tools/perf/scripts/python/ | 
| H A D | netdev-times.py | 2 # SPDX-License-Identifier: GPL-2.06 # tx: show only tx chart
 17 	'/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
 27 net_rx_dic = {}; # key is cpu and value include time of NET_RX softirq-entry
 61 	return (dst - src) / 1000000.0
 80 PF_NET_RECV=  "         |---netif_receive_skb(+%.3fmsec skb=%x len=%d)"
 81 PF_NET_RX=    "         |---netif_rx(+%.3fmsec skb=%x)"
 129 			if i == len(event_list) - 1:
 166 		if arg == 'tx':
 223 		print("----------------------------")
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/sound/ | 
| H A D | samsung-i2s.yaml | 1 # SPDX-License-Identifier: GPL-2.03 ---
 4 $id: http://devicetree.org/schemas/sound/samsung-i2s.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 10   - Krzysztof Kozlowski <krzk@kernel.org>
 11   - Sylwester Nawrocki <s.nawrocki@samsung.com>
 14   - $ref: dai-common.yaml#
 19       samsung,s3c6410-i2s: for 8/16/24bit stereo I2S.
 21       samsung,s5pv210-i2s: for 8/16/24bit multichannel (5.1) I2S with
 25       samsung,exynos5420-i2s: for 8/16/24bit multichannel (5.1) I2S for
 [all …]
 
 | 
| /linux/Documentation/networking/dsa/ | 
| H A D | sja1105.rst | 8 The NXP SJA1105 is a family of 10 SPI-managed automotive switches:10 - SJA1105E: First generation, no TTEthernet
 11 - SJA1105T: First generation, TTEthernet
 12 - SJA1105P: Second generation, no TTEthernet, no SGMII
 13 - SJA1105Q: Second generation, TTEthernet, no SGMII
 14 - SJA1105R: Second generation, no TTEthernet, SGMII
 15 - SJA1105S: Second generation, TTEthernet, SGMII
 16 - SJA1110A: Third generation, TTEthernet, SGMII, integrated 100base-T1 and
 17   100base-TX PHYs
 18 - SJA1110B: Third generation, TTEthernet, SGMII, 100base-T1, 100base-TX
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/dsp/ | 
| H A D | mediatek,mt8186-dsp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/dsp/mediatek,mt8186-dsp.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 10   - Tinghan Shen <tinghan.shen@mediatek.com>
 14   advanced pre- and post- audio processing.
 19       - mediatek,mt8186-dsp
 20       - mediatek,mt8188-dsp
 24       - description: Address and size of the DSP config registers
 25       - description: Address and size of the DSP SRAM
 [all …]
 
 | 
| /linux/drivers/net/ethernet/freescale/dpaa2/ | 
| H A D | dpaa2-eth.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */2 /* Copyright 2014-2016 Freescale Semiconductor Inc.
 3  * Copyright 2016-2022 NXP
 17 #include <soc/fsl/dpaa2-io.h>
 18 #include <soc/fsl/dpaa2-fd.h>
 20 #include "dpni-cmd.h"
 22 #include "dpaa2-eth-trace.h"
 23 #include "dpaa2-eth-debugfs.h"
 24 #include "dpaa2-mac.h"
 30 /* Maximum number of scatter-gather entries in an ingress frame,
 [all …]
 
 | 
| /linux/arch/arm64/boot/dts/freescale/ | 
| H A D | fsl-ls1028a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3  * Device Tree Include file for NXP Layerscape-1028A family SoC.
 5  * Copyright 2018-2020 NXP
 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h>
 12 #include <dt-bindings/interrupt-controller/arm-gic.h>
 13 #include <dt-bindings/thermal/thermal.h>
 17 	interrupt-parent = <&gic>;
 18 	#address-cells = <2>;
 19 	#size-cells = <2>;
 22 		#address-cells = <1>;
 [all …]
 
 | 
| H A D | imx8ulp.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 #include <dt-bindings/clock/imx8ulp-clock.h>
 7 #include <dt-bindings/gpio/gpio.h>
 8 #include <dt-bindings/interrupt-controller/arm-gic.h>
 9 #include <dt-bindings/power/imx8ulp-power.h>
 10 #include <dt-bindings/thermal/thermal.h>
 12 #include "imx8ulp-pinfunc.h"
 15 	interrupt-parent = <&gic>;
 16 	#address-cells = <2>;
 17 	#size-cells = <2>;
 [all …]
 
 | 
| H A D | imx8mn.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 #include <dt-bindings/clock/imx8mn-clock.h>
 7 #include <dt-bindings/power/imx8mn-power.h>
 8 #include <dt-bindings/reset/imx8mq-reset.h>
 9 #include <dt-bindings/gpio/gpio.h>
 10 #include <dt-bindings/input/input.h>
 11 #include <dt-bindings/interrupt-controller/arm-gic.h>
 12 #include <dt-bindings/thermal/thermal.h>
 14 #include "imx8mn-pinfunc.h"
 17 	interrupt-parent = <&gic>;
 [all …]
 
 | 
| /linux/drivers/net/ethernet/intel/iavf/ | 
| H A D | iavf_txrx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
 34  * the value of the rate limit is non-zero
 40 #define IAVF_INTRL_8K              125     /* 8000 ints/sec */
 41 #define IAVF_INTRL_62K             16      /* 62500 ints/sec */
 42 #define IAVF_INTRL_83K             12      /* 83333 ints/sec */
 89 		if ((i) == (r)->count)		\
 91 		r->next_to_clean = i;		\
 97 		if ((i) == (r)->count)		\
 111 /* The size limit for a transmit buffer in a descriptor is (16K - 1).
 [all …]
 
 | 
| H A D | iavf_txrx.c | 1 // SPDX-License-Identifier: GPL-2.02 /* Copyright(c) 2013 - 2018 Intel Corporation. */
 14  * iavf_is_descriptor_done - tests DD bit in Rx descriptor
 45  * iavf_unmap_and_free_tx_resource - Release a Tx buffer
 52 	if (tx_buffer->skb) {  in iavf_unmap_and_free_tx_resource()
 53 		if (tx_buffer->tx_flags & IAVF_TX_FLAGS_FD_SB)  in iavf_unmap_and_free_tx_resource()
 54 			kfree(tx_buffer->raw_buf);  in iavf_unmap_and_free_tx_resource()
 56 			dev_kfree_skb_any(tx_buffer->skb);  in iavf_unmap_and_free_tx_resource()
 58 			dma_unmap_single(ring->dev,  in iavf_unmap_and_free_tx_resource()
 63 		dma_unmap_page(ring->dev,  in iavf_unmap_and_free_tx_resource()
 [all …]
 
 | 
| /linux/drivers/net/ethernet/mellanox/mlxsw/ | 
| H A D | pci_hw.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */2 /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */
 79  * For Ethernet EMAD (Direct Route and non Direct Route) -
 81  * For InfiniBand CTL - must be set if packet destination is local device
 99  * Size of i-th scatter/gather entry, 0 if entry is unused.
 104  * Physical address of i-th scatter/gather entry.
 208  * 1 - Send Queue
 209  * 0 - Receive Queue
 225  * 0: uSec - 1.024uSec (default for devices which do not support
 227  * 1: FRC - Free Running Clock - units of 1nSec
 [all …]
 
 | 
| /linux/drivers/net/hippi/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only10 	  HIgh Performance Parallel Interface (HIPPI) is a 800Mbit/sec and
 11 	  1600Mbit/sec dual-simplex switched or point-to-point network. HIPPI
 12 	  can run over copper (25m) or fiber (300m on multi-mode or 10km on
 13 	  single-mode). HIPPI networks are commonly used for clusters and to
 31 	bool "Use large TX/RX rings"
 
 | 
| /linux/include/uapi/linux/ | 
| H A D | atmdev.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */2 /* atmdev.h - ATM device driver declarations and various related items */
 4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
 22 			   max cell rate:  353207.547 cells/sec */
 23 #define ATM_25_PCR	((25600000/8-8000)/54)
 29 			   max cell rate:  1412830.188 cells/sec */
 35     __HANDLE_ITEM(tx);			/* TX okay */ \
 36     __HANDLE_ITEM(tx_err);		/* TX errors */ \
 97 					/* enable or disable single-copy */
 109  * above.  In the future we may support dynamic loading of these - for now,
 [all …]
 
 | 
| /linux/tools/testing/selftests/drivers/net/ | 
| H A D | ping.py | 2 # SPDX-License-Identifier: GPL-2.014 def _test_v4(cfg) -> None:
 18     cmd("ping -c 1 -W0.5 " + cfg.remote_addr_v["4"])
 19     cmd("ping -c 1 -W0.5 " + cfg.addr_v["4"], host=cfg.remote)
 20     cmd("ping -s 65000 -c 1 -W0.5 " + cfg.remote_addr_v["4"])
 21     cmd("ping -s 65000 -c 1 -W0.5 " + cfg.addr_v["4"], host=cfg.remote)
 23 def _test_v6(cfg) -> None:
 27     cmd("ping -c 1 -W5 " + cfg.remote_addr_v["6"])
 28     cmd("ping -c 1 -W5 " + cfg.addr_v["6"], host=cfg.remote)
 29     cmd("ping -s 65000 -c 1 -W0.5 " + cfg.remote_addr_v["6"])
 [all …]
 
 | 
| /linux/drivers/hid/intel-ish-hid/ishtp/ | 
| H A D | ishtp-dev.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */5  * Copyright (c) 2003-2016, Intel Corporation.
 13 #include <linux/intel-ish-client-if.h>
 21 /* Number of messages to be held in ISR->BH FIFO */
 25  * Number of IPC messages to be held in Tx FIFO, to be sent by ISR -
 26  * Tx complete interrupt or RX_COMPLETE handler
 42 #define ISHTP_MAX_OPEN_HANDLE_COUNT (ISHTP_CLIENTS_MAX - 1)
 45 #define ISHTP_HOST_CLIENT_ID_ANY		(-1)
 67  * struct ishtp_fw_client - representation of fw client
 69  * @props - client properties
 [all …]
 
 | 
| /linux/drivers/net/ethernet/amazon/ena/ | 
| H A D | ena_netdev.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */3  * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
 61 #define ENA_DEFAULT_RX_COPYBREAK	(256 - NET_IP_ALIGN)
 73 /* The number of tx packet completions that will be handled each NAPI poll
 89 #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1))
 91 #define ENA_RX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1))
 93 	(((idx) + (n)) & ((ring_size) - 1))
 98 #define ENA_IO_RXQ_IDX_TO_COMBINED_IDX(q)	(((q) - 1) / 2)
 106 /* ENA device should send keep alive msg every 1 sec.
 107  * We wait for 6 sec just to be on the safe side.
 [all …]
 
 | 
| /linux/drivers/net/wireless/intel/ipw2x00/ | 
| H A D | libipw_wx.c | 1 // SPDX-License-Identifier: GPL-2.0-only4   Copyright(c) 2004-2005 Intel Corporation. All rights reserved.
 7   Host AP project hostap-drivers v0.1.3
 8   Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen
 10   Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
 15   Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
 36 		return jiffies_to_msecs(end - start);  in elapsed_jiffies_msecs()
 38 	return jiffies_to_msecs(end + (MAX_JIFFY_OFFSET - start) + 1);  in elapsed_jiffies_msecs()
 57 	memcpy(iwe.u.ap_addr.sa_data, network->bssid, ETH_ALEN);  in libipw_translate_scan()
 65 	iwe.u.data.length = min(network->ssid_len, (u8) 32);  in libipw_translate_scan()
 [all …]
 
 | 
| /linux/drivers/net/phy/ | 
| H A D | micrel.c | 1 // SPDX-License-Identifier: GPL-2.0+9  * Copyright (c) 2010-2013 Micrel, Inc.
 129  * The value is calculated as following: (1/1000000)/((2^-32)/4)
 135  * The value is calculated as following: (1/1000000)/((2^-32)/8)
 554 	const struct kszphy_type *type = phydev->drv->driver_data;  in kszphy_config_intr()
 558 	if (type && type->interrupt_level_mask)  in kszphy_config_intr()
 559 		mask = type->interrupt_level_mask;  in kszphy_config_intr()
 571 	if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {  in kszphy_config_intr()
 634 		return -EINVAL;  in kszphy_setup_led()
 654  * unique (non-broadcast) address on a shared bus.
 [all …]
 
 | 
| /linux/tools/testing/vsock/ | 
| H A D | vsock_perf.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * vsock_perf - benchmark utility for vsock.
 118 		return -1;  in vsock_connect()
 124 		return -1;  in vsock_connect()
 210 		if (poll(&fds, 1, -1) < 0)  in run_receiver()
 224 			in_read_ns += (current_nsec() - t);  in run_receiver()
 244 	       get_gbps(total_recv * 8, current_nsec() - rx_begin_ns));  in run_receiver()
 245 	printf("total time in 'read()': %f sec\n", (float)in_read_ns / NSEC_PER_SEC);  in run_receiver()
 280 	printf("TX buffer %lu bytes\n", buf_size_bytes);  in run_sender()
 291 			    MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);  in run_sender()
 [all …]
 
 |