/linux/Documentation/i2c/ |
A D | i2c-topology.rst | 39 useful to know if a mux is mux-locked or if it is parent-locked. The 46 i2c-mux-gpio Normally parent-locked, mux-locked iff 49 i2c-mux-gpmux Normally parent-locked, mux-locked iff 55 i2c-mux-pinctrl Normally parent-locked, mux-locked iff 80 Mux-locked muxes 95 parent-locked mux that the root adapter is locked during the 223 Parent-locked mux as parent of parent-locked mux 247 Mux-locked mux as parent of mux-locked mux 268 Mux-locked mux as parent of parent-locked mux 302 Parent-locked mux as parent of mux-locked mux [all …]
|
/linux/kernel/locking/ |
A D | qspinlock_paravirt.h | 121 return !READ_ONCE(lock->locked) && in trylock_clear_pending() 302 if (READ_ONCE(node->locked)) in pv_wait_node() 322 if (!READ_ONCE(node->locked)) { in pv_wait_node() 343 !READ_ONCE(node->locked)); in pv_wait_node() 391 WRITE_ONCE(lock->locked, _Q_SLOW_VAL); in pv_kick_node() 470 pv_wait(&lock->locked, _Q_SLOW_VAL); in pv_wait_head_or_lock() 497 if (unlikely(locked != _Q_SLOW_VAL)) { in __pv_queued_spin_unlock_slowpath() 523 smp_store_release(&lock->locked, 0); in __pv_queued_spin_unlock_slowpath() 549 u8 locked; in __pv_queued_spin_unlock() local 556 locked = cmpxchg_release(&lock->locked, _Q_LOCKED_VAL, 0); in __pv_queued_spin_unlock() [all …]
|
A D | mcs_spinlock.h | 20 int locked; /* 1 if lock acquired */ member 70 node->locked = 0; 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()
|
A D | osq_lock.c | 97 node->locked = 0; in osq_lock() 143 if (smp_cond_load_relaxed(&node->locked, VAL || need_resched() || in osq_lock() 170 if (smp_load_acquire(&node->locked)) in osq_lock() 225 WRITE_ONCE(next->locked, 1); in osq_unlock() 231 WRITE_ONCE(next->locked, 1); in osq_unlock()
|
A D | qspinlock.c | 263 WRITE_ONCE(lock->locked, _Q_LOCKED_VAL); in set_locked() 434 node->locked = 0; in queued_spin_lock_slowpath() 474 arch_mcs_spin_lock_contended(&node->locked); in queued_spin_lock_slowpath() 509 goto locked; in queued_spin_lock_slowpath() 513 locked: in queued_spin_lock_slowpath() 553 arch_mcs_spin_unlock_contended(&next->locked); in queued_spin_lock_slowpath()
|
/linux/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
A D | locks.h | 58 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}
|
/linux/scripts/coccinelle/locks/ |
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;
|
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/drivers/media/dvb-frontends/ |
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 …]
|
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/mm/ |
A D | gup.c | 927 if (locked) in faultin_page() 1135 if (locked && *locked == 0) { in __get_user_pages() 1320 if (locked) { in __get_user_pages_locked() 1347 if (!locked) in __get_user_pages_locked() 1404 *locked = 1; in __get_user_pages_locked() 1432 *locked = 0; in __get_user_pages_locked() 1580 locked = 1; in __mm_populate() 1612 if (locked) in __mm_populate() 1751 if (locked) in fault_in_safe_writeable() 1822 if (locked) in get_dump_page() [all …]
|
A D | mlock.c | 650 unsigned long locked; in do_mlock() local 664 locked = len >> PAGE_SHIFT; in do_mlock() 669 locked += current->mm->locked_vm; in do_mlock() 670 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) { in do_mlock() 677 locked -= count_mm_mlocked_page_nr(current->mm, in do_mlock() 682 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock() 824 unsigned long lock_limit, locked; in user_shm_lock() local 828 locked = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in user_shm_lock() 834 memlock = inc_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked); in user_shm_lock() 837 dec_rlimit_ucounts(ucounts, UCOUNT_RLIMIT_MEMLOCK, locked); in user_shm_lock() [all …]
|
A D | mremap.c | 569 bool *locked, unsigned long flags, in move_vma() argument 707 *locked = true; in move_vma() 767 unsigned long locked, lock_limit; in vma_to_resize() local 768 locked = mm->locked_vm << PAGE_SHIFT; in vma_to_resize() 770 locked += new_len - old_len; in vma_to_resize() 896 bool locked = false; in SYSCALL_DEFINE5() local 973 &locked, flags, &uf, &uf_unmap_early, in SYSCALL_DEFINE5() 1032 locked = true; in SYSCALL_DEFINE5() 1060 &locked, flags, &uf, &uf_unmap); in SYSCALL_DEFINE5() 1064 locked = false; in SYSCALL_DEFINE5() [all …]
|
/linux/drivers/thermal/intel/ |
A D | intel_quark_dts_thermal.c | 103 bool locked; member 132 if (!aux_entry->locked) { in soc_dts_enable() 160 if (!aux_entry->locked) { in soc_dts_disable() 220 if (aux_entry->locked) { in update_trip_temp() 328 if (!aux_entry->locked) { in free_soc_dts() 364 aux_entry->locked = true; in alloc_soc_dts() 367 aux_entry->locked = false; in alloc_soc_dts() 372 if (!aux_entry->locked) { in alloc_soc_dts()
|
/linux/drivers/net/ethernet/intel/ice/ |
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); 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
|
A D | ice_dcb_lib.c | 281 static void ice_dcb_ena_dis_vsi(struct ice_pf *pf, bool ena, bool locked) in ice_dcb_ena_dis_vsi() argument 296 ice_ena_vsi(vsi, locked); in ice_dcb_ena_dis_vsi() 298 ice_dis_vsi(vsi, locked); in ice_dcb_ena_dis_vsi() 408 if (!locked) in ice_pf_dcb_cfg() 442 if (!locked) in ice_pf_dcb_cfg() 598 static int ice_dcb_init_cfg(struct ice_pf *pf, bool locked) in ice_dcb_init_cfg() argument 613 if (ice_pf_dcb_cfg(pf, newcfg, locked)) in ice_dcb_init_cfg() 660 ret = ice_pf_dcb_cfg(pf, dcbcfg, locked); in ice_dcb_sw_dflt_cfg() 794 int ice_init_pf_dcb(struct ice_pf *pf, bool locked) in ice_init_pf_dcb() argument 822 err = ice_dcb_sw_dflt_cfg(pf, true, locked); in ice_init_pf_dcb() [all …]
|
/linux/drivers/mtd/spi-nor/ |
A D | otp.c | 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 298 locked = ops->is_locked(nor, region); in spi_nor_mtd_otp_range_is_locked() 300 if (locked) in spi_nor_mtd_otp_range_is_locked() 301 return locked; in spi_nor_mtd_otp_range_is_locked()
|
/linux/sound/core/seq/ |
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); 87 int snd_seq_queue_set_locked(int queueid, int client, int locked);
|
A D | seq_queue.c | 96 static struct snd_seq_queue *queue_new(int owner, int locked) in queue_new() argument 122 q->locked = locked; in queue_new() 168 struct snd_seq_queue *snd_seq_queue_alloc(int client, int locked, unsigned int info_flags) in snd_seq_queue_alloc() argument 172 q = queue_new(client, locked); in snd_seq_queue_alloc() 346 return (q->owner == client) || (!q->locked && !q->klocked); in check_access() 396 int snd_seq_queue_set_owner(int queueid, int client, int locked) in snd_seq_queue_set_owner() argument 410 q->locked = locked ? 1 : 0; in snd_seq_queue_set_owner() 729 bool locked; in snd_seq_info_queues_read() local 744 locked = q->locked; in snd_seq_info_queues_read() 750 snd_iprintf(buffer, "lock status : %s\n", locked ? "Locked" : "Free"); in snd_seq_info_queues_read()
|
/linux/Documentation/devicetree/bindings/i2c/ |
A D | i2c-mux-gpmux.yaml | 50 mux-locked: 64 If mux-locked is not present, the multiplexer is assumed to be parent-locked. 67 The properties of mux-locked and parent-locked multiplexers are discussed 90 mux-locked;
|
/linux/drivers/gpu/drm/ttm/ |
A D | ttm_bo.c | 612 *locked = false; in ttm_bo_evict_swapout_allowable() 617 *locked = ret; in ttm_bo_evict_swapout_allowable() 625 if (*locked) { in ttm_bo_evict_swapout_allowable() 627 *locked = false; in ttm_bo_evict_swapout_allowable() 694 if (locked) in ttm_mem_evict_first() 728 if (locked) in ttm_mem_evict_first() 966 bool locked; in ttm_bo_init_reserved() local 1008 WARN_ON(!locked); in ttm_bo_init_reserved() 1096 bool locked; in ttm_bo_swapout() local 1114 if (locked) in ttm_bo_swapout() [all …]
|
/linux/drivers/vme/ |
A D | vme_bridge.h | 19 int locked; member 32 int locked; member 65 int locked; member 76 int locked; member
|
A D | vme.c | 312 slave_image->locked = 1; in vme_slave_request() 336 slave_image->locked = 0; in vme_slave_request() 462 slave_image->locked = 0; in vme_slave_free() 540 master_image->locked = 0; in vme_master_request() 891 dma_ctrlr->locked = 1; in vme_dma_request() 915 dma_ctrlr->locked = 0; in vme_dma_request() 1235 ctrlr->locked = 0; in vme_dma_free() 1490 if (lm->locked == 0) { in vme_lm_request() 1491 lm->locked = 1; in vme_lm_request() 1515 lm->locked = 0; in vme_lm_request() [all …]
|
/linux/drivers/tty/ |
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()
|
/linux/Documentation/x86/ |
A D | resctrl.rst | 118 Corresponding region is pseudo-locked. No 226 pseudo-locked region. 252 automatically change to "pseudo-locked". 496 to be pseudo-locked. The cache pseudo-locked region is created as follows: 502 while the pseudo-locked region exists. 524 pseudo-locked region creation. 542 pseudo-locked memory into its address space. 570 the pseudo-locked region: 875 unused bits can be pseudo-locked the bits to be pseudo-locked needs to be 894 exposing the pseudo-locked region will exist:: [all …]
|