/drivers/gpu/drm/vmwgfx/ |
D | ttm_lock.c | 63 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 …]
|
/drivers/media/dvb-frontends/ |
D | lgs8gxx.c | 295 static int lgs8gxx_is_locked(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_is_locked() argument 308 *locked = ((t & 0x80) == 0x80) ? 1 : 0; in lgs8gxx_is_locked() 310 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0; in lgs8gxx_is_locked() 315 static int lgs8gxx_wait_ca_lock(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_wait_ca_lock() argument 331 *locked = (ret == 0) ? 1 : 0; in lgs8gxx_wait_ca_lock() 359 u8 *locked) in lgs8gxx_autolock_gi() argument 384 err = lgs8gxx_wait_ca_lock(priv, locked); in lgs8gxx_autolock_gi() 385 if (err || !(*locked)) in lgs8gxx_autolock_gi() 393 *locked = 0; in lgs8gxx_autolock_gi() 403 u8 locked = 0, tmp_gi; in lgs8gxx_auto_detect() local [all …]
|
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()
|
D | lgdt3305.c | 816 int *locked) in lgdt3305_read_cr_lock_status() argument 822 *locked = 0; in lgdt3305_read_cr_lock_status() 832 *locked = 1; in lgdt3305_read_cr_lock_status() 854 *locked = 1; in lgdt3305_read_cr_lock_status() 861 lg_dbg("(%d) %s\n", *locked, cr_lock_state); in lgdt3305_read_cr_lock_status() 867 int *locked) in lgdt3305_read_fec_lock_status() argument 872 *locked = 0; in lgdt3305_read_fec_lock_status() 886 *locked = mpeg_lock && fec_lock && viterbi_lock; in lgdt3305_read_fec_lock_status() 888 lg_dbg("(%d) %s%s%s\n", *locked, in lgdt3305_read_fec_lock_status()
|
D | stv0900_core.c | 1504 int locked = FALSE; in stv0900_status() local 1513 locked = FALSE; in stv0900_status() 1516 locked = stv0900_get_bits(intp, LOCK_DEFINITIF) && in stv0900_status() 1521 locked = stv0900_get_bits(intp, LOCK_DEFINITIF) && in stv0900_status() 1527 dprintk("%s: locked = %d\n", __func__, locked); in stv0900_status() 1540 return locked; in stv0900_status() 1584 p_result.locked = FALSE; in stv0900_search() 1606 p_result.locked = intp->result[demod].locked; in stv0900_search() 1618 p_result.locked = FALSE; in stv0900_search() 1630 if ((p_result.locked == TRUE) && (error == STV0900_NO_ERROR)) { in stv0900_search() [all …]
|
/drivers/thermal/intel/ |
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()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_dcb_lib.h | 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); 83 ice_init_pf_dcb(struct ice_pf *pf, bool __always_unused locked) in ice_init_pf_dcb() argument 92 bool __always_unused locked) in ice_pf_dcb_cfg() argument
|
D | ice_dcb_lib.c | 272 int ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked) in ice_pf_dcb_cfg() argument 319 if (!locked) in ice_pf_dcb_cfg() 350 if (!locked) in ice_pf_dcb_cfg() 506 static int ice_dcb_init_cfg(struct ice_pf *pf, bool locked) in ice_dcb_init_cfg() argument 521 if (ice_pf_dcb_cfg(pf, newcfg, locked)) in ice_dcb_init_cfg() 535 static int ice_dcb_sw_dflt_cfg(struct ice_pf *pf, bool ets_willing, bool locked) in ice_dcb_sw_dflt_cfg() argument 568 ret = ice_pf_dcb_cfg(pf, dcbcfg, locked); in ice_dcb_sw_dflt_cfg() 685 int ice_init_pf_dcb(struct ice_pf *pf, bool locked) in ice_init_pf_dcb() argument 708 err = ice_dcb_sw_dflt_cfg(pf, true, locked); in ice_init_pf_dcb() 737 err = ice_dcb_init_cfg(pf, locked); in ice_init_pf_dcb()
|
D | ice_lib.h | 62 int ice_ena_vsi(struct ice_vsi *vsi, bool locked); 64 void ice_dis_vsi(struct ice_vsi *vsi, bool locked);
|
/drivers/vme/ |
D | vme_bridge.h | 19 int locked; member 32 int locked; member 65 int locked; member 76 int locked; member
|
D | vme.c | 319 (slave_image->locked == 0)) { in vme_slave_request() 321 slave_image->locked = 1; in vme_slave_request() 345 slave_image->locked = 0; in vme_slave_request() 468 if (slave_image->locked == 0) in vme_slave_free() 471 slave_image->locked = 0; in vme_slave_free() 521 (master_image->locked == 0)) { in vme_master_request() 523 master_image->locked = 1; in vme_master_request() 549 master_image->locked = 0; in vme_master_request() 848 if (master_image->locked == 0) in vme_master_free() 851 master_image->locked = 0; in vme_master_free() [all …]
|
/drivers/mfd/ |
D | ab3100-otp.c | 51 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() 157 SHOW_AB3100_ATTR(locked) 167 __ATTR(locked, S_IRUGO, ab3100_otp_locked_show, NULL),
|
/drivers/tty/ |
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()
|
D | tty_ioctl.c | 247 struct ktermios *locked = &tty->termios_locked; in unset_locked_termios() local 252 NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); in unset_locked_termios() 253 NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag); in unset_locked_termios() 254 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios() 255 NOSET_MASK(termios->c_lflag, old->c_lflag, locked->c_lflag); in unset_locked_termios() 256 termios->c_line = locked->c_line ? old->c_line : termios->c_line; in unset_locked_termios() 258 termios->c_cc[i] = locked->c_cc[i] ? in unset_locked_termios()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_pages.c | 97 unsigned long locked, lock_limit; in qib_get_user_pages() local 102 locked = atomic64_add_return(num_pages, ¤t->mm->pinned_vm); in qib_get_user_pages() 104 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in qib_get_user_pages()
|
/drivers/gpu/drm/msm/dsi/pll/ |
D | dsi_pll_28nm.c | 319 bool locked; in dsi_pll_28nm_enable_seq_hpm() local 350 locked = pll_28nm_poll_for_ready(pll_28nm, in dsi_pll_28nm_enable_seq_hpm() 352 if (locked) in dsi_pll_28nm_enable_seq_hpm() 380 if (unlikely(!locked)) in dsi_pll_28nm_enable_seq_hpm() 385 return locked ? 0 : -EINVAL; in dsi_pll_28nm_enable_seq_hpm() 393 bool locked; in dsi_pll_28nm_enable_seq_lp() local 421 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_enable_seq_lp() 423 if (unlikely(!locked)) in dsi_pll_28nm_enable_seq_lp() 428 return locked ? 0 : -EINVAL; in dsi_pll_28nm_enable_seq_lp()
|
D | dsi_pll_28nm_8960.c | 292 bool locked; in dsi_pll_28nm_enable_seq() local 319 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_enable_seq() 321 if (unlikely(!locked)) in dsi_pll_28nm_enable_seq() 326 return locked ? 0 : -EINVAL; in dsi_pll_28nm_enable_seq()
|
/drivers/gpu/drm/i915/ |
D | i915_scheduler.c | 150 struct intel_engine_cs *locked, in sched_lock_engine() argument 156 GEM_BUG_ON(!locked); in sched_lock_engine() 164 while (locked != (engine = READ_ONCE(rq->engine))) { in sched_lock_engine() 165 spin_unlock(&locked->active.lock); in sched_lock_engine() 168 locked = engine; in sched_lock_engine() 171 GEM_BUG_ON(locked != engine); in sched_lock_engine() 172 return locked; in sched_lock_engine()
|
/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 669 struct ttm_operation_ctx *ctx, bool *locked, bool *busy) in ttm_bo_evict_swapout_allowable() argument 677 *locked = false; in ttm_bo_evict_swapout_allowable() 682 *locked = ret; in ttm_bo_evict_swapout_allowable() 732 bool locked = false; in ttm_mem_evict_first() local 741 if (!ttm_bo_evict_swapout_allowable(bo, ctx, &locked, in ttm_mem_evict_first() 751 if (locked) in ttm_mem_evict_first() 756 if (locked) in ttm_mem_evict_first() 782 ctx->no_wait_gpu, locked); in ttm_mem_evict_first() 790 if (locked) in ttm_mem_evict_first() 1136 bool locked; in ttm_bo_init_reserved() local [all …]
|
/drivers/gpu/drm/ |
D | drm_modeset_lock.c | 203 INIT_LIST_HEAD(&ctx->locked); in drm_modeset_acquire_init() 229 while (!list_empty(&ctx->locked)) { in drm_modeset_drop_locks() 232 lock = list_first_entry(&ctx->locked, in drm_modeset_drop_locks() 267 list_add(&lock->head, &ctx->locked); in modeset_lock()
|
/drivers/tty/serial/ |
D | sunhv.c | 439 int locked = 1; in sunhv_console_write_paged() local 442 locked = spin_trylock_irqsave(&port->lock, flags); in sunhv_console_write_paged() 474 if (locked) in sunhv_console_write_paged() 494 int i, locked = 1; in sunhv_console_write_bychar() local 497 locked = spin_trylock_irqsave(&port->lock, flags); in sunhv_console_write_bychar() 507 if (locked) in sunhv_console_write_bychar()
|
D | bcm63xx_uart.c | 700 int locked; in bcm_console_write() local 707 locked = 0; in bcm_console_write() 709 locked = spin_trylock(&port->lock); in bcm_console_write() 712 locked = 1; in bcm_console_write() 721 if (locked) in bcm_console_write()
|
/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 317 bool locked) in __e1000e_read_phy_reg_igp() argument 321 if (!locked) { in __e1000e_read_phy_reg_igp() 338 if (!locked) in __e1000e_read_phy_reg_igp() 384 bool locked) in __e1000e_write_phy_reg_igp() argument 388 if (!locked) { in __e1000e_write_phy_reg_igp() 404 if (!locked) in __e1000e_write_phy_reg_igp() 450 bool locked) in __e1000_read_kmrn_reg() argument 454 if (!locked) { in __e1000_read_kmrn_reg() 475 if (!locked) in __e1000_read_kmrn_reg() 523 bool locked) in __e1000_write_kmrn_reg() argument [all …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-demod.c | 434 int ret, locked, cr_lock, sync_lock, fec_lock; in mxl111sf_demod_read_status() local 438 ret = mxl1x1sf_demod_get_rs_lock_status(state, &locked); in mxl111sf_demod_read_status() 451 if (locked) in mxl111sf_demod_read_status() 460 if ((locked) && (cr_lock) && (sync_lock)) in mxl111sf_demod_read_status()
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_userptr.c | 459 int locked = 0; in __i915_gem_userptr_get_pages_worker() local 467 if (!locked) { in __i915_gem_userptr_get_pages_worker() 469 locked = 1; in __i915_gem_userptr_get_pages_worker() 476 pvec + pinned, NULL, &locked); in __i915_gem_userptr_get_pages_worker() 482 if (locked) in __i915_gem_userptr_get_pages_worker()
|