Lines Matching refs:slotptr
148 static int str2slot(dir_slot *slotptr, const char *name, int *idx) in str2slot() argument
154 slotptr->name0_4[j] = 0; in str2slot()
155 slotptr->name0_4[j + 1] = 0; in str2slot()
159 slotptr->name0_4[j] = name[*idx]; in str2slot()
165 slotptr->name5_10[j] = 0; in str2slot()
166 slotptr->name5_10[j + 1] = 0; in str2slot()
170 slotptr->name5_10[j] = name[*idx]; in str2slot()
176 slotptr->name11_12[j] = 0; in str2slot()
177 slotptr->name11_12[j + 1] = 0; in str2slot()
181 slotptr->name11_12[j] = name[*idx]; in str2slot()
193 slotptr->name0_4[end_idx * 2] = 0xff; in str2slot()
194 slotptr->name0_4[end_idx * 2 + 1] = 0xff; in str2slot()
200 slotptr->name5_10[end_idx * 2] = 0xff; in str2slot()
201 slotptr->name5_10[end_idx * 2 + 1] = 0xff; in str2slot()
207 slotptr->name11_12[end_idx * 2] = 0xff; in str2slot()
208 slotptr->name11_12[end_idx * 2 + 1] = 0xff; in str2slot()
225 dir_slot *slotptr = (dir_slot *)temp_dir_slot_buffer; in fill_dir_slot() local
233 memset(slotptr, 0x00, sizeof(dir_slot)); in fill_dir_slot()
234 ret = str2slot(slotptr, l_name, &idx); in fill_dir_slot()
235 slotptr->id = ++counter; in fill_dir_slot()
236 slotptr->attr = ATTR_VFAT; in fill_dir_slot()
237 slotptr->alias_checksum = checksum; in fill_dir_slot()
238 slotptr++; in fill_dir_slot()
241 slotptr--; in fill_dir_slot()
242 slotptr->id |= LAST_LONG_ENTRY_MASK; in fill_dir_slot()
249 memcpy(*dentptr, slotptr, sizeof(dir_slot)); in fill_dir_slot()
251 slotptr--; in fill_dir_slot()
277 dir_slot *slotptr = (dir_slot *)(*retdent); in get_long_file_name() local
282 __u8 counter = (slotptr->id & ~LAST_LONG_ENTRY_MASK) & 0xff; in get_long_file_name()
290 while ((__u8 *)slotptr < buflimit) { in get_long_file_name()
293 if (((slotptr->id & ~LAST_LONG_ENTRY_MASK) & 0xff) != counter) in get_long_file_name()
295 slotptr++; in get_long_file_name()
299 if ((__u8 *)slotptr >= buflimit) { in get_long_file_name()
334 realdent = (dir_entry *)slotptr; in get_long_file_name()
338 slotptr--; in get_long_file_name()
339 if (slot2str(slotptr, l_name, &idx)) in get_long_file_name()
341 } while (!(slotptr->id & LAST_LONG_ENTRY_MASK)); in get_long_file_name()