Searched refs:locked (Results 1 - 25 of 297) sorted by relevance

1234567891011>>

/linux-master/arch/mips/include/asm/
H A Dspinlock.h25 smp_store_release(&lock->locked, 0);
/linux-master/kernel/locking/
H A Dmcs_spinlock.h20 int locked; /* 1 if lock acquired */ member in struct:mcs_spinlock
61 * on this node->locked until the previous lock holder sets the node->locked
70 node->locked = 0;
82 * Lock acquired, don't need to set node->locked to 1. Threads
83 * only spin on its own node->locked value for lock acquisition.
85 * and does not proceed to spin on its own node->locked, this
87 * audit lock status, then set node->locked value here.
94 arch_mcs_spin_lock_contended(&node->locked);
118 arch_mcs_spin_unlock_contended(&next->locked);
[all...]
H A Dqspinlock_paravirt.h92 try_cmpxchg_acquire(&lock->locked, &old, _Q_LOCKED_VAL)) {
124 return !READ_ONCE(lock->locked) &&
142 * Try to clear pending bit & set locked bit
286 * Wait for node->locked to become true, halt the vcpu after a short spin.
299 if (READ_ONCE(node->locked))
309 * Order pn->state vs pn->locked thusly:
311 * [S] pn->state = vcpu_halted [S] next->locked = 1
313 * [L] pn->locked [RmW] pn->state = vcpu_hashed
319 if (!READ_ONCE(node->locked)) {
333 * If the locked fla
499 __pv_queued_spin_unlock_slowpath(struct qspinlock *lock, u8 locked) argument
545 u8 locked = _Q_LOCKED_VAL; local
[all...]
H A Dosq_lock.c17 int locked; /* 1 if lock acquired */ member in struct:optimistic_spin_node
100 node->locked = 0;
146 if (smp_cond_load_relaxed(&node->locked, VAL || need_resched() ||
170 * in which case we should observe @node->locked becoming
173 if (smp_load_acquire(&node->locked))
228 WRITE_ONCE(next->locked, 1);
234 WRITE_ONCE(next->locked, 1);
H A Dqspinlock.c47 * unlock the next pending (next->locked), we compress both these: {tail,
48 * next->locked} into a single u32 value.
261 WRITE_ONCE(lock->locked, _Q_LOCKED_VAL);
328 * Wait for in-progress pending->locked hand-overs with a bounded
374 * store-release that clears the locked bit and create lock
380 smp_cond_load_acquire(&lock->locked, !VAL);
434 node->locked = 0;
474 arch_mcs_spin_lock_contended(&node->locked);
494 * store-release that clears the locked bit and create lock
501 * been designated yet, there is no way for the locked valu
[all...]
/linux-master/sound/core/seq/
H A Dseq_queue.h29 bool locked; /* timer is only accesibble by owner if set */ member in struct:snd_seq_queue
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);
H A Dseq_queue.c19 * - The queue is locked when struct snd_seq_queue pointer is returned via
88 static struct snd_seq_queue *queue_new(int owner, int locked) argument
114 q->locked = locked;
160 struct snd_seq_queue *snd_seq_queue_alloc(int client, int locked, unsigned int info_flags) argument
164 q = queue_new(client, locked);
342 return (q->owner == client) || (!q->locked && !q->klocked);
385 int snd_seq_queue_set_owner(int queueid, int client, int locked) argument
398 q->locked = locked
717 bool locked; local
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_dcb_lib.h18 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) argument
102 bool __always_unused locked)
131 static inline void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked) { } argument
100 ice_pf_dcb_cfg(struct ice_pf __always_unused *pf, struct ice_dcbx_cfg __always_unused *new_cfg, bool __always_unused locked) argument
H A Dice_lib.h51 void __ice_q_vector_set_napi_queues(struct ice_q_vector *q_vector, bool locked);
61 int ice_ena_vsi(struct ice_vsi *vsi, bool locked);
64 void ice_dis_vsi(struct ice_vsi *vsi, bool locked);
/linux-master/include/asm-generic/
H A Dqspinlock_types.h25 u8 locked; member in struct:qspinlock::__anon487::__anon488
40 u8 locked; member in struct:qspinlock::__anon487::__anon491
55 * 0- 7: locked byte
62 * 0- 7: locked byte
/linux-master/arch/powerpc/include/asm/
H A Dqspinlock_types.h14 u16 locked; member in struct:qspinlock::__anon16::__anon17
20 u16 locked; member in struct:qspinlock::__anon16::__anon18
31 * 0: locked bit
/linux-master/arch/x86/include/asm/
H A Dqspinlock_paravirt.h7 void __lockfunc __pv_queued_spin_unlock_slowpath(struct qspinlock *lock, u8 locked);
30 * if (try_cmpxchg(&lock->locked, &lockval, 0))
/linux-master/tools/testing/selftests/net/forwarding/
H A Dbridge_locked_port.sh102 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
190 check_fail $? "Ping worked on a locked port without an FDB entry"
195 bridge link set dev $swp1 learning on locked on mab on
200 bridge fdb get `mac_get $h1` br br0 vlan 1 | grep "dev $swp1" | grep -q "locked"
[all...]
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_user_pages.c97 unsigned long locked, lock_limit; local
102 locked = atomic64_add_return(num_pages, &current->mm->pinned_vm);
104 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) {
/linux-master/drivers/thermal/intel/
H A Dintel_quark_dts_thermal.c100 bool locked; member in struct:soc_sensor_entry
129 if (!aux_entry->locked) {
136 pr_info("DTS is locked. Cannot enable DTS\n");
157 if (!aux_entry->locked) {
165 pr_info("DTS is locked. Cannot disable DTS\n");
206 if (aux_entry->locked) {
300 if (!aux_entry->locked) {
329 /* Check if DTS register is locked */
335 aux_entry->locked = !!(out & QRK_DTS_LOCK_BIT);
337 /* Store DTS default state if DTS registers are not locked */
[all...]
/linux-master/drivers/staging/vme_user/
H A Dvme_bridge.h19 int locked; member in struct:vme_master_resource
32 int locked; member in struct:vme_slave_resource
65 int locked; member in struct:vme_dma_resource
76 int locked; member in struct:vme_lm_resource
/linux-master/drivers/media/dvb-frontends/
H A Dlgs8gxx.c295 static int lgs8gxx_is_locked(struct lgs8gxx_state *priv, u8 *locked) argument
308 *locked = ((t & 0x80) == 0x80) ? 1 : 0;
310 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0;
315 static int lgs8gxx_wait_ca_lock(struct lgs8gxx_state *priv, u8 *locked) argument
331 *locked = (ret == 0) ? 1 : 0;
359 u8 *locked)
384 err = lgs8gxx_wait_ca_lock(priv, locked);
385 if (err || !(*locked))
393 *locked = 0;
403 u8 locked local
358 lgs8gxx_autolock_gi(struct lgs8gxx_state *priv, u8 gi, u8 cpn, u8 *locked) argument
716 u8 t, locked = 0; local
[all...]
H A Datbm8830.c147 static int is_locked(struct atbm_state *priv, u8 *locked) argument
153 if (locked != NULL)
154 *locked = (status == 1);
261 u8 locked = 0; local
277 is_locked(priv, &locked);
278 if (locked != 0) {
279 dprintk("ATBM8830 locked!\n");
329 u8 locked = 0; local
335 is_locked(priv, &locked);
336 if (locked) {
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_pcode.h15 int xe_pcode_ready(struct xe_device *xe, bool locked);
H A Dxe_pcode.c123 u32 *status, bool atomic, int timeout_us, bool locked)
128 if (locked)
256 * @locked: true if lock held, false otherwise
266 int xe_pcode_ready(struct xe_device *xe, bool locked) argument
279 if (locked)
285 &status, false, timeout_us, locked);
287 if (locked)
121 pcode_try_request(struct xe_gt *gt, u32 mbox, u32 request, u32 reply_mask, u32 reply, u32 *status, bool atomic, int timeout_us, bool locked) argument
/linux-master/drivers/gpu/host1x/
H A Dsyncpt.h50 bool locked; member in struct:host1x_syncpt
128 sp->locked = true;
/linux-master/mm/
H A Dgup.c1248 * FOLL_NOWAIT, the mmap_lock may be released. If it is, *@locked will be set
1253 int *locked)
1298 *locked = 0;
1320 *locked = 0;
1473 * @locked: whether we're still with the mmap_lock held
1508 * be released. If this happens *@locked will be set to 0 on return.
1521 int *locked)
1590 PTR_ERR(page) == -EMLINK, locked);
1802 * Locking: (*locked == 1) means that the mmap_lock has already been acquired by
1804 * set (*locked
1251 faultin_page(struct vm_area_struct *vma, unsigned long address, unsigned int *flags, bool unshare, int *locked) argument
1518 __get_user_pages(struct mm_struct *mm, unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, int *locked) argument
1814 __get_user_pages_locked(struct mm_struct *mm, unsigned long start, unsigned long nr_pages, struct page **pages, int *locked, unsigned int flags) argument
1982 populate_vma_page_range(struct vm_area_struct *vma, unsigned long start, unsigned long end, int *locked) argument
2056 faultin_page_range(struct mm_struct *mm, unsigned long start, unsigned long end, bool write, int *locked) argument
2099 int locked = 0; local
2148 __get_user_pages_locked(struct mm_struct *mm, unsigned long start, unsigned long nr_pages, struct page **pages, int *locked, unsigned int foll_flags) argument
2372 int locked = 0; local
2545 __gup_longterm_locked(struct mm_struct *mm, unsigned long start, unsigned long nr_pages, struct page **pages, int *locked, unsigned int gup_flags) argument
2580 is_valid_gup_args(struct page **pages, int *locked, unsigned int *gup_flags_p, unsigned int to_set) argument
2683 get_user_pages_remote(struct mm_struct *mm, unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, int *locked) argument
2701 get_user_pages_remote(struct mm_struct *mm, unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, int *locked) argument
2727 int locked = 1; local
2755 int locked = 0; local
3442 int locked = 0; local
3606 pin_user_pages_remote(struct mm_struct *mm, unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, int *locked) argument
3643 int locked = 1; local
3663 int locked = 0; local
[all...]
/linux-master/drivers/mtd/spi-nor/
H A Dotp.c188 /* no need to write the register if region is already locked */
253 int ret, locked; local
266 locked = ops->is_locked(nor, i);
267 if (locked < 0) {
268 ret = locked;
272 buf->locked = !!locked;
289 int locked; local
292 * If any of the affected OTP regions are locked the entire range is
293 * considered locked
[all...]
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcore.h213 int brcmf_net_attach(struct brcmf_if *ifp, bool locked);
216 void brcmf_remove_interface(struct brcmf_if *ifp, bool locked);
222 void brcmf_net_detach(struct net_device *ndev, bool locked);
/linux-master/drivers/tty/
H A Dtty_ldsem.c234 int locked = 0; local
265 locked = writer_trylock(sem);
266 if (locked)
270 if (!locked)
280 if (!locked && list_empty(&sem->write_wait))
288 if (!locked)

Completed in 340 milliseconds

1234567891011>>