Home
last modified time | relevance | path

Searched refs:mmap2 (Results 1 – 9 of 9) sorted by relevance

/components/dfs/dfs_v2/src/
A Ddfs_file_mmap.c96 void *map_vaddr = mmap2->addr; in _map_data_to_uspace()
97 size_t map_size = mmap2->length; in _map_data_to_uspace()
98 struct rt_lwp *lwp = mmap2->lwp; in _map_data_to_uspace()
109 k_flags = lwp_user_mm_flag_to_kernel(mmap2->flags); in _map_data_to_uspace()
110 k_flags = MMF_CREATE(k_flags, mmap2->min_align_size); in _map_data_to_uspace()
111 k_attr = lwp_user_mm_attr_to_kernel(mmap2->prot); in _map_data_to_uspace()
657 int dfs_file_mmap(struct dfs_file *file, struct dfs_mmap2_args *mmap2) in dfs_file_mmap() argument
663 mmap2->addr, mmap2->length, mmap2->prot, mmap2->flags, mmap2->pgoffset); in dfs_file_mmap()
669 map_vaddr = _map_data_to_uspace(mmap2, file, &ret); in dfs_file_mmap()
672 mmap2->ret = map_vaddr; in dfs_file_mmap()
[all …]
A Ddfs_file.c2472 int dfs_file_mmap2(struct dfs_file *file, struct dfs_mmap2_args *mmap2) in dfs_file_mmap2() argument
2476 if (file && mmap2) in dfs_file_mmap2()
2480 ret = dfs_file_mmap(file, mmap2); in dfs_file_mmap2()
2495 ret = file->vnode->fops->ioctl(file, RT_FIOMMAP2, mmap2); in dfs_file_mmap2()
/components/dfs/dfs_v1/filesystems/tmpfs/
A Ddfs_tmpfs.c194 struct dfs_mmap2_args *mmap2 = (struct dfs_mmap2_args *)args; in dfs_tmpfs_ioctl() local
195 if (mmap2) in dfs_tmpfs_ioctl()
197 if (mmap2->length > file->vnode->size) in dfs_tmpfs_ioctl()
201 else if (mmap2->lwp == RT_NULL) in dfs_tmpfs_ioctl()
204 LOG_D("tmpfile mmap ptr:%x , size:%d\n", d_file->data, mmap2->length); in dfs_tmpfs_ioctl()
205 mmap2->ret = lwp_map_user_phy(mmap2->lwp, mmap2->addr, d_file->data, mmap2->length, 0); in dfs_tmpfs_ioctl()
/components/lwp/
A Dlwp_user_mm.c622 struct dfs_mmap2_args mmap2; in lwp_mmap2() local
624 mmap2.addr = addr; in lwp_mmap2()
625 mmap2.length = length; in lwp_mmap2()
626 mmap2.min_align_size = min_align_size; in lwp_mmap2()
627 mmap2.prot = prot; in lwp_mmap2()
628 mmap2.flags = flags; in lwp_mmap2()
629 mmap2.pgoffset = pgoffset; in lwp_mmap2()
630 mmap2.ret = (void *)-1; in lwp_mmap2()
631 mmap2.lwp = lwp; in lwp_mmap2()
633 rc = dfs_file_mmap2(d, &mmap2); in lwp_mmap2()
[all …]
/components/drivers/virtio/
A Dvirtio.c387 struct dfs_mmap2_args *mmap2 = (struct dfs_mmap2_args *)args; in fb_control() local
389 if(mmap2) in fb_control()
391mmap2->ret = lwp_map_user_phy(lwp_self(), RT_NULL, rt_kmem_v2p(_graphic_info.framebuffer), mmap2->… in fb_control()
/components/dfs/dfs_v2/filesystems/tmpfs/
A Ddfs_tmpfs.c208 struct dfs_mmap2_args *mmap2 = (struct dfs_mmap2_args *)args; in dfs_tmpfs_ioctl() local
209 if (mmap2) in dfs_tmpfs_ioctl()
211 if (mmap2->length > file->vnode->size) in dfs_tmpfs_ioctl()
216 LOG_D("tmpfile mmap ptr:%x , size:%d\n", d_file->data, mmap2->length); in dfs_tmpfs_ioctl()
217 mmap2->ret = lwp_map_user_phy(lwp_self(), RT_NULL, d_file->data, mmap2->length, 0); in dfs_tmpfs_ioctl()
/components/dfs/dfs_v2/include/
A Ddfs_file.h183 int dfs_file_mmap2(struct dfs_file *file, struct dfs_mmap2_args *mmap2);
185 int dfs_file_mmap(struct dfs_file *file, struct dfs_mmap2_args *mmap2);
/components/dfs/dfs_v1/include/
A Ddfs_file.h100 int dfs_file_mmap2(struct dfs_file *fd, struct dfs_mmap2_args *mmap2);
/components/dfs/dfs_v1/src/
A Ddfs_file.c757 int dfs_file_mmap2(struct dfs_file *fd, struct dfs_mmap2_args *mmap2) in dfs_file_mmap2() argument
761 if (fd && mmap2) in dfs_file_mmap2()
769 ret = fd->vnode->fops->ioctl(fd, RT_FIOMMAP2, mmap2); in dfs_file_mmap2()

Completed in 18 milliseconds