Home
last modified time | relevance | path

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

1234

/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 -
[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 - lo in xlog_cil_set_iclog_hdr_count()
[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/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->mesh_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->mesh_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/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/mm/
H A Dvmstat.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * Copyright (C) 2008-2014 Christoph Lameter
45 atomic_long_set(&zone->vm_numa_event[item], 0); in zero_zone_numa_counters()
47 per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_numa_event[item] in zero_zone_numa_counters()
124 ret[i] += this->event[i]; in sum_vm_events()
130 * The result is unavoidably approximate - it can change
153 count_vm_events(i, fold_state->event[i]); in vm_events_fold_cpu()
154 fold_state->event[i] = 0; in vm_events_fold_cpu()
181 pzstats = per_cpu_ptr(zone->per_cpu_zonestats, cpu); in fold_vm_zone_numa_events()
183 zone_numa_events[item] += xchg(&pzstats->vm_numa_event[item], 0); in fold_vm_zone_numa_events()
[all …]
H A Dmemcontrol-v1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <linux/backing-dev.h>
17 #include "memcontrol-v1.h"
20 * Cgroups above their limits are maintained in a RB-Tree, independent of
113 struct rb_node **p = &mctz->rb_root.rb_node; in __mem_cgroup_insert_exceeded()
118 if (mz->on_tree) in __mem_cgroup_insert_exceeded()
121 mz->usage_in_excess = new_usage_in_excess; in __mem_cgroup_insert_exceeded()
122 if (!mz->usage_in_excess) in __mem_cgroup_insert_exceeded()
128 if (mz->usage_in_excess < mz_node->usage_in_excess) { in __mem_cgroup_insert_exceeded()
129 p = &(*p)->rb_left; in __mem_cgroup_insert_exceeded()
[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/drivers/i2c/busses/
H A Di2c-imx.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2002 Motorola GSG-China
29 #include <linux/dma-mapping.h>
47 #include <linux/platform_data/i2c-imx.h>
54 #define DRIVER_NAME "imx-i2c"
59 * Enable DMA if transfer byte size is bigger than this threshold.
109 * - write zero to clear(w0c) INT flag on i.MX,
110 * - but write one to clear(w1c) INT flag on Vybrid.
112 * - set I2CR_IEN bit enable the module on i.MX,
113 * - 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>
39 * - Bit 0: RWSEM_READER_OWNED - rwsem may be owned by readers (just a hint)
40 * - Bit 1: RWSEM_NONSPINNABLE - Cannot spin on a reader-owned lock
42 * When the rwsem is reader-owned and a spinning writer has timed out,
51 * for a free or reader-owned rwsem, the owner value may contain
61 * - rwsem is not currently writer owned
[all …]
/linux/drivers/firmware/arm_scmi/
H A Ddriver.c1 // SPDX-License-Identifier: GPL-2.0
7 * provides a mechanism for inter-processor communication between SCP's
14 * Copyright (C) 2018-2025 ARM Ltd.
25 #include <linux/io-64-nonatomic-hi-lo.h>
48 #define SCMI_VENDOR_MODULE_ALIAS_FMT "scmi-protocol-0x%02x-%s"
64 * struct scmi_xfers_info - Structure to manage transfer information
72 * a number of xfers equal to the maximum allowed in-flight
75 * currently in-flight messages.
86 * struct scmi_protocol_instance - Describe an initialized protocol instance.
89 * @gid: A reference for per-protocol devres management.
[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 can
142 * vertical-blanking regions, the timer helps DRM clients and compositors to
145 * drm_crtc_vblank_cancel_timer() as part of their atomic mode setting.
148 * Drivers without support for vertical-blanking interrupts nor timers must
149 * not call drm_vblank_init(). For these drivers, atomic helper
[all...]
/linux/kernel/sched/
H A Dpsi.c1 // SPDX-License-Identifier: GPL-2.0
34 * In the FULL state of a given resource, all non-idle tasks are
44 * CPU, productive means an on-CPU task.
48 * FULL means all non-idle tasks in the cgroup are delayed on the CPU
64 * unrealized due to resource contention *also* scales with non-idle
83 * we have to base our calculation on the number of non-idle tasks in
91 * FULL = (threads - min(nr_productive_tasks, threads)) / threads
97 * FULL = (256 - min(256, 256)) / 256 = 0%
99 * For the 1 out of 4 memory-delayed tasks, this yields:
103 * FULL = (4 - min(3, 4)) / 4 = 25%
[all …]
/linux/drivers/net/ethernet/sfc/
H A Drx_common.c1 // SPDX-License-Identifier: GPL-2.0-only
25 "RX descriptor ring refill threshold (%)");
29 * This must be at least 1 to prevent overflow, plus one packet-worth
37 struct efx_nic *efx = rx_queue->efx; in efx_reuse_page()
42 if (unlikely(!rx_queue->page_ring)) in efx_reuse_page()
44 index = rx_queue->page_remove & rx_queue->page_ptr_mask; in efx_reuse_page()
45 page = rx_queue->page_ring[index]; in efx_reuse_page()
49 rx_queue->page_ring[index] = NULL; in efx_reuse_page()
51 if (rx_queue->page_remove != rx_queue->page_add) in efx_reuse_page()
52 ++rx_queue->page_remove; in efx_reuse_page()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Drx_common.c1 // SPDX-License-Identifier: GPL-2.0-only
25 "RX descriptor ring refill threshold (%)");
29 * This must be at least 1 to prevent overflow, plus one packet-worth
40 struct efx_nic *efx = rx_queue->efx; in efx_reuse_page()
45 if (unlikely(!rx_queue->page_ring)) in efx_reuse_page()
47 index = rx_queue->page_remove & rx_queue->page_ptr_mask; in efx_reuse_page()
48 page = rx_queue->page_ring[index]; in efx_reuse_page()
52 rx_queue->page_ring[index] = NULL; in efx_reuse_page()
54 if (rx_queue->page_remove != rx_queue->page_add) in efx_reuse_page()
55 ++rx_queue->page_remove; in efx_reuse_page()
[all …]
/linux/arch/x86/mm/
H A Dtlb.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <asm/nospec-branch.h>
40 * TLB flushing, formerly SMP-only
71 * Instead we have a small per-cpu array of ASIDs and cache the last few mm's
78 * ASID - [0, TLB_NR_DYN_ASIDS-1]
80 * [TLB_NR_DYN_ASIDS, MAX_ASID_AVAILABLE-1]
83 * kPCID - [1, MAX_ASID_AVAILABLE]
87 * uPCID - [2048 + 1, 2048 + MAX_ASID_AVAILABLE]
104 #define CR3_AVAIL_PCID_BITS (X86_CR3_PCID_BITS - PTI_CONSUMED_PCID_BITS)
107 * ASIDs are zero-based: 0->MAX_AVAIL_ASID are valid. -1 below to account
[all …]
/linux/drivers/spi/
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->ctlr->bus_num); in dw_spi_debugfs_init()
67 dws->debugf in dw_spi_debugfs_init()
619 unsigned long ns, us; dw_spi_wait_mem_op_done() local
[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/net/ethernet/intel/ice/
H A Dice_ptp.c1 // SPDX-License-Identifier: GPL-2.0
19 { TIME_SYNC, { 4, -1 }, { 0, 0 }},
20 { ONE_PPS, { -1, 5 }, { 0, 11 }},
29 { TIME_SYNC, { 4, -1 }, { 11, 0 }},
30 { ONE_PPS, { -1, 5 }, { 0, 9 }},
39 { ONE_PPS, { -1, 5 }, { 0, 1 }},
51 { SDP0, { -1, 0 }, { 0, 1 }},
52 { SDP1, { 1, -
1362 ice_ptp_cfg_phy_interrupt(struct ice_pf * pf,bool ena,u32 threshold) ice_ptp_cfg_phy_interrupt() argument
[all...]
H A Dice_ptp_hw.c1 // SPDX-License-Identifier: GPL-2.0
24 { "CVL-SDP22", ZL_REF0P, DPLL_PIN_TYPE_INT_OSCILLATOR,
26 { "CVL-SDP20", ZL_REF0N, DPLL_PIN_TYPE_INT_OSCILLATOR,
28 { "C827_0-RCLKA", ZL_REF1P, DPLL_PIN_TYPE_MUX, 0, },
29 { "C827_0-RCLKB", ZL_REF1N, DPLL_PIN_TYPE_MUX, 0, },
34 { "GNSS-1PPS", ZL_REF4P, DPLL_PIN_TYPE_GNSS,
39 { "CVL-SDP22", ZL_REF0P, DPLL_PIN_TYPE_INT_OSCILLATOR,
41 { "CVL-SDP20", ZL_REF0N, DPLL_PIN_TYPE_INT_OSCILLATOR,
43 { "C827_0-RCLKA", ZL_REF1P, DPLL_PIN_TYPE_MUX, },
44 { "C827_0-RCLKB", ZL_REF1N, DPLL_PIN_TYPE_MUX, },
[all …]
/linux/include/net/
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/block/zram/
H A Dzram_drv.c10 * Released under the terms of 3-clause BSD License
27 #include <linux/backing-dev.h>
63 #define slot_dep_map(zram, index) (&(zram)->table[(index)].dep_map)
69 lockdep_init_map(slot_dep_map(zram, index), "zram->table[index].lock", in zram_slot_lock_init()
82 * 4) Use TRY lock variant when in atomic context
83 * - must check return value and handle locking failers
87 unsigned long *lock = &zram->table[index].flags; in zram_slot_trylock()
100 unsigned long *lock = &zram->table[index].flags; in zram_slot_lock()
109 unsigned long *lock = &zram->table[index].flags; in zram_slot_unlock()
117 return zram->disksize; in init_done()
[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 …]
/linux/drivers/scsi/
H A Dsd.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - Drew Eckhardt <drew@colorado.edu> original
11 * - Eric Youngdale <eric@andante.org> add scatter-gather, multiple
13 * Support loadable low-level scsi drivers.
14 * - Jirka Hanika <geo@ff.cuni.cz> support more scsi disks using
16 * - Richard Gooch <rgooch@atnf.csiro.au> support devfs.
17 * - Torben Mathiasen <tmm@image.dk> Resource allocation fixes in
19 * - Alex Davis <letmein@erols.com> Fix problem where partition info
22 * - Douglas Gilbert <dgilbert@interlog.com> cleanup for lk 2.5.x
23 * - Badari Pulavarty <pbadari@us.ibm.com>, Matthew Wilcox
[all …]

1234