Lines Matching refs:parms

53 static int vboxsf_call(u32 function, void *parms, u32 parm_count, int *status)  in vboxsf_call()  argument
63 U32_MAX, parms, parm_count, &vbox_status); in vboxsf_call()
77 struct shfl_map_folder parms; in vboxsf_map_folder() local
80 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_map_folder()
81 parms.path.u.pointer.size = shfl_string_buf_size(folder_name); in vboxsf_map_folder()
82 parms.path.u.pointer.u.linear_addr = (uintptr_t)folder_name; in vboxsf_map_folder()
84 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
85 parms.root.u.value32 = 0; in vboxsf_map_folder()
87 parms.delimiter.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
88 parms.delimiter.u.value32 = '/'; in vboxsf_map_folder()
90 parms.case_sensitive.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
91 parms.case_sensitive.u.value32 = 1; in vboxsf_map_folder()
93 err = vboxsf_call(SHFL_FN_MAP_FOLDER, &parms, SHFL_CPARMS_MAP_FOLDER, in vboxsf_map_folder()
98 *root = parms.root.u.value32; in vboxsf_map_folder()
104 struct shfl_unmap_folder parms; in vboxsf_unmap_folder() local
106 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_unmap_folder()
107 parms.root.u.value32 = root; in vboxsf_unmap_folder()
109 return vboxsf_call(SHFL_FN_UNMAP_FOLDER, &parms, in vboxsf_unmap_folder()
133 struct shfl_create parms; in vboxsf_create() local
135 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_create()
136 parms.root.u.value32 = root; in vboxsf_create()
138 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_create()
139 parms.path.u.pointer.size = shfl_string_buf_size(parsed_path); in vboxsf_create()
140 parms.path.u.pointer.u.linear_addr = (uintptr_t)parsed_path; in vboxsf_create()
142 parms.parms.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_create()
143 parms.parms.u.pointer.size = sizeof(struct shfl_createparms); in vboxsf_create()
144 parms.parms.u.pointer.u.linear_addr = (uintptr_t)create_parms; in vboxsf_create()
146 return vboxsf_call(SHFL_FN_CREATE, &parms, SHFL_CPARMS_CREATE, NULL); in vboxsf_create()
151 struct shfl_close parms; in vboxsf_close() local
153 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_close()
154 parms.root.u.value32 = root; in vboxsf_close()
156 parms.handle.type = VMMDEV_HGCM_PARM_TYPE_64BIT; in vboxsf_close()
157 parms.handle.u.value64 = handle; in vboxsf_close()
159 return vboxsf_call(SHFL_FN_CLOSE, &parms, SHFL_CPARMS_CLOSE, NULL); in vboxsf_close()
164 struct shfl_remove parms; in vboxsf_remove() local
166 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_remove()
167 parms.root.u.value32 = root; in vboxsf_remove()
169 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_remove()
170 parms.path.u.pointer.size = shfl_string_buf_size(parsed_path); in vboxsf_remove()
171 parms.path.u.pointer.u.linear_addr = (uintptr_t)parsed_path; in vboxsf_remove()
173 parms.flags.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_remove()
174 parms.flags.u.value32 = flags; in vboxsf_remove()
176 return vboxsf_call(SHFL_FN_REMOVE, &parms, SHFL_CPARMS_REMOVE, NULL); in vboxsf_remove()
182 struct shfl_rename parms; in vboxsf_rename() local
184 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_rename()
185 parms.root.u.value32 = root; in vboxsf_rename()
187 parms.src.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_rename()
188 parms.src.u.pointer.size = shfl_string_buf_size(src_path); in vboxsf_rename()
189 parms.src.u.pointer.u.linear_addr = (uintptr_t)src_path; in vboxsf_rename()
191 parms.dest.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_rename()
192 parms.dest.u.pointer.size = shfl_string_buf_size(dest_path); in vboxsf_rename()
193 parms.dest.u.pointer.u.linear_addr = (uintptr_t)dest_path; in vboxsf_rename()
195 parms.flags.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_rename()
196 parms.flags.u.value32 = flags; in vboxsf_rename()
198 return vboxsf_call(SHFL_FN_RENAME, &parms, SHFL_CPARMS_RENAME, NULL); in vboxsf_rename()
203 struct shfl_read parms; in vboxsf_read() local
206 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_read()
207 parms.root.u.value32 = root; in vboxsf_read()
209 parms.handle.type = VMMDEV_HGCM_PARM_TYPE_64BIT; in vboxsf_read()
210 parms.handle.u.value64 = handle; in vboxsf_read()
211 parms.offset.type = VMMDEV_HGCM_PARM_TYPE_64BIT; in vboxsf_read()
212 parms.offset.u.value64 = offset; in vboxsf_read()
213 parms.cb.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_read()
214 parms.cb.u.value32 = *buf_len; in vboxsf_read()
215 parms.buffer.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_OUT; in vboxsf_read()
216 parms.buffer.u.pointer.size = *buf_len; in vboxsf_read()
217 parms.buffer.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_read()
219 err = vboxsf_call(SHFL_FN_READ, &parms, SHFL_CPARMS_READ, NULL); in vboxsf_read()
221 *buf_len = parms.cb.u.value32; in vboxsf_read()
227 struct shfl_write parms; in vboxsf_write() local
230 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_write()
231 parms.root.u.value32 = root; in vboxsf_write()
233 parms.handle.type = VMMDEV_HGCM_PARM_TYPE_64BIT; in vboxsf_write()
234 parms.handle.u.value64 = handle; in vboxsf_write()
235 parms.offset.type = VMMDEV_HGCM_PARM_TYPE_64BIT; in vboxsf_write()
236 parms.offset.u.value64 = offset; in vboxsf_write()
237 parms.cb.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_write()
238 parms.cb.u.value32 = *buf_len; in vboxsf_write()
239 parms.buffer.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_write()
240 parms.buffer.u.pointer.size = *buf_len; in vboxsf_write()
241 parms.buffer.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_write()
243 err = vboxsf_call(SHFL_FN_WRITE, &parms, SHFL_CPARMS_WRITE, NULL); in vboxsf_write()
245 *buf_len = parms.cb.u.value32; in vboxsf_write()
254 struct shfl_list parms; in vboxsf_dirinfo() local
257 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_dirinfo()
258 parms.root.u.value32 = root; in vboxsf_dirinfo()
260 parms.handle.type = VMMDEV_HGCM_PARM_TYPE_64BIT; in vboxsf_dirinfo()
261 parms.handle.u.value64 = handle; in vboxsf_dirinfo()
262 parms.flags.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_dirinfo()
263 parms.flags.u.value32 = flags; in vboxsf_dirinfo()
264 parms.cb.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_dirinfo()
265 parms.cb.u.value32 = *buf_len; in vboxsf_dirinfo()
267 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_dirinfo()
268 parms.path.u.pointer.size = shfl_string_buf_size(parsed_path); in vboxsf_dirinfo()
269 parms.path.u.pointer.u.linear_addr = (uintptr_t)parsed_path; in vboxsf_dirinfo()
271 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_IN; in vboxsf_dirinfo()
272 parms.path.u.pointer.size = 0; in vboxsf_dirinfo()
273 parms.path.u.pointer.u.linear_addr = 0; in vboxsf_dirinfo()
276 parms.buffer.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_OUT; in vboxsf_dirinfo()
277 parms.buffer.u.pointer.size = *buf_len; in vboxsf_dirinfo()
278 parms.buffer.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_dirinfo()
280 parms.resume_point.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_dirinfo()
281 parms.resume_point.u.value32 = index; in vboxsf_dirinfo()
282 parms.file_count.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_dirinfo()
283 parms.file_count.u.value32 = 0; /* out parameter only */ in vboxsf_dirinfo()
285 err = vboxsf_call(SHFL_FN_LIST, &parms, SHFL_CPARMS_LIST, &status); in vboxsf_dirinfo()
289 *buf_len = parms.cb.u.value32; in vboxsf_dirinfo()
290 *file_count = parms.file_count.u.value32; in vboxsf_dirinfo()
297 struct shfl_information parms; in vboxsf_fsinfo() local
300 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_fsinfo()
301 parms.root.u.value32 = root; in vboxsf_fsinfo()
303 parms.handle.type = VMMDEV_HGCM_PARM_TYPE_64BIT; in vboxsf_fsinfo()
304 parms.handle.u.value64 = handle; in vboxsf_fsinfo()
305 parms.flags.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_fsinfo()
306 parms.flags.u.value32 = flags; in vboxsf_fsinfo()
307 parms.cb.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_fsinfo()
308 parms.cb.u.value32 = *buf_len; in vboxsf_fsinfo()
309 parms.info.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_fsinfo()
310 parms.info.u.pointer.size = *buf_len; in vboxsf_fsinfo()
311 parms.info.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_fsinfo()
313 err = vboxsf_call(SHFL_FN_INFORMATION, &parms, SHFL_CPARMS_INFORMATION, in vboxsf_fsinfo()
316 *buf_len = parms.cb.u.value32; in vboxsf_fsinfo()
323 struct shfl_readLink parms; in vboxsf_readlink() local
325 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_readlink()
326 parms.root.u.value32 = root; in vboxsf_readlink()
328 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_readlink()
329 parms.path.u.pointer.size = shfl_string_buf_size(parsed_path); in vboxsf_readlink()
330 parms.path.u.pointer.u.linear_addr = (uintptr_t)parsed_path; in vboxsf_readlink()
332 parms.buffer.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_OUT; in vboxsf_readlink()
333 parms.buffer.u.pointer.size = buf_len; in vboxsf_readlink()
334 parms.buffer.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_readlink()
336 return vboxsf_call(SHFL_FN_READLINK, &parms, SHFL_CPARMS_READLINK, in vboxsf_readlink()
343 struct shfl_symlink parms; in vboxsf_symlink() local
345 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_symlink()
346 parms.root.u.value32 = root; in vboxsf_symlink()
348 parms.new_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink()
349 parms.new_path.u.pointer.size = shfl_string_buf_size(new_path); in vboxsf_symlink()
350 parms.new_path.u.pointer.u.linear_addr = (uintptr_t)new_path; in vboxsf_symlink()
352 parms.old_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink()
353 parms.old_path.u.pointer.size = shfl_string_buf_size(old_path); in vboxsf_symlink()
354 parms.old_path.u.pointer.u.linear_addr = (uintptr_t)old_path; in vboxsf_symlink()
356 parms.info.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_OUT; in vboxsf_symlink()
357 parms.info.u.pointer.size = sizeof(struct shfl_fsobjinfo); in vboxsf_symlink()
358 parms.info.u.pointer.u.linear_addr = (uintptr_t)buf; in vboxsf_symlink()
360 return vboxsf_call(SHFL_FN_SYMLINK, &parms, SHFL_CPARMS_SYMLINK, NULL); in vboxsf_symlink()