| /linux-6.15/Documentation/i2c/ |
| H A D | i2c-topology.rst | 40 mux-locked or parent-locked muxes. 43 Mux-locked muxes 48 adapter are locked. Mux-locked muxes are mostly interesting if the 55 Mux-locked Example 95 parent-locked mux that the root adapter is locked during the 193 Parent-locked mux as parent of parent-locked mux 200 | root |--+--| locked | | locked | '--------' 217 Mux-locked mux as parent of mux-locked mux 240 Mux-locked mux as parent of parent-locked mux 274 Parent-locked mux as parent of mux-locked mux [all …]
|
| /linux-6.15/kernel/locking/ |
| H A D | qspinlock_paravirt.h | 124 return !READ_ONCE(lock->locked) && in trylock_clear_pending() 299 if (READ_ONCE(node->locked)) in pv_wait_node() 319 if (!READ_ONCE(node->locked)) { in pv_wait_node() 340 !READ_ONCE(node->locked)); in pv_wait_node() 387 WRITE_ONCE(lock->locked, _Q_SLOW_VAL); in pv_kick_node() 458 WRITE_ONCE(lock->locked, _Q_LOCKED_VAL); in pv_wait_head_or_lock() 466 pv_wait(&lock->locked, _Q_SLOW_VAL); in pv_wait_head_or_lock() 503 if (unlikely(locked != _Q_SLOW_VAL)) { in __pv_queued_spin_unlock_slowpath() 529 smp_store_release(&lock->locked, 0); in __pv_queued_spin_unlock_slowpath() 545 u8 locked = _Q_LOCKED_VAL; in __pv_queued_spin_unlock() local [all …]
|
| H A D | osq_lock.c | 17 int locked; /* 1 if lock acquired */ member 100 node->locked = 0; in osq_lock() 146 if (smp_cond_load_relaxed(&node->locked, VAL || need_resched() || in osq_lock() 173 if (smp_load_acquire(&node->locked)) in osq_lock() 227 WRITE_ONCE(next->locked, 1); in osq_unlock() 233 WRITE_ONCE(next->locked, 1); in osq_unlock()
|
| H A D | qspinlock.c | 197 smp_cond_load_acquire(&lock->locked, !VAL); in queued_spin_lock_slowpath() 251 node->locked = 0; in queued_spin_lock_slowpath() 291 arch_mcs_spin_lock_contended(&node->locked); in queued_spin_lock_slowpath() 326 goto locked; in queued_spin_lock_slowpath() 330 locked: in queued_spin_lock_slowpath() 370 arch_mcs_spin_unlock_contended(&next->locked); in queued_spin_lock_slowpath()
|
| H A D | mcs_spinlock.h | 62 node->locked = 0; in mcs_spin_lock() 86 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock() 110 arch_mcs_spin_unlock_contended(&next->locked); in mcs_spin_unlock()
|
| /linux-6.15/tools/testing/selftests/net/forwarding/ |
| H A D | bridge_locked_port.sh | 102 bridge link set dev $swp1 locked on 112 bridge link set dev $swp1 locked off 133 bridge link set dev $swp1 locked on 142 bridge link set dev $swp1 locked off 161 bridge link set dev $swp1 locked on 170 bridge link set dev $swp1 locked off 187 bridge link set dev $swp1 learning on locked on 195 bridge link set dev $swp1 learning on locked on mab on 226 bridge link set dev $swp1 learning on locked on mab on 262 bridge link set dev $swp1 learning on locked on mab on [all …]
|
| /linux-6.15/scripts/coccinelle/locks/ |
| H A D | double_lock.cocci | 17 @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;
|
| H A D | call_kern.cocci | 39 @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;
|
| /linux-6.15/drivers/net/ethernet/intel/ice/ |
| H A D | ice_dcb_lib.h | 18 int ice_dcb_sw_dflt_cfg(struct ice_pf *pf, bool ets_willing, bool locked); 24 ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked); 26 void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked); 28 int ice_init_pf_dcb(struct ice_pf *pf, bool locked); 93 ice_init_pf_dcb(struct ice_pf *pf, bool __always_unused locked) in ice_init_pf_dcb() argument 102 bool __always_unused locked) in ice_pf_dcb_cfg() argument 131 static inline void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked) { } in ice_pf_dcb_recfg() argument
|
| H A D | ice_dcb_lib.c | 297 ice_ena_vsi(vsi, locked); in ice_dcb_ena_dis_vsi() 299 ice_dis_vsi(vsi, locked); in ice_dcb_ena_dis_vsi() 415 if (!locked) in ice_pf_dcb_cfg() 449 if (!locked) in ice_pf_dcb_cfg() 620 if (ice_pf_dcb_cfg(pf, newcfg, locked)) in ice_dcb_init_cfg() 667 ret = ice_pf_dcb_cfg(pf, dcbcfg, locked); in ice_dcb_sw_dflt_cfg() 740 void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked) in ice_pf_dcb_recfg() argument 786 if (!locked) { in ice_pf_dcb_recfg() 803 int ice_init_pf_dcb(struct ice_pf *pf, bool locked) in ice_init_pf_dcb() argument 831 err = ice_dcb_sw_dflt_cfg(pf, true, locked); in ice_init_pf_dcb() [all …]
|
| /linux-6.15/drivers/media/dvb-frontends/ |
| H A D | lgs8gxx.c | 359 u8 *locked) in lgs8gxx_autolock_gi() argument 393 *locked = 0; in lgs8gxx_autolock_gi() 422 if (locked) in lgs8gxx_auto_detect() 423 goto locked; in lgs8gxx_auto_detect() 430 if (locked) in lgs8gxx_auto_detect() 431 goto locked; in lgs8gxx_auto_detect() 437 if (locked) in lgs8gxx_auto_detect() 438 goto locked; in lgs8gxx_auto_detect() 441 locked: in lgs8gxx_auto_detect() 461 if (!locked) in lgs8gxx_auto_detect() [all …]
|
| H A D | atbm8830.c | 147 static int is_locked(struct atbm_state *priv, u8 *locked) in is_locked() argument 153 if (locked != NULL) in is_locked() 154 *locked = (status == 1); in is_locked() 261 u8 locked = 0; in atbm8830_set_fe() local 277 is_locked(priv, &locked); in atbm8830_set_fe() 278 if (locked != 0) { in atbm8830_set_fe() 329 u8 locked = 0; in atbm8830_read_status() local 335 is_locked(priv, &locked); in atbm8830_read_status() 336 if (locked) { in atbm8830_read_status()
|
| /linux-6.15/mm/ |
| H A D | gup.c | 1156 int *locked) in faultin_page() argument 1201 *locked = 0; in faultin_page() 1424 int *locked) in __get_user_pages() argument 1735 *locked = 1; in __get_user_pages_locked() 1820 *locked = 1; in __get_user_pages_locked() 1849 *locked = 0; in __get_user_pages_locked() 1922 if (locked) in populate_vma_page_range() 1930 NULL, locked ? locked : &local_locked); in populate_vma_page_range() 2043 if (locked) in __mm_populate() 2662 locked ? locked : &local_locked, in get_user_pages_remote() [all …]
|
| H A D | memcontrol-v1.h | 70 bool memcg1_oom_prepare(struct mem_cgroup *memcg, bool *locked); 71 void memcg1_oom_finish(struct mem_cgroup *memcg, bool locked); 106 static inline bool memcg1_oom_prepare(struct mem_cgroup *memcg, bool *locked) { return true; } in memcg1_oom_prepare() argument 107 static inline void memcg1_oom_finish(struct mem_cgroup *memcg, bool locked) {} in memcg1_oom_finish() argument
|
| H A D | mlock.c | 616 unsigned long locked; in do_mlock() local 630 locked = len >> PAGE_SHIFT; in do_mlock() 635 locked += current->mm->locked_vm; in do_mlock() 636 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) { in do_mlock() 643 locked -= count_mm_mlocked_page_nr(current->mm, in do_mlock() 648 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock() 795 unsigned long lock_limit, locked; in user_shm_lock() local 799 locked = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in user_shm_lock() 804 memlock = inc_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked); in user_shm_lock() 807 dec_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked); in user_shm_lock() [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | bpf_arena_spin_lock.h | 36 u8 locked; member 52 int locked; member 195 WRITE_ONCE(lock->locked, _Q_LOCKED_VAL); in set_locked() 296 smp_cond_load_acquire_label(&lock->locked, !VAL, release_err); in arena_spin_lock_slowpath() 336 node->locked = 0; in arena_spin_lock_slowpath() 374 arch_mcs_spin_lock_contended_label(&node->locked, release_node_err); in arena_spin_lock_slowpath() 437 arch_mcs_spin_unlock_contended(&next->locked); in arena_spin_lock_slowpath() 511 smp_store_release(&lock->locked, 0); in arena_spin_unlock()
|
| /linux-6.15/drivers/mtd/spi-nor/ |
| H A D | otp.c | 254 int ret, locked; in spi_nor_mtd_otp_info() local 267 locked = ops->is_locked(nor, i); in spi_nor_mtd_otp_info() 268 if (locked < 0) { in spi_nor_mtd_otp_info() 269 ret = locked; in spi_nor_mtd_otp_info() 273 buf->locked = !!locked; in spi_nor_mtd_otp_info() 290 int locked; in spi_nor_mtd_otp_range_is_locked() local 299 locked = ops->is_locked(nor, region); in spi_nor_mtd_otp_range_is_locked() 301 if (locked) in spi_nor_mtd_otp_range_is_locked() 302 return locked; in spi_nor_mtd_otp_range_is_locked()
|
| /linux-6.15/rust/pin-init/examples/ |
| H A D | mutex.rs | 68 locked: Cell<bool>, field 79 locked: Cell::new(false), in new() 91 if self.locked.get() { in lock() 94 while self.locked.get() { in lock() 103 self.locked.set(true); in lock() 131 self.mtx.locked.set(false); in drop()
|
| /linux-6.15/drivers/thermal/intel/ |
| H A D | intel_quark_dts_thermal.c | 100 bool locked; member 129 if (!aux_entry->locked) { in soc_dts_enable() 157 if (!aux_entry->locked) { in soc_dts_disable() 206 if (aux_entry->locked) { in update_trip_temp() 316 if (!aux_entry->locked) { in free_soc_dts() 351 aux_entry->locked = !!(out & QRK_DTS_LOCK_BIT); in alloc_soc_dts() 354 if (!aux_entry->locked) { in alloc_soc_dts()
|
| /linux-6.15/Documentation/devicetree/bindings/i2c/ |
| H A D | i2c-mux-gpmux.yaml | 49 mux-locked: 63 If mux-locked is not present, the multiplexer is assumed to be parent-locked. 66 The properties of mux-locked and parent-locked multiplexers are discussed 89 mux-locked;
|
| /linux-6.15/sound/core/seq/ |
| H A D | seq_queue.c | 88 static struct snd_seq_queue *queue_new(int owner, int locked) in queue_new() argument 114 q->locked = locked; in queue_new() 160 struct snd_seq_queue *snd_seq_queue_alloc(int client, int locked, unsigned int info_flags) in snd_seq_queue_alloc() argument 164 q = queue_new(client, locked); in snd_seq_queue_alloc() 342 return (q->owner == client) || (!q->locked && !q->klocked); in check_access() 385 int snd_seq_queue_set_owner(int queueid, int client, int locked) in snd_seq_queue_set_owner() argument 398 q->locked = locked ? 1 : 0; in snd_seq_queue_set_owner() 718 bool locked; in snd_seq_info_queues_read() local 733 locked = q->locked; in snd_seq_info_queues_read() 739 snd_iprintf(buffer, "lock status : %s\n", locked ? "Locked" : "Free"); in snd_seq_info_queues_read()
|
| H A D | seq_queue.h | 29 bool locked; /* timer is only accesibble by owner if set */ member 57 struct snd_seq_queue *snd_seq_queue_alloc(int client, int locked, unsigned int flags); 86 int snd_seq_queue_set_owner(int queueid, int client, int locked);
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_pcode.c | 124 u32 *status, bool atomic, int timeout_us, bool locked) in pcode_try_request() argument 131 if (locked) in pcode_try_request() 270 int xe_pcode_ready(struct xe_device *xe, bool locked) in xe_pcode_ready() argument 283 if (locked) in xe_pcode_ready() 289 &status, false, timeout_us, locked); in xe_pcode_ready() 291 if (locked) in xe_pcode_ready()
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-platform-intel-pmc | 15 * bit 31 - global reset is locked 20 in case the register is not locked. 21 The "global reset bit" should be locked on a production
|
| /linux-6.15/drivers/tty/ |
| H A D | tty_ldsem.c | 234 int locked = 0; in down_write_failed() local 265 locked = writer_trylock(sem); in down_write_failed() 266 if (locked) in down_write_failed() 270 if (!locked) in down_write_failed() 280 if (!locked && list_empty(&sem->write_wait)) in down_write_failed() 288 if (!locked) in down_write_failed()
|