/openbmc/linux/mm/damon/ |
H A D | paddr.c | 41 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 D | page_idle.c | 99 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 D | cpu-common.c | 73 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 D | sq905.c | 158 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 D | spice-core.c | 223 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 D | ptw.c | 754 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 D | data.c | 2628 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 D | file.c | 2286 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 D | f2fs.h | 1208 unsigned int need_lock:8; /* indicate we need to lock cp_rwsem */ member 3489 bool readonly, bool need_lock);
|
H A D | gc.c | 1456 .need_lock = LOCK_REQ, in move_data_page()
|
/openbmc/linux/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_main.c | 208 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 D | hisi_sas.h | 659 bool need_lock);
|
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | dispc.c | 270 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 D | kvm-s390.c | 2614 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 D | hclge_main.c | 8380 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()
|