Home
last modified time | relevance | path

Searched refs:need_lock (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/mm/damon/
H A Dpaddr.c41 bool need_lock; in damon_pa_mkold() local
51 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in damon_pa_mkold()
52 if (need_lock && !folio_trylock(folio)) in damon_pa_mkold()
57 if (need_lock) in damon_pa_mkold()
123 bool need_lock; in damon_pa_young() local
136 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in damon_pa_young()
137 if (need_lock && !folio_trylock(folio)) in damon_pa_young()
142 if (need_lock) in damon_pa_young()
/openbmc/linux/mm/
H A Dpage_idle.c99 bool need_lock; in page_idle_clear_pte_refs() local
104 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in page_idle_clear_pte_refs()
105 if (need_lock && !folio_trylock(folio)) in page_idle_clear_pte_refs()
110 if (need_lock) in page_idle_clear_pte_refs()
/openbmc/qemu/hw/core/
H A Dcpu-common.c73 bool need_lock = !bql_locked(); in cpu_reset_interrupt() local
75 if (need_lock) { in cpu_reset_interrupt()
79 if (need_lock) { in cpu_reset_interrupt()
/openbmc/linux/drivers/media/usb/gspca/
H A Dsq905.c158 sq905_read_data(struct gspca_dev *gspca_dev, u8 *data, int size, int need_lock) in sq905_read_data() argument
164 if (need_lock) in sq905_read_data()
172 if (need_lock) in sq905_read_data()
/openbmc/qemu/ui/
H A Dspice-core.c223 bool need_lock = !qemu_thread_is_self(&me); in channel_event() local
224 if (need_lock) { in channel_event()
262 if (need_lock) { in channel_event()
/openbmc/qemu/target/arm/
H A Dptw.c754 bool need_lock = !bql_locked(); in arm_casq_ptw() local
756 if (need_lock) { in arm_casq_ptw()
764 if (need_lock) { in arm_casq_ptw()
774 if (need_lock) { in arm_casq_ptw()
786 if (need_lock) { in arm_casq_ptw()
796 if (need_lock) { in arm_casq_ptw()
804 if (need_lock) { in arm_casq_ptw()
/openbmc/linux/fs/f2fs/
H A Ddata.c2628 fio->need_lock = LOCK_DONE; in f2fs_do_write_data_page()
2633 if (fio->need_lock == LOCK_REQ && !f2fs_trylock_op(fio->sbi)) in f2fs_do_write_data_page()
2674 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page()
2689 if (fio->need_lock == LOCK_RETRY) { in f2fs_do_write_data_page()
2694 fio->need_lock = LOCK_REQ; in f2fs_do_write_data_page()
2721 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page()
2755 .need_lock = compr_blocks ? LOCK_DONE : LOCK_RETRY, in f2fs_write_single_data_page()
2810 fio.need_lock = LOCK_DONE; in f2fs_write_single_data_page()
2837 fio.need_lock = LOCK_REQ; in f2fs_write_single_data_page()
H A Dfile.c2286 bool readonly, bool need_lock) in f2fs_do_shutdown() argument
2332 if (need_lock) in f2fs_do_shutdown()
2341 if (need_lock) in f2fs_do_shutdown()
H A Df2fs.h1208 unsigned int need_lock:8; /* indicate we need to lock cp_rwsem */ member
3489 bool readonly, bool need_lock);
H A Dgc.c1456 .need_lock = LOCK_REQ, in move_data_page()
/openbmc/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c208 struct hisi_sas_slot *slot, bool need_lock) in hisi_sas_slot_task_free() argument
242 if (need_lock) { in hisi_sas_slot_task_free()
1081 struct hisi_sas_slot *slot, bool need_lock) in hisi_sas_do_release_task() argument
1098 hisi_sas_slot_task_free(hisi_hba, task, slot, need_lock); in hisi_sas_do_release_task()
H A Dhisi_sas.h659 bool need_lock);
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Ddispc.c270 const bool need_lock = rfld.reg == DISPC_CONTROL || rfld.reg == DISPC_CONFIG; in mgr_fld_write() local
273 if (need_lock) in mgr_fld_write()
278 if (need_lock) in mgr_fld_write()
/openbmc/linux/arch/s390/kvm/
H A Dkvm-s390.c2614 const bool need_lock = (cmd->cmd != KVM_PV_ASYNC_CLEANUP_PERFORM); in kvm_s390_handle_pv() local
2619 if (need_lock) in kvm_s390_handle_pv()
2840 if (need_lock) in kvm_s390_handle_pv()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c8380 static bool hclge_is_umv_space_full(struct hclge_vport *vport, bool need_lock) in hclge_is_umv_space_full() argument
8385 if (need_lock) in hclge_is_umv_space_full()
8391 if (need_lock) in hclge_is_umv_space_full()