Lines Matching refs:target

111 ncp_negotiate_buffersize(struct ncp_server *server, int size, int *target)  in ncp_negotiate_buffersize()  argument
122 *target = min_t(unsigned int, ntohs(ncp_reply_word(server, 0)), size); in ncp_negotiate_buffersize()
164 struct ncp_volume_info *target) in ncp_get_volume_info_with_number() argument
175 target->total_blocks = ncp_reply_dword(server, 0); in ncp_get_volume_info_with_number()
176 target->free_blocks = ncp_reply_dword(server, 4); in ncp_get_volume_info_with_number()
177 target->purgeable_blocks = ncp_reply_dword(server, 8); in ncp_get_volume_info_with_number()
178 target->not_yet_purgeable_blocks = ncp_reply_dword(server, 12); in ncp_get_volume_info_with_number()
179 target->total_dir_entries = ncp_reply_dword(server, 16); in ncp_get_volume_info_with_number()
180 target->available_dir_entries = ncp_reply_dword(server, 20); in ncp_get_volume_info_with_number()
181 target->sectors_per_block = ncp_reply_byte(server, 28); in ncp_get_volume_info_with_number()
183 memset(&(target->volume_name), 0, sizeof(target->volume_name)); in ncp_get_volume_info_with_number()
191 memcpy(&(target->volume_name), ncp_reply_data(server, 30), len); in ncp_get_volume_info_with_number()
251 static void ncp_extract_file_info(void *structure, struct nw_info_struct *target) in ncp_extract_file_info() argument
256 memcpy(target, structure, info_struct_size); in ncp_extract_file_info()
258 target->nameLen = *name_len; in ncp_extract_file_info()
259 memcpy(target->entryName, name_len + 1, *name_len); in ncp_extract_file_info()
260 target->entryName[*name_len] = '\0'; in ncp_extract_file_info()
261 target->volNumber = le32_to_cpu(target->volNumber); in ncp_extract_file_info()
270 struct nw_info_struct *target) in ncp_obtain_info() argument
276 if (target == NULL) { in ncp_obtain_info()
290 ncp_extract_file_info(ncp_reply_data(server, 0), target); in ncp_obtain_info()
427 struct nw_info_struct *target) in ncp_lookup_volume() argument
451 memset(target, 0, sizeof(*target)); in ncp_lookup_volume()
452 target->DosDirNum = target->dirEntNum = ncp_reply_dword(server, 4); in ncp_lookup_volume()
453 target->volNumber = volnum = ncp_reply_byte(server, 8); in ncp_lookup_volume()
461 target->nameLen = strlen(volname); in ncp_lookup_volume()
462 memcpy(target->entryName, volname, target->nameLen+1); in ncp_lookup_volume()
463 target->attributes = aDIR; in ncp_lookup_volume()
465 target->creationTime = target->modifyTime = cpu_to_le16(0x0000); in ncp_lookup_volume()
466 target->creationDate = target->modifyDate = target->lastAccessDate = cpu_to_le16(0x0C21); in ncp_lookup_volume()
578 struct ncp_entry_info *target) in ncp_open_create_file_or_subdir() argument
581 __u8 volnum = target->i.volNumber; in ncp_open_create_file_or_subdir()
582 __u32 dirent = target->i.dirEntNum; in ncp_open_create_file_or_subdir()
609 target->opened = 1; in ncp_open_create_file_or_subdir()
610 target->server_file_handle = ncp_reply_dword(server, 0); in ncp_open_create_file_or_subdir()
611 target->open_create_action = ncp_reply_byte(server, 4); in ncp_open_create_file_or_subdir()
614 ncp_extract_file_info(ncp_reply_data(server, 6), &(target->i)); in ncp_open_create_file_or_subdir()
615 ConvertToNWfromDWORD(target->server_file_handle, target->file_handle); in ncp_open_create_file_or_subdir()
624 struct nw_search_sequence *target) in ncp_initialize_search() argument
639 memcpy(target, ncp_reply_data(server, 0), sizeof(*target)); in ncp_initialize_search()
649 struct nw_info_struct *target) in ncp_search_for_file_or_subdir() argument
674 ncp_extract_file_info(ncp_reply_data(server, 10), target); in ncp_search_for_file_or_subdir()
749 __u32 offset, __u16 to_read, char *target, int *bytes_read) in ncp_read_kernel() argument
766 memcpy(target, source, *bytes_read); in ncp_read_kernel()
785 __u32 offset, __u16 to_read, char *target, int *bytes_read, in ncp_read_bounce() argument
809 if (copy_to_user(target, source, len)) in ncp_read_bounce()