Home
last modified time | relevance | path

Searched full:locked (Results 1 – 25 of 3195) sorted by relevance

12345678910>>...128

/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
Dbridge_locked_port.sh102 bridge link set dev $swp1 locked on
112 bridge link set dev $swp1 locked off
118 log_test "Locked port ipv4"
133 bridge link set dev $swp1 locked on
142 bridge link set dev $swp1 locked off
150 log_test "Locked port vlan"
161 bridge link set dev $swp1 locked on
170 bridge link set dev $swp1 locked off
176 log_test "Locked port ipv6"
187 bridge link set dev $swp1 learning on locked on
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/dsa/
Dbridge_locked_port.sh102 bridge link set dev $swp1 locked on
112 bridge link set dev $swp1 locked off
118 log_test "Locked port ipv4"
133 bridge link set dev $swp1 locked on
142 bridge link set dev $swp1 locked off
150 log_test "Locked port vlan"
161 bridge link set dev $swp1 locked on
170 bridge link set dev $swp1 locked off
176 log_test "Locked port ipv6"
187 bridge link set dev $swp1 learning on locked on
[all …]
/kernel/linux/linux-6.6/Documentation/i2c/
Di2c-topology.rst40 mux-locked or parent-locked muxes.
43 Mux-locked muxes
46 Mux-locked muxes does not lock the entire parent adapter during the
48 adapter are locked. Mux-locked muxes are mostly interesting if the
50 their tasks. Since the parent adapter is not fully locked during the
55 Mux-locked Example
62 | root |--+--| locked | '--------'
87 Mux-locked caveats
90 When using a mux-locked mux, be aware of the following restrictions:
93 If you build a topology with a mux-locked mux being the parent
[all …]
/kernel/linux/linux-5.10/Documentation/i2c/
Di2c-topology.rst38 mux-locked or parent-locked muxes. As is evident from below, it can be
39 useful to know if a mux is mux-locked or if it is parent-locked. The
45 i2c-arb-gpio-challenge Parent-locked
46 i2c-mux-gpio Normally parent-locked, mux-locked iff
49 i2c-mux-gpmux Normally parent-locked, mux-locked iff
51 i2c-mux-ltc4306 Mux-locked
52 i2c-mux-mlxcpld Parent-locked
53 i2c-mux-pca9541 Parent-locked
54 i2c-mux-pca954x Parent-locked
55 i2c-mux-pinctrl Normally parent-locked, mux-locked iff
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dttm_lock.c63 bool locked = false; in __ttm_read_lock() local
68 locked = true; in __ttm_read_lock()
71 return locked; in __ttm_read_lock()
86 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) in __ttm_read_trylock() argument
90 *locked = false; in __ttm_read_trylock()
96 *locked = true; in __ttm_read_trylock()
108 bool locked; in ttm_read_trylock() local
112 (lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
114 wait_event(lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
117 BUG_ON(locked); in ttm_read_trylock()
[all …]
/kernel/liteos_a/kernel/include/
Dlos_rwlock.h115 …* <li>The function fails if the rwlock that is waited on is already locked by another thread when …
120 * <li>A recursive rwlock can be locked more than once by the same thread.</li>
128 * @retval #LOS_EINTR The rwlock is being locked during an interrupt.
130 * @retval #LOS_EDEADLK Rwlock error check failed or System locked task scheduling.
133 * @retval #LOS_OK The rwlock is successfully locked.
149 …* <li>The function fails if the rwlock that is waited on is already locked by another thread when …
154 * <li>A recursive rwlock can be locked more than once by the same thread.</li>
161 * @retval #LOS_EINTR The rwlock is being locked during an interrupt.
164 * @retval #LOS_EDEADLK rwlock error check failed or System locked task scheduling.
167 * @retval #LOS_OK The rwlock is successfully locked.
[all …]
Dlos_mux.h150 …* <li>The function fails if the mutex that is waited on is already locked by another thread when t…
155 * <li>A recursive mutex can be locked more than once by the same thread.</li>
163 * @retval #LOS_EINTR The mutex is being locked during an interrupt.
166 * @retval #LOS_EDEADLK Mutex error check failed or System locked task scheduling.
168 * @retval #LOS_OK The mutex is successfully locked.
184 …* <li>The function fails if the mutex that is waited on is already locked by another thread when t…
189 * <li>A recursive mutex can be locked more than once by the same thread.</li>
196 * @retval #LOS_EINTR The mutex is being locked during an interrupt.
199 * @retval #LOS_EDEADLK Mutex error check failed or System locked task scheduling.
201 * @retval #LOS_OK The mutex is successfully locked.
[all …]
/kernel/linux/linux-6.6/include/drm/
Ddrm_exec.h29 * @num_objects: number of objects locked
39 * @objects: array of the locked objects
49 * @prelocked: already locked GEM object due to contention
59 * Return: Pointer to the locked object corresponding to @index if
60 * index is within the number of locked objects. NULL otherwise.
69 * drm_exec_for_each_locked_object - iterate over all the locked objects
74 * Iterate over all the locked GEM objects inside the drm_exec object.
80 * drm_exec_for_each_locked_object_reverse - iterate over all the locked
86 * Iterate over all the locked GEM objects inside the drm_exec object in
95 * drm_exec_until_all_locked - loop until all GEM objects are locked
[all …]
/kernel/linux/linux-6.6/kernel/locking/
Dqspinlock_paravirt.h91 (cmpxchg_acquire(&lock->locked, 0, _Q_LOCKED_VAL) == 0)) { in pv_hybrid_queued_unfair_trylock()
121 return !READ_ONCE(lock->locked) && in trylock_clear_pending()
142 * Try to clear pending bit & set locked bit in trylock_clear_pending()
289 * Wait for node->locked to become true, halt the vcpu after a short spin.
302 if (READ_ONCE(node->locked)) in pv_wait_node()
312 * Order pn->state vs pn->locked thusly: in pv_wait_node()
314 * [S] pn->state = vcpu_halted [S] next->locked = 1 in pv_wait_node()
316 * [L] pn->locked [RmW] pn->state = vcpu_hashed in pv_wait_node()
322 if (!READ_ONCE(node->locked)) { in pv_wait_node()
336 * If the locked flag is still not set after wakeup, it is a in pv_wait_node()
[all …]
Dmcs_spinlock.h20 int locked; /* 1 if lock acquired */ member
61 * on this node->locked until the previous lock holder sets the node->locked
70 node->locked = 0; in mcs_spin_lock()
82 * Lock acquired, don't need to set node->locked to 1. Threads in mcs_spin_lock()
83 * only spin on its own node->locked value for lock acquisition. in mcs_spin_lock()
85 * and does not proceed to spin on its own node->locked, this in mcs_spin_lock()
87 * audit lock status, then set node->locked value here. in mcs_spin_lock()
94 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock()
118 arch_mcs_spin_unlock_contended(&next->locked); in mcs_spin_unlock()
/kernel/linux/linux-5.10/kernel/locking/
Dqspinlock_paravirt.h91 (cmpxchg_acquire(&lock->locked, 0, _Q_LOCKED_VAL) == 0)) { in pv_hybrid_queued_unfair_trylock()
121 return !READ_ONCE(lock->locked) && in trylock_clear_pending()
142 * Try to clear pending bit & set locked bit in trylock_clear_pending()
289 * Wait for node->locked to become true, halt the vcpu after a short spin.
302 if (READ_ONCE(node->locked)) in pv_wait_node()
312 * Order pn->state vs pn->locked thusly: in pv_wait_node()
314 * [S] pn->state = vcpu_halted [S] next->locked = 1 in pv_wait_node()
316 * [L] pn->locked [RmW] pn->state = vcpu_hashed in pv_wait_node()
322 if (!READ_ONCE(node->locked)) { in pv_wait_node()
336 * If the locked flag is still not set after wakeup, it is a in pv_wait_node()
[all …]
Dmcs_spinlock.h20 int locked; /* 1 if lock acquired */ member
61 * on this node->locked until the previous lock holder sets the node->locked
70 node->locked = 0; in mcs_spin_lock()
82 * Lock acquired, don't need to set node->locked to 1. Threads in mcs_spin_lock()
83 * only spin on its own node->locked value for lock acquisition. in mcs_spin_lock()
85 * and does not proceed to spin on its own node->locked, this in mcs_spin_lock()
87 * audit lock status, then set node->locked value here. in mcs_spin_lock()
94 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock()
118 arch_mcs_spin_unlock_contended(&next->locked); in mcs_spin_unlock()
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/resctrl/
Dpseudo_lock.c44 * pseudo-locked regions.
69 * pseudo-locking. This includes testing to ensure pseudo-locked regions
71 * as well as that these pseudo-locked regions can maintain their low cache
154 * @minor: The minor number of the device representing pseudo-locked region
157 * pseudo-locked region it belongs to. This is done by matching the minor
158 * number of the device to the pseudo-locked region it belongs.
160 * Minor numbers are assigned at the time a pseudo-locked region is associated
163 * Return: On success return pointer to resource group owning the pseudo-locked
181 * @list: Entry within the @pm_reqs list for a pseudo-locked region
202 * @plr: Pseudo-locked region
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
Dpseudo_lock.c44 * pseudo-locked regions.
54 * pseudo-locking. This includes testing to ensure pseudo-locked regions
56 * as well as that these pseudo-locked regions can maintain their low cache
139 * @minor: The minor number of the device representing pseudo-locked region
142 * pseudo-locked region it belongs to. This is done by matching the minor
143 * number of the device to the pseudo-locked region it belongs.
145 * Minor numbers are assigned at the time a pseudo-locked region is associated
148 * Return: On success return pointer to resource group owning the pseudo-locked
166 * @list: Entry within the @pm_reqs list for a pseudo-locked region
238 * All content of the pseudo-locked region is reset - any memory allocated
[all …]
/kernel/liteos_a/kernel/extended/plimit/
Dlos_memlimit.c162 #define MEM_LIMIT_LOCK(state, locked) do { \ argument
164 locked = TRUE; \
170 #define MEM_LIMIT_UNLOCK(state, locked) do { \ argument
171 if (!locked) { \
179 BOOL locked = FALSE; in OsMemLimitCheckAndMemAdd() local
180 MEM_LIMIT_LOCK(intSave, locked); in OsMemLimitCheckAndMemAdd()
184 MEM_LIMIT_UNLOCK(intSave, locked); in OsMemLimitCheckAndMemAdd()
191 MEM_LIMIT_UNLOCK(intSave, locked); in OsMemLimitCheckAndMemAdd()
201 MEM_LIMIT_UNLOCK(intSave, locked); in OsMemLimitCheckAndMemAdd()
208 BOOL locked = FALSE; in OsMemLimitMemFree() local
[all …]
/kernel/linux/linux-5.10/scripts/coccinelle/locks/
Ddouble_lock.cocci17 @locked@
42 position p1 != locked.p1;
43 position locked.p;
45 expression x <= locked.E1;
46 expression E,locked.E1;
65 expression x <= locked.E1;
66 expression locked.E1;
69 position locked.p,p1,p2;
Dcall_kern.cocci39 @locked exists@
74 @depends on locked && patch@
81 @depends on locked && !patch@
90 p1 << locked.p1;
91 p2 << locked.p2;
101 p1 << locked.p1;
102 p2 << locked.p2;
/kernel/linux/linux-6.6/scripts/coccinelle/locks/
Ddouble_lock.cocci17 @locked@
42 position p1 != locked.p1;
43 position locked.p;
45 expression x <= locked.E1;
46 expression E,locked.E1;
65 expression x <= locked.E1;
66 expression locked.E1;
69 position locked.p,p1,p2;
Dcall_kern.cocci39 @locked exists@
74 @depends on locked && patch@
81 @depends on locked && !patch@
90 p1 << locked.p1;
91 p2 << locked.p2;
101 p1 << locked.p1;
102 p2 << locked.p2;
/kernel/linux/linux-6.6/drivers/thermal/intel/
Dintel_quark_dts_thermal.c96 /* If DTS not locked, all trip points are configurable */
98 /* If DTS locked, all trip points are not configurable */
104 bool locked; member
134 if (!aux_entry->locked) { in soc_dts_enable()
141 pr_info("DTS is locked. Cannot enable DTS\n"); in soc_dts_enable()
162 if (!aux_entry->locked) { in soc_dts_disable()
170 pr_info("DTS is locked. Cannot disable DTS\n"); in soc_dts_disable()
211 if (aux_entry->locked) { in update_trip_temp()
305 if (!aux_entry->locked) { in free_soc_dts()
334 /* Check if DTS register is locked */ in alloc_soc_dts()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/intel/
Dintel_quark_dts_thermal.c95 /* If DTS not locked, all trip points are configurable */
97 /* If DTS locked, all trip points are not configurable */
103 bool locked; member
132 if (!aux_entry->locked) { in soc_dts_enable()
139 pr_info("DTS is locked. Cannot enable DTS\n"); in soc_dts_enable()
160 if (!aux_entry->locked) { in soc_dts_disable()
168 pr_info("DTS is locked. Cannot disable DTS\n"); in soc_dts_disable()
220 if (aux_entry->locked) { in update_trip_temp()
328 if (!aux_entry->locked) { in free_soc_dts()
357 /* Check if DTS register is locked */ in alloc_soc_dts()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dlocks.h58 bool locked; member
65 return __sync_bool_compare_and_swap(&lock->locked, false, true); in lock_impl_trylock()
68 bool old_locked = lock->locked; in lock_impl_trylock()
69 lock->locked = true; in lock_impl_trylock()
96 BUG_ON(!__sync_bool_compare_and_swap(&lock->locked, true, false)); in lock_impl_unlock()
102 bool old_locked = lock->locked; in lock_impl_unlock()
103 lock->locked = false; in lock_impl_unlock()
112 lock->locked = false; in lock_impl_init()
115 #define LOCK_IMPL_INITIALIZER {.locked = false}
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/
Dotp.c188 /* no need to write the register if region is already locked */ in spi_nor_otp_lock_sr2()
253 int ret, locked; in spi_nor_mtd_otp_info() local
266 locked = ops->is_locked(nor, i); in spi_nor_mtd_otp_info()
267 if (locked < 0) { in spi_nor_mtd_otp_info()
268 ret = locked; in spi_nor_mtd_otp_info()
272 buf->locked = !!locked; in spi_nor_mtd_otp_info()
289 int locked; in spi_nor_mtd_otp_range_is_locked() local
292 * If any of the affected OTP regions are locked the entire range is in spi_nor_mtd_otp_range_is_locked()
293 * considered locked. in spi_nor_mtd_otp_range_is_locked()
298 locked = ops->is_locked(nor, region); in spi_nor_mtd_otp_range_is_locked()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_exec.c15 * unlocks all previously locked GEM objects and locks the contended one first
18 * After an object is locked fences slots can optionally be reserved on the
73 * Initialize the object and make sure that we can track locked objects.
92 * Unlock all locked objects, drop the references to objects and free all memory
112 * objects locked.
133 /* Track the locked object in the array */
155 /* Make sure the contended object is locked first */
198 * already locked (can be suppressed by setting the DRM_EXEC_IGNORE_DUPLICATES
250 * Unlock the GEM object and remove it from the collection of locked objects.
251 * Should only be used to unlock the most recently locked objects. It's not time
[all …]
/kernel/linux/linux-5.10/Documentation/x86/
Dresctrl_ui.rst118 Corresponding region is pseudo-locked. No
224 When the resource group is in pseudo-locked mode this file will
226 pseudo-locked region.
248 cache pseudo-locked region is created by first writing
250 pseudo-locked region's schemata to the resource group's "schemata"
251 file. On successful pseudo-locked region creation the mode will
252 automatically change to "pseudo-locked".
490 pseudo-locked memory is made accessible to user space where an
494 The creation of a cache pseudo-locked region is triggered by a request
496 to be pseudo-locked. The cache pseudo-locked region is created as follows:
[all …]

12345678910>>...128