Home
last modified time | relevance | path

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

/linux-6.15/arch/arm/mm/
H A Dfault-armv.c65 unsigned long pfn, bool need_lock) in adjust_pte() argument
102 if (need_lock) { in adjust_pte()
116 if (need_lock) in adjust_pte()
149 bool need_lock = IS_ENABLED(CONFIG_SPLIT_PTE_PTLOCKS); in make_coherent() local
166 need_lock = false; in make_coherent()
167 aliases += adjust_pte(mpnt, mpnt_addr, pfn, need_lock); in make_coherent()
/linux-6.15/mm/
H A Dpage_idle.c104 bool need_lock; in page_idle_clear_pte_refs() local
109 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in page_idle_clear_pte_refs()
110 if (need_lock && !folio_trylock(folio)) in page_idle_clear_pte_refs()
115 if (need_lock) in page_idle_clear_pte_refs()
/linux-6.15/mm/damon/
H A Dpaddr.c43 bool need_lock; in damon_folio_mkold() local
50 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in damon_folio_mkold()
51 if (need_lock && !folio_trylock(folio)) in damon_folio_mkold()
56 if (need_lock) in damon_folio_mkold()
138 bool need_lock; in damon_folio_young() local
147 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in damon_folio_young()
148 if (need_lock && !folio_trylock(folio)) in damon_folio_young()
153 if (need_lock) in damon_folio_young()
/linux-6.15/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()
/linux-6.15/drivers/accel/habanalabs/common/
H A Dcommand_submission.c3246 struct hl_user_pending_interrupt *record, bool need_lock) in unregister_timestamp_node() argument
3252 if (need_lock) in unregister_timestamp_node()
3261 if (need_lock) in unregister_timestamp_node()
3277 bool need_lock = false; in ts_get_and_handle_kernel_record() local
3295 need_lock = true; in ts_get_and_handle_kernel_record()
3299 unregister_timestamp_node(hdev, req_offset_record, need_lock); in ts_get_and_handle_kernel_record()
3301 if (need_lock) in ts_get_and_handle_kernel_record()
/linux-6.15/fs/f2fs/
H A Ddata.c2668 fio->need_lock = LOCK_DONE; in f2fs_do_write_data_page()
2673 if (fio->need_lock == LOCK_REQ && !f2fs_trylock_op(fio->sbi)) in f2fs_do_write_data_page()
2713 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page()
2727 if (fio->need_lock == LOCK_RETRY) { in f2fs_do_write_data_page()
2732 fio->need_lock = LOCK_REQ; in f2fs_do_write_data_page()
2759 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page()
2794 .need_lock = compr_blocks ? LOCK_DONE : LOCK_RETRY, in f2fs_write_single_data_page()
2849 fio.need_lock = LOCK_DONE; in f2fs_write_single_data_page()
2876 fio.need_lock = LOCK_REQ; in f2fs_write_single_data_page()
H A Dcheckpoint.c1233 bool need_lock = sbi->umount_lock_holder != current; in block_operations() local
1243 if (!need_lock) { in block_operations()
H A Dfile.c2360 bool readonly, bool need_lock) in f2fs_do_shutdown() argument
2411 if (need_lock) in f2fs_do_shutdown()
2420 if (need_lock) in f2fs_do_shutdown()
H A Df2fs.h1235 unsigned int need_lock:8; /* indicate we need to lock cp_rwsem */ member
3586 bool readonly, bool need_lock);
H A Dgc.c1488 .need_lock = LOCK_REQ, in move_data_page()
/linux-6.15/drivers/scsi/hisi_sas/
H A Dhisi_sas.h658 bool need_lock);
H A Dhisi_sas_main.c232 struct hisi_sas_slot *slot, bool need_lock) in hisi_sas_slot_task_free() argument
266 if (need_lock) { in hisi_sas_slot_task_free()
1125 struct hisi_sas_slot *slot, bool need_lock) in hisi_sas_do_release_task() argument
1142 hisi_sas_slot_task_free(hisi_hba, task, slot, need_lock); in hisi_sas_do_release_task()
/linux-6.15/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()
/linux-6.15/arch/s390/kvm/
H A Dkvm-s390.c2655 const bool need_lock = (cmd->cmd != KVM_PV_ASYNC_CLEANUP_PERFORM); in kvm_s390_handle_pv() local
2660 if (need_lock) in kvm_s390_handle_pv()
2881 if (need_lock) in kvm_s390_handle_pv()
/linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c8463 static bool hclge_is_umv_space_full(struct hclge_vport *vport, bool need_lock) in hclge_is_umv_space_full() argument
8468 if (need_lock) in hclge_is_umv_space_full()
8474 if (need_lock) in hclge_is_umv_space_full()