Lines Matching refs:sinfo

22                                      struct fat32_slot_info *sinfo);
57 struct fat32_slot_info *sinfo) in __fat32_search_long_short() argument
300 sinfo->buffer = buf; in __fat32_search_long_short()
301 sinfo->de = tmp_dEntry; in __fat32_search_long_short()
302 sinfo->i_pos = __fat32_calculate_LBA(fsbi->first_data_sector, fsbi->sec_per_clus, cluster); in __fat32_search_long_short()
303 sinfo->num_slots = cnt_long_dir + 1; in __fat32_search_long_short()
304 sinfo->slot_off = tmp_dEntry - (struct fat32_Directory_t *)buf; in __fat32_search_long_short()
322 struct fat32_slot_info sinfo = {0}; in fat32_lookup() local
323 errcode = vfat_find(parent_inode, dest_dentry->name, &sinfo); in fat32_lookup()
331 p->file_size = sinfo.de->DIR_FileSize; in fat32_lookup()
334 p->attribute = (sinfo.de->DIR_Attr & ATTR_DIRECTORY) ? VFS_IF_DIR : VFS_IF_FILE; in fat32_lookup()
343 finode->first_clus = ((sinfo.de->DIR_FstClusHI << 16) | sinfo.de->DIR_FstClusLO) & 0x0fffffff; in fat32_lookup()
344 …y_location_clus = __fat32_LBA_to_cluster(fsbi->first_data_sector, fsbi->sec_per_clus, sinfo.i_pos); in fat32_lookup()
345 finode->dEntry_location_clus_offset = sinfo.slot_off; // 计算dentry的偏移量 in fat32_lookup()
348 finode->create_date = sinfo.de->DIR_CrtDate; in fat32_lookup()
349 finode->create_time = sinfo.de->DIR_CrtTime; in fat32_lookup()
350 finode->write_date = sinfo.de->DIR_WrtDate; in fat32_lookup()
351 finode->write_time = sinfo.de->DIR_WrtTime; in fat32_lookup()
355 if ((sinfo.de->DIR_FstClusHI >> 12) && (p->attribute & VFS_IF_FILE)) in fat32_lookup()
363 kfree(sinfo.buffer); in fat32_lookup()
1127 struct fat32_slot_info sinfo = {0}; in fat32_unlink() local
1130 retval = vfat_find(dir, dentry->name, &sinfo); in fat32_unlink()
1136 retval = fat32_remove_entries(dir, &sinfo); in fat32_unlink()
1143 if (sinfo.buffer != NULL) in fat32_unlink()
1144 kfree(sinfo.buffer); in fat32_unlink()