Lines Matching refs:id
345 u64 id) in __ksmbd_lookup_fd() argument
349 if (!has_file_id(id)) in __ksmbd_lookup_fd()
353 fp = idr_find(ft->idr, id); in __ksmbd_lookup_fd()
379 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd() argument
384 if (!has_file_id(id)) in ksmbd_close_fd()
389 fp = idr_find(ft->idr, id); in ksmbd_close_fd()
429 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd() argument
431 return __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_foreign_fd()
434 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast() argument
436 struct ksmbd_file *fp = __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_fd_fast()
445 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow() argument
450 if (!has_file_id(id)) { in ksmbd_lookup_fd_slow()
451 id = work->compound_fid; in ksmbd_lookup_fd_slow()
455 fp = __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_fd_slow()
467 struct ksmbd_file *ksmbd_lookup_durable_fd(unsigned long long id) in ksmbd_lookup_durable_fd() argument
469 return __ksmbd_lookup_fd(&global_ft, id); in ksmbd_lookup_durable_fd()
475 unsigned int id; in ksmbd_lookup_fd_cguid() local
478 idr_for_each_entry(global_ft.idr, fp, id) { in ksmbd_lookup_fd_cguid()
520 static void __open_id_set(struct ksmbd_file *fp, u64 id, int type) in __open_id_set() argument
523 fp->volatile_id = id; in __open_id_set()
525 fp->persistent_id = id; in __open_id_set()
531 u64 id = 0; in __open_id() local
543 id = ret; in __open_id()
546 id = KSMBD_NO_FID; in __open_id()
550 __open_id_set(fp, id, type); in __open_id()
623 unsigned int id; in __close_file_table_ids() local
627 idr_for_each_entry(ft->idr, fp, id) { in __close_file_table_ids()
679 unsigned int id; in ksmbd_free_global_file_table() local
681 idr_for_each_entry(global_ft.idr, fp, id) { in ksmbd_free_global_file_table()