Home
last modified time | relevance | path

Searched +full:pps +full:- +full:channel (Results 1 – 25 of 64) sorted by relevance

123

/linux/Documentation/ABI/testing/
H A Dsysfs-ptp41 Write integer to re-configure it.
93 and the channel number. The function and channel
103 "1" means that the PPS is supported, while "0" means
110 This write-only file enables or disables external
112 channel index followed by a "1" into the file.
113 To disable external timestamps, write the channel
121 the form of three integers: channel index, seconds,
128 This write-only file enables or disables periodic
130 integers into the file: channel index, start time
139 This write-only file enables or disables delivery of
[all …]
/linux/drivers/net/ethernet/freescale/
H A Dfec_ptp.c1 // SPDX-License-Identifier: GPL-2.0
92 * fec_ptp_read - read raw cycle counter (to be used by time counter)
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()
118 * @enable: enable the channel pps output
120 * This function enble the PPS ouput on the timer channel.
129 spin_lock_irqsave(&fep->tmreg_lock, flags); in fec_ptp_enable_pps()
131 if (fep->pps_enable == enable) { in fec_ptp_enable_pps()
[all …]
/linux/tools/testing/selftests/ptp/
H A Dtestptp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * PTP 1588 clock support - User space test program
35 #define CLOCK_INVALID -1
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 " -f val adjust the ptp clock frequency by 'val' ppb\n" in usage()
124 " -F chan Enable single channel mask and keep device open for debugfs verification.\n" in usage()
125 " -g get the ptp clock time\n" in usage()
[all …]
/linux/drivers/staging/sm750fb/
H A Dsm750_hw.c1 // SPDX-License-Identifier: GPL-2.0
34 sm750_dev->vidreg_start = pci_resource_start(pdev, 1); in hw_sm750_map()
35 sm750_dev->vidreg_size = SZ_2M; in hw_sm750_map()
37 pr_info("mmio phyAddr = %lx\n", sm750_dev->vidreg_start); in hw_sm750_map()
52 sm750_dev->pvReg = in hw_sm750_map()
53 ioremap(sm750_dev->vidreg_start, sm750_dev->vidreg_size); in hw_sm750_map()
54 if (!sm750_dev->pvReg) { in hw_sm750_map()
56 ret = -EFAULT; in hw_sm750_map()
59 pr_info("mmio virtual addr = %p\n", sm750_dev->pvReg); in hw_sm750_map()
61 sm750_dev->accel.dprBase = sm750_dev->pvReg + DE_BASE_ADDR_TYPE1; in hw_sm750_map()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c1 // SPDX-License-Identifier: GPL-2.0-only
21 * Scaled parts per million is ppm with a 16-bit binary fractional field.
30 addend = adjust_by_scaled_ppm(priv->default_addend, scaled_ppm); in stmmac_adjust_freq()
32 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_freq()
33 stmmac_config_addend(priv, priv->ptpaddr, addend); in stmmac_adjust_freq()
34 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_freq()
58 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_adjust_time()
62 delta = -delta; in stmmac_adjust_time()
70 if (priv->est && priv->est->enable) { in stmmac_adjust_time()
72 mutex_lock(&priv->est_lock); in stmmac_adjust_time()
[all …]
H A Dstmmac_hwtstamp.c1 // SPDX-License-Identifier: GPL-2.0-only
46 /* For GMAC3.x, 4.x versions, in "fine adjustement mode" set sub-second in config_sub_second_increment()
49 * to mid-range = 2^31 when the remainder of this division is zero, in config_sub_second_increment()
78 void __iomem *ioaddr = priv->ptpaddr; in hwtstamp_correct_latency()
84 /* MAC-internal ingress latency */ in hwtstamp_correct_latency()
93 scaled_ns = ((u64)NSEC_PER_SEC << 16) - scaled_ns; in hwtstamp_correct_latency()
96 scaled_ns = ((1ULL << 31) << 16) - in hwtstamp_correct_latency()
108 /* MAC-internal egress latency */ in hwtstamp_correct_latency()
148 while (limit--) { in config_addend()
154 return -EBUSY; in config_addend()
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-gw5907.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
21 stdout-path = &uart2;
24 gpio-keys {
25 compatible = "gpio-keys";
27 user-pb {
33 user-pb1x {
36 interrupt-parent = <&gsc>;
[all …]
H A Dimx6qdl-gw5913.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
21 stdout-path = &uart2;
24 gpio-keys {
25 compatible = "gpio-keys";
27 user-pb {
33 user-pb1x {
36 interrupt-parent = <&gsc>;
[all …]
H A Dimx6qdl-gw5912.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
22 stdout-path = &uart2;
25 gpio-keys {
26 compatible = "gpio-keys";
28 user-pb {
34 user-pb1x {
37 interrupt-parent = <&gsc>;
[all …]
H A Dimx6qdl-gw5910.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
19 stdout-path = &uart2;
27 gpio-keys {
28 compatible = "gpio-keys";
30 user-pb {
36 user-pb1x {
39 interrupt-parent = <&gsc>;
[all …]
H A Dimx6qdl-gw51xx.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
24 gpio-keys {
25 compatible = "gpio-keys";
27 user-pb {
33 user-pb1x {
36 interrupt-parent = <&gsc>;
40 key-erased {
[all …]
H A Dimx6qdl-gw553x.dtsi4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
48 #include <dt-bindings/gpio/gpio.h>
49 #include <dt-bindings/input/linux-event-codes.h>
50 #include <dt-bindings/interrupt-controller/irq.h>
63 stdout-path = &uart2;
66 gpio-keys {
67 compatible = "gpio-keys";
69 user-pb {
75 user-pb1x {
[all …]
H A Dimx6qdl-gw53xx.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
27 compatible = "pwm-backlight";
29 brightness-levels = <0 4 8 16 32 64 128 255>;
30 default-brightness-level = <7>;
33 gpio-keys {
34 compatible = "gpio-keys";
36 user-pb {
[all …]
H A Dimx6qdl-gw52xx.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
27 compatible = "pwm-backlight";
29 brightness-levels = <0 4 8 16 32 64 128 255>;
30 default-brightness-level = <7>;
33 gpio-keys {
34 compatible = "gpio-keys";
36 user-pb {
[all …]
H A Dimx6qdl-gw54xx.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/sound/fsl-imx-audmux.h>
28 compatible = "pwm-backlight";
30 brightness-levels = <0 4 8 16 32 64 128 255>;
31 default-brightness-level = <7>;
34 gpio-keys {
35 compatible = "gpio-keys";
[all …]
H A Dimx6qdl-gw5904.dtsi4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
48 #include <dt-bindings/gpio/gpio.h>
49 #include <dt-bindings/input/linux-event-codes.h>
50 #include <dt-bindings/interrupt-controller/irq.h>
68 stdout-path = &uart2;
72 compatible = "pwm-backlight";
74 brightness-levels = <0 4 8 16 32 64 128 255>;
75 default-brightness-level = <7>;
78 gpio-keys {
[all …]
H A Dimx6qdl-gw560x.dtsi4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
48 #include <dt-bindings/gpio/gpio.h>
49 #include <dt-bindings/input/input.h>
50 #include <dt-bindings/interrupt-controller/irq.h>
64 stdout-path = &uart2;
67 backlight-display {
68 compatible = "pwm-backlight";
70 brightness-levels = <
83 default-brightness-level = <100>;
[all …]
/linux/include/uapi/linux/
H A Dptp_clock.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * PTP 1588 clock support - user space interface
80 * struct ptp_clock_time - represents a time value
84 * included for sub-nanosecond resolution, should the demand for
99 int pps; /* Whether the clock supports a PPS callback. */ member
101 /* Whether the clock supports precise system-device cross timestamps */
110 unsigned int index; /* Which channel to configure. */
131 unsigned int index; /* Which channel to configure. */
159 * ptp_sys_offset_extended - data structure for IOCTL operation
163 * @clockid: clockid of a clock-base used for pre/post timestamps.
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dptp.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2011-2013 Solarflare Communications Inc.
116 /* 01-1B-19-00-00-00 */
142 #define MC_NANOSECOND_MASK ((1 << MC_NANOSECOND_BITS) - 1)
143 #define MC_SECOND_MASK ((1 << (32 - MC_NANOSECOND_BITS)) - 1)
145 /* Maximum parts-per-billion adjustment that is acceptable */
160 * struct efx_ptp_match - Matching structure, stored in sk_buff's cb area.
163 * @state: The state of the packet - whether it is ready for processing or
172 * struct efx_ptp_event_rx - A PTP receive event (from MC)
188 * struct efx_ptp_timeset - Synchronisation between host and MC
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dptp.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2011-2013 Solarflare Communications Inc.
143 #define MC_NANOSECOND_MASK ((1 << MC_NANOSECOND_BITS) - 1)
144 #define MC_SECOND_MASK ((1 << (32 - MC_NANOSECOND_BITS)) - 1)
146 /* Maximum parts-per-billion adjustment that is acceptable */
161 * struct efx_ptp_match - Matching structure, stored in sk_buff's cb area.
165 * @state: The state of the packet - whether it is ready for processing or
175 * struct efx_ptp_event_rx - A PTP receive event (from MC)
191 * struct efx_ptp_timeset - Synchronisation between host and MC
207 u32 window; /* Derived: end - start, allowing for wrap */
[all …]
/linux/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-common.c5 * This program is dual-licensed; you may select either version 2 of
21 #include "dwc-xlgmac.h"
22 #include "dwc-xlgmac-reg.h"
24 static int debug = -1;
34 struct net_device *netdev = pdata->netdev; in xlgmac_read_mac_addr()
37 memcpy(pdata->mac_addr, dev_addr, netdev->addr_len); in xlgmac_read_mac_addr()
42 pdata->tx_osp_mode = DMA_OSP_ENABLE; in xlgmac_default_config()
43 pdata->tx_sf_mode = MTL_TSF_ENABLE; in xlgmac_default_config()
44 pdata->rx_sf_mode = MTL_RSF_DISABLE; in xlgmac_default_config()
45 pdata->pblx8 = DMA_PBL_X8_ENABLE; in xlgmac_default_config()
[all …]
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mn-venice-gw7902.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/linux-event-codes.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/net/ti-dp83867.h>
17 compatible = "gw,imx8mn-gw7902", "fsl,imx8mn";
26 stdout-path = &uart2;
35 compatible = "fixed-clock";
36 #clock-cells = <0>;
[all …]
H A Dimx8mm-venice-gw7902.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/linux-event-codes.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/net/ti-dp83867.h>
12 #include <dt-bindings/phy/phy-imx8-pcie.h>
18 compatible = "gw,imx8mm-gw7902", "fsl,imx8mm";
29 stdout-path = &uart2;
38 compatible = "fixed-clock";
[all …]
/linux/sound/usb/
H A Dcard.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 unsigned int fmt_type; /* USB audio format type (1-3) */
19 unsigned int frame_size; /* samples per frame for non-audio */
40 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */
69 int opened; /* open refcount; protect with chip->mutex */
109 unsigned int sample_rem; /* remainder from division fs/pps */
111 unsigned int pps; /* packets per second */ member
132 bool lowlatency_playback; /* low-latency playback mode */
133 bool need_setup; /* (re-)need for hw_params? */
134 bool need_prepare; /* (re-)need for prepare? */
[all …]
/linux/sound/core/oss/
H A Dmulaw.c2 * Mu-Law conversion Plug-In Interface
4 * Uros Bizjak <uros@kss-loka.si>
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #define SIGN_BIT (0x80) /* Sign bit for a u-law byte. */
31 #define NSEGS (8) /* Number of u-law segments. */
55 * linear2ulaw() - Convert a linear PCM value to u-law
58 * is biased by adding 33 which shifts the encoding range from (0 - 8158) to
59 * (33 - 8191). The result can be seen in the following encoding table:
62 * ------------------------ ---------------
75 * four bits wxyz. * The trailing bits (a - h) are ignored.
[all …]

123