Lines Matching defs:data
120 int tmpfs_mount(struct Mount *mnt, struct Vnode *device, const void *data);
1002 /* Recover our private data from the struct file instance */
1003 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1055 /* Recover our private data from the struct file instance */
1057 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1083 /* Copy data from the memory object to the user buffer */
1113 DEBUGASSERT(vnode->data != NULL);
1115 /* Recover our private data from the vnode */
1117 tfo = (struct tmpfs_file_s *)(vnode->data);
1143 /* Copy data from the memory object to the user buffer */
1179 fs = dvp->originMount->data;
1187 if (dvp->data != NULL)
1189 parent_tdo = (struct tmpfs_directory_s *)(dvp->data);
1207 vp->data = tfo;
1255 char *data;
1264 /* Recover our private data from the struct file instance */
1265 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1291 data = (char *)malloc(startpos + alloc);
1292 if (!data)
1299 ret = memcpy_s(data, startpos + alloc, tfo->tfo_data, tfo->tfo_size);
1303 free(data);
1310 (void)memset_s(data + tfo->tfo_size, startpos + alloc - tfo->tfo_size, 0, startpos - tfo->tfo_size);
1313 tfo->tfo_data = data;
1317 /* Copy data from the memory object to the user buffer */
1350 /* Recover our private data from the struct file instance */
1352 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1427 /* Get the mountpoint private data from the inode structure */
1429 fs = vp->originMount->data;
1449 if (vp->data != NULL)
1451 tdo = (struct tmpfs_directory_s *)vp->data;
1651 tfo = vp->data;
1667 int tmpfs_mount(struct Mount *mnt, struct Vnode *device, const void *data)
1723 vp->data = NULL;
1727 mnt->data = fs;
1742 struct tmpfs_s *fs = (struct tmpfs_s *)mnt->data;
1804 fs = parent->originMount->data;
1809 parent_tdo = (struct tmpfs_directory_s *)(parent->data);
1857 vp->data = to;
1885 vp->data = NULL;
1928 fs = node->originMount->data;
1945 parent_dir = (struct tmpfs_directory_s *)(parent->data);
1956 tfo = (struct tmpfs_file_s *)node->data;
1998 node->data = NULL;
2048 fs = parent->originMount->data;
2055 if (parent->data != NULL)
2057 parent_tdo = (struct tmpfs_directory_s *)(parent->data);
2076 vp->data = tdo;
2105 fs = parent->originMount->data;
2121 parent_dir = (struct tmpfs_directory_s *)(parent->data);
2132 tdo = (struct tmpfs_directory_s *)target->data;
2164 target->data = NULL;
2233 fs = oldVnode->parent->originMount->data;
2256 newparent_tdo = (struct tmpfs_directory_s *)(newParent->data);
2259 new_fs = newParent->originMount->data;
2275 oldparent = (struct tmpfs_directory_s *)(old_parent_vnode->data);
2276 old_to = (struct tmpfs_object_s *)oldVnode->data;
2482 fs = vp->originMount->data;
2493 if (vp->data != NULL)
2495 to = (struct tmpfs_object_s *)vp->data;