Lines Matching refs:dent

305 	struct ubifs_dent_node *dent;  in ubifs_printdir()  local
322 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_printdir()
323 if (IS_ERR(dent)) { in ubifs_printdir()
324 err = PTR_ERR(dent); in ubifs_printdir()
328 file->f_pos = key_hash_flash(c, &dent->key); in ubifs_printdir()
329 file->private_data = dent; in ubifs_printdir()
332 dent = file->private_data; in ubifs_printdir()
333 if (!dent) { in ubifs_printdir()
341 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_printdir()
342 if (IS_ERR(dent)) { in ubifs_printdir()
343 err = PTR_ERR(dent); in ubifs_printdir()
346 file->f_pos = key_hash_flash(c, &dent->key); in ubifs_printdir()
347 file->private_data = dent; in ubifs_printdir()
352 dent->name, (unsigned long long)le64_to_cpu(dent->inum), in ubifs_printdir()
353 key_hash_flash(c, &dent->key)); in ubifs_printdir()
355 ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum); in ubifs_printdir()
358 nm.len = le16_to_cpu(dent->nlen); in ubifs_printdir()
359 over = filldir(c, (char *)dent->name, nm.len, in ubifs_printdir()
360 le64_to_cpu(dent->inum), dent->type); in ubifs_printdir()
365 key_read(c, &dent->key, &key); in ubifs_printdir()
366 nm.name = (char *)dent->name; in ubifs_printdir()
367 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_printdir()
368 if (IS_ERR(dent)) { in ubifs_printdir()
369 err = PTR_ERR(dent); in ubifs_printdir()
374 file->f_pos = key_hash_flash(c, &dent->key); in ubifs_printdir()
375 file->private_data = dent; in ubifs_printdir()
397 struct ubifs_dent_node *dent; in ubifs_finddir() local
425 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_finddir()
426 if (IS_ERR(dent)) { in ubifs_finddir()
427 err = PTR_ERR(dent); in ubifs_finddir()
431 file->f_pos = key_hash_flash(c, &dent->key); in ubifs_finddir()
432 file->private_data = dent; in ubifs_finddir()
436 dent->name, (unsigned long long)le64_to_cpu(dent->inum), in ubifs_finddir()
437 key_hash_flash(c, &dent->key)); in ubifs_finddir()
439 ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum); in ubifs_finddir()
442 nm.len = le16_to_cpu(dent->nlen); in ubifs_finddir()
443 if ((strncmp(dirname, (char *)dent->name, nm.len) == 0) && in ubifs_finddir()
445 *inum = le64_to_cpu(dent->inum); in ubifs_finddir()
451 key_read(c, &dent->key, &key); in ubifs_finddir()
452 nm.name = (char *)dent->name; in ubifs_finddir()
453 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_finddir()
454 if (IS_ERR(dent)) { in ubifs_finddir()
455 err = PTR_ERR(dent); in ubifs_finddir()
460 file->f_pos = key_hash_flash(c, &dent->key); in ubifs_finddir()
461 file->private_data = dent; in ubifs_finddir()