/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/net/ethernet/intel/ice/ |
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
|
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() 349 int ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked) in ice_pf_dcb_cfg() argument 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() 627 int ice_dcb_sw_dflt_cfg(struct ice_pf *pf, bool ets_willing, bool locked) in ice_dcb_sw_dflt_cfg() argument 660 ret = ice_pf_dcb_cfg(pf, dcbcfg, locked); in ice_dcb_sw_dflt_cfg() [all …]
|
D | ice_lib.h | 64 int ice_ena_vsi(struct ice_vsi *vsi, bool locked); 66 void ice_dis_vsi(struct ice_vsi *vsi, bool locked);
|
/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/mtd/spi-nor/ |
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()
|
/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 549 bool *locked, bool *busy) in ttm_bo_evict_swapout_allowable() argument 554 *locked = false; in ttm_bo_evict_swapout_allowable() 564 *locked = false; in ttm_bo_evict_swapout_allowable() 569 *locked = ret; in ttm_bo_evict_swapout_allowable() 577 if (*locked) { in ttm_bo_evict_swapout_allowable() 579 *locked = false; in ttm_bo_evict_swapout_allowable() 630 bool locked = false; in ttm_mem_evict_first() local 638 &locked, &busy)) { in ttm_mem_evict_first() 649 if (locked) in ttm_mem_evict_first() 665 ctx->no_wait_gpu, locked); in ttm_mem_evict_first() [all …]
|
/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 | 226 struct ktermios *locked = &tty->termios_locked; in unset_locked_termios() local 231 NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); in unset_locked_termios() 232 NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag); in unset_locked_termios() 233 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios() 234 NOSET_MASK(termios->c_lflag, old->c_lflag, locked->c_lflag); in unset_locked_termios() 235 termios->c_line = locked->c_line ? old->c_line : termios->c_line; in unset_locked_termios() 237 termios->c_cc[i] = locked->c_cc[i] ? in unset_locked_termios()
|
/drivers/staging/vme_user/ |
D | vme_bridge.h | 19 int locked; member 32 int locked; member 65 int locked; member 76 int locked; member
|
D | vme.c | 310 (slave_image->locked == 0)) { in vme_slave_request() 312 slave_image->locked = 1; in vme_slave_request() 336 slave_image->locked = 0; in vme_slave_request() 459 if (slave_image->locked == 0) in vme_slave_free() 462 slave_image->locked = 0; in vme_slave_free() 512 (master_image->locked == 0)) { in vme_master_request() 514 master_image->locked = 1; in vme_master_request() 540 master_image->locked = 0; in vme_master_request() 839 if (master_image->locked == 0) in vme_master_free() 842 master_image->locked = 0; in vme_master_free() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_scheduler.c | 130 struct i915_sched_engine *locked, in lock_sched_engine() argument 136 GEM_BUG_ON(!locked); in lock_sched_engine() 144 while (locked != (sched_engine = READ_ONCE(rq->engine)->sched_engine)) { in lock_sched_engine() 145 spin_unlock(&locked->lock); in lock_sched_engine() 148 locked = sched_engine; in lock_sched_engine() 151 GEM_BUG_ON(locked != sched_engine); in lock_sched_engine() 152 return locked; in lock_sched_engine()
|
/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/i915/gt/ |
D | mock_engine.c | 264 struct intel_engine_cs *engine, *locked; in mock_remove_from_engine() local 273 locked = READ_ONCE(rq->engine); in mock_remove_from_engine() 274 spin_lock_irq(&locked->sched_engine->lock); in mock_remove_from_engine() 275 while (unlikely(locked != (engine = READ_ONCE(rq->engine)))) { in mock_remove_from_engine() 276 spin_unlock(&locked->sched_engine->lock); in mock_remove_from_engine() 278 locked = engine; in mock_remove_from_engine() 281 spin_unlock_irq(&locked->sched_engine->lock); in mock_remove_from_engine()
|
/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()
|
/drivers/gpu/drm/ |
D | drm_modeset_lock.c | 251 INIT_LIST_HEAD(&ctx->locked); in drm_modeset_acquire_init() 279 while (!list_empty(&ctx->locked)) { in drm_modeset_drop_locks() 282 lock = list_first_entry(&ctx->locked, in drm_modeset_drop_locks() 318 list_add(&lock->head, &ctx->locked); in modeset_lock()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | core.h | 204 int brcmf_net_attach(struct brcmf_if *ifp, bool locked); 207 void brcmf_remove_interface(struct brcmf_if *ifp, bool locked); 213 void brcmf_net_detach(struct net_device *ndev, bool locked);
|
/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy_28nm.c | 292 bool locked; in _dsi_pll_28nm_vco_prepare_hpm() local 323 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, in _dsi_pll_28nm_vco_prepare_hpm() 325 if (locked) in _dsi_pll_28nm_vco_prepare_hpm() 353 if (unlikely(!locked)) in _dsi_pll_28nm_vco_prepare_hpm() 358 return locked ? 0 : -EINVAL; in _dsi_pll_28nm_vco_prepare_hpm() 385 bool locked; in dsi_pll_28nm_vco_prepare_lp() local 416 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_vco_prepare_lp() 418 if (unlikely(!locked)) { in dsi_pll_28nm_vco_prepare_lp()
|
/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/gpu/host1x/ |
D | syncpt.h | 49 bool locked; member 127 sp->locked = true; in host1x_syncpt_set_locked()
|
/drivers/phy/freescale/ |
D | phy-fsl-imx8-mipi-dphy.c | 523 u32 locked; in mixel_dphy_power_on_mipi_dphy() local 527 ret = regmap_read_poll_timeout(priv->regmap, DPHY_LOCK, locked, in mixel_dphy_power_on_mipi_dphy() 528 locked, PLL_LOCK_SLEEP, in mixel_dphy_power_on_mipi_dphy() 542 u32 locked; in mixel_dphy_power_on_lvds_phy() local 554 ret = regmap_read_poll_timeout(priv->regmap, DPHY_LOCK, locked, in mixel_dphy_power_on_lvds_phy() 555 locked, PLL_LOCK_SLEEP, in mixel_dphy_power_on_lvds_phy()
|
/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()
|