Lines Matching refs:p_dir
209 struct exfat_hint_femp *hint_femp, struct exfat_chain *p_dir, in exfat_search_empty_slot() argument
216 int total_entries = EXFAT_CLU_TO_DEN(p_dir->size, sbi); in exfat_search_empty_slot()
236 exfat_chain_dup(&clu, p_dir); in exfat_search_empty_slot()
295 struct exfat_chain *p_dir, int num_entries, in exfat_find_empty_entry() argument
314 while ((dentry = exfat_search_empty_slot(sb, &hint_femp, p_dir, in exfat_find_empty_entry()
327 if (exfat_find_last_cluster(sb, p_dir, &last_clu)) in exfat_find_empty_entry()
330 exfat_chain_set(&clu, last_clu + 1, 0, p_dir->flags); in exfat_find_empty_entry()
347 p_dir->dir = clu.dir; in exfat_find_empty_entry()
351 if (clu.flags != p_dir->flags) { in exfat_find_empty_entry()
355 exfat_chain_cont_cluster(sb, p_dir->dir, p_dir->size); in exfat_find_empty_entry()
356 p_dir->flags = ALLOC_FAT_CHAIN; in exfat_find_empty_entry()
370 p_dir->size++; in exfat_find_empty_entry()
371 size = EXFAT_CLU_TO_B(p_dir->size, sbi); in exfat_find_empty_entry()
376 ei->flags = p_dir->flags; in exfat_find_empty_entry()
388 struct exfat_chain *p_dir, struct exfat_uni_name *p_uniname, in __exfat_resolve_path() argument
434 exfat_chain_set(p_dir, ei->start_clu, in __exfat_resolve_path()
460 struct exfat_chain *p_dir, unsigned int type, in exfat_add_entry() argument
473 ret = exfat_resolve_path(inode, path, p_dir, &uniname); in exfat_add_entry()
484 dentry = exfat_find_empty_entry(inode, p_dir, num_entries, &es); in exfat_add_entry()
511 info->dir = *p_dir; in exfat_add_entry()
869 struct exfat_chain *p_dir) in exfat_check_dir_empty() argument
880 if (p_dir->dir == EXFAT_EOF_CLUSTER) in exfat_check_dir_empty()
883 exfat_chain_dup(&clu, p_dir); in exfat_check_dir_empty()
985 static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, in exfat_rename_file() argument
1002 ret = exfat_get_dentry_set(&old_es, sb, p_dir, oldentry, ES_ALL_ENTRIES); in exfat_rename_file()
1013 newentry = exfat_find_empty_entry(inode, p_dir, num_new_entries, in exfat_rename_file()
1038 ei->dir = *p_dir; in exfat_rename_file()
1121 struct exfat_chain *p_dir = NULL; in __exfat_rename() local
1157 p_dir = &(new_ei->dir); in __exfat_rename()
1159 ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh); in __exfat_rename()
1201 ret = exfat_get_dentry_set(&es, sb, p_dir, new_entry, in __exfat_rename()