Lines Matching refs:tde
360 struct tmpfs_dirent_s *tde;
366 tde = (struct tmpfs_dirent_s *)node;
367 if (tde->tde_inuse == true && strcmp(tde->tde_name, name) == 0)
369 return tde;
385 struct tmpfs_dirent_s *tde;
389 tde = to->to_dirent;
390 if (tde == NULL)
397 if (tde->tde_name != NULL)
399 kmm_free(tde->tde_name);
400 tde->tde_name = NULL;
405 LOS_ListDelete(&tde->tde_node);
406 kmm_free(tde);
410 tde->tde_inuse = false;
411 tde->tde_object = NULL;
429 struct tmpfs_dirent_s *tde;
442 tde = (struct tmpfs_dirent_s *)malloc(sizeof(struct tmpfs_dirent_s));
443 if (tde == NULL)
449 tde->tde_object = to;
450 tde->tde_name = newname;
451 tde->tde_inuse = true;
452 to->to_dirent = tde;
457 LOS_ListTailInsert(&parent->tdo_entry, &tde->tde_node);
521 struct tmpfs_dirent_s *tde;
554 tde = tmpfs_find_dirent(parent, copy);
555 if (tde != NULL)
664 struct tmpfs_dirent_s *tde;
698 tde = tmpfs_find_dirent(parent, copy);
699 if (tde != NULL)
776 struct tmpfs_dirent_s *tde;
816 tde = tmpfs_find_dirent(tdo, segment);
817 if (tde == NULL)
825 to = tde->tde_object;
1505 struct tmpfs_dirent_s *tde;
1508 tde = (struct tmpfs_dirent_s *)node;
1510 if (tde->tde_inuse == false)
1512 LOS_ListDelete(&tde->tde_node);
1513 kmm_free(tde);
1543 struct tmpfs_dirent_s *tde;
1575 tde = (struct tmpfs_dirent_s *)node;
1577 if (tde->tde_inuse == true)
1599 to = tde->tde_object;
1617 (void)strncpy_s(dir->fd_dir[0].d_name, NAME_MAX + 1, tde->tde_name, NAME_MAX);
1790 struct tmpfs_dirent_s *tde = NULL;
1828 tde = tmpfs_find_dirent(parent_tdo, filename);
1829 if (tde == NULL)
1834 to = tde->tde_object;
2205 struct tmpfs_dirent_s *tde;
2292 tde = tmpfs_find_dirent(newparent_tdo, copy);
2293 if (tde != NULL)
2295 struct tmpfs_object_s *new_to = tde->tde_object;
2299 if (tde->tde_object->to_type == TMPFS_DIRECTORY)