Lines Matching refs:path
1442 const char **path, uint16_t *id) {
1443 // we reduce path to a single name if we can find it
1444 const char *name = *path;
1491 // found path
1497 *path = name;
2567 static int lfs_rawmkdir(lfs_t *lfs, const char *path) {
2577 err = lfs_dir_find(lfs, &cwd.m, &path, &id);
2583 lfs_size_t nlen = strlen(path);
2650 {LFS_MKTAG(LFS_TYPE_DIR, id, nlen), path},
2663 static int lfs_dir_rawopen(lfs_t *lfs, lfs_dir_t *dir, const char *path) {
2664 lfs_stag_t tag = lfs_dir_find(lfs, &dir->m, &path, NULL);
3008 const char *path, int flags,
3031 lfs_stag_t tag = lfs_dir_find(lfs, &file->m, &path, &file->id);
3053 lfs_size_t nlen = strlen(path);
3062 {LFS_MKTAG(LFS_TYPE_REG, file->id, nlen), path},
3175 const char *path, int flags) {
3177 int err = lfs_file_rawopencfg(lfs, file, path, flags, &defaults);
3808 static int lfs_rawstat(lfs_t *lfs, const char *path, struct lfs_info *info) {
3810 lfs_stag_t tag = lfs_dir_find(lfs, &cwd, &path, NULL);
3819 static int lfs_rawremove(lfs_t *lfs, const char *path) {
3827 lfs_stag_t tag = lfs_dir_find(lfs, &cwd, &path, NULL);
4033 static lfs_ssize_t lfs_rawgetattr(lfs_t *lfs, const char *path,
4036 lfs_stag_t tag = lfs_dir_find(lfs, &cwd, &path, NULL);
4067 static int lfs_commitattr(lfs_t *lfs, const char *path,
4070 lfs_stag_t tag = lfs_dir_find(lfs, &cwd, &path, NULL);
4091 static int lfs_rawsetattr(lfs_t *lfs, const char *path,
4097 return lfs_commitattr(lfs, path, type, buffer, size);
4102 static int lfs_rawremoveattr(lfs_t *lfs, const char *path, uint8_t type) {
4103 return lfs_commitattr(lfs, path, type, NULL, 0x3ff);
5827 int lfs_remove(lfs_t *lfs, const char *path) {
5832 LFS_TRACE("lfs_remove(%p, \"%s\")", (void*)lfs, path);
5834 err = lfs_rawremove(lfs, path);
5858 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info) {
5863 LFS_TRACE("lfs_stat(%p, \"%s\", %p)", (void*)lfs, path, (void*)info);
5865 err = lfs_rawstat(lfs, path, info);
5872 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
5879 (void*)lfs, path, type, buffer, size);
5881 lfs_ssize_t res = lfs_rawgetattr(lfs, path, type, buffer, size);
5889 int lfs_setattr(lfs_t *lfs, const char *path,
5896 (void*)lfs, path, type, buffer, size);
5898 err = lfs_rawsetattr(lfs, path, type, buffer, size);
5907 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type) {
5912 LFS_TRACE("lfs_removeattr(%p, \"%s\", %"PRIu8")", (void*)lfs, path, type);
5914 err = lfs_rawremoveattr(lfs, path, type);
5923 int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) {
5929 (void*)lfs, (void*)file, path, flags);
5932 err = lfs_file_rawopen(lfs, file, path, flags);
5941 const char *path, int flags,
5949 (void*)lfs, (void*)file, path, flags,
5953 err = lfs_file_rawopencfg(lfs, file, path, flags, cfg);
6108 int lfs_mkdir(lfs_t *lfs, const char *path) {
6113 LFS_TRACE("lfs_mkdir(%p, \"%s\")", (void*)lfs, path);
6115 err = lfs_rawmkdir(lfs, path);
6123 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path) {
6128 LFS_TRACE("lfs_dir_open(%p, %p, \"%s\")", (void*)lfs, (void*)dir, path);
6131 err = lfs_dir_rawopen(lfs, dir, path);