Home
last modified time | relevance | path

Searched +full:atomic +full:- +full:threshold +full:- +full:us (Results 1 – 25 of 83) sorted by relevance

1234

/linux/Documentation/devicetree/bindings/firmware/
H A Darm,scmi.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Sudeep Holla <sudeep.holla@arm.com>
26 - $ref: /schemas/firmware/nxp,imx95-scmi.yaml
34 - description: SCMI compliant firmware with mailbox transport
36 - const: arm,scmi
37 - description: SCMI compliant firmware with ARM SMC/HVC transport
39 - const: arm,scmi-smc
40 - description: SCMI compliant firmware with ARM SMC/HVC transport
[all …]
/linux/arch/powerpc/kernel/
H A Dwatchdog.c1 // SPDX-License-Identifier: GPL-2.0
37 * period, and updates a per-cpu timestamp and a "pending" cpumask. This is
41 * The local soft-NMI, and the SMP checker.
43 * The soft-NMI checker can detect lockups on the local CPU. When interrupts
44 * are disabled with local_irq_disable(), platforms that use soft-masking
50 * The soft-NMI checker will compare the heartbeat timestamp for this CPU
52 * watchdog threshold.
54 * The limitation of the soft-NMI watchdog is that it does not work when
66 * not been updated for a period exceeding the watchdog threshold, then it
131 hard_irq_disable(); /* Make it soft-NMI safe */ in wd_smp_lock()
[all …]
/linux/fs/xfs/
H A Dxfs_log_priv.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
74 * By covering, we mean changing the h_tail_lsn in the last on-disk
75 * log write such that no allocation transactions will be re-done during
76 * recovery after a system crash. Recovery starts at the last on-disk
80 * space allocation transactions which can undo non-transactional changes
93 * non-dummy transaction. The first dummy changes the h_tail_lsn to
102 * IDLE -- no logging has been done on the file system or
104 * NEED -- logging has occurred and we need a dummy transaction
106 * DONE -- we were in the NEED state and have committed a dummy
[all …]
H A Dxfs_log_cil.c1 // SPDX-License-Identifier: GPL-2.0
27 * We don't reserve any space for the ticket - we are going to steal whatever
45 tic->t_curr_res = 0; in xlog_cil_ticket_alloc()
46 tic->t_iclog_hdrs = 0; in xlog_cil_ticket_alloc()
53 struct xlog *log = cil->xc_log; in xlog_cil_set_iclog_hdr_count()
55 atomic_set(&cil->xc_iclog_hdrs, in xlog_cil_set_iclog_hdr_count()
57 (log->l_iclog_size - log->l_iclog_hsize))); in xlog_cil_set_iclog_hdr_count()
65 * Note: for this to be used in a non-racy manner, it has to be called with
74 if (test_bit(XLOG_CIL_EMPTY, &cil->xc_flags)) in xlog_item_in_current_chkpt()
82 return lip->li_seq == READ_ONCE(cil->xc_current_sequence); in xlog_item_in_current_chkpt()
[all …]
/linux/drivers/net/ethernet/atheros/atlx/
H A Datl2.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* atl2.h -- atl2 driver definitions
9 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved.
15 #include <linux/atomic.h>
39 ((a)->hw_addr + (reg))))
41 #define ATL2_WRITE_FLUSH(a) (ioread32((a)->hw_addr))
43 #define ATL2_READ_REG(a, reg) (ioread32((a)->hw_addr + (reg)))
46 ((a)->hw_addr + (reg))))
48 #define ATL2_READ_REGB(a, reg) (ioread8((a)->hw_addr + (reg)))
51 ((a)->hw_addr + (reg))))
[all …]
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org>
5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org>
6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com>
12 #include <linux/dma-mapping.h>
57 #define NEXT_DESP_IDX(X, Y) (((X) + 1) & ((Y) - 1))
62 #define MTK_PP_MAX_BUF_SIZE (PAGE_SIZE - MTK_PP_PAD)
71 #define MTK_HW_LRO_TIMER_UNIT 1 /* 20 us */
73 #define MTK_HW_LRO_AGG_TIME 10 /* 200us */
136 /* Unicast Filter MAC Address Register - Low */
[all …]
/linux/net/rds/
H A Dsend.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
70 if (cp->cp_xmit_rm) { in rds_send_path_reset()
71 rm = cp->cp_xmit_rm; in rds_send_path_reset()
72 cp->cp_xmit_rm = NULL; in rds_send_path_reset()
81 cp->cp_xmit_sg = 0; in rds_send_path_reset()
82 cp->cp_xmit_hdr_off = 0; in rds_send_path_reset()
83 cp->cp_xmit_data_off = 0; in rds_send_path_reset()
84 cp->cp_xmit_atomic_sent = 0; in rds_send_path_reset()
85 cp->cp_xmit_rdma_sent = 0; in rds_send_path_reset()
[all …]
/linux/net/batman-adv/
H A Dbat_v.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/atomic.h>
38 #include "hard-interface.h"
46 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_activate()
60 if (hard_iface->if_status == BATADV_IF_TO_BE_ACTIVATED) in batadv_v_iface_activate()
61 hard_iface->if_status = BATADV_IF_ACTIVE; in batadv_v_iface_activate()
92 * batadv_v_iface_update_mac() - react to hard-interface MAC address change
100 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_update_mac()
115 ewma_throughput_init(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_init()
119 * batadv_v_neigh_dump_neigh() - Dump a neighbour into a message
[all …]
/linux/Documentation/filesystems/xfs/
H A Dxfs-delayed-logging-design.rst1 .. SPDX-License-Identifier: GPL-2.0
27 are atomic and recoverable. For reasons of space and time efficiency, the
33 details logged are made up of the changes to in-core structures rather than
34 on-disk structures. Other objects - typically buffers - have their physical
35 changes logged. Long running atomic modifications have individual changes
60 commit boundaries, whilst "one shot" transactions are for a single atomic
64 place. This means that permanent transactions can be used for one-shot
65 modifications, but one-shot reservations cannot be used for permanent
68 In the code, a one-shot transaction pattern looks somewhat like this::
97 While this might look similar to a one-shot transaction, there is an important
[all …]
/linux/mm/
H A Dvmstat.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * Copyright (C) 2008-2014 Christoph Lameter
43 atomic_long_set(&zone->vm_numa_event[item], 0); in zero_zone_numa_counters()
45 per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_numa_event[item] in zero_zone_numa_counters()
121 ret[i] += this->event[i]; in sum_vm_events()
127 * The result is unavoidably approximate - it can change
150 count_vm_events(i, fold_state->event[i]); in vm_events_fold_cpu()
151 fold_state->event[i] = 0; in vm_events_fold_cpu()
178 pzstats = per_cpu_ptr(zone->per_cpu_zonestats, cpu); in fold_vm_zone_numa_events()
180 zone_numa_events[item] += xchg(&pzstats->vm_numa_event[item], 0); in fold_vm_zone_numa_events()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Datombios.h2 * Copyright 2006-2007 Advanced Micro Devices, Inc.
214 UCHAR uaFirmWareSignature[4]; /*Signature to distinguish between Atombios and non-atombios,
245 USHORT GetDisplaySurfaceSize; //Atomic Table, Used by Bios when enabling HW ICON
246 …USHORT ASIC_RegistersInit; //Atomic Table, indirectly used by various SW comp…
247 USHORT VRAM_BlockVenderDetection; //Atomic Table, used only by Bios
249 …USHORT MemoryControllerInit; //Atomic Table, indirectly used by various SW comp…
251 …USHORT MemoryParamAdjust; //Atomic Table, indirectly used by various SW components,cal…
253 USHORT GPIOPinControl; //Atomic Table, only used by Bios
257 …USHORT EnableDispPowerGating; //Atomic Table, indirectly used by various SW comp…
258 …USHORT ResetMemoryDLL; //Atomic Table, indirectly used by various SW comp…
[all …]
/linux/drivers/gpu/drm/amd/include/
H A Datombios.h2 * Copyright 2006-2007 Advanced Micro Devices, Inc.
107 #define ATOM_SCALER_DISABLE 0 //For Fudo, it's bypass and auto-cengter & no replication
108 #define ATOM_SCALER_CENTER 1 //For Fudo, it's bypass and auto-center & auto replication
110 #define ATOM_SCALER_MULTI_EX 3 //For Fudo only, it's multi-tap mode only used to drive TV or CV,…
222 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios,
245 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios,
274 USHORT GetDisplaySurfaceSize; //Atomic Table, Used by Bios when enabling HW ICON
275 …USHORT ASIC_RegistersInit; //Atomic Table, indirectly used by various SW comp…
276 USHORT VRAM_BlockVenderDetection; //Atomic Table, used only by Bios
278 …USHORT MemoryControllerInit; //Atomic Table, indirectly used by various SW comp…
[all …]
/linux/include/linux/
H A Dscmi_protocol.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2018-2021 ARM Ltd.
21 * struct scmi_revision_info - version information structure
30 * @impl_ver: A vendor-specific implementation version.
32 * @sub_vendor_id: A sub-vendor identifier(Null terminated ASCII string)
87 * struct scmi_clk_proto_ops - represents the various operations provided
112 bool atomic);
114 bool atomic);
116 bool *enabled, bool atomic);
119 u32 *oem_val, u32 *attributes, bool atomic);
[all …]
/linux/drivers/i2c/busses/
H A Di2c-imx.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2002 Motorola GSG-China
28 #include <linux/dma-mapping.h>
46 #include <linux/platform_data/i2c-imx.h>
53 #define DRIVER_NAME "imx-i2c"
58 * Enable DMA if transfer byte size is bigger than this threshold.
108 * - write zero to clear(w0c) INT flag on i.MX,
109 * - but write one to clear(w1c) INT flag on Vybrid.
111 * - set I2CR_IEN bit enable the module on i.MX,
112 * - but clear I2CR_IEN bit enable the module on Vybrid.
[all …]
/linux/kernel/locking/
H A Drwsem.c1 // SPDX-License-Identifier: GPL-2.0
5 * Derived from asm-i386/semaphore.h
7 * Writer lock-stealing by Alex Shi <alex.shi@intel.com>
13 * Rwsem count bit fields re-definition and rwsem rearchitecture by
29 #include <linux/atomic.h>
38 * - Bit 0: RWSEM_READER_OWNED - rwsem may be owned by readers (just a hint)
39 * - Bit 1: RWSEM_NONSPINNABLE - Cannot spin on a reader-owned lock
41 * When the rwsem is reader-owned and a spinning writer has timed out,
50 * for a free or reader-owned rwsem, the owner value may contain
60 * - rwsem is not currently writer owned
[all …]
/linux/drivers/spi/
H A Dspi-pxa2xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <linux/atomic.h>
30 #include "spi-pxa2xx.h"
64 u32 threshold; member
81 /* LPSS offset from drv_data->ioaddr */
83 /* Register offsets from drv_data->lpss_base or -1 */
106 .reg_capabilities = -1,
116 .reg_capabilities = -1,
126 .reg_capabilities = -1,
135 .reg_general = -1,
[all …]
H A Dspi-dw-core.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/dma-mapping.h>
18 #include <linux/spi/spi-mem.h>
23 #include "spi-dw.h"
66 snprintf(name, 32, "dw_spi%d", dws->host->bus_num); in dw_spi_debugfs_init()
67 dws->debugfs = debugfs_create_dir(name, NULL); in dw_spi_debugfs_init()
69 dws->regset.regs = dw_spi_dbgfs_regs; in dw_spi_debugfs_init()
70 dws->regset.nregs = ARRAY_SIZE(dw_spi_dbgfs_regs); in dw_spi_debugfs_init()
71 dws->regset.base = dws->regs; in dw_spi_debugfs_init()
72 debugfs_create_regset32("registers", 0400, dws->debugfs, &dws->regset); in dw_spi_debugfs_init()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_vblank.c91 * "Physical top of display" is the reference point for the high-precision/
109 * tear-free display, users must synchronize page flips and/or rendering to
114 * involves filtering out spurious interrupts, keeping race-free blanking
115 * counters, coping with counter wrap-around and resets and keeping use counts.
133 * On many hardware disabling the vblank interrupt cannot be done in a race-free
139 * Drivers for hardware without support for vertical-blanking interrupts
140 * must not call drm_vblank_init(). For such drivers, atomic helpers will
151 /* Threshold in nanoseconds for detection of redundant
166 MODULE_PARM_DESC(vblankoffdelay, "Delay until vblank irq auto-disable [msecs] (0: never disable, <0…
172 return &dev->vblank[pipe]; in drm_vblank_crtc()
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Di9xx_wm.c1 // SPDX-License-Identifier: MIT
47 {1, 0, 800, 400, 3382, 33382, 3983, 33983}, /* DDR2-400 SC */
48 {1, 0, 800, 667, 3354, 33354, 3807, 33807}, /* DDR2-667 SC */
49 {1, 0, 800, 800, 3347, 33347, 3763, 33763}, /* DDR2-800 SC */
50 {1, 1, 800, 667, 6420, 36420, 6873, 36873}, /* DDR3-667 SC */
51 {1, 1, 800, 800, 5902, 35902, 6318, 36318}, /* DDR3-800 SC */
53 {1, 0, 667, 400, 3400, 33400, 4021, 34021}, /* DDR2-400 SC */
54 {1, 0, 667, 667, 3372, 33372, 3845, 33845}, /* DDR2-667 SC */
55 {1, 0, 667, 800, 3386, 33386, 3822, 33822}, /* DDR2-800 SC */
56 {1, 1, 667, 667, 6438, 36438, 6911, 36911}, /* DDR3-667 SC */
[all …]
/linux/include/net/
H A Dmac80211.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * mac80211 <-> driver interface
5 * Copyright 2002-2005, Devicescape Software, Inc.
6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
7 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net>
8 * Copyright 2013-2014 Intel Mobile Communications GmbH
9 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH
10 * Copyright (C) 2018 - 2024 Intel Corporation
31 * only partial functionality in hard- or firmware. This document
32 * defines the interface between mac80211 and low-level hardware
[all …]
H A Dip_vs.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #include <linux/atomic.h> /* for struct atomic_t */
40 return net->ipvs; in net_ipvs()
74 iphdr->hdr_flags = hdr_flags; in ip_vs_fill_iph_skb_off()
75 iphdr->off = offset; in ip_vs_fill_iph_skb_off()
85 iphdr->saddr.in6 = iph->saddr; in ip_vs_fill_iph_skb_off()
86 iphdr->daddr.in6 = iph->daddr; in ip_vs_fill_iph_skb_off()
88 iphdr->len = offset; in ip_vs_fill_iph_skb_off()
89 iphdr->flags = 0; in ip_vs_fill_iph_skb_off()
90 iphdr->protocol = ipv6_find_hdr(skb, &iphdr->len, -1, in ip_vs_fill_iph_skb_off()
[all …]
/linux/drivers/platform/surface/aggregator/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Provides access to a SAM-over-SSH connected EC via a controller device.
10 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
14 #include <linux/atomic.h>
37 /* -- Static controller reference. ------------------------------------------ */
47 * ssam_get_controller() - Get reference to SSAM controller.
65 if (WARN_ON(!kref_get_unless_zero(&ctrl->kref))) in ssam_get_controller()
75 * ssam_try_set_controller() - Try to set the main controller reference.
81 * Return: Returns zero on success or %-EEXIST if the reference has already
92 status = -EEXIST; in ssam_try_set_controller()
[all …]
/linux/drivers/mmc/host/
H A Ddw_mmc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
17 #include <linux/fault-inject.h>
60 * struct dw_mci - MMC controller state shared between all slots
78 * @dma_64bit_address: Whether DMA supports 64-bit address mode or not.
81 * @dma_ops: Pointer to platform-specific DMA callbacks.
85 * @dms: structure of slave-dma private data.
135 * @lock is a softirq-safe spinlock protecting @queue as well as
142 * @irq_lock is an irq-safe spinlock protecting the INTMASK register
144 * enough to read-modify-write INTMASK and no other locks are grabbed when
147 * @pending_events and @completed_events are accessed using atomic bit
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c1 // SPDX-License-Identifier: GPL-2.0
20 { TIME_SYNC, { 4, -1 }, { 0, 0 }},
21 { ONE_PPS, { -1, 5 }, { 0, 11 }},
30 { TIME_SYNC, { 4, -1 }, { 11, 0 }},
31 { ONE_PPS, { -1, 5 }, { 0, 9 }},
40 { ONE_PPS, { -1, 5 }, { 0, 1 }},
53 { GNSS, { 1, -1 }, { 0, 0 }},
55 { UFL1, { -1, 0 }, { 0, 1 }},
57 { UFL2, { 3, -1 }, { 0, 0 }},
62 return !pf->adapter ? NULL : pf->adapter->ctrl_pf; in ice_get_ctrl_pf()
[all …]
/linux/drivers/net/wireless/ath/ath5k/
H A Dreset.c2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com>
4 * Copyright (c) 2007-2008 Luis Rodriguez <mcgrof@winlab.rutgers.edu>
5 * Copyright (c) 2007-2008 Pavel Roskin <proski@gnu.org>
6 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com>
30 #include <linux/pci.h> /* To determine if a card is pci-e */
52 * ath5k_hw_register_timeout() - Poll a register for a flag/field change
64 * Returns -EAGAIN if we exceeded AR5K_TUNE_REGISTER_TIMEOUT * 15us or 0
73 for (i = AR5K_TUNE_REGISTER_TIMEOUT; i > 0; i--) { in ath5k_hw_register_timeout()
82 return (i <= 0) ? -EAGAIN : 0; in ath5k_hw_register_timeout()
[all …]

1234