Lines Matching refs:target
153 ncp_negotiate_buffersize(struct ncp_server *server, int size, int *target) in ncp_negotiate_buffersize() argument
164 *target = min_t(unsigned int, ncp_reply_be16(server, 0), size); in ncp_negotiate_buffersize()
205 int n, struct ncp_volume_info* target) { in ncp_get_volume_info_with_number() argument
215 target->total_blocks = ncp_reply_dword_lh(server, 0); in ncp_get_volume_info_with_number()
216 target->free_blocks = ncp_reply_dword_lh(server, 4); in ncp_get_volume_info_with_number()
217 target->purgeable_blocks = ncp_reply_dword_lh(server, 8); in ncp_get_volume_info_with_number()
218 target->not_yet_purgeable_blocks = ncp_reply_dword_lh(server, 12); in ncp_get_volume_info_with_number()
219 target->total_dir_entries = ncp_reply_dword_lh(server, 16); in ncp_get_volume_info_with_number()
220 target->available_dir_entries = ncp_reply_dword_lh(server, 20); in ncp_get_volume_info_with_number()
221 target->sectors_per_block = ncp_reply_byte(server, 28); in ncp_get_volume_info_with_number()
223 memset(&(target->volume_name), 0, sizeof(target->volume_name)); in ncp_get_volume_info_with_number()
231 memcpy(&(target->volume_name), ncp_reply_data(server, 30), len); in ncp_get_volume_info_with_number()
239 struct ncp_volume_info* target) { in ncp_get_directory_info() argument
249 target->total_blocks = ncp_reply_dword_lh(server, 0); in ncp_get_directory_info()
250 target->free_blocks = ncp_reply_dword_lh(server, 4); in ncp_get_directory_info()
251 target->purgeable_blocks = 0; in ncp_get_directory_info()
252 target->not_yet_purgeable_blocks = 0; in ncp_get_directory_info()
253 target->total_dir_entries = ncp_reply_dword_lh(server, 8); in ncp_get_directory_info()
254 target->available_dir_entries = ncp_reply_dword_lh(server, 12); in ncp_get_directory_info()
255 target->sectors_per_block = ncp_reply_byte(server, 20); in ncp_get_directory_info()
257 memset(&(target->volume_name), 0, sizeof(target->volume_name)); in ncp_get_directory_info()
265 memcpy(&(target->volume_name), ncp_reply_data(server, 22), len); in ncp_get_directory_info()
352 void ncp_extract_file_info(const void *structure, struct nw_info_struct *target) in ncp_extract_file_info() argument
357 memcpy(target, structure, info_struct_size); in ncp_extract_file_info()
359 target->nameLen = *name_len; in ncp_extract_file_info()
360 memcpy(target->entryName, name_len + 1, *name_len); in ncp_extract_file_info()
361 target->entryName[*name_len] = '\0'; in ncp_extract_file_info()
362 target->volNumber = le32_to_cpu(target->volNumber); in ncp_extract_file_info()
368 struct nw_nfs_info *target) in ncp_extract_nfs_info() argument
370 target->mode = DVAL_LH(structure); in ncp_extract_nfs_info()
371 target->rdev = DVAL_LH(structure + 8); in ncp_extract_nfs_info()
376 struct nw_info_struct *target) in ncp_obtain_nfs_info() argument
381 __u32 volnum = target->volNumber; in ncp_obtain_nfs_info()
390 ncp_add_dword(server, target->dirEntNum); in ncp_obtain_nfs_info()
396 ncp_extract_nfs_info(ncp_reply_data(server, 0), &target->nfs); in ncp_obtain_nfs_info()
399 target->entryName, target->nfs.mode, in ncp_obtain_nfs_info()
400 target->nfs.rdev); in ncp_obtain_nfs_info()
402 target->nfs.mode = 0; in ncp_obtain_nfs_info()
403 target->nfs.rdev = 0; in ncp_obtain_nfs_info()
410 target->nfs.mode = 0; in ncp_obtain_nfs_info()
411 target->nfs.rdev = 0; in ncp_obtain_nfs_info()
421 struct nw_info_struct *target) in ncp_obtain_info() argument
427 if (target == NULL) { in ncp_obtain_info()
441 ncp_extract_file_info(ncp_reply_data(server, 0), target); in ncp_obtain_info()
444 result = ncp_obtain_nfs_info(server, target); in ncp_obtain_info()
626 const char *volname, struct nw_info_struct *target) in ncp_lookup_volume() argument
630 memset(target, 0, sizeof(*target)); in ncp_lookup_volume()
632 &target->volNumber, &target->dirEntNum, &target->DosDirNum); in ncp_lookup_volume()
636 ncp_update_known_namespace(server, target->volNumber, NULL); in ncp_lookup_volume()
637 target->nameLen = strlen(volname); in ncp_lookup_volume()
638 memcpy(target->entryName, volname, target->nameLen+1); in ncp_lookup_volume()
639 target->attributes = aDIR; in ncp_lookup_volume()
641 target->creationTime = target->modifyTime = cpu_to_le16(0x0000); in ncp_lookup_volume()
642 target->creationDate = target->modifyDate = target->lastAccessDate = cpu_to_le16(0x0C21); in ncp_lookup_volume()
643 target->nfs.mode = 0; in ncp_lookup_volume()
783 struct ncp_entry_info *target) in ncp_open_create_file_or_subdir() argument
811 target->opened = 1; in ncp_open_create_file_or_subdir()
814 ncp_extract_file_info(ncp_reply_data(server, 6), &(target->i)); in ncp_open_create_file_or_subdir()
815 target->volume = target->i.volNumber; in ncp_open_create_file_or_subdir()
818 target->file_handle); in ncp_open_create_file_or_subdir()
822 (void)ncp_obtain_nfs_info(server, &(target->i)); in ncp_open_create_file_or_subdir()
832 struct nw_search_sequence *target) in ncp_initialize_search() argument
847 memcpy(target, ncp_reply_data(server, 0), sizeof(*target)); in ncp_initialize_search()
970 __u32 offset, __u16 to_read, char *target, int *bytes_read) in ncp_read_kernel() argument
987 memcpy(target, source, *bytes_read); in ncp_read_kernel()
1006 __u32 offset, __u16 to_read, char __user *target, int *bytes_read, in ncp_read_bounce() argument
1030 if (copy_to_user(target, source, len)) in ncp_read_bounce()