Home
last modified time | relevance | path

Searched refs:locked (Results 1 – 200 of 256) sorted by relevance

12

/linux-4.4.14/drivers/gpu/drm/ttm/
Dttm_lock.c67 bool locked = false; in __ttm_read_lock() local
77 locked = true; in __ttm_read_lock()
80 return locked; in __ttm_read_lock()
96 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) in __ttm_read_trylock() argument
100 *locked = false; in __ttm_read_trylock()
111 *locked = true; in __ttm_read_trylock()
123 bool locked; in ttm_read_trylock() local
127 (lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
129 wait_event(lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
132 BUG_ON(locked); in ttm_read_trylock()
[all …]
Dttm_bo.c1095 bool locked; in ttm_bo_init() local
1166 locked = ww_mutex_trylock(&bo->resv->lock); in ttm_bo_init()
1167 WARN_ON(!locked); in ttm_bo_init()
/linux-4.4.14/kernel/locking/
Dqspinlock_paravirt.h171 if (READ_ONCE(node->locked)) in pv_wait_node()
187 if (!READ_ONCE(node->locked)) in pv_wait_node()
240 WRITE_ONCE(l->locked, _Q_SLOW_VAL); in pv_kick_node()
264 if (!READ_ONCE(l->locked)) in pv_wait_head()
283 if (!cmpxchg(&l->locked, _Q_LOCKED_VAL, _Q_SLOW_VAL)) { in pv_wait_head()
293 pv_wait(&l->locked, _Q_SLOW_VAL); in pv_wait_head()
318 u8 locked; in __pv_queued_spin_unlock() local
325 locked = cmpxchg(&l->locked, _Q_LOCKED_VAL, 0); in __pv_queued_spin_unlock()
326 if (likely(locked == _Q_LOCKED_VAL)) in __pv_queued_spin_unlock()
329 if (unlikely(locked != _Q_SLOW_VAL)) { in __pv_queued_spin_unlock()
[all …]
Dmcs_spinlock.h19 int locked; /* 1 if lock acquired */ member
67 node->locked = 0; in mcs_spin_lock()
91 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock()
115 arch_mcs_spin_unlock_contended(&next->locked); in mcs_spin_unlock()
Dosq_lock.c91 node->locked = 0; in osq_lock()
118 while (!READ_ONCE(node->locked)) { in osq_lock()
148 if (smp_load_acquire(&node->locked)) in osq_lock()
203 WRITE_ONCE(next->locked, 1); in osq_unlock()
209 WRITE_ONCE(next->locked, 1); in osq_unlock()
Dqspinlock.c128 u8 locked; member
143 u8 locked; member
231 WRITE_ONCE(l->locked, _Q_LOCKED_VAL); in set_locked()
366 node->locked = 0; in queued_spin_lock_slowpath()
395 arch_mcs_spin_lock_contended(&node->locked); in queued_spin_lock_slowpath()
442 arch_mcs_spin_unlock_contended(&next->locked); in queued_spin_lock_slowpath()
Drwsem-xadd.c541 goto locked; in rwsem_wake()
544 locked: in rwsem_wake()
Dlockdep.c3923 int locked; in lockdep_free_key_range() local
3926 locked = graph_lock(); in lockdep_free_key_range()
3943 if (locked) in lockdep_free_key_range()
3968 int locked; in lockdep_reset_lock() local
3987 locked = graph_lock(); in lockdep_reset_lock()
4009 if (locked) in lockdep_reset_lock()
/linux-4.4.14/scripts/coccinelle/locks/
Ddouble_lock.cocci16 @locked@
41 position p1 != locked.p1;
42 position locked.p;
44 expression x <= locked.E1;
45 expression E,locked.E1;
64 expression x <= locked.E1;
65 expression locked.E1;
68 position locked.p,p1,p2;
Dcall_kern.cocci38 @locked exists@
73 @depends on locked && patch@
80 @depends on locked && !patch@
89 p1 << locked.p1;
90 p2 << locked.p2;
100 p1 << locked.p1;
101 p2 << locked.p2;
/linux-4.4.14/drivers/media/dvb-frontends/
Dlgs8gxx.c309 static int lgs8gxx_is_locked(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_is_locked() argument
322 *locked = ((t & 0x80) == 0x80) ? 1 : 0; in lgs8gxx_is_locked()
324 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0; in lgs8gxx_is_locked()
329 static int lgs8gxx_wait_ca_lock(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_wait_ca_lock() argument
345 *locked = (ret == 0) ? 1 : 0; in lgs8gxx_wait_ca_lock()
373 u8 *locked) in lgs8gxx_autolock_gi() argument
398 err = lgs8gxx_wait_ca_lock(priv, locked); in lgs8gxx_autolock_gi()
399 if (err || !(*locked)) in lgs8gxx_autolock_gi()
407 *locked = 0; in lgs8gxx_autolock_gi()
417 u8 locked = 0, tmp_gi; in lgs8gxx_auto_detect() local
[all …]
Datbm8830.c160 static int is_locked(struct atbm_state *priv, u8 *locked) in is_locked() argument
166 if (locked != NULL) in is_locked()
167 *locked = (status == 1); in is_locked()
274 u8 locked = 0; in atbm8830_set_fe() local
290 is_locked(priv, &locked); in atbm8830_set_fe()
291 if (locked != 0) { in atbm8830_set_fe()
342 u8 locked = 0; in atbm8830_read_status() local
348 is_locked(priv, &locked); in atbm8830_read_status()
349 if (locked) { in atbm8830_read_status()
Dlgdt3305.c830 int *locked) in lgdt3305_read_cr_lock_status() argument
836 *locked = 0; in lgdt3305_read_cr_lock_status()
846 *locked = 1; in lgdt3305_read_cr_lock_status()
868 *locked = 1; in lgdt3305_read_cr_lock_status()
875 lg_dbg("(%d) %s\n", *locked, cr_lock_state); in lgdt3305_read_cr_lock_status()
881 int *locked) in lgdt3305_read_fec_lock_status() argument
886 *locked = 0; in lgdt3305_read_fec_lock_status()
900 *locked = mpeg_lock && fec_lock && viterbi_lock; in lgdt3305_read_fec_lock_status()
902 lg_dbg("(%d) %s%s%s\n", *locked, in lgdt3305_read_fec_lock_status()
Dstv0900_core.c1515 int locked = FALSE; in stv0900_status() local
1524 locked = FALSE; in stv0900_status()
1527 locked = stv0900_get_bits(intp, LOCK_DEFINITIF) && in stv0900_status()
1532 locked = stv0900_get_bits(intp, LOCK_DEFINITIF) && in stv0900_status()
1538 dprintk("%s: locked = %d\n", __func__, locked); in stv0900_status()
1551 return locked; in stv0900_status()
1595 p_result.locked = FALSE; in stv0900_search()
1617 p_result.locked = intp->result[demod].locked; in stv0900_search()
1629 p_result.locked = FALSE; in stv0900_search()
1641 if ((p_result.locked == TRUE) && (error == STV0900_NO_ERROR)) { in stv0900_search()
[all …]
Dstv0367_priv.h187 int locked; member
Dstv0900_sw.c1291 intp->result[demod].locked = FALSE; in stv0900_dvbs1_acq_workaround()
1312 intp->result[demod].locked = TRUE; in stv0900_dvbs1_acq_workaround()
1324 intp->result[demod].locked = TRUE; in stv0900_dvbs1_acq_workaround()
1332 intp->result[demod].locked = FALSE; in stv0900_dvbs1_acq_workaround()
1924 intp->result[demod].locked = FALSE; in stv0900_algo()
1994 intp->result[demod].locked = TRUE; in stv0900_algo()
2012 intp->result[demod].locked = FALSE; in stv0900_algo()
2020 intp->result[demod].locked = FALSE; in stv0900_algo()
Dstv0900_priv.h282 int locked;/* Transponder locked */ member
Dstv0367.c59 int locked; /* channel found */ member
2062 int locked = FALSE;
2064 locked = (stv0367_readbits(state, F367TER_LK));
2065 if (!locked)
2077 locked = (stv0367_readbits(state, F367TER_TPS_LOCK)) &&
2083 return locked;
3036 cab_state->locked = 1; in stv0367cab_algo()
/linux-4.4.14/mm/
Dmremap.c238 unsigned long new_len, unsigned long new_addr, bool *locked) in move_vma() argument
338 *locked = true; in move_vma()
374 unsigned long locked, lock_limit; in vma_to_resize() local
375 locked = mm->locked_vm << PAGE_SHIFT; in vma_to_resize()
377 locked += new_len - old_len; in vma_to_resize()
378 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
396 unsigned long new_addr, unsigned long new_len, bool *locked) in mremap_to() argument
441 ret = move_vma(vma, addr, old_len, new_len, new_addr, locked); in mremap_to()
479 bool locked = false; in SYSCALL_DEFINE5() local
505 &locked); in SYSCALL_DEFINE5()
[all …]
Dgup.c628 int *locked, bool notify_drop, in __get_user_pages_locked() argument
634 if (locked) { in __get_user_pages_locked()
638 BUG_ON(*locked != 1); in __get_user_pages_locked()
652 vmas, locked); in __get_user_pages_locked()
653 if (!locked) in __get_user_pages_locked()
658 if (!*locked) { in __get_user_pages_locked()
673 if (*locked) { in __get_user_pages_locked()
688 *locked = 1; in __get_user_pages_locked()
706 if (notify_drop && lock_dropped && *locked) { in __get_user_pages_locked()
712 *locked = 0; in __get_user_pages_locked()
[all …]
Dframe_vector.c43 int locked; in get_vaddr_frames() local
52 locked = 1; in get_vaddr_frames()
62 write, force, (struct page **)(vec->ptrs), &locked); in get_vaddr_frames()
90 if (locked) in get_vaddr_frames()
Dcompaction.c342 unsigned long flags, bool *locked, struct compact_control *cc) in compact_unlock_should_abort() argument
344 if (*locked) { in compact_unlock_should_abort()
346 *locked = false; in compact_unlock_should_abort()
403 bool locked = false; in isolate_freepages_block() local
420 &locked, cc)) in isolate_freepages_block()
457 if (!locked) { in isolate_freepages_block()
466 locked = compact_trylock_irqsave(&cc->zone->lock, in isolate_freepages_block()
468 if (!locked) in isolate_freepages_block()
527 if (locked) in isolate_freepages_block()
672 bool locked = false; in isolate_migratepages_block() local
[all …]
Dmlock.c609 unsigned long locked; in do_mlock() local
623 locked = len >> PAGE_SHIFT; in do_mlock()
627 locked += current->mm->locked_vm; in do_mlock()
630 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock()
769 unsigned long lock_limit, locked; in user_shm_lock() local
772 locked = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in user_shm_lock()
779 locked + user->locked_shm > lock_limit && !capable(CAP_IPC_LOCK)) in user_shm_lock()
782 user->locked_shm += locked; in user_shm_lock()
Dpage-writeback.c2509 bool locked; in account_page_redirty() local
2511 wb = unlocked_inode_to_wb_begin(inode, &locked); in account_page_redirty()
2515 unlocked_inode_to_wb_end(inode, locked); in account_page_redirty()
2621 bool locked; in cancel_dirty_page() local
2624 wb = unlocked_inode_to_wb_begin(inode, &locked); in cancel_dirty_page()
2629 unlocked_inode_to_wb_end(inode, locked); in cancel_dirty_page()
2662 bool locked; in clear_page_dirty_for_io() local
2700 wb = unlocked_inode_to_wb_begin(inode, &locked); in clear_page_dirty_for_io()
2707 unlocked_inode_to_wb_end(inode, locked); in clear_page_dirty_for_io()
Dmmap.c1250 unsigned long locked, lock_limit; in mlock_future_check() local
1254 locked = len >> PAGE_SHIFT; in mlock_future_check()
1255 locked += mm->locked_vm; in mlock_future_check()
1258 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in mlock_future_check()
2121 unsigned long locked; in acct_stack_growth() local
2123 locked = mm->locked_vm + grow; in acct_stack_growth()
2126 if (locked > limit && !capable(CAP_IPC_LOCK)) in acct_stack_growth()
/linux-4.4.14/drivers/thermal/
Dintel_quark_dts_thermal.c106 bool locked; member
138 if (!aux_entry->locked) { in soc_dts_enable()
171 if (!aux_entry->locked) { in soc_dts_disable()
234 if (aux_entry->locked) { in update_trip_temp()
351 if (!aux_entry->locked) { in free_soc_dts()
388 aux_entry->locked = true; in alloc_soc_dts()
391 aux_entry->locked = false; in alloc_soc_dts()
396 if (!aux_entry->locked) { in alloc_soc_dts()
/linux-4.4.14/sound/core/seq/
Dseq_queue.h43 unsigned int locked:1, /* timer is only accesibble by owner if set */ member
74 int snd_seq_queue_alloc(int client, int locked, unsigned int flags);
106 int snd_seq_queue_set_owner(int queueid, int client, int locked);
107 int snd_seq_queue_set_locked(int queueid, int client, int locked);
Dseq_queue.c109 static struct snd_seq_queue *queue_new(int owner, int locked) in queue_new() argument
135 q->locked = locked; in queue_new()
187 int snd_seq_queue_alloc(int client, int locked, unsigned int info_flags) in snd_seq_queue_alloc() argument
191 q = queue_new(client, locked); in snd_seq_queue_alloc()
369 return (q->owner == client) || (!q->locked && !q->klocked); in check_access()
419 int snd_seq_queue_set_owner(int queueid, int client, int locked) in snd_seq_queue_set_owner() argument
431 q->locked = locked ? 1 : 0; in snd_seq_queue_set_owner()
779 snd_iprintf(buffer, "lock status : %s\n", q->locked ? "Locked" : "Free"); in snd_seq_info_queues_read()
Dseq_clientmgr.c1539 result = snd_seq_queue_alloc(client->number, info.locked, info.flags); in snd_seq_ioctl_create_queue()
1548 info.locked = q->locked; in snd_seq_ioctl_create_queue()
1592 info.locked = q->locked; in snd_seq_ioctl_get_queue_info()
1617 if (snd_seq_queue_set_owner(info.queue, client->number, info.locked) < 0) in snd_seq_ioctl_set_queue_info()
1619 if (info.locked) in snd_seq_ioctl_set_queue_info()
1652 info.locked = q->locked; in snd_seq_ioctl_get_named_queue()
/linux-4.4.14/drivers/vme/
Dvme_bridge.h18 int locked; member
31 int locked; member
64 int locked; member
75 int locked; member
Dvme.c292 (slave_image->locked == 0)) { in vme_slave_request()
294 slave_image->locked = 1; in vme_slave_request()
319 slave_image->locked = 0; in vme_slave_request()
404 if (slave_image->locked == 0) in vme_slave_free()
407 slave_image->locked = 0; in vme_slave_free()
449 (master_image->locked == 0)) { in vme_master_request()
451 master_image->locked = 1; in vme_master_request()
478 master_image->locked = 0; in vme_master_request()
688 if (master_image->locked == 0) in vme_master_free()
691 master_image->locked = 0; in vme_master_free()
[all …]
/linux-4.4.14/drivers/mfd/
Dab3100-otp.c51 bool locked; member
83 otp->locked = (otpp & 0x80); in ab3100_otp_read()
103 seq_printf(s, "OTP is %s\n", otp->locked ? "LOCKED" : "UNLOCKED"); in ab3100_show_otp()
164 SHOW_AB3100_ATTR(locked)
174 __ATTR(locked, S_IRUGO, ab3100_otp_locked_show, NULL),
Dwm831x-core.c96 if (!wm831x->locked) in wm831x_reg_locked()
129 WARN_ON(wm831x->locked); in wm831x_reg_lock()
130 wm831x->locked = 1; in wm831x_reg_lock()
156 WARN_ON(!wm831x->locked); in wm831x_reg_unlock()
157 wm831x->locked = 0; in wm831x_reg_unlock()
1754 wm831x->locked = 1; in wm831x_device_init()
Ddb8500-prcmu.c1417 bool locked = plldsi_locked(); in request_plldsi() local
1419 for (i = 10; !locked && (i > 0); --i) { in request_plldsi()
1421 locked = plldsi_locked(); in request_plldsi()
1423 if (locked) { in request_plldsi()
/linux-4.4.14/drivers/tty/serial/
Dsunhv.c432 int locked = 1; in sunhv_console_write_paged() local
435 locked = spin_trylock_irqsave(&port->lock, flags); in sunhv_console_write_paged()
467 if (locked) in sunhv_console_write_paged()
487 int i, locked = 1; in sunhv_console_write_bychar() local
490 locked = spin_trylock_irqsave(&port->lock, flags); in sunhv_console_write_bychar()
494 locked = 0; in sunhv_console_write_bychar()
496 locked = spin_trylock(&port->lock); in sunhv_console_write_bychar()
506 if (locked) in sunhv_console_write_bychar()
Dmeson_uart.c450 int locked; in meson_serial_console_write() local
458 locked = 0; in meson_serial_console_write()
460 locked = spin_trylock(&port->lock); in meson_serial_console_write()
463 locked = 1; in meson_serial_console_write()
468 if (locked) in meson_serial_console_write()
Dbcm63xx_uart.c702 int locked; in bcm_console_write() local
709 locked = 0; in bcm_console_write()
711 locked = spin_trylock(&port->lock); in bcm_console_write()
714 locked = 1; in bcm_console_write()
723 if (locked) in bcm_console_write()
Dnwpserial.c74 int locked = 1; in nwpserial_console_write() local
77 locked = spin_trylock_irqsave(&up->port.lock, flags); in nwpserial_console_write()
94 if (locked) in nwpserial_console_write()
Dar933x_uart.c546 int locked = 1; in ar933x_uart_console_write() local
551 locked = 0; in ar933x_uart_console_write()
553 locked = spin_trylock(&up->port.lock); in ar933x_uart_console_write()
574 if (locked) in ar933x_uart_console_write()
Dlpc32xx_hs.c144 int locked = 1; in lpc32xx_hsuart_console_write() local
149 locked = 0; in lpc32xx_hsuart_console_write()
151 locked = spin_trylock(&up->port.lock); in lpc32xx_hsuart_console_write()
158 if (locked) in lpc32xx_hsuart_console_write()
Dsprd_serial.c543 int locked = 1; in sprd_console_write() local
547 locked = 0; in sprd_console_write()
549 locked = spin_trylock_irqsave(&port->lock, flags); in sprd_console_write()
558 if (locked) in sprd_console_write()
Dstm32-usart.c622 int locked = 1; in stm32_console_write() local
626 locked = 0; in stm32_console_write()
628 locked = spin_trylock(&port->lock); in stm32_console_write()
642 if (locked) in stm32_console_write()
Dst-asc.c803 int locked = 1; in asc_console_write() local
808 locked = 0; /* asc_interrupt has already claimed the lock */ in asc_console_write()
810 locked = spin_trylock(&port->lock); in asc_console_write()
829 if (locked) in asc_console_write()
Ddigicolor-usart.c402 int locked = 1; in digicolor_uart_console_write() local
405 locked = spin_trylock_irqsave(&port->lock, flags); in digicolor_uart_console_write()
411 if (locked) in digicolor_uart_console_write()
Dxilinx_uartps.c424 int locked = 0; in cdns_uart_clk_notifier_cb() local
468 locked = 1; in cdns_uart_clk_notifier_cb()
475 if (!locked) in cdns_uart_clk_notifier_cb()
1110 int locked = 1; in cdns_uart_console_write() local
1113 locked = spin_trylock_irqsave(&port->lock, flags); in cdns_uart_console_write()
1137 if (locked) in cdns_uart_console_write()
Duartlite.c448 int locked = 1; in ulite_console_write() local
451 locked = spin_trylock_irqsave(&port->lock, flags); in ulite_console_write()
467 if (locked) in ulite_console_write()
Dpxa.c651 int locked = 1; in serial_pxa_console_write() local
656 locked = 0; in serial_pxa_console_write()
658 locked = spin_trylock(&up->port.lock); in serial_pxa_console_write()
677 if (locked) in serial_pxa_console_write()
Dsunsab.c865 int locked = 1; in sunsab_console_write() local
868 locked = spin_trylock_irqsave(&up->port.lock, flags); in sunsab_console_write()
875 if (locked) in sunsab_console_write()
Domap-serial.c1256 int locked = 1; in serial_omap_console_write() local
1262 locked = 0; in serial_omap_console_write()
1264 locked = spin_trylock(&up->port.lock); in serial_omap_console_write()
1294 if (locked) in serial_omap_console_write()
Dsunsu.c1309 int locked = 1; in sunsu_console_write() local
1312 locked = spin_trylock_irqsave(&up->port.lock, flags); in sunsu_console_write()
1331 if (locked) in sunsu_console_write()
Dsunzilog.c1206 int locked = 1; in sunzilog_console_write() local
1209 locked = spin_trylock_irqsave(&up->port.lock, flags); in sunzilog_console_write()
1216 if (locked) in sunzilog_console_write()
Dimx.c1630 int locked = 1; in imx_console_write() local
1643 locked = 0; in imx_console_write()
1645 locked = spin_trylock_irqsave(&sport->port.lock, flags); in imx_console_write()
1674 if (locked) in imx_console_write()
Damba-pl011.c2066 int locked = 1; in pl011_console_write() local
2072 locked = 0; in pl011_console_write()
2074 locked = spin_trylock(&uap->port.lock); in pl011_console_write()
2100 if (locked) in pl011_console_write()
Dsh-sci.c2405 int locked = 1; in serial_console_write() local
2409 locked = 0; in serial_console_write()
2411 locked = spin_trylock(&port->lock); in serial_console_write()
2429 if (locked) in serial_console_write()
/linux-4.4.14/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll_28nm.c327 bool locked; in dsi_pll_28nm_enable_seq_hpm() local
358 locked = pll_28nm_poll_for_ready(pll_28nm, in dsi_pll_28nm_enable_seq_hpm()
360 if (locked) in dsi_pll_28nm_enable_seq_hpm()
388 if (unlikely(!locked)) in dsi_pll_28nm_enable_seq_hpm()
393 return locked ? 0 : -EINVAL; in dsi_pll_28nm_enable_seq_hpm()
401 bool locked; in dsi_pll_28nm_enable_seq_lp() local
429 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_enable_seq_lp()
431 if (unlikely(!locked)) in dsi_pll_28nm_enable_seq_lp()
436 return locked ? 0 : -EINVAL; in dsi_pll_28nm_enable_seq_lp()
/linux-4.4.14/drivers/tty/
Dtty_ldsem.c273 int locked = 0; in down_write_failed() local
302 locked = writer_trylock(sem); in down_write_failed()
303 if (locked) in down_write_failed()
307 if (!locked) in down_write_failed()
315 if (!locked) in down_write_failed()
Dtty_ioctl.c244 struct ktermios *locked) in unset_locked_termios() argument
250 if (!locked) { in unset_locked_termios()
255 NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); in unset_locked_termios()
256 NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag); in unset_locked_termios()
257 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios()
258 NOSET_MASK(termios->c_lflag, old->c_lflag, locked->c_lflag); in unset_locked_termios()
259 termios->c_line = locked->c_line ? old->c_line : termios->c_line; in unset_locked_termios()
261 termios->c_cc[i] = locked->c_cc[i] ? in unset_locked_termios()
Dpty.c166 int locked = test_bit(TTY_PTY_LOCK, &tty->flags); in pty_get_lock() local
167 return put_user(locked, arg); in pty_get_lock()
/linux-4.4.14/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi.c50 static int locked; variable
378 locked = 1; in main()
382 locked = 0; in main()
398 broadcast, locked, owner, timeout_ns); in main()
405 ret = unit_test(broadcast, locked, owner, timeout_ns); in main()
/linux-4.4.14/drivers/misc/
Dvmw_balloon.c598 int locked, hv_status; in vmballoon_lock_page() local
604 locked = vmballoon_send_lock_page(b, page_to_pfn(page), &hv_status, in vmballoon_lock_page()
606 if (locked > 0) { in vmballoon_lock_page()
641 int locked, i; in vmballoon_lock_batched_page() local
644 locked = vmballoon_send_batched_lock(b, num_pages, is_2m_pages, in vmballoon_lock_batched_page()
646 if (locked > 0) { in vmballoon_lock_batched_page()
663 locked = vmballoon_batch_get_status(b->batch_page, i); in vmballoon_lock_batched_page()
665 switch (locked) { in vmballoon_lock_batched_page()
724 int locked, i, ret = 0; in vmballoon_unlock_batched_page() local
739 locked = vmballoon_batch_get_status(b->batch_page, i); in vmballoon_unlock_batched_page()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_modeset_lock.c267 INIT_LIST_HEAD(&ctx->locked); in drm_modeset_acquire_init()
290 while (!list_empty(&ctx->locked)) { in drm_modeset_drop_locks()
293 lock = list_first_entry(&ctx->locked, in drm_modeset_drop_locks()
328 list_add(&lock->head, &ctx->locked); in modeset_lock()
/linux-4.4.14/fs/squashfs/
Dfile.c78 msblk->meta_index[i].locked == 0) { in locate_meta_index()
87 meta->locked = 1; in locate_meta_index()
125 msblk->meta_index[i].locked = 0; in empty_meta_index()
131 msblk->meta_index[msblk->next_meta_index].locked; i--) in empty_meta_index()
152 meta->locked = 1; in empty_meta_index()
164 meta->locked = 0; in release_meta_index()
Dsquashfs_fs.h230 unsigned short locked; member
/linux-4.4.14/drivers/infiniband/core/
Dumem.c89 unsigned long locked; in ib_umem_get() local
168 locked = npages + current->mm->pinned_vm; in ib_umem_get()
171 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
234 current->mm->pinned_vm = locked; in ib_umem_get()
/linux-4.4.14/tools/perf/util/
Dannotate.c174 ops->locked.ops = zalloc(sizeof(*ops->locked.ops)); in lock__parse()
175 if (ops->locked.ops == NULL) in lock__parse()
178 if (disasm_line__parse(ops->raw, &name, &ops->locked.ops->raw) < 0) in lock__parse()
181 ops->locked.ins = ins__find(name); in lock__parse()
184 if (ops->locked.ins == NULL) in lock__parse()
187 if (!ops->locked.ins->ops) in lock__parse()
190 if (ops->locked.ins->ops->parse && in lock__parse()
191 ops->locked.ins->ops->parse(ops->locked.ops) < 0) in lock__parse()
197 zfree(&ops->locked.ops); in lock__parse()
206 if (ops->locked.ins == NULL) in lock__scnprintf()
[all …]
Dannotate.h33 } locked; member
/linux-4.4.14/fs/xfs/
Dxfs_trans_dquot.c517 bool locked; in xfs_trans_unreserve_and_mod_dquots() local
538 locked = false; in xfs_trans_unreserve_and_mod_dquots()
541 locked = true; in xfs_trans_unreserve_and_mod_dquots()
546 if (!locked) { in xfs_trans_unreserve_and_mod_dquots()
548 locked = true; in xfs_trans_unreserve_and_mod_dquots()
555 if (!locked) { in xfs_trans_unreserve_and_mod_dquots()
557 locked = true; in xfs_trans_unreserve_and_mod_dquots()
562 if (locked) in xfs_trans_unreserve_and_mod_dquots()
Dxfs_buf.c944 int locked; in xfs_buf_trylock() local
946 locked = down_trylock(&bp->b_sema) == 0; in xfs_buf_trylock()
947 if (locked) in xfs_buf_trylock()
951 return locked; in xfs_buf_trylock()
/linux-4.4.14/fs/reiserfs/
Dfix_node.c2369 struct buffer_head *locked; in wait_tb_buffers_until_unlocked() local
2377 locked = NULL; in wait_tb_buffers_until_unlocked()
2380 !locked && i > ILLEGAL_PATH_ELEMENT_OFFSET; i--) { in wait_tb_buffers_until_unlocked()
2401 locked = in wait_tb_buffers_until_unlocked()
2408 for (i = 0; !locked && i < MAX_HEIGHT && tb->insert_size[i]; in wait_tb_buffers_until_unlocked()
2419 locked = tb->L[i]; in wait_tb_buffers_until_unlocked()
2422 if (!locked && tb->FL[i]) { in wait_tb_buffers_until_unlocked()
2428 locked = tb->FL[i]; in wait_tb_buffers_until_unlocked()
2431 if (!locked && tb->CFL[i]) { in wait_tb_buffers_until_unlocked()
2437 locked = tb->CFL[i]; in wait_tb_buffers_until_unlocked()
[all …]
Dinode.c2900 bool locked = false; in reiserfs_write_end() local
2930 locked = true; in reiserfs_write_end()
2961 if (!locked) { in reiserfs_write_end()
2963 locked = true; in reiserfs_write_end()
2973 if (locked) in reiserfs_write_end()
2985 locked = false; in reiserfs_write_end()
/linux-4.4.14/net/netrom/
Dnr_route.c148 nr_neigh->locked = 0; in nr_add_node()
172 if (quality != 0 && ax25cmp(nr, ax25) == 0 && !nr_neigh->locked) in nr_add_node()
238 if (nr_node->routes[2].neighbour->count == 0 && !nr_node->routes[2].neighbour->locked) in nr_add_node()
375 if (nr_neigh->count == 0 && !nr_neigh->locked) in nr_del_node()
417 nr_neigh->locked = 1; in nr_add_neigh()
430 nr_neigh->locked = 1; in nr_add_neigh()
466 nr_neigh->locked = 0; in nr_del_neigh()
501 if (nr_neigh->count == 0 && !nr_neigh->locked) in nr_dec_obs()
967 nr_neigh->locked, in nr_neigh_show()
/linux-4.4.14/arch/c6x/platforms/
Ddscr.c110 struct locked_reg locked[MAX_LOCKED_REGS]; member
124 if (dscr.locked[i].key && reg == dscr.locked[i].reg) in find_locked_reg()
125 return &dscr.locked[i]; in find_locked_reg()
411 r = &dscr.locked[i]; in dscr_parse_locked_regs()
/linux-4.4.14/sound/oss/dmasound/
Ddmasound_core.c456 if (sq->locked) { /* are we already set? - and not changeable */ in sq_setup()
462 sq->locked = 1 ; /* don't think we have a race prob. here _check_ */ in sq_setup()
578 if (write_sq.locked == 0) { in sq_write()
677 if (write_sq.locked == 0) { in sq_poll()
831 write_sq.locked = 0 ; in sq_reset_output()
941 if (write_sq.locked) in queues_are_quiescent()
958 if (sq->locked) { in set_queue_frags()
1016 if ( !write_sq.locked ) in sq_ioctl()
1129 if ( !write_sq.locked ) in sq_ioctl()
1332 write_sq.busy, write_sq.syncing, write_sq.locked, write_sq.xruns) ; in state_open()
Ddmasound.h218 int locked ; /* params cannot be modified when != 0 */ member
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dphy.c335 bool locked) in __e1000e_read_phy_reg_igp() argument
339 if (!locked) { in __e1000e_read_phy_reg_igp()
356 if (!locked) in __e1000e_read_phy_reg_igp()
402 bool locked) in __e1000e_write_phy_reg_igp() argument
406 if (!locked) { in __e1000e_write_phy_reg_igp()
422 if (!locked) in __e1000e_write_phy_reg_igp()
468 bool locked) in __e1000_read_kmrn_reg() argument
472 if (!locked) { in __e1000_read_kmrn_reg()
493 if (!locked) in __e1000_read_kmrn_reg()
541 bool locked) in __e1000_write_kmrn_reg() argument
[all …]
/linux-4.4.14/Documentation/mmc/
Dmmc-dev-parts.txt29 The boot partitions can also be locked read only until the next power on,
38 The boot partitions can also be locked permanently, but this feature is
/linux-4.4.14/arch/powerpc/mm/
Dmmu_context_iommu.c35 long ret = 0, locked, lock_limit; in mm_iommu_adjust_locked_vm() local
43 locked = mm->locked_vm + npages; in mm_iommu_adjust_locked_vm()
45 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in mm_iommu_adjust_locked_vm()
/linux-4.4.14/Documentation/devicetree/bindings/clock/ti/
Dapll.txt7 (reference clock and bypass clock), with analog phase locked
10 modes (locked, low power stop etc.) APLL mostly behaves like
Ddpll.txt7 (reference clock and bypass clock), with digital phase locked
10 modes (locked, low power stop etc.) This binding has several
/linux-4.4.14/sound/hda/
Dhdac_stream.c629 if (azx_dev->running || azx_dev->locked) { in snd_hdac_dsp_prepare()
634 azx_dev->locked = true; in snd_hdac_dsp_prepare()
667 azx_dev->locked = false; in snd_hdac_dsp_prepare()
699 if (!dmab->area || !azx_dev->locked) in snd_hdac_dsp_cleanup()
715 azx_dev->locked = false; in snd_hdac_dsp_cleanup()
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-demod.c447 int ret, locked, cr_lock, sync_lock, fec_lock; in mxl111sf_demod_read_status() local
451 ret = mxl1x1sf_demod_get_rs_lock_status(state, &locked); in mxl111sf_demod_read_status()
464 if (locked) in mxl111sf_demod_read_status()
473 if ((locked) && (cr_lock) && (sync_lock)) in mxl111sf_demod_read_status()
/linux-4.4.14/include/linux/
Dosq_lock.h10 int locked; /* 1 if lock acquired */ member
Dbacking-dev.h406 static inline void unlocked_inode_to_wb_end(struct inode *inode, bool locked) in unlocked_inode_to_wb_end() argument
408 if (unlikely(locked)) in unlocked_inode_to_wb_end()
461 static inline void unlocked_inode_to_wb_end(struct inode *inode, bool locked) in unlocked_inode_to_wb_end() argument
Dlru_cache.h208 unsigned long hits, misses, starving, locked, changed; member
Dfilter.h450 bool locked);
453 int __sk_detach_filter(struct sock *sk, bool locked);
Dbuffer_head.h119 BUFFER_FNS(Lock, locked)
Dpage-flags.h209 TESTPAGEFLAG(Locked, locked)
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dvvp_page.c481 int locked; in vvp_transient_page_is_vmlocked() local
483 locked = !mutex_trylock(&inode->i_mutex); in vvp_transient_page_is_vmlocked()
484 if (!locked) in vvp_transient_page_is_vmlocked()
486 return locked ? -EBUSY : -ENODATA; in vvp_transient_page_is_vmlocked()
Dvvp_dev.c419 seq_page_flag(seq, vmpage, locked, has_flags); in vvp_pgcache_page_show()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dvga.c130 bool locked = !nvkm_rdvgac(device, 0, 0x1f); in nvkm_lockvgac() local
140 return locked; in nvkm_lockvgac()
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_uiom.c106 unsigned long locked; in usnic_uiom_get_pages() local
133 locked = npages + current->mm->locked_vm; in usnic_uiom_get_pages()
136 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
190 current->mm->locked_vm = locked; in usnic_uiom_get_pages()
/linux-4.4.14/tools/testing/selftests/vm/
Dmlock2-tests.c223 bool locked; in is_vma_lock_on_fault() local
230 locked = is_vmflag_set(addr, LOCKED); in is_vma_lock_on_fault()
231 if (!locked) in is_vma_lock_on_fault()
272 ret = locked && (vma_rss < vma_size); in is_vma_lock_on_fault()
/linux-4.4.14/Documentation/filesystems/
DLocking175 ->mount() returns ERR_PTR or the root dentry; its superblock should be locked
177 ->kill_sb() takes a write-locked superblock, does all shutdown work on it,
277 That is: after 2.5.12, pages which are under writeout are *not* locked. Note,
278 if the filesystem needs the page to be locked during writeout, that is ok, too,
306 not locked.
328 getting mapped back in and redirtied, it needs to be kept locked
390 bh is locked, but that's all warranties we have here. Currently only RAID1,
534 fault: yes can return with page locked
536 page_mkwrite: yes can return with page locked
546 locked. The VM will unlock the page.
[all …]
Dhfsplus.txt48 or locked. Use at your own risk.
Dmandatory-locking.txt108 mandatory locks, so reads and writes to locked files always block when they
122 2. If a process has locked a region of a file with a mandatory read lock, then
129 3. If a process has locked a region of a file with a mandatory write lock, all
Ddirectory-locking45 read, modified or removed by method will be locked by caller.
98 of its descendents is locked by cross-directory rename (otherwise we
Dporting73 same (i.e. parents and victim are locked, etc.).
176 I_NEW flag set and will still be locked. The filesystem then needs to finalize
218 * we know that parent had been locked (e.g. we are looking at
Dfuse.txt282 file to be locked forever.
422 get_user_pages(). The 'req->locked' flag indicates when the copy is
Dxfs-delayed-logging-design.txt169 running. For example, a transaction has object A locked and modified, but needs
180 transaction commit while the item is locked in the transaction. Instead of
188 rewriting can all be done while the object is locked during transaction commit,
314 minimise the time we hold the CIL locked while writing the checkpoint
570 still locked. This happens just after the items are formatted, though it could
726 independent of steps 8-9. An item can be locked in steps 1-6 or steps 8-9
/linux-4.4.14/drivers/vfio/
Dvfio_iommu_spapr_tce.c36 long ret = 0, locked, lock_limit; in try_increment_locked_vm() local
45 locked = current->mm->locked_vm + npages; in try_increment_locked_vm()
47 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in try_increment_locked_vm()
229 unsigned long locked; in tce_iommu_enable() local
280 locked = table_group->tce32_size >> PAGE_SHIFT; in tce_iommu_enable()
281 ret = try_increment_locked_vm(locked); in tce_iommu_enable()
285 container->locked_pages = locked; in tce_iommu_enable()
/linux-4.4.14/include/drm/
Ddrm_modeset_lock.h56 struct list_head locked; member
/linux-4.4.14/Documentation/DocBook/
Dkernel-locking.xml.db2 API-mutex-is-locked
Dfilesystems.xml.db50 API-iget5-locked
51 API-iget-locked
66 API-deactivate-locked-super
87 API-locks-mandatory-locked
Dgpu.xml.db29 API-drm-vma-offset-lookup-locked
35 API-drm-vma-offset-exact-lookup-locked
234 API-drm-modeset-is-locked
240 API-drm-warn-on-modeset-not-all-locked
302 API-drm-kms-helper-poll-enable-locked
533 API-intel-uncore-forcewake-get--locked
535 API-intel-uncore-forcewake-put--locked
Ddevice-drivers.xml.db78 API-wait-event-interruptible-locked
79 API-wait-event-interruptible-locked-irq
80 API-wait-event-interruptible-exclusive-locked
81 API-wait-event-interruptible-exclusive-locked-irq
414 API-fence-signal-locked
429 API-fence-is-signaled-locked
1075 API-spi-async-locked
1077 API-spi-sync-locked
/linux-4.4.14/include/trace/events/
Djbd2.h245 __field( unsigned long, locked )
259 __entry->locked = stats->rs_locked;
274 jiffies_to_msecs(__entry->locked),
/linux-4.4.14/arch/arm/mach-omap1/
Dsram.S55 tst r4, #1 << 0 @ dpll rate locked?
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-iio-frequency-ad952319 pllY is locked.
/linux-4.4.14/Documentation/arm/
Dswp_emulation5 moving to the load-locked/store-conditional instructions LDREX and STREX.
/linux-4.4.14/sound/firewire/dice/
Ddice-proc.c111 u32 locked; in dice_proc_read() member
233 snd_iprintf(buffer, " locked: %u\n", buf.ext_sync.locked); in dice_proc_read()
/linux-4.4.14/lib/
Dlru_cache.c217 lc->locked = 0; in lc_reset()
252 lc->hits, lc->misses, lc->starving, lc->locked, lc->changed); in lc_seq_printf_stats()
425 ++lc->locked; in __lc_get()
/linux-4.4.14/fs/btrfs/
Dreada.c84 int locked; member
291 zone->locked = 0; in reada_find_zone()
600 peer->locked = lock; in reada_peer_zones_set_lock()
630 if (zone->locked) { in reada_pick_zone()
830 zone->locked); in dump_devs()
/linux-4.4.14/Documentation/
Dpercpu-rw-semaphore.txt22 The lock is locked for read with percpu_down_read, percpu_up_read and
Dlockup-watchdogs.txt12 will stay locked up. Alternatively, the kernel can be configured to
22 upon detection and the system will stay locked up unless the default
Dhwspinlock.txt136 - unlock a previously-locked hwspinlock. Always succeed, and can be called
142 - unlock a previously-locked hwspinlock and enable local interrupts.
150 - unlock a previously-locked hwspinlock.
Dvgaarbiter.txt60 "locks" indicates what is locked by this card. If the card is
124 resources as locked. If the resources requested are "normal" (and not legacy)
Dsysrq.txt7 regardless of whatever else it is doing, unless it is completely locked up.
156 sync(s) is great when your system is locked up, it allows you to sync your
Dvfio.txt82 but a couple version and extension query interfaces locked away.
308 locked pages accounting in real time.
323 VFIO_IOMMU_ENABLE - enables the container. The locked pages accounting
Dpi-futex.txt80 means locked. (This is the same method as used by list-based robust
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82599.c201 static s32 prot_autoc_read_82599(struct ixgbe_hw *hw, bool *locked, in prot_autoc_read_82599() argument
206 *locked = false; in prot_autoc_read_82599()
214 *locked = true; in prot_autoc_read_82599()
231 static s32 prot_autoc_write_82599(struct ixgbe_hw *hw, u32 autoc, bool locked) in prot_autoc_write_82599() argument
243 if (!locked && ixgbe_verify_lesm_fw_enabled_82599(hw)) { in prot_autoc_write_82599()
249 locked = true; in prot_autoc_write_82599()
259 if (locked) in prot_autoc_write_82599()
Dixgbe_common.c124 bool locked = false; in ixgbe_setup_fc() local
150 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &reg_bp); in ixgbe_setup_fc()
252 ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked); in ixgbe_setup_fc()
2577 s32 prot_autoc_read_generic(struct ixgbe_hw *hw, bool *locked, u32 *reg_val) in prot_autoc_read_generic() argument
2579 *locked = false; in prot_autoc_read_generic()
2591 s32 prot_autoc_write_generic(struct ixgbe_hw *hw, u32 reg_val, bool locked) in prot_autoc_write_generic() argument
2676 bool locked = false; in ixgbe_blink_led_start_generic() local
2686 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg); in ixgbe_blink_led_start_generic()
2693 ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked); in ixgbe_blink_led_start_generic()
2719 bool locked = false; in ixgbe_blink_led_stop_generic() local
[all …]
Dixgbe_common.h104 s32 prot_autoc_write_generic(struct ixgbe_hw *hw, u32 reg_val, bool locked);
/linux-4.4.14/arch/c6x/boot/dts/
Dtms320c6455.dtsi86 ti,dscr-locked-regs = <0x40008 0x40004 0x0f0a0b00>;
Dtms320c6472.dtsi125 ti,dscr-locked-regs = <0x200 0x204 0x0a1e183a
/linux-4.4.14/drivers/scsi/
Dosst.h260 unsigned locked :1; /* The volume is locked */ member
264 unsigned locked :1; /* The volume is locked */ member
Dscsi_ioctl.c157 sdev->locked = (state == SCSI_REMOVAL_PREVENT); in scsi_set_medium_removal()
/linux-4.4.14/include/uapi/mtd/
Dmtd-abi.h147 __u32 locked; member
/linux-4.4.14/drivers/pci/
Daccess.c534 bool locked = true; in pci_cfg_access_trylock() local
538 locked = false; in pci_cfg_access_trylock()
543 return locked; in pci_cfg_access_trylock()
/linux-4.4.14/net/bluetooth/
Da2mp.c758 static struct l2cap_chan *a2mp_chan_open(struct l2cap_conn *conn, bool locked) in a2mp_chan_open() argument
797 if (locked) in a2mp_chan_open()
841 static struct amp_mgr *amp_mgr_create(struct l2cap_conn *conn, bool locked) in amp_mgr_create() argument
854 chan = a2mp_chan_open(conn, locked); in amp_mgr_create()
/linux-4.4.14/sound/soc/fsl/
Dfsl_spdif.c120 u32 locked; in spdif_irq_dpll_lock() local
122 regmap_read(regmap, REG_SPDIF_SRPC, &locked); in spdif_irq_dpll_lock()
123 locked &= SRPC_DPLL_LOCKED; in spdif_irq_dpll_lock()
126 locked ? "locked" : "loss lock"); in spdif_irq_dpll_lock()
128 spdif_priv->dpll_locked = locked ? true : false; in spdif_irq_dpll_lock()
/linux-4.4.14/Documentation/devicetree/bindings/c6x/
Ddscr.txt44 - ti,dscr-locked-regs
111 ti,dscr-locked-regs = <0x40008 0x40004 0x0f0a0b00>;
/linux-4.4.14/drivers/net/wireless/cw1200/
Dtxrx.c255 int idx, locked; in tx_policy_clean() local
261 locked = list_empty(&cache->free); in tx_policy_clean()
274 if (locked) in tx_policy_clean()
342 int usage, locked; in tx_policy_put() local
346 locked = list_empty(&cache->free); in tx_policy_put()
348 if (locked && !usage) { in tx_policy_put()
/linux-4.4.14/sound/core/
Dinit.c297 int locked; in snd_card_locked() local
300 locked = test_bit(card, snd_cards_lock); in snd_card_locked()
302 return locked; in snd_card_locked()
/linux-4.4.14/drivers/pinctrl/intel/
Dpinctrl-intel.c250 bool locked, acpi; in intel_pin_dbg_show() local
268 locked = intel_pad_locked(pctrl, pin); in intel_pin_dbg_show()
271 if (locked || acpi) { in intel_pin_dbg_show()
273 if (locked) { in intel_pin_dbg_show()
Dpinctrl-cherryview.c721 bool locked; in chv_pin_dbg_show() local
727 locked = chv_pad_locked(pctrl, offset); in chv_pin_dbg_show()
744 if (locked) in chv_pin_dbg_show()
/linux-4.4.14/tools/perf/Documentation/
Dperf-report.txt132 symbol_daddr, dso_daddr, locked, tlb, mem, snoop, dcacheline.
137 - locked: whether the bus was locked at the time of sample
144 symbol_daddr, dso_daddr, snoop, tlb, locked, see '--mem-mode'.
/linux-4.4.14/Documentation/locking/
Dww-mutex-design.txt28 to be locked, the caller would be assigned a unique reservation id/ticket,
32 younger task) unlocks all of the buffers that it has already locked, and then
224 no need to keep any object on a persistent list when it's not locked. We can
285 /* locked a new object, add it to the list */
Dmutex-design.txt29 0: locked, no waiters
30 negative: locked, with potential waiters
Dspinlocks.txt120 where an interrupt tries to lock an already locked variable. This is ok if
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_rma.c294 unsigned long locked, lock_limit; in __scif_check_inc_pinned_vm() local
299 locked = nr_pages; in __scif_check_inc_pinned_vm()
300 locked += mm->pinned_vm; in __scif_check_inc_pinned_vm()
302 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in __scif_check_inc_pinned_vm()
305 locked, lock_limit); in __scif_check_inc_pinned_vm()
308 mm->pinned_vm = locked; in __scif_check_inc_pinned_vm()
/linux-4.4.14/net/core/
Dfilter.c1143 bool locked) in __sk_attach_prog() argument
1159 old_fp = rcu_dereference_protected(sk->sk_filter, locked); in __sk_attach_prog()
1178 bool locked) in __sk_attach_filter() argument
1216 err = __sk_attach_prog(prog, sk, locked); in __sk_attach_filter()
1921 int __sk_detach_filter(struct sock *sk, bool locked) in __sk_detach_filter() argument
1929 filter = rcu_dereference_protected(sk->sk_filter, locked); in __sk_detach_filter()
/linux-4.4.14/include/net/
Dnetrom.h92 unsigned char locked; member
/linux-4.4.14/drivers/md/
Draid5.c2874 s->locked++; in schedule_reconstruction()
2882 if (!s->locked) in schedule_reconstruction()
2892 if (s->locked + conf->max_degraded == disks) in schedule_reconstruction()
2913 s->locked++; in schedule_reconstruction()
2916 if (!s->locked) in schedule_reconstruction()
2930 s->locked++; in schedule_reconstruction()
2938 s->locked++; in schedule_reconstruction()
2943 s->locked, s->ops_request); in schedule_reconstruction()
3414 s->locked++; in fetch_block()
3626 s->locked++; in handle_stripe_dirtying()
[all …]
Draid5.h265 int locked, uptodate, to_read, to_write, failed, written; member
/linux-4.4.14/drivers/mtd/onenand/
DKconfig48 The OTP block can be read, programmed and locked using the same
Donenand_base.c3208 otpinfo->locked = 0; in onenand_otp_walk()
3516 int syscfg, locked; in flexonenand_get_boundary() local
3531 locked = 0; in flexonenand_get_boundary()
3533 locked = 1; in flexonenand_get_boundary()
3540 this->boundary[die], locked ? "(Locked)" : "(Unlocked)"); in flexonenand_get_boundary()
/linux-4.4.14/drivers/vhost/
Dvhost.h138 void vhost_dev_cleanup(struct vhost_dev *, bool locked);
/linux-4.4.14/include/sound/
Dhdaudio.h419 bool locked:1; member
499 #define snd_hdac_stream_is_locked(dev) ((dev)->locked)
/linux-4.4.14/arch/frv/kernel/
Dsleep.S206 # locked in icache.
277 # unlock the icache which was locked before going to sleep
/linux-4.4.14/include/linux/mfd/wm831x/
Dcore.h401 unsigned int locked:1; member
/linux-4.4.14/Documentation/scheduler/
Dsched-arch.txt9 locked. This is usually not a problem unless switch_to may need to
/linux-4.4.14/net/atm/
Dlec.c826 struct lec_priv *locked; member
893 if (!state->locked) { in lec_priv_walk()
894 state->locked = priv; in lec_priv_walk()
899 state->locked = NULL; in lec_priv_walk()
903 return state->locked; in lec_priv_walk()
941 state->locked = NULL; in lec_seq_start()
954 spin_unlock_irqrestore(&state->locked->lec_arp_lock, in lec_seq_stop()
/linux-4.4.14/Documentation/filesystems/pohmelfs/
Dnetwork_protocol.txt216 @start - start of the locked range.
217 @size - size of the locked range.
/linux-4.4.14/Documentation/vm/
Dpage_migration95 3. Lock the new page that we want to move to. It is locked so that accesses to
123 to sleeping on the locked new page.
Dunevictable-lru.txt175 Note that SHM_LOCK is not required to page in the locked pages if they're
433 locked across unmapping of the page, updating the page's address space entry
442 locked. This provides the first level of synchronization. Page migration
473 area will still have properties of the locked area - aka. pages will not get
533 migration, with the argument page locked and isolated from the LRU. Separate
Dksm.txt19 KSM's merged pages were originally locked into kernel memory, but can now
Didle_page_tracking.txt98 locked pages may be skipped too.
/linux-4.4.14/fs/jffs2/
DREADME.Locking52 node belonging to the inode which was locked in the first place by the
105 has to be locked while walking the c->inocache_list hash buckets.
/linux-4.4.14/arch/arm/mach-omap2/
Dsleep34xx.S304 bne exit_nonoff_modes @ Return if locked
317 b exit_nonoff_modes @ Return when locked
Dsram242x.S73 ldr r10, [r11] @ get locked value
295 cmp r8, #2 @ locked?
Dsram243x.S73 ldr r10, [r11] @ get locked value
295 cmp r8, #2 @ locked?
/linux-4.4.14/arch/mn10300/kernel/
Dmn10300-serial.c1583 int locked = 1; in mn10300_serial_console_write() local
1590 locked = 0; in mn10300_serial_console_write()
1592 locked = spin_trylock(&port->uart.lock); in mn10300_serial_console_write()
1653 if (locked) in mn10300_serial_console_write()
/linux-4.4.14/Documentation/ioctl/
Dcdrom.txt263 EBUSY other processes are accessing drive, or door is locked
282 EBUSY other processes are accessing drive, or door is locked
435 EBUSY Door is locked
792 all CD drives will be locked or unlocked together. This is
/linux-4.4.14/include/uapi/sound/
Dasequencer.h480 unsigned locked:1; /* timing queue locked for other queues */ member
/linux-4.4.14/Documentation/filesystems/nfs/
Dfault_injection.txt45 The NFS server keeps a list of what files are currently locked in the VFS.
/linux-4.4.14/Documentation/hwmon/
Dasc762128 PWM output. These two bytes are "read-locked" to guarantee that once a
29 high or low byte is read, the other byte is locked-in until after the
Djc4286 is likely that it has locked the registers, i.e., that the temperature limits
/linux-4.4.14/drivers/block/drbd/
Ddrbd_actlog.c295 bool locked = false; in drbd_al_begin_io_commit() local
302 (locked = lc_try_lock_for_transaction(device->act_log))); in drbd_al_begin_io_commit()
304 if (locked) { in drbd_al_begin_io_commit()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dclient.c2207 static void __ptlrpc_free_req(struct ptlrpc_request *request, int locked) in __ptlrpc_free_req() argument
2225 if (!locked) in __ptlrpc_free_req()
2228 if (!locked) in __ptlrpc_free_req()
2256 sptlrpc_req_put_ctx(request, !locked); in __ptlrpc_free_req()
2270 static int __ptlrpc_req_finished(struct ptlrpc_request *request, int locked) in __ptlrpc_req_finished() argument
2286 __ptlrpc_free_req(request, locked); in __ptlrpc_req_finished()
/linux-4.4.14/fs/ocfs2/
Dquota_local.c692 int locked = 0; in ocfs2_local_read_info() local
721 locked = 1; in ocfs2_local_read_info()
783 if (locked) in ocfs2_local_read_info()
/linux-4.4.14/drivers/powercap/
Dintel_rapl.c1317 u64 locked; in rapl_detect_domains() local
1344 ret = rapl_read_data_raw(rd, FW_LOCK, false, &locked); in rapl_detect_domains()
1347 if (locked) { in rapl_detect_domains()
/linux-4.4.14/fs/
Deventpoll.c833 bool locked; member
841 call_nests + 1, arg->locked); in ep_poll_readyevents_proc()
854 arg.locked = wait && (wait->_qproc == ep_ptable_queue_proc); in ep_eventpoll_poll()
Dfs-writeback.c736 bool locked, congested; in inode_congested() local
738 wb = unlocked_inode_to_wb_begin(inode, &locked); in inode_congested()
740 unlocked_inode_to_wb_end(inode, locked); in inode_congested()
/linux-4.4.14/drivers/vme/bridges/
Dvme_ca91cx42.c1702 master_image->locked = 0; in ca91cx42_probe()
1729 slave_image->locked = 0; in ca91cx42_probe()
1757 dma_ctrlr->locked = 0; in ca91cx42_probe()
1778 lm->locked = 0; in ca91cx42_probe()
Dvme_tsi148.c2382 tsi148_device->flush_image->locked = 1; in tsi148_probe()
2402 master_image->locked = 0; in tsi148_probe()
2432 slave_image->locked = 0; in tsi148_probe()
2457 dma_ctrlr->locked = 0; in tsi148_probe()
2480 lm->locked = 0; in tsi148_probe()
/linux-4.4.14/sound/core/seq/oss/
Dseq_oss_init.c368 qinfo.locked = 1; in alloc_seq_queue()
/linux-4.4.14/Documentation/RCU/
DlistRCU.txt26 system-call auditing support. For example, a reader-writer locked
161 However, if it did, reader-writer-locked code to do so might look as
/linux-4.4.14/kernel/
Dfutex.c2107 static int fixup_owner(u32 __user *uaddr, struct futex_q *q, int locked) in fixup_owner() argument
2112 if (locked) { in fixup_owner()
2133 locked = 1; in fixup_owner()
2162 return ret ? ret : locked; in fixup_owner()
/linux-4.4.14/drivers/macintosh/
Dvia-pmu.c121 locked, enumerator
1274 while((pmu_state != idle && pmu_state != locked) || !req->complete) in pmu_wait_complete()
1542 pmu_state = locked; in pmu_sr_intr()
1650 if (pmu_state == locked) in pmu_unlock()
/linux-4.4.14/include/scsi/
Dscsi_device.h135 unsigned locked:1; /* Media removal disabled */ member
/linux-4.4.14/Documentation/ide/
DChangeLog.ide-cd.1994-2004230 * - CD-ROM leaving door locked fix from Andries
250 * tray if it was locked prior to the reset.
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dcl_lock.c755 int locked; in cl_lock_nr_mutexed() local
763 for (i = 0, locked = 0; i < ARRAY_SIZE(info->clt_counters); ++i) in cl_lock_nr_mutexed()
764 locked += info->clt_counters[i].ctc_nr_locks_locked; in cl_lock_nr_mutexed()
765 return locked; in cl_lock_nr_mutexed()
/linux-4.4.14/fs/f2fs/
Ddata.c1338 bool locked = false; in f2fs_write_data_pages() local
1365 locked = true; in f2fs_write_data_pages()
1369 if (locked) in f2fs_write_data_pages()
/linux-4.4.14/drivers/clk/st/
Dclkgen-pll.c329 u32 locked = CLKGEN_READ(pll, locked_status); in clkgen_pll_is_locked() local
331 return !!locked; in clkgen_pll_is_locked()
/linux-4.4.14/drivers/dma/
Damba-pl08x.c156 bool locked; member
615 if (!ch->locked && !ch->serving) { in pl08x_get_phy_channel()
1985 ch->locked ? " LOCKED" : ""); in pl08x_debugfs_show()
2363 ch->locked = true; in pl08x_probe()
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dqoriq-clock.txt5 multiple phase locked loops (PLL) to create a variety of frequencies
Dclock-bindings.txt102 /* phase-locked-loop device, generates a higher frequency clock
/linux-4.4.14/drivers/scsi/cxlflash/
Dsuperpipe.c540 int cxlflash_lun_attach(struct glun_info *gli, enum lun_mode mode, bool locked) in cxlflash_lun_attach() argument
544 if (!locked) in cxlflash_lun_attach()
561 if (!locked) in cxlflash_lun_attach()
/linux-4.4.14/net/ipx/
Daf_ipx.c1765 bool locked = true; in ipx_recvmsg() local
1793 locked = false; in ipx_recvmsg()
1829 if (locked) in ipx_recvmsg()
/linux-4.4.14/sound/pci/hda/
Dhda_controller.c869 if (!dmab->area || !hstr->locked) in snd_hda_codec_load_dsp_cleanup()
876 hstr->locked = false; in snd_hda_codec_load_dsp_cleanup()
/linux-4.4.14/fs/ext4/
Dindirect.c692 goto locked; in ext4_ind_direct_IO()
704 locked: in ext4_ind_direct_IO()
/linux-4.4.14/drivers/tty/serial/8250/
D8250_port.c2840 int locked = 1; in serial8250_console_write() local
2847 locked = 0; in serial8250_console_write()
2849 locked = spin_trylock_irqsave(&port->lock, flags); in serial8250_console_write()
2888 if (locked) in serial8250_console_write()
/linux-4.4.14/drivers/mmc/card/
Dblock.c204 int locked = 0; in power_ro_lock_show() local
207 locked = 2; in power_ro_lock_show()
209 locked = 1; in power_ro_lock_show()
211 ret = snprintf(buf, PAGE_SIZE, "%d\n", locked); in power_ro_lock_show()
/linux-4.4.14/arch/arm/mach-tegra/
Dsleep-tegra20.S168 ret lr @ locked
/linux-4.4.14/drivers/scsi/aacraid/
Daachba.c2750 fsa_dev_ptr[cid].locked = 1; in aac_scsi_cmd()
2752 fsa_dev_ptr[cid].locked = 0; in aac_scsi_cmd()
2872 qd.locked = fsa_dev_ptr[qd.cnum].locked; in query_disk()
2930 if (fsa_dev_ptr[dd.cnum].locked) in delete_disk()
/linux-4.4.14/Documentation/w1/
Dw1.netlink160 is found) is locked. If slave command is requested, then reset/select
/linux-4.4.14/fs/ocfs2/dlm/
Ddlmdomain.c1295 int locked = 0, status = -EINVAL; in dlm_query_nodeinfo_handler() local
1311 locked = 1; in dlm_query_nodeinfo_handler()
1332 if (locked) in dlm_query_nodeinfo_handler()
/linux-4.4.14/drivers/mtd/chips/
Dcfi_cmdset_0002.c1479 otpinfo->locked = otplocked; in cfi_amdstd_otp_walk()
2534 int locked; member
2669 sect[sectors].locked = do_ppb_xxlock( in cfi_ppb_unlock()
2711 if (sect[i].locked) in cfi_ppb_unlock()
/linux-4.4.14/tools/lib/traceevent/
Devent-parse.h53 int locked; /* Do not free, even if ref_count is zero */ member
/linux-4.4.14/drivers/mtd/devices/
Dmtd_dataflash.c452 info->locked = 1; in dataflash_get_otp_info()

12