| /linux/drivers/macintosh/ |
| H A D | windfarm_pid.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 st->param = *param; in wf_pid_init() 29 st->first = 1; in wf_pid_init() 37 int i, hlen = st->param.history_len; in wf_pid_run() 40 error = new_sample - st->param.itarget; in wf_pid_run() 43 if (st->first) { in wf_pid_run() 45 st->samples[i] = new_sample; in wf_pid_run() 46 st->errors[i] = error; in wf_pid_run() 48 st->first = 0; in wf_pid_run() 49 st->index = 0; in wf_pid_run() [all …]
|
| /linux/drivers/ptp/ |
| H A D | ptp_mock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Mock-up PTP Hardware Clock driver for virtual network devices 15 /* Clamp scaled_ppm between -2,097,152,000 and 2,097,152,000, 16 * and thus "adj" between -68,719,476 and 68,719,476 29 * 64-bit overflow during the multiplication with cc->mult, given the max "adj" 52 s64 adj; in mock_phc_adjfine() local 54 adj = (s64)scaled_ppm << MOCK_PHC_FADJ_SHIFT; in mock_phc_adjfine() 55 adj = div_s64(adj, MOCK_PHC_FADJ_DENOMINATOR); in mock_phc_adjfine() 57 spin_lock(&phc->lock); in mock_phc_adjfine() 58 timecounter_read(&phc->tc); in mock_phc_adjfine() [all …]
|
| /linux/Documentation/netlink/specs/ |
| H A D | conntrack.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 4 protocol: netlink-raw 7 doc: >- 11 - 15 - 16 name: nfgen-family 18 - 21 - 22 name: res-id [all …]
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2017 Cadence Design Systems - https://www.cadence.com 26 #define GEM_PTP_TIMER_NAME "gem-ptp-timer" 31 if (bp->hw_dma_cap == HW_DMA_CAP_PTP) in macb_ptp_desc() 34 if (bp->hw_dma_cap == HW_DMA_CAP_64B_PTP) in macb_ptp_desc() 49 spin_lock_irqsave(&bp->tsu_clk_lock, flags); in gem_tsu_get_time() 59 /* if so, use later read & re-read seconds in gem_tsu_get_time() 63 ts->tv_nsec = gem_readl(bp, TN); in gem_tsu_get_time() 68 ts->tv_nsec = first; in gem_tsu_get_time() 71 spin_unlock_irqrestore(&bp->tsu_clk_lock, flags); in gem_tsu_get_time() [all …]
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_vli.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 -*- linux-c -*- 7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH. 8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>. 9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. 19 * and possibly small-bandwidth replication, 55 * * simple byte-based 79 prefix data bits max val Nº data bits 108 -+----------------------------------------------------------------------- 136 u64 adj = 1; in vli_decode_bits() local [all …]
|
| /linux/Documentation/devicetree/bindings/ptp/ |
| H A D | fsl,ptp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Li <Frank.Li@nxp.com> 15 - enum: 16 - fsl,etsec-ptp 17 - fsl,fman-ptp-timer 18 - fsl,dpaa2-ptp 19 - items: 20 - const: pci1957,ee02 [all …]
|
| /linux/drivers/net/ethernet/pensando/ionic/ |
| H A D | ionic_phc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2017 - 2021 Pensando Systems, Inc */ 24 return -ERANGE; in ionic_hwstamp_tx_mode() 70 struct ionic *ionic = lif->ionic; in ionic_lif_hwstamp_set_ts_config() 79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config() 80 return -EOPNOTSUPP; in ionic_lif_hwstamp_set_ts_config() 82 mutex_lock(&lif->phc->config_lock); in ionic_lif_hwstamp_set_ts_config() 94 memcpy(config, &lif->phc->ts_config, sizeof(*config)); in ionic_lif_hwstamp_set_ts_config() 95 memset(&lif->phc->ts_config, 0, sizeof(lif->phc->ts_config)); in ionic_lif_hwstamp_set_ts_config() 96 lif->phc->ts_config_tx_mode = 0; in ionic_lif_hwstamp_set_ts_config() [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_rmap_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 33 * This is a per-ag tree used to track the owner(s) of a given extent. With 59 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor() 60 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_rmapbt_dup_cursor() 69 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_set_root() 70 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() 71 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_rmapbt_set_root() 73 ASSERT(ptr->s != 0); in xfs_rmapbt_set_root() 75 agf->agf_rmap_root = ptr->s; in xfs_rmapbt_set_root() 76 be32_add_cpu(&agf->agf_rmap_level, inc); in xfs_rmapbt_set_root() [all …]
|
| H A D | xfs_refcount.c | 1 // SPDX-License-Identifier: GPL-2.0+ 37 XFS_REFCOUNT_ADJUST_DECREASE = -1, 39 XFS_REFCOUNT_ADJUST_COW_FREE = -1, 61 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le() 62 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_le() 63 cur->bc_rec.rc.rc_domain = domain; in xfs_refcount_lookup_le() 81 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge() 82 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge() 83 cur->bc_rec.rc.rc_domain = domain; in xfs_refcount_lookup_ge() 101 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq() [all …]
|
| H A D | xfs_rtrmap_btree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2018-2024 Oracle. All Rights Reserved. 50 return xfs_rtrmapbt_init_cursor(cur->bc_tp, to_rtg(cur->bc_group)); in xfs_rtrmapbt_dup_cursor() 58 if (level == cur->bc_nlevels - 1) { in xfs_rtrmapbt_get_minrecs() 61 return xfs_rtrmapbt_maxrecs(cur->bc_mp, ifp->if_broot_bytes, in xfs_rtrmapbt_get_minrecs() 65 return cur->bc_mp->m_rtrmap_mnr[level != 0]; in xfs_rtrmapbt_get_minrecs() 73 if (level == cur->bc_nlevels - 1) { in xfs_rtrmapbt_get_maxrecs() 76 return xfs_rtrmapbt_maxrecs(cur->bc_mp, ifp->if_broot_bytes, in xfs_rtrmapbt_get_maxrecs() 80 return cur->bc_mp->m_rtrmap_mxr[level != 0]; in xfs_rtrmapbt_get_maxrecs() 89 blocklen -= sizeof(struct xfs_rtrmap_root); in xfs_rtrmapbt_droot_maxrecs() [all …]
|
| /linux/arch/powerpc/boot/dts/fsl/ |
| H A D | bsc9131rdb.dtsi | 2 * BSC9131 RDB Device Tree Source stub (no addresses or top-level ranges) 4 * Copyright 2011-2012 Freescale Semiconductor Inc. 38 #address-cells = <1>; 39 #size-cells = <1>; 40 compatible = "fsl,ifc-nand"; 54 #address-cells = <1>; 55 #size-cells = <1>; 56 compatible = "spansion,s25sl12801", "jedec,spi-nor"; 58 spi-max-frequency = <50000000>; 68 phy0: ethernet-phy@0 { [all …]
|
| H A D | bsc9132qds.dtsi | 2 * BSC9132 QDS Device Tree Source stub (no addresses or top-level ranges) 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 46 #address-cells = <1>; 47 #size-cells = <1>; 48 compatible = "fsl,ifc-nand"; 56 #address-cells = <1>; [all …]
|
| H A D | p1022ds.dtsi | 2 * P1022 DS Device Tree Source stub (no addresses or top-level ranges) 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 46 label = "ramdisk-nor"; 47 read-only; 52 label = "diagnostic-nor"; 53 read-only; [all …]
|
| H A D | p1010rdb.dtsi | 2 * P1010 RDB Device Tree Source stub (no addresses or top-level ranges) 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 64 /* 512KB for u-boot Bootloader Image */ 65 /* 512KB for u-boot Environment Variables */ 67 label = "NOR U-Boot Image"; 68 read-only; [all …]
|
| H A D | p1020rdb-pd.dts | 2 * P1020 RDB-PD Device Tree Source (32-bit address map) 35 /include/ "p1020si-pre.dtsi" 37 model = "fsl,P1020RDB-PD"; 38 compatible = "fsl,P1020RDB-PD"; 54 #address-cells = <1>; 55 #size-cells = <1>; 56 compatible = "cfi-flash"; 58 bank-width = <2>; 59 device-width = <1>; 83 label = "NOR Vitesse-7385 Firmware"; [all …]
|
| H A D | p2020rdb-pc.dtsi | 2 * P2020 RDB-PC Device Tree Source stub (no addresses or top-level ranges) 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 48 label = "NOR Vitesse-7385 Firmware"; 49 read-only; 72 /* 512KB for u-boot Bootloader Image */ 73 /* 512KB for u-boot Environment Variables */ [all …]
|
| H A D | p2020rdb.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009-2012 Freescale Semiconductor Inc. 8 /include/ "p2020si-pre.dtsi" 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 48 label = "NOR (RO) Vitesse-7385 Firmware"; 49 read-only; [all …]
|
| H A D | p1021rdb-pc.dtsi | 2 * P1021 RDB Device Tree Source stub (no addresses or top-level ranges) 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 48 label = "NOR Vitesse-7385 Firmware"; 49 read-only; 75 read-only; 80 /* 512KB for u-boot Bootloader Image */ [all …]
|
| H A D | p2020ds.dtsi | 2 * P2020DS Device Tree Source stub (no addresses or top-level ranges) 4 * Copyright 2011-2012 Freescale Semiconductor Inc. 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 46 read-only; 51 read-only; 56 read-only; [all …]
|
| /linux/include/linux/ |
| H A D | tcp.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 31 return th->doff * 4; in __tcp_hdrlen() 46 return inner_tcp_hdr(skb)->doff * 4; in inner_tcp_hdrlen() 50 * skb_tcp_all_headers - Returns size of all headers for a TCP packet 65 * skb_inner_tcp_all_headers - Returns size of all headers for an encap TCP packet 70 * if (skb_is_gso(skb) && skb->encapsulatio [all...] |
| /linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
| H A D | mac.c | 1 // SPDX-License-Identifier: ISC 42 memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats)); in mt7603_mac_reset_counters() 51 int offset = 3 * dev->coverage_class; in mt7603_mac_set_timing() 54 bool is_5ghz = dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ; in mt7603_mac_set_timing() 73 FIELD_PREP(MT_IFS_SLOT, dev->slottime)); in mt7603_mac_set_timing() 75 if (dev->slottime < 20 || is_5ghz) in mt7603_mac_set_timing() 229 u32 addr = mt7603_wtbl1_addr(sta->wcid.idx); in mt7603_wtbl_set_smps() 231 if (sta->smps == enabled) in mt7603_wtbl_set_smps() 235 sta->smps = enabled; in mt7603_wtbl_set_smps() 241 int idx = sta->wcid.idx; in mt7603_wtbl_set_ps() [all …]
|
| /linux/drivers/gpu/drm/bridge/analogix/ |
| H A D | anx7625.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 #include <media/v4l2-fwnode.h> 36 #include <sound/hdmi-codec.h> 50 struct device *dev = &client->dev; in i2c_access_workaround() 53 if (client == ctx->last_client) in i2c_access_workaround() 56 ctx->last_client = client; in i2c_access_workaround() 58 if (client == ctx->i2c.tcpc_client) in i2c_access_workaround() 60 else if (client == ctx->i2c.tx_p0_client) in i2c_access_workaround() 62 else if (client == ctx->i2c.tx_p1_client) in i2c_access_workaround() 64 else if (client == ctx->i2c.rx_p0_client) in i2c_access_workaround() [all …]
|
| /linux/sound/usb/ |
| H A D | pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/usb/audio-v2.h> 40 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_pcm_delay() 41 queued = bytes_to_frames(runtime, subs->inflight_bytes); in snd_usb_pcm_delay() 44 } else if (!subs->running) { in snd_usb_pcm_delay() 48 current_frame_number = usb_get_current_frame_number(subs->de in snd_usb_pcm_delay() 1345 unsigned int adj = min(subs->stream_offset_adj, bytes); retire_capture_urb() local [all...] |
| /linux/net/core/ |
| H A D | dev.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Florian la Roche <rzsfl@rz.uni-sb.de> 19 * D.J. Barrow : Fixed bug where dev->refcnt gets set 64 * Pekka Riikonen : Netdev boot-time settings code 66 * indefinitely on dev->refcnt 67 * J Hadi Salim : - Backlog queue sampling 68 * - netif_rx() feedback 169 #include "net-sysfs.h" 189 unsigned int val = net->dev_base_seq + 1; in dev_base_seq_inc() 191 WRITE_ONCE(net->dev_base_seq, val ?: 1); in dev_base_seq_inc() [all …]
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 24 /* Sub-nanoseconds-adj,max * sub-nanoseconds / 40ns * 1ns 25 * = (2^30-1) * (2 ^ 32) / 40 ns * 1 ns = 6249999 85 return -EINVAL; in ksz_ptp_tou_pulse_verify() 89 return -ERANGE; in ksz_ptp_tou_pulse_verify() 100 if ((ts->tv_sec & 0xffffffff) != ts->tv_sec) in ksz_ptp_tou_target_time_set() 101 return -EINVAL; in ksz_ptp_tou_target_time_set() 103 ret = ksz_write32(dev, REG_TRIG_TARGET_NANOSEC, ts->tv_nsec); in ksz_ptp_tou_target_time_set() 107 ret = ksz_write32(dev, REG_TRIG_TARGET_SEC, ts->tv_sec); in ksz_ptp_tou_target_time_set() 124 * - the ACTIVE flag is NOT cleared an error! in ksz_ptp_tou_start() [all …]
|