taglinefilesource code
server630arch/sparc/kernel/sys_sunos.cstruct sockaddr_in server;
server657arch/sparc/kernel/sys_sunos.cserver.sin_family = AF_INET;
server658arch/sparc/kernel/sys_sunos.cserver.sin_addr = addr->sin_addr;
server659arch/sparc/kernel/sys_sunos.cserver.sin_port = NFS_PORT;
server662arch/sparc/kernel/sys_sunos.cret = socket->ops->connect (socket, (struct sockaddr *) &server,
server663arch/sparc/kernel/sys_sunos.csizeof (server), file->f_flags);
server33fs/ncpfs/dir.cncp_read_volume_list(struct ncp_server *server, int start_with,
server37fs/ncpfs/dir.cncp_do_readdir(struct ncp_server *server, struct inode *dir, int fpos,
server135fs/ncpfs/dir.cncp_single_volume(struct ncp_server *server)
server137fs/ncpfs/dir.creturn (server->m.mounted_vol[0] != '\0');
server141fs/ncpfs/dir.cncp_info_ino(struct ncp_server *server, struct ncp_inode_info *info)
server143fs/ncpfs/dir.creturn ncp_single_volume(server)
server159fs/ncpfs/dir.cstruct ncp_server *server = NCP_SERVER(inode);
server160fs/ncpfs/dir.cstruct ncp_inode_info *root = &(server->root);
server167fs/ncpfs/dir.cif (ino == ncp_info_ino(server, this))
server204fs/ncpfs/dir.cstruct ncp_server *server = NCP_SERVER(inode);
server217fs/ncpfs/dir.cif (!ncp_conn_valid(server))
server237fs/ncpfs/dir.cncp_info_ino(server, dir)) < 0)
server247fs/ncpfs/dir.cncp_info_ino(server, dir->dir)) < 0)
server278fs/ncpfs/dir.cresult = ncp_read_volume_list(server, filp->f_pos,
server285fs/ncpfs/dir.cresult = ncp_do_readdir(server, inode, filp->f_pos,
server330fs/ncpfs/dir.cif (ncp_single_volume(server))
server375fs/ncpfs/dir.cncp_read_volume_list(struct ncp_server *server, int fpos, int cache_size)
server394fs/ncpfs/dir.cif (ncp_get_volume_info_with_number(server, i, &info) != 0)
server415fs/ncpfs/dir.cif (ncp_lookup_volume(server,
server434fs/ncpfs/dir.cncp_do_readdir(struct ncp_server *server, struct inode *dir, int fpos,
server464fs/ncpfs/dir.cif (ncp_initialize_search(server, NCP_ISTRUCT(dir), &seq)!=0)
server473fs/ncpfs/dir.cif (ncp_search_for_file_or_subdir(server, &seq,
server621fs/ncpfs/dir.cncp_init_root(struct ncp_server *server)
server623fs/ncpfs/dir.cstruct ncp_inode_info *root = &(server->root);
server627fs/ncpfs/dir.cDPRINTK("ncp_init_root: server %s\n", server->m.server_name);
server649fs/ncpfs/dir.cncp_conn_logged_in(struct ncp_server *server)
server651fs/ncpfs/dir.cif (server->m.mounted_vol[0] == '\0')
server656fs/ncpfs/dir.cstr_upper(server->m.mounted_vol);
server657fs/ncpfs/dir.cif (ncp_lookup_volume(server, server->m.mounted_vol,
server658fs/ncpfs/dir.c&(server->root.finfo.i)) != 0)
server662fs/ncpfs/dir.cstr_lower(server->root.finfo.i.entryName);
server668fs/ncpfs/dir.cncp_free_all_inodes(struct ncp_server *server)
server674fs/ncpfs/dir.cstruct ncp_inode_info *root = &(server->root);
server699fs/ncpfs/dir.cstruct ncp_server *server = NCP_SERVER(dir);
server701fs/ncpfs/dir.cstruct ncp_inode_info *result = &(server->root);
server718fs/ncpfs/dir.c&& (result != &(server->root)))
server725fs/ncpfs/dir.cwhile (result != &(server->root));
server735fs/ncpfs/dir.cstruct ncp_server *server;
server749fs/ncpfs/dir.cserver = NCP_SERVER(dir);
server751fs/ncpfs/dir.cif (!ncp_conn_valid(server))
server776fs/ncpfs/dir.c*result = iget(dir->i_sb, ncp_info_ino(server, parent));
server802fs/ncpfs/dir.c*result = iget(dir->i_sb, ncp_info_ino(server, result_info));
server851fs/ncpfs/dir.cres = ncp_lookup_volume(server, name, &(finfo.i));
server855fs/ncpfs/dir.cres = ncp_obtain_info(server,
server161fs/ncpfs/inode.cstruct ncp_server *server;
server212fs/ncpfs/inode.cserver = (struct ncp_server *)ncp_kmalloc(sizeof(struct ncp_server),
server215fs/ncpfs/inode.cif (server == NULL)
server227fs/ncpfs/inode.cNCP_SBP(sb) = server;
server235fs/ncpfs/inode.cserver->ncp_filp    = ncp_filp;
server236fs/ncpfs/inode.cserver->wdog_filp   = wdog_filp;
server237fs/ncpfs/inode.cserver->msg_filp    = msg_filp;
server238fs/ncpfs/inode.cserver->lock        = 0;
server239fs/ncpfs/inode.cserver->wait        = NULL;
server240fs/ncpfs/inode.cserver->packet      = NULL;
server241fs/ncpfs/inode.cserver->buffer_size = 0;
server242fs/ncpfs/inode.cserver->conn_status = 0;
server244fs/ncpfs/inode.cserver->m = *data;
server245fs/ncpfs/inode.cserver->m.file_mode = (server->m.file_mode &
server247fs/ncpfs/inode.cserver->m.dir_mode  = (server->m.dir_mode &
server251fs/ncpfs/inode.cserver->m.mount_point[sizeof(server->m.mount_point)-1] = '\0';
server253fs/ncpfs/inode.cserver->packet_size = NCP_PACKET_SIZE;
server254fs/ncpfs/inode.cserver->packet      = ncp_kmalloc(NCP_PACKET_SIZE, GFP_KERNEL);
server256fs/ncpfs/inode.cif (server->packet == NULL)
server268fs/ncpfs/inode.cif (ncp_catch_watchdog(server) != 0)
server276fs/ncpfs/inode.cif (ncp_catch_message(server) != 0)
server279fs/ncpfs/inode.cncp_dont_catch_watchdog(server);
server285fs/ncpfs/inode.cncp_lock_server(server);
server286fs/ncpfs/inode.cerror = ncp_connect(server);
server287fs/ncpfs/inode.cncp_unlock_server(server);
server295fs/ncpfs/inode.cncp_kfree_s(server->packet, server->packet_size);
server296fs/ncpfs/inode.cncp_dont_catch_watchdog(server);
server302fs/ncpfs/inode.cncp_init_root(server);
server304fs/ncpfs/inode.cif (!(sb->s_mounted = iget(sb, ncp_info_ino(server, &(server->root)))))
server311fs/ncpfs/inode.cif (ncp_negotiate_buffersize(server, NCP_DEFAULT_BUFSIZE,
server312fs/ncpfs/inode.c&(server->buffer_size)) != 0)
server319fs/ncpfs/inode.cDPRINTK("ncpfs: bufsize = %d\n", server->buffer_size);
server325fs/ncpfs/inode.cncp_lock_server(server);
server326fs/ncpfs/inode.cncp_disconnect(server);
server327fs/ncpfs/inode.cncp_unlock_server(server);
server328fs/ncpfs/inode.cncp_kfree_s(server->packet, server->packet_size);
server329fs/ncpfs/inode.cncp_dont_catch_watchdog(server);
server341fs/ncpfs/inode.cstruct ncp_server *server = NCP_SBP(sb);
server345fs/ncpfs/inode.cncp_lock_server(server);
server346fs/ncpfs/inode.cncp_disconnect(server);
server347fs/ncpfs/inode.cncp_unlock_server(server);
server349fs/ncpfs/inode.cclose_fp(server->ncp_filp);
server351fs/ncpfs/inode.cncp_dont_catch_watchdog(server);
server352fs/ncpfs/inode.cclose_fp(server->wdog_filp);
server353fs/ncpfs/inode.cclose_fp(server->msg_filp);
server355fs/ncpfs/inode.cncp_free_all_inodes(server);
server357fs/ncpfs/inode.cncp_kfree_s(server->packet, server->packet_size);
server371fs/ncpfs/inode.cncp_trigger_message(struct ncp_server *server)
server373fs/ncpfs/inode.cchar command[ sizeof(server->m.mount_point)
server376fs/ncpfs/inode.cif (server == NULL)
server383fs/ncpfs/inode.cserver->m.mount_point);
server388fs/ncpfs/inode.cstrcat(command, server->m.mount_point);
server24fs/ncpfs/ioctl.cstruct ncp_server *server = NCP_SERVER(inode);
server50fs/ncpfs/ioctl.c&& (current->uid != server->m.mounted_uid))
server77fs/ncpfs/ioctl.cncp_lock_server(server);
server82fs/ncpfs/ioctl.cserver->has_subfunction = 0;
server83fs/ncpfs/ioctl.cserver->current_size = request.size;
server84fs/ncpfs/ioctl.cmemcpy_fromfs(server->packet, request.data, request.size);
server86fs/ncpfs/ioctl.cncp_request(server, request.function);
server89fs/ncpfs/ioctl.cserver->reply_size);
server90fs/ncpfs/ioctl.cmemcpy_tofs(request.data, server->packet, server->reply_size);
server92fs/ncpfs/ioctl.cncp_unlock_server(server);
server94fs/ncpfs/ioctl.creturn server->reply_size;
server99fs/ncpfs/ioctl.c&& (current->uid != server->m.mounted_uid))
server104fs/ncpfs/ioctl.creturn ncp_conn_logged_in(server);
server109fs/ncpfs/ioctl.c&& (current->uid != server->m.mounted_uid))
server129fs/ncpfs/ioctl.cinfo.addr          = server->m.serv_addr;
server130fs/ncpfs/ioctl.cinfo.mounted_uid   = server->m.mounted_uid;
server131fs/ncpfs/ioctl.cinfo.connection    = server->connection;
server132fs/ncpfs/ioctl.cinfo.buffer_size   = server->buffer_size;
server142fs/ncpfs/ioctl.c&& (current->uid != server->m.mounted_uid))
server152fs/ncpfs/ioctl.cput_fs_word(server->m.mounted_uid, (uid_t*) arg);
server20fs/ncpfs/ncplib_kernel.cassert_server_locked(struct ncp_server *server)
server22fs/ncpfs/ncplib_kernel.cif (server->lock == 0)
server29fs/ncpfs/ncplib_kernel.cncp_add_byte(struct ncp_server *server, byte x)
server31fs/ncpfs/ncplib_kernel.cassert_server_locked(server);
server32fs/ncpfs/ncplib_kernel.c*(byte *)(&(server->packet[server->current_size])) = x;
server33fs/ncpfs/ncplib_kernel.cserver->current_size += 1;
server38fs/ncpfs/ncplib_kernel.cncp_add_word(struct ncp_server *server, word x)
server40fs/ncpfs/ncplib_kernel.cassert_server_locked(server);
server41fs/ncpfs/ncplib_kernel.c*(word *)(&(server->packet[server->current_size])) = x;
server42fs/ncpfs/ncplib_kernel.cserver->current_size += 2;
server47fs/ncpfs/ncplib_kernel.cncp_add_dword(struct ncp_server *server, dword x)
server49fs/ncpfs/ncplib_kernel.cassert_server_locked(server);
server50fs/ncpfs/ncplib_kernel.c*(dword *)(&(server->packet[server->current_size])) = x;
server51fs/ncpfs/ncplib_kernel.cserver->current_size += 4;
server56fs/ncpfs/ncplib_kernel.cncp_add_mem(struct ncp_server *server, const void *source, int size)
server58fs/ncpfs/ncplib_kernel.cassert_server_locked(server);
server59fs/ncpfs/ncplib_kernel.cmemcpy(&(server->packet[server->current_size]), source, size);
server60fs/ncpfs/ncplib_kernel.cserver->current_size += size;
server65fs/ncpfs/ncplib_kernel.cncp_add_mem_fromfs(struct ncp_server *server, const char *source, int size)
server67fs/ncpfs/ncplib_kernel.cassert_server_locked(server);
server68fs/ncpfs/ncplib_kernel.cmemcpy_fromfs(&(server->packet[server->current_size]), source, size);
server69fs/ncpfs/ncplib_kernel.cserver->current_size += size;
server74fs/ncpfs/ncplib_kernel.cncp_add_pstring(struct ncp_server *server, const char *s)
server77fs/ncpfs/ncplib_kernel.cassert_server_locked(server);
server83fs/ncpfs/ncplib_kernel.cncp_add_byte(server, len);
server84fs/ncpfs/ncplib_kernel.cncp_add_mem(server, s, len);
server89fs/ncpfs/ncplib_kernel.cncp_init_request(struct ncp_server *server)
server91fs/ncpfs/ncplib_kernel.cncp_lock_server(server);
server93fs/ncpfs/ncplib_kernel.cserver->current_size = sizeof(struct ncp_request_header);
server94fs/ncpfs/ncplib_kernel.cserver->has_subfunction = 0;
server98fs/ncpfs/ncplib_kernel.cncp_init_request_s(struct ncp_server *server, int subfunction)
server100fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server101fs/ncpfs/ncplib_kernel.cncp_add_word(server, 0); /* preliminary size */
server103fs/ncpfs/ncplib_kernel.cncp_add_byte(server, subfunction);
server105fs/ncpfs/ncplib_kernel.cserver->has_subfunction = 1;
server109fs/ncpfs/ncplib_kernel.cncp_reply_data(struct ncp_server *server, int offset)
server111fs/ncpfs/ncplib_kernel.creturn &(server->packet[sizeof(struct ncp_reply_header) + offset]);
server115fs/ncpfs/ncplib_kernel.cncp_reply_byte(struct ncp_server *server, int offset)
server117fs/ncpfs/ncplib_kernel.creturn *(byte *)(ncp_reply_data(server, offset));
server121fs/ncpfs/ncplib_kernel.cncp_reply_word(struct ncp_server *server, int offset)
server123fs/ncpfs/ncplib_kernel.creturn *(word *)(ncp_reply_data(server, offset));
server127fs/ncpfs/ncplib_kernel.cncp_reply_dword(struct ncp_server *server, int offset)
server129fs/ncpfs/ncplib_kernel.creturn *(dword *)(ncp_reply_data(server, offset));
server133fs/ncpfs/ncplib_kernel.cncp_negotiate_buffersize(struct ncp_server *server,
server138fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server139fs/ncpfs/ncplib_kernel.cncp_add_word(server, htons(size));
server141fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 33)) != 0)
server143fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server147fs/ncpfs/ncplib_kernel.c*target =min(ntohs(ncp_reply_word(server, 0)), size);
server149fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server154fs/ncpfs/ncplib_kernel.cncp_get_volume_info_with_number(struct ncp_server *server, int n,
server160fs/ncpfs/ncplib_kernel.cncp_init_request_s(server, 44);
server161fs/ncpfs/ncplib_kernel.cncp_add_byte(server, n);
server163fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 22)) != 0)
server165fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server169fs/ncpfs/ncplib_kernel.ctarget->total_blocks = ncp_reply_dword(server, 0);
server170fs/ncpfs/ncplib_kernel.ctarget->free_blocks  = ncp_reply_dword(server, 4);
server171fs/ncpfs/ncplib_kernel.ctarget->purgeable_blocks = ncp_reply_dword(server, 8);
server172fs/ncpfs/ncplib_kernel.ctarget->not_yet_purgeable_blocks = ncp_reply_dword(server, 12);
server173fs/ncpfs/ncplib_kernel.ctarget->total_dir_entries = ncp_reply_dword(server, 16);
server174fs/ncpfs/ncplib_kernel.ctarget->available_dir_entries = ncp_reply_dword(server, 20);
server175fs/ncpfs/ncplib_kernel.ctarget->sectors_per_block = ncp_reply_byte(server, 28);
server179fs/ncpfs/ncplib_kernel.clen = ncp_reply_byte(server, 29);
server183fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server187fs/ncpfs/ncplib_kernel.cmemcpy(&(target->volume_name), ncp_reply_data(server, 30), len);
server188fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server193fs/ncpfs/ncplib_kernel.cncp_get_volume_number(struct ncp_server *server, const char *name, int *target)
server197fs/ncpfs/ncplib_kernel.cncp_init_request_s(server, 5);
server198fs/ncpfs/ncplib_kernel.cncp_add_pstring(server, name);
server200fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 22)) != 0)
server202fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server206fs/ncpfs/ncplib_kernel.c*target = ncp_reply_byte(server, 0);
server207fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server212fs/ncpfs/ncplib_kernel.cncp_close_file(struct ncp_server *server, const char *file_id)
server216fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server217fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0);
server218fs/ncpfs/ncplib_kernel.cncp_add_mem(server, file_id, 6);
server220fs/ncpfs/ncplib_kernel.cresult = ncp_request(server, 66);
server221fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server226fs/ncpfs/ncplib_kernel.cncp_add_handle_path(struct ncp_server *server,
server231fs/ncpfs/ncplib_kernel.cncp_add_byte(server, vol_num);
server232fs/ncpfs/ncplib_kernel.cncp_add_dword(server, dir_base);
server235fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1); /* dir_base */
server239fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0xff); /* no handle */
server243fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1); /* 1 component */
server244fs/ncpfs/ncplib_kernel.cncp_add_pstring(server, path);
server248fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0);
server267fs/ncpfs/ncplib_kernel.cncp_obtain_info(struct ncp_server *server,
server279fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server280fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 6); /* subfunction */
server281fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space */
server282fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space as dest */
server283fs/ncpfs/ncplib_kernel.cncp_add_word(server, 0xff); /* get all */
server284fs/ncpfs/ncplib_kernel.cncp_add_dword(server, RIM_ALL);
server285fs/ncpfs/ncplib_kernel.cncp_add_handle_path(server, vol_num, dir_base, 1, path);
server287fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 87)) != 0)
server289fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server293fs/ncpfs/ncplib_kernel.cncp_extract_file_info(ncp_reply_data(server, 0), target);
server294fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server299fs/ncpfs/ncplib_kernel.cncp_lookup_volume(struct ncp_server *server,
server309fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server310fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 22); /* Subfunction: Generate dir handle */
server311fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* DOS name space */
server312fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* reserved */
server313fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* reserved */
server314fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* reserved */
server316fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* faked volume number */
server317fs/ncpfs/ncplib_kernel.cncp_add_dword(server, 0); /* faked dir_base */
server318fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0xff); /* Don't have a dir_base */
server319fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1); /* 1 path component */
server320fs/ncpfs/ncplib_kernel.cncp_add_pstring(server, volname);
server322fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 87)) != 0)
server324fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server328fs/ncpfs/ncplib_kernel.cdir_base = ncp_reply_dword(server, 4);
server329fs/ncpfs/ncplib_kernel.cvol_num  = ncp_reply_byte(server, 8);
server330fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server332fs/ncpfs/ncplib_kernel.cif ((result = ncp_obtain_info(server, vol_num, dir_base, NULL,
server346fs/ncpfs/ncplib_kernel.cncp_modify_file_or_subdir_dos_info(struct ncp_server *server,
server353fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server354fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 7); /* subfunction */
server355fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space */
server356fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* reserved */
server357fs/ncpfs/ncplib_kernel.cncp_add_word(server, 0x8006); /* search attribs: all */
server359fs/ncpfs/ncplib_kernel.cncp_add_dword(server, info_mask);
server360fs/ncpfs/ncplib_kernel.cncp_add_mem(server, info, sizeof(*info));
server361fs/ncpfs/ncplib_kernel.cncp_add_handle_path(server, file->volNumber,
server364fs/ncpfs/ncplib_kernel.cresult = ncp_request(server, 87);
server365fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server370fs/ncpfs/ncplib_kernel.cncp_del_file_or_subdir(struct ncp_server *server,
server375fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server376fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 8); /* subfunction */
server377fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space */
server378fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* reserved */
server379fs/ncpfs/ncplib_kernel.cncp_add_word(server, 0x8006); /* search attribs: all */
server380fs/ncpfs/ncplib_kernel.cncp_add_handle_path(server, dir->volNumber,
server383fs/ncpfs/ncplib_kernel.cresult = ncp_request(server, 87);
server384fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server400fs/ncpfs/ncplib_kernel.cncp_open_create_file_or_subdir(struct ncp_server *server,
server415fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server416fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1); /* subfunction */
server417fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space */
server418fs/ncpfs/ncplib_kernel.cncp_add_byte(server, open_create_mode);
server419fs/ncpfs/ncplib_kernel.cncp_add_word(server, search_attribs);
server420fs/ncpfs/ncplib_kernel.cncp_add_dword(server, RIM_ALL);
server421fs/ncpfs/ncplib_kernel.cncp_add_dword(server, create_attributes);
server424fs/ncpfs/ncplib_kernel.cncp_add_word(server, desired_acc_rights);
server428fs/ncpfs/ncplib_kernel.cncp_add_handle_path(server, dir->volNumber,
server433fs/ncpfs/ncplib_kernel.cncp_add_handle_path(server,
server438fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 87)) != 0)
server440fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server445fs/ncpfs/ncplib_kernel.ctarget->server_file_handle = ncp_reply_dword(server, 0);
server446fs/ncpfs/ncplib_kernel.ctarget->open_create_action = ncp_reply_byte(server, 4);
server451fs/ncpfs/ncplib_kernel.cncp_extract_file_info(ncp_reply_data(server, 5), &(target->i));
server456fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server462fs/ncpfs/ncplib_kernel.cncp_initialize_search(struct ncp_server *server,
server468fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server469fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 2); /* subfunction */
server470fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space */
server471fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* reserved */
server472fs/ncpfs/ncplib_kernel.cncp_add_handle_path(server, dir->volNumber, dir->DosDirNum, 1, NULL);
server474fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 87)) != 0)
server476fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server480fs/ncpfs/ncplib_kernel.cmemcpy(target, ncp_reply_data(server, 0), sizeof(*target));
server482fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server488fs/ncpfs/ncplib_kernel.cncp_search_for_file_or_subdir(struct ncp_server *server,
server494fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server495fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 3); /* subfunction */
server496fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space */
server497fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* data stream (???) */
server498fs/ncpfs/ncplib_kernel.cncp_add_word(server, 0xffff); /* Search attribs */
server499fs/ncpfs/ncplib_kernel.cncp_add_dword(server, RIM_ALL);  /* return info mask */
server500fs/ncpfs/ncplib_kernel.cncp_add_mem(server, seq, 9);
server501fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 2); /* 2 byte pattern */
server502fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0xff); /* following is a wildcard */
server503fs/ncpfs/ncplib_kernel.cncp_add_byte(server, '*');
server505fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 87)) != 0)
server507fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server511fs/ncpfs/ncplib_kernel.cmemcpy(seq, ncp_reply_data(server, 0), sizeof(*seq));
server512fs/ncpfs/ncplib_kernel.cncp_extract_file_info(ncp_reply_data(server, 10), target);
server514fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server519fs/ncpfs/ncplib_kernel.cncp_ren_or_mov_file_or_subdir(struct ncp_server *server,
server529fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server530fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 4); /* subfunction */
server531fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0); /* dos name space */
server532fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1); /* rename flag */
server533fs/ncpfs/ncplib_kernel.cncp_add_word(server, 0x8006); /* search attributes */
server536fs/ncpfs/ncplib_kernel.cncp_add_byte(server, old_dir->volNumber);
server537fs/ncpfs/ncplib_kernel.cncp_add_dword(server, old_dir->DosDirNum);
server538fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1);
server539fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1); /* 1 source component */
server542fs/ncpfs/ncplib_kernel.cncp_add_byte(server, new_dir->volNumber);
server543fs/ncpfs/ncplib_kernel.cncp_add_dword(server, new_dir->DosDirNum);
server544fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1);
server545fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 1); /* 1 destination component */
server548fs/ncpfs/ncplib_kernel.cncp_add_pstring(server, old_name);
server550fs/ncpfs/ncplib_kernel.cncp_add_pstring(server, new_name);
server552fs/ncpfs/ncplib_kernel.cresult = ncp_request(server, 87);
server553fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server560fs/ncpfs/ncplib_kernel.cncp_read(struct ncp_server *server, const char *file_id,
server566fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server567fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0);
server568fs/ncpfs/ncplib_kernel.cncp_add_mem(server, file_id, 6);
server569fs/ncpfs/ncplib_kernel.cncp_add_dword(server, htonl(offset));
server570fs/ncpfs/ncplib_kernel.cncp_add_word(server, htons(to_read));
server572fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 72)) != 0)
server574fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server578fs/ncpfs/ncplib_kernel.c*bytes_read = ntohs(ncp_reply_word(server, 0));
server580fs/ncpfs/ncplib_kernel.cmemcpy_tofs(target, ncp_reply_data(server, 2+(offset&1)), *bytes_read);
server582fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server587fs/ncpfs/ncplib_kernel.cncp_write(struct ncp_server *server, const char *file_id,
server593fs/ncpfs/ncplib_kernel.cncp_init_request(server);
server594fs/ncpfs/ncplib_kernel.cncp_add_byte(server, 0);
server595fs/ncpfs/ncplib_kernel.cncp_add_mem(server, file_id, 6);
server596fs/ncpfs/ncplib_kernel.cncp_add_dword(server, htonl(offset));
server597fs/ncpfs/ncplib_kernel.cncp_add_word(server, htons(to_write));
server598fs/ncpfs/ncplib_kernel.cncp_add_mem_fromfs(server, source, to_write);
server600fs/ncpfs/ncplib_kernel.cif ((result = ncp_request(server, 73)) != 0)
server602fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server608fs/ncpfs/ncplib_kernel.cncp_unlock_server(server);
server26fs/ncpfs/ncplib_kernel.hncp_negotiate_buffersize(struct ncp_server *server, int size,
server29fs/ncpfs/ncplib_kernel.hncp_get_encryption_key(struct ncp_server *server,
server32fs/ncpfs/ncplib_kernel.hncp_get_bindery_object_id(struct ncp_server *server,
server36fs/ncpfs/ncplib_kernel.hncp_login_encrypted(struct ncp_server *server,
server41fs/ncpfs/ncplib_kernel.hncp_login_user(struct ncp_server *server,
server45fs/ncpfs/ncplib_kernel.hncp_get_volume_info_with_number(struct ncp_server *server, int n,
server49fs/ncpfs/ncplib_kernel.hncp_get_volume_number(struct ncp_server *server, const char *name,
server53fs/ncpfs/ncplib_kernel.hncp_file_search_init(struct ncp_server *server,
server58fs/ncpfs/ncplib_kernel.hncp_file_search_continue(struct ncp_server *server,
server64fs/ncpfs/ncplib_kernel.hncp_get_finfo(struct ncp_server *server,
server69fs/ncpfs/ncplib_kernel.hncp_open_file(struct ncp_server *server,
server74fs/ncpfs/ncplib_kernel.hncp_close_file(struct ncp_server *server, const char *file_id);
server77fs/ncpfs/ncplib_kernel.hncp_create_newfile(struct ncp_server *server,
server83fs/ncpfs/ncplib_kernel.hncp_create_file(struct ncp_server *server,
server89fs/ncpfs/ncplib_kernel.hncp_erase_file(struct ncp_server *server,
server94fs/ncpfs/ncplib_kernel.hncp_rename_file(struct ncp_server *server,
server100fs/ncpfs/ncplib_kernel.hncp_create_directory(struct ncp_server *server,
server105fs/ncpfs/ncplib_kernel.hncp_delete_directory(struct ncp_server *server,
server109fs/ncpfs/ncplib_kernel.hncp_rename_directory(struct ncp_server *server,
server114fs/ncpfs/ncplib_kernel.hncp_read(struct ncp_server *server, const char *file_id,
server119fs/ncpfs/ncplib_kernel.hncp_write(struct ncp_server *server, const char *file_id,
server124fs/ncpfs/ncplib_kernel.hncp_obtain_info(struct ncp_server *server,
server130fs/ncpfs/ncplib_kernel.hncp_lookup_volume(struct ncp_server *server,
server136fs/ncpfs/ncplib_kernel.hncp_modify_file_or_subdir_dos_info(struct ncp_server *server,
server142fs/ncpfs/ncplib_kernel.hncp_del_file_or_subdir(struct ncp_server *server,
server146fs/ncpfs/ncplib_kernel.hncp_open_create_file_or_subdir(struct ncp_server *server,
server154fs/ncpfs/ncplib_kernel.hncp_initialize_search(struct ncp_server *server,
server159fs/ncpfs/ncplib_kernel.hncp_search_for_file_or_subdir(struct ncp_server *server,
server164fs/ncpfs/ncplib_kernel.hncp_ren_or_mov_file_or_subdir(struct ncp_server *server,
server122fs/ncpfs/sock.cncp_catch_watchdog(struct ncp_server *server)
server129fs/ncpfs/sock.cif (   (server == NULL)
server130fs/ncpfs/sock.c|| ((file  = server->wdog_filp) == NULL)
server135fs/ncpfs/sock.cserver->data_ready = NULL;
server144fs/ncpfs/sock.cserver->data_ready = NULL;
server153fs/ncpfs/sock.cserver->data_ready = NULL;
server159fs/ncpfs/sock.c(unsigned int)(server->data_ready));
server167fs/ncpfs/sock.cserver->data_ready = sk->data_ready;
server174fs/ncpfs/sock.cncp_dont_catch_watchdog(struct ncp_server *server)
server181fs/ncpfs/sock.cif (   (server == NULL)
server182fs/ncpfs/sock.c|| ((file  = server->wdog_filp) == NULL)
server207fs/ncpfs/sock.cif (server->data_ready == NULL)
server223fs/ncpfs/sock.c(unsigned int)(server->data_ready));
server225fs/ncpfs/sock.csk->data_ready = server->data_ready;
server227fs/ncpfs/sock.cserver->data_ready = NULL;
server267fs/ncpfs/sock.cncp_catch_message(struct ncp_server *server)
server274fs/ncpfs/sock.cif (   (server == NULL)
server275fs/ncpfs/sock.c|| ((file  = server->msg_filp) == NULL)
server309fs/ncpfs/sock.csk->protinfo.af_ipx.ncp_server = server;
server318fs/ncpfs/sock.cdo_ncp_rpc_call(struct ncp_server *server, int size)
server325fs/ncpfs/sock.cchar *start = server->packet;
server340fs/ncpfs/sock.c*((struct ncp_request_header *)(server->packet));
server345fs/ncpfs/sock.cfile = server->ncp_filp;
server354fs/ncpfs/sock.cinit_timeout = server->m.time_out;
server356fs/ncpfs/sock.cretrans = server->m.retry_count;
server358fs/ncpfs/sock.cserver_name = server->m.server_name;
server364fs/ncpfs/sock.c| ((server->m.flags & NCP_MOUNT_INTR)
server375fs/ncpfs/sock.chtonl(server->m.serv_addr.sipx_network),
server376fs/ncpfs/sock.cserver->m.serv_addr.sipx_node[0],
server377fs/ncpfs/sock.cserver->m.serv_addr.sipx_node[1],
server378fs/ncpfs/sock.cserver->m.serv_addr.sipx_node[2],
server379fs/ncpfs/sock.cserver->m.serv_addr.sipx_node[3],
server380fs/ncpfs/sock.cserver->m.serv_addr.sipx_node[4],
server381fs/ncpfs/sock.cserver->m.serv_addr.sipx_node[5],
server382fs/ncpfs/sock.cntohs(server->m.serv_addr.sipx_port));
server392fs/ncpfs/sock.c&(server->m.serv_addr),
server393fs/ncpfs/sock.csizeof(server->m.serv_addr));
server429fs/ncpfs/sock.cif (server->m.flags & NCP_MOUNT_SOFT)
server523fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)start, server->packet_size,
server548fs/ncpfs/sock.cncp_do_request(struct ncp_server *server, int size)
server552fs/ncpfs/sock.cif (server->lock == 0)
server558fs/ncpfs/sock.cif (!ncp_conn_valid(server))
server563fs/ncpfs/sock.cresult = do_ncp_rpc_call(server, size);
server571fs/ncpfs/sock.cncp_invalidate_conn(server);
server580fs/ncpfs/sock.cncp_request(struct ncp_server *server, int function)
server583fs/ncpfs/sock.c= (struct ncp_request_header *)(server->packet);
server585fs/ncpfs/sock.c= (struct ncp_reply_header *)(server->packet);
server587fs/ncpfs/sock.cint request_size = server->current_size
server592fs/ncpfs/sock.cif (server->has_subfunction != 0)
server599fs/ncpfs/sock.cserver->sequence += 1;
server600fs/ncpfs/sock.ch->sequence  = server->sequence;
server601fs/ncpfs/sock.ch->conn_low  = (server->connection) & 0xff;
server602fs/ncpfs/sock.ch->conn_high = ((server->connection) & 0xff00) >> 8;
server606fs/ncpfs/sock.cif ((result = ncp_do_request(server, request_size + sizeof(*h))) < 0)
server612fs/ncpfs/sock.cserver->completion  = reply->completion_code;
server613fs/ncpfs/sock.cserver->conn_status = reply->connection_state;
server614fs/ncpfs/sock.cserver->reply_size  = result;
server615fs/ncpfs/sock.cserver->ncp_reply_size = result - sizeof(struct ncp_reply_header);
server627fs/ncpfs/sock.cncp_connect(struct ncp_server *server)
server630fs/ncpfs/sock.c= (struct ncp_request_header *)(server->packet);
server635fs/ncpfs/sock.cserver->sequence = 0;
server636fs/ncpfs/sock.ch->sequence  = server->sequence;
server642fs/ncpfs/sock.cif ((result = ncp_do_request(server, sizeof(*h))) < 0)
server647fs/ncpfs/sock.cserver->sequence = 0;
server648fs/ncpfs/sock.cserver->connection = h->conn_low + (h->conn_high * 256);
server653fs/ncpfs/sock.cncp_disconnect(struct ncp_server *server)
server656fs/ncpfs/sock.c= (struct ncp_request_header *)(server->packet);
server660fs/ncpfs/sock.cserver->sequence += 1;
server661fs/ncpfs/sock.ch->sequence  = server->sequence;
server662fs/ncpfs/sock.ch->conn_low  = (server->connection) & 0xff;
server663fs/ncpfs/sock.ch->conn_high = ((server->connection) & 0xff00) >> 8;
server667fs/ncpfs/sock.creturn ncp_do_request(server, sizeof(*h));
server671fs/ncpfs/sock.cncp_lock_server(struct ncp_server *server)
server675fs/ncpfs/sock.cif (server->lock != 0)
server680fs/ncpfs/sock.cwhile (server->lock)
server681fs/ncpfs/sock.csleep_on(&server->wait);
server682fs/ncpfs/sock.cserver->lock = 1;
server686fs/ncpfs/sock.cncp_unlock_server(struct ncp_server *server)
server688fs/ncpfs/sock.cif (server->lock != 1)
server693fs/ncpfs/sock.cserver->lock = 0;
server694fs/ncpfs/sock.cwake_up(&server->wait);
server70fs/nfs/file.cstatic inline void revalidate_inode(struct nfs_server * server, struct inode * inode)
server74fs/nfs/file.cif (jiffies - NFS_READTIME(inode) < server->acregmax)
server78fs/nfs/file.cif (nfs_proc_getattr(server, NFS_FH(inode), &fattr) == 0) {
server91fs/nfs/inode.cstruct nfs_server *server;
server129fs/nfs/inode.cserver = &sb->u.nfs_sb.s_server;
server130fs/nfs/inode.cserver->file = filp;
server131fs/nfs/inode.cserver->lock = 0;
server132fs/nfs/inode.cserver->wait = NULL;
server133fs/nfs/inode.cserver->flags = data->flags;
server134fs/nfs/inode.cserver->rsize = data->rsize;
server135fs/nfs/inode.cif (server->rsize <= 0)
server136fs/nfs/inode.cserver->rsize = NFS_DEF_FILE_IO_BUFFER_SIZE;
server137fs/nfs/inode.celse if (server->rsize >= NFS_MAX_FILE_IO_BUFFER_SIZE)
server138fs/nfs/inode.cserver->rsize = NFS_MAX_FILE_IO_BUFFER_SIZE;
server139fs/nfs/inode.cserver->wsize = data->wsize;
server140fs/nfs/inode.cif (server->wsize <= 0)
server141fs/nfs/inode.cserver->wsize = NFS_DEF_FILE_IO_BUFFER_SIZE;
server142fs/nfs/inode.celse if (server->wsize >= NFS_MAX_FILE_IO_BUFFER_SIZE)
server143fs/nfs/inode.cserver->wsize = NFS_MAX_FILE_IO_BUFFER_SIZE;
server144fs/nfs/inode.cserver->timeo = data->timeo*HZ/10;
server145fs/nfs/inode.cserver->retrans = data->retrans;
server146fs/nfs/inode.cserver->acregmin = data->acregmin*HZ;
server147fs/nfs/inode.cserver->acregmax = data->acregmax*HZ;
server148fs/nfs/inode.cserver->acdirmin = data->acdirmin*HZ;
server149fs/nfs/inode.cserver->acdirmax = data->acdirmax*HZ;
server150fs/nfs/inode.cstrcpy(server->hostname, data->hostname);
server155fs/nfs/inode.cif (((struct sockaddr_in *)(&server->toaddr))->sin_addr.s_addr == INADDR_ANY) {
server169fs/nfs/inode.csock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ;
server173fs/nfs/inode.cmemcpy((char *)&(server->toaddr),(char *)(&data->addr),sizeof(server->toaddr));
server177fs/nfs/inode.cif ((server->rsock = rpc_makesock(filp)) == NULL) {
server109fs/nfs/nfsroot.cstatic struct sockaddr_in server;  /* Server IP address */
server315fs/nfs/nfsroot.cserver.sin_addr.s_addr != INADDR_NONE &&
server316fs/nfs/nfsroot.cserver.sin_addr.s_addr != sip) {
server339fs/nfs/nfsroot.cif (server.sin_addr.s_addr == INADDR_NONE) {
server340fs/nfs/nfsroot.cserver.sin_family = dev->family;
server341fs/nfs/nfsroot.cserver.sin_addr.s_addr = sip;
server827fs/nfs/nfsroot.cserver.sin_addr.s_addr = recv_bootp->server_ip;
server981fs/nfs/nfsroot.cin_ntoa(server.sin_addr.s_addr));
server1051fs/nfs/nfsroot.cserver.sin_addr.s_addr = in_aton(name);
server1057fs/nfs/nfsroot.cstrncpy(nfs_data.hostname, in_ntoa(server.sin_addr.s_addr),
server1124fs/nfs/nfsroot.cprintk("server=%s, ", IN_NTOA(server.sin_addr.s_addr));
server1170fs/nfs/nfsroot.cmyaddr.sin_family = server.sin_family =
server1172fs/nfs/nfsroot.cmyaddr.sin_addr.s_addr = server.sin_addr.s_addr =
server1205fs/nfs/nfsroot.cserver.sin_addr.s_addr = in_aton(ip);
server1301fs/nfs/nfsroot.c} else if ((server.sin_addr.s_addr ^ myaddr.sin_addr.s_addr) & netmask.sin_addr.s_addr) {
server1342fs/nfs/nfsroot.cserver.sin_addr.s_addr == INADDR_NONE ||
server1499fs/nfs/nfsroot.c((struct sockaddr_in *) &s.toaddr)->sin_port   = server.sin_port;
server1500fs/nfs/nfsroot.c((struct sockaddr_in *) &s.toaddr)->sin_family = server.sin_family;
server1501fs/nfs/nfsroot.c((struct sockaddr_in *) &s.toaddr)->sin_addr.s_addr = server.sin_addr.s_addr;
server1517fs/nfs/nfsroot.c(struct sockaddr *) &server,
server1552fs/nfs/nfsroot.cserver.sin_port = htons(NFS_PMAP_PORT);
server1592fs/nfs/nfsroot.cserver.sin_port = htons(port);
server1650fs/nfs/nfsroot.cserver.sin_port = htons(nfs_port);
server1651fs/nfs/nfsroot.cnfs_data.addr = server;
server1654fs/nfs/nfsroot.c(struct sockaddr *) &server,
server223fs/nfs/proc.cint nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
server231fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server236fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server259fs/nfs/proc.cint nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle,
server267fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server273fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server296fs/nfs/proc.cint nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, const char *name,
server308fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server314fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server338fs/nfs/proc.cint nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle,
server345fs/nfs/proc.cif (!(*p0 = nfs_rpc_alloc(server->rsize)))
server350fs/nfs/proc.cif ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0)
server373fs/nfs/proc.cint nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle,
server382fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server390fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server426fs/nfs/proc.cstruct nfs_server * server = NFS_SERVER(inode);
server430fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server440fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server464fs/nfs/proc.cint nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir,
server473fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server480fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server504fs/nfs/proc.cint nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, const char *name)
server511fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server517fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server539fs/nfs/proc.cint nfs_proc_rename(struct nfs_server *server,
server548fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server556fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server578fs/nfs/proc.cint nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle,
server586fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server593fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server615fs/nfs/proc.cint nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir,
server623fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server631fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server653fs/nfs/proc.cint nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir,
server662fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server669fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server693fs/nfs/proc.cint nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, const char *name)
server700fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server706fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server728fs/nfs/proc.cint nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle,
server739fs/nfs/proc.csize = server->rsize;
server740fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server747fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server784fs/nfs/proc.cint nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle,
server792fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server797fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server51fs/nfs/sock.cnfs_rpc_call(struct nfs_server *server, int *start, int *end, int size)
server58fs/nfs/sock.ctimeout.init_timeout = server->timeo;
server60fs/nfs/sock.ctimeout.retries = server->retrans;
server65fs/nfs/sock.c| ((server->flags & NFS_MOUNT_INTR)
server74fs/nfs/sock.cresult = rpc_call(server->rsock, 
server75fs/nfs/sock.c&server->toaddr, sizeof(server->toaddr),
server82fs/nfs/sock.cif (server->flags & NFS_MOUNT_SOFT) {
server84fs/nfs/sock.c"timed out.\n", server->hostname);
server90fs/nfs/sock.c"still trying.\n", server->hostname);
server98fs/nfs/sock.c} while (result == -ETIMEDOUT && !(server->flags & NFS_MOUNT_SOFT));
server101fs/nfs/sock.cprintk("NFS server %s OK.\n", server->hostname);
server43fs/smbfs/dir.csmb_find_inode(struct smb_server *server, const char *path);
server164fs/smbfs/dir.cstruct smb_server *server = SMB_SERVER(inode);
server217fs/smbfs/dir.cresult = smb_proc_readdir(server, inode,
server235fs/smbfs/dir.cswitch (server->case_handling) 
server271fs/smbfs/dir.cino_info = smb_find_inode(server, complete_path);
server560fs/smbfs/dir.csmb_init_root(struct smb_server *server)
server562fs/smbfs/dir.cstruct smb_inode_info *root = &(server->root);
server564fs/smbfs/dir.croot->finfo.path = server->m.root_path;
server576fs/smbfs/dir.csmb_stat_root(struct smb_server *server)
server578fs/smbfs/dir.cstruct smb_inode_info *root = &(server->root);
server582fs/smbfs/dir.cresult = smb_proc_getattr(server, "\\", 1, &(root->finfo));
server586fs/smbfs/dir.cresult = smb_proc_getattr(server, 
server594fs/smbfs/dir.csmb_free_all_inodes(struct smb_server *server)
server600fs/smbfs/dir.cstruct smb_inode_info *root = &(server->root);
server621fs/smbfs/dir.csmb_invalidate_all_inodes(struct smb_server *server)
server623fs/smbfs/dir.cstruct smb_inode_info *ino = &(server->root);
server628fs/smbfs/dir.c} while (ino != &(server->root));
server639fs/smbfs/dir.csmb_find_inode(struct smb_server *server, const char *path)
server641fs/smbfs/dir.cstruct smb_inode_info *result = &(server->root);
server651fs/smbfs/dir.c} while (result != &(server->root));
server151fs/smbfs/inode.cstruct smb_server *server = &(SMB_SBP(sb)->s_server);
server153fs/smbfs/inode.csmb_proc_disconnect(server);
server154fs/smbfs/inode.cclose_fp(server->sock_file);
server158fs/smbfs/inode.csmb_free_all_inodes(server);
server160fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server176fs/smbfs/inode.cstruct smb_server *server;
server226fs/smbfs/inode.cserver = &(SMB_SBP(sb)->s_server);
server227fs/smbfs/inode.cserver->sock_file = filp;
server228fs/smbfs/inode.cserver->lock = 0;
server229fs/smbfs/inode.cserver->wait = NULL;
server230fs/smbfs/inode.cserver->packet = NULL;
server231fs/smbfs/inode.cserver->max_xmit = data->max_xmit;
server232fs/smbfs/inode.cif (server->max_xmit <= 0)
server233fs/smbfs/inode.cserver->max_xmit = SMB_DEF_MAX_XMIT;
server235fs/smbfs/inode.cserver->tid = 0;
server236fs/smbfs/inode.cserver->pid = current->pid;
server237fs/smbfs/inode.cserver->mid = current->pid + 20;
server239fs/smbfs/inode.cserver->m = *data;
server240fs/smbfs/inode.cserver->m.file_mode = (server->m.file_mode &
server242fs/smbfs/inode.cserver->m.dir_mode  = (server->m.dir_mode &
server245fs/smbfs/inode.csmb_init_root(server);
server251fs/smbfs/inode.cerror = smb_proc_connect(server);
server262fs/smbfs/inode.cif (server->protocol >= PROTOCOL_LANMAN2)
server263fs/smbfs/inode.cserver->case_handling = CASE_DEFAULT;
server265fs/smbfs/inode.cserver->case_handling = CASE_LOWER;
server271fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server275fs/smbfs/inode.cif ((error = smb_stat_root(server)) < 0) {
server278fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server290fs/smbfs/inode.cif (!(sb->s_mounted = iget(sb, (int)&(server->root)))) {
server293fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server388fs/smbfs/proc.csmb_lock_server(struct smb_server *server)
server390fs/smbfs/proc.cwhile (server->lock)
server391fs/smbfs/proc.csleep_on(&server->wait);
server392fs/smbfs/proc.cserver->lock = 1;
server396fs/smbfs/proc.csmb_unlock_server(struct smb_server *server)
server398fs/smbfs/proc.cif (server->lock != 1) {
server402fs/smbfs/proc.cserver->lock = 0;
server403fs/smbfs/proc.cwake_up(&server->wait);
server444fs/smbfs/proc.csmb_retry(struct smb_server *server)
server446fs/smbfs/proc.cif (server->state != CONN_INVALID) {
server450fs/smbfs/proc.cif (smb_release(server) < 0) {
server452fs/smbfs/proc.cserver->state = CONN_RETRIED;
server455fs/smbfs/proc.cif(smb_proc_reconnect(server) < 0) {
server457fs/smbfs/proc.cserver->state = CONN_RETRIED;
server461fs/smbfs/proc.cserver->state = CONN_VALID;
server479fs/smbfs/proc.csmb_setup_header(struct smb_server *server, byte command, word wct, word bcc)
server482fs/smbfs/proc.cbyte *p = server->packet;
server483fs/smbfs/proc.cbyte *buf = server->packet;
server498fs/smbfs/proc.cWSET(buf, smb_tid, server->tid);
server499fs/smbfs/proc.cWSET(buf, smb_pid, server->pid);
server500fs/smbfs/proc.cWSET(buf, smb_uid, server->server_uid);
server501fs/smbfs/proc.cWSET(buf, smb_mid, server->mid);
server503fs/smbfs/proc.cif (server->protocol > PROTOCOL_CORE) {
server519fs/smbfs/proc.csmb_setup_header_exclusive(struct smb_server *server,
server522fs/smbfs/proc.csmb_lock_server(server);
server523fs/smbfs/proc.creturn smb_setup_header(server, command, wct, bcc);
server534fs/smbfs/proc.csmb_proc_open(struct smb_server *server, const char *pathname, int len,
server539fs/smbfs/proc.cchar* buf = server->packet;
server544fs/smbfs/proc.csmb_lock_server(server);
server547fs/smbfs/proc.cp = smb_setup_header(server, SMBopen, 2, 2 + len);
server552fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBopen, 7, 0)) != 0) {
server554fs/smbfs/proc.cif (smb_retry(server)) {
server559fs/smbfs/proc.csmb_unlock_server(server);
server563fs/smbfs/proc.cp = smb_setup_header(server, SMBopen, 2, 2 + len);
server568fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBopen, 7, 0)) != 0) {
server569fs/smbfs/proc.cif (smb_retry(server)) {
server572fs/smbfs/proc.csmb_unlock_server(server);
server586fs/smbfs/proc.csmb_unlock_server(server);
server596fs/smbfs/proc.csmb_proc_close(struct smb_server *server, struct smb_dirent *finfo)
server598fs/smbfs/proc.cchar *buf = server->packet;
server600fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBclose, 3, 0);
server604fs/smbfs/proc.creturn smb_request_ok_unlock(server, SMBclose, 0, 0);
server614fs/smbfs/proc.csmb_proc_read(struct smb_server *server, struct smb_dirent *finfo, 
server618fs/smbfs/proc.cchar *buf = server->packet;
server621fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBread, 5, 0);
server628fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBread, 5, -1)) < 0) {
server629fs/smbfs/proc.csmb_unlock_server(server);
server635fs/smbfs/proc.csmb_decode_data(SMB_BUF(server->packet), data, &data_len, fs);
server637fs/smbfs/proc.csmb_unlock_server(server);
server652fs/smbfs/proc.csmb_proc_read_raw(struct smb_server *server, struct smb_dirent *finfo, 
server655fs/smbfs/proc.cchar *buf = server->packet;
server662fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBreadbraw, 8, 0);
server670fs/smbfs/proc.cresult = smb_request_read_raw(server, data, count);
server671fs/smbfs/proc.csmb_unlock_server(server);
server676fs/smbfs/proc.csmb_proc_write(struct smb_server *server, struct smb_dirent *finfo,
server680fs/smbfs/proc.cchar *buf = server->packet;
server683fs/smbfs/proc.cp = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3);
server693fs/smbfs/proc.cif ((res = smb_request_ok(server, SMBwrite, 1, 0)) >= 0) {
server697fs/smbfs/proc.csmb_unlock_server(server);
server704fs/smbfs/proc.csmb_proc_write_raw(struct smb_server *server, struct smb_dirent *finfo, 
server707fs/smbfs/proc.cchar *buf = server->packet;
server714fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBwritebraw, 11, 0);
server726fs/smbfs/proc.cresult = smb_request_ok(server, SMBwritebraw, 1, 0);
server731fs/smbfs/proc.csmb_unlock_server(server);
server735fs/smbfs/proc.cresult = smb_request_write_raw(server, data, count);
server741fs/smbfs/proc.cif (smb_valid_packet(server->packet) != 0) {
server744fs/smbfs/proc.c} else if (server->rcls != 0) {
server745fs/smbfs/proc.cresult = -smb_errno(server->rcls, server->err);
server746fs/smbfs/proc.c} else if (smb_verify(server->packet, SMBwritec,1,0) != 0) {
server752fs/smbfs/proc.csmb_unlock_server(server);
server760fs/smbfs/proc.csmb_proc_do_create(struct smb_server *server, const char *path, int len, 
server765fs/smbfs/proc.cchar *buf = server->packet;
server767fs/smbfs/proc.csmb_lock_server(server);
server769fs/smbfs/proc.cp = smb_setup_header(server, command, 3, len + 2);
server774fs/smbfs/proc.cif ((error = smb_request_ok(server, command, 1, 0)) < 0) {
server775fs/smbfs/proc.cif (smb_retry(server)) {
server778fs/smbfs/proc.csmb_unlock_server(server);
server784fs/smbfs/proc.csmb_unlock_server(server);
server786fs/smbfs/proc.csmb_proc_close(server, entry);
server792fs/smbfs/proc.csmb_proc_create(struct smb_server *server, const char *path, int len,
server795fs/smbfs/proc.creturn smb_proc_do_create(server, path, len, entry, SMBcreate);
server799fs/smbfs/proc.csmb_proc_mknew(struct smb_server *server, const char *path, int len,
server802fs/smbfs/proc.creturn smb_proc_do_create(server, path, len, entry, SMBmknew);
server806fs/smbfs/proc.csmb_proc_mv(struct smb_server *server, 
server811fs/smbfs/proc.cchar *buf = server->packet;
server814fs/smbfs/proc.csmb_lock_server(server);
server817fs/smbfs/proc.cp = smb_setup_header(server, SMBmv, 1, olen + nlen + 4);
server822fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBmv, 0, 0)) < 0) {
server823fs/smbfs/proc.cif (smb_retry(server)) {
server827fs/smbfs/proc.csmb_unlock_server(server);
server832fs/smbfs/proc.csmb_proc_mkdir(struct smb_server *server, const char *path, const int len)
server837fs/smbfs/proc.csmb_lock_server(server);
server840fs/smbfs/proc.cp = smb_setup_header(server, SMBmkdir, 0, 2 + len);
server843fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBmkdir, 0, 0)) < 0) {
server844fs/smbfs/proc.cif (smb_retry(server)) {
server848fs/smbfs/proc.csmb_unlock_server(server);
server853fs/smbfs/proc.csmb_proc_rmdir(struct smb_server *server, const char *path, const int len)
server858fs/smbfs/proc.csmb_lock_server(server);
server861fs/smbfs/proc.cp = smb_setup_header(server, SMBrmdir, 0, 2 + len);
server864fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBrmdir, 0, 0)) < 0) {
server865fs/smbfs/proc.cif (smb_retry(server)) {
server869fs/smbfs/proc.csmb_unlock_server(server);
server874fs/smbfs/proc.csmb_proc_unlink(struct smb_server *server, const char *path, const int len)
server877fs/smbfs/proc.cchar *buf = server->packet;
server880fs/smbfs/proc.csmb_lock_server(server);
server883fs/smbfs/proc.cp = smb_setup_header(server, SMBunlink, 1, 2 + len);
server887fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBunlink, 0, 0)) < 0) {
server888fs/smbfs/proc.cif (smb_retry(server)) {
server892fs/smbfs/proc.csmb_unlock_server(server);
server897fs/smbfs/proc.csmb_proc_trunc(struct smb_server *server, word fid, dword length)
server900fs/smbfs/proc.cchar *buf = server->packet;
server903fs/smbfs/proc.csmb_lock_server(server);
server906fs/smbfs/proc.cp = smb_setup_header(server, SMBwrite, 5, 3);
server913fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBwrite, 1, 0)) < 0) {
server914fs/smbfs/proc.cif (smb_retry(server)) {
server918fs/smbfs/proc.csmb_unlock_server(server);
server940fs/smbfs/proc.csmb_proc_readdir_short(struct smb_server *server, struct inode *dir, int fpos,
server953fs/smbfs/proc.cint entries_asked = (server->max_xmit - 100) / SMB_DIRINFO_SIZE;
server963fs/smbfs/proc.cbuf = server->packet;
server965fs/smbfs/proc.csmb_lock_server(server);
server974fs/smbfs/proc.cp = smb_setup_header(server, SMBsearch, 2,
server982fs/smbfs/proc.cp = smb_setup_header(server, SMBsearch, 2,
server990fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBsearch, 1, -1)) < 0) {
server991fs/smbfs/proc.cif (   (server->rcls == ERRDOS)
server992fs/smbfs/proc.c&& (server->err  == ERRnofiles)) {
server998fs/smbfs/proc.cif (smb_retry(server)) {
server1006fs/smbfs/proc.cp = SMB_VWV(server->packet);
server1025fs/smbfs/proc.cSMB_BUF(server->packet) + 3 +
server1054fs/smbfs/proc.csmb_unlock_server(server);
server1144fs/smbfs/proc.csmb_proc_readdir_long(struct smb_server *server, struct inode *dir, int fpos,
server1185fs/smbfs/proc.csmb_lock_server(server);
server1196fs/smbfs/proc.cunsigned char *outbuf = server->packet;
server1206fs/smbfs/proc.csmb_setup_header(server, SMBtrans2, 15,
server1257fs/smbfs/proc.cresult = smb_trans2_request(server,
server1262fs/smbfs/proc.cif (smb_retry(server)) {
server1270fs/smbfs/proc.cif (server->rcls != 0)
server1366fs/smbfs/proc.csmb_unlock_server(server);
server1372fs/smbfs/proc.csmb_proc_readdir(struct smb_server *server, struct inode *dir, int fpos,
server1375fs/smbfs/proc.cif (server->protocol >= PROTOCOL_LANMAN2)
server1376fs/smbfs/proc.creturn smb_proc_readdir_long(server, dir, fpos, cache_size,
server1379fs/smbfs/proc.creturn smb_proc_readdir_short(server, dir, fpos, cache_size,
server1384fs/smbfs/proc.csmb_proc_getattr_core(struct smb_server *server, const char *path, int len, 
server1389fs/smbfs/proc.cchar *buf = server->packet;
server1391fs/smbfs/proc.csmb_lock_server(server);
server1396fs/smbfs/proc.cp = smb_setup_header(server, SMBgetatr, 0, 2 + len);
server1399fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBgetatr, 10, 0)) < 0) {
server1400fs/smbfs/proc.cif (smb_retry(server)) {
server1403fs/smbfs/proc.csmb_unlock_server(server);
server1412fs/smbfs/proc.csmb_unlock_server(server);
server1419fs/smbfs/proc.csmb_proc_getattrE(struct smb_server *server, struct smb_dirent *entry)
server1421fs/smbfs/proc.cchar* buf = server->packet;
server1424fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBgetattrE, 1, 0);
server1427fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBgetattrE, 11, 0)) != 0) {
server1428fs/smbfs/proc.csmb_unlock_server(server);
server1438fs/smbfs/proc.csmb_unlock_server(server);
server1443fs/smbfs/proc.csmb_proc_getattr(struct smb_server *server, const char *path, int len, 
server1446fs/smbfs/proc.cif (server->protocol >= PROTOCOL_LANMAN1) {
server1451fs/smbfs/proc.cif ((result=smb_proc_open(server,path,len,
server1455fs/smbfs/proc.creturn smb_proc_getattr_core(server,path,len,entry);
server1458fs/smbfs/proc.cif ((result=smb_proc_getattrE(server, &temp_entry)) >= 0) {
server1466fs/smbfs/proc.csmb_proc_close(server, &temp_entry);
server1470fs/smbfs/proc.creturn smb_proc_getattr_core(server, path, len, entry);
server1478fs/smbfs/proc.csmb_proc_setattr_core(struct smb_server *server,
server1483fs/smbfs/proc.cchar *buf = server->packet;
server1486fs/smbfs/proc.csmb_lock_server(server);
server1489fs/smbfs/proc.cp = smb_setup_header(server, SMBsetatr, 8, 4 + len);
server1495fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBsetatr, 0, 0)) < 0) {
server1496fs/smbfs/proc.cif (smb_retry(server)) {
server1500fs/smbfs/proc.csmb_unlock_server(server);
server1507fs/smbfs/proc.csmb_proc_setattrE(struct smb_server *server, word fid,
server1510fs/smbfs/proc.cchar *buf = server->packet;
server1513fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBsetattrE, 7, 0);
server1529fs/smbfs/proc.creturn smb_request_ok_unlock(server, SMBsetattrE, 0, 0);
server1535fs/smbfs/proc.csmb_proc_setattr(struct smb_server *server, struct inode *inode,
server1541fs/smbfs/proc.cif (server->protocol >= PROTOCOL_LANMAN1) {
server1544fs/smbfs/proc.creturn smb_proc_setattrE(server, finfo->fileid, new_finfo);
server1546fs/smbfs/proc.creturn smb_proc_setattr_core(server, finfo->path, finfo->len,
server1556fs/smbfs/proc.cstruct smb_server *server = &(SMB_SBP(super)->s_server);
server1558fs/smbfs/proc.csmb_lock_server(server);
server1561fs/smbfs/proc.csmb_setup_header(server, SMBdskattr, 0, 0);
server1563fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBdskattr, 5, 0)) < 0) {
server1564fs/smbfs/proc.cif (smb_retry(server)) {
server1567fs/smbfs/proc.csmb_unlock_server(server);
server1571fs/smbfs/proc.cp = SMB_VWV(server->packet);
server1576fs/smbfs/proc.csmb_unlock_server(server);
server1597fs/smbfs/proc.csmb_proc_reconnect(struct smb_server *server)
server1617fs/smbfs/proc.cint given_max_xmit = server->m.max_xmit;
server1621fs/smbfs/proc.cif ((result = smb_connect(server)) < 0) {
server1627fs/smbfs/proc.cserver->state = CONN_VALID;
server1629fs/smbfs/proc.cif (server->packet != NULL) {
server1630fs/smbfs/proc.csmb_kfree_s(server->packet, server->max_xmit);
server1633fs/smbfs/proc.cserver->packet = smb_kmalloc(max_xmit, GFP_KERNEL);
server1635fs/smbfs/proc.cif (server->packet == NULL) {
server1641fs/smbfs/proc.cserver->max_xmit = max_xmit;
server1646fs/smbfs/proc.cp = server->packet + 4;
server1648fs/smbfs/proc.cp = smb_name_mangle(p, server->m.server_name);
server1649fs/smbfs/proc.cp = smb_name_mangle(p, server->m.client_name);
server1651fs/smbfs/proc.csmb_encode_smb_length(server->packet,
server1652fs/smbfs/proc.c(void *)p - (void *)(server->packet));
server1654fs/smbfs/proc.cserver->packet[0] = 0x81; /* SESSION REQUEST */
server1656fs/smbfs/proc.cif (smb_catch_keepalive(server) < 0) {
server1660fs/smbfs/proc.cif ((result = smb_request(server)) < 0) {
server1662fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1666fs/smbfs/proc.cif (server->packet[0] != 0x82) {
server1669fs/smbfs/proc.cserver->packet[0]);
server1670fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1672fs/smbfs/proc.csmb_dump_packet(server->packet);
server1681fs/smbfs/proc.cmemset(server->packet, 0, SMB_HEADER_LEN);
server1688fs/smbfs/proc.csmb_setup_header(server, SMBnegprot, 0, plength);
server1690fs/smbfs/proc.cp = SMB_BUF(server->packet);
server1696fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBnegprot, 1, -1)) < 0) {
server1698fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1706fs/smbfs/proc.cp = SMB_VWV(server->packet);
server1708fs/smbfs/proc.cserver->protocol = prots[i].prot;
server1713fs/smbfs/proc.cif (server->protocol > PROTOCOL_LANMAN1) {
server1715fs/smbfs/proc.cword passlen = strlen(server->m.password);
server1716fs/smbfs/proc.cword userlen = strlen(server->m.username);
server1719fs/smbfs/proc.cserver->m.password);
server1721fs/smbfs/proc.cserver->m.username);
server1723fs/smbfs/proc.cWVAL(server->packet, smb_vwv5));
server1725fs/smbfs/proc.cif (server->protocol >= PROTOCOL_NT1) {
server1726fs/smbfs/proc.cserver->maxxmt = DVAL(server->packet,smb_vwv3+1);
server1727fs/smbfs/proc.cserver->maxmux = WVAL(server->packet, smb_vwv1+1);
server1728fs/smbfs/proc.cserver->maxvcs = WVAL(server->packet, smb_vwv2+1);
server1729fs/smbfs/proc.cserver->blkmode= DVAL(server->packet, smb_vwv9+1);
server1730fs/smbfs/proc.cserver->sesskey= DVAL(server->packet, smb_vwv7+1);
server1732fs/smbfs/proc.cserver->maxxmt = WVAL(server->packet, smb_vwv2);
server1733fs/smbfs/proc.cserver->maxmux = WVAL(server->packet, smb_vwv3);
server1734fs/smbfs/proc.cserver->maxvcs = WVAL(server->packet, smb_vwv4);
server1735fs/smbfs/proc.cserver->blkmode= WVAL(server->packet, smb_vwv5);
server1736fs/smbfs/proc.cserver->sesskey= DVAL(server->packet, smb_vwv6);
server1740fs/smbfs/proc.cif (server->protocol >= PROTOCOL_NT1) {
server1745fs/smbfs/proc.csmb_setup_header(server, SMBsesssetupX, 13,
server1750fs/smbfs/proc.cWSET(server->packet, smb_vwv0, 0x00ff);
server1751fs/smbfs/proc.cWSET(server->packet, smb_vwv1, 0);
server1752fs/smbfs/proc.cWSET(server->packet, smb_vwv2, given_max_xmit);
server1753fs/smbfs/proc.cWSET(server->packet, smb_vwv3, 2);
server1754fs/smbfs/proc.cWSET(server->packet, smb_vwv4, server->pid);
server1755fs/smbfs/proc.cDSET(server->packet, smb_vwv5, server->sesskey);
server1756fs/smbfs/proc.cWSET(server->packet, smb_vwv7, passlen + 1);
server1757fs/smbfs/proc.cWSET(server->packet, smb_vwv8, 0);
server1758fs/smbfs/proc.cWSET(server->packet, smb_vwv9, 0);
server1760fs/smbfs/proc.cp = SMB_BUF(server->packet);
server1761fs/smbfs/proc.cstrcpy(p, server->m.password);
server1763fs/smbfs/proc.cstrcpy(p, server->m.username);
server1771fs/smbfs/proc.csmb_setup_header(server, SMBsesssetupX, 10,
server1774fs/smbfs/proc.cWSET(server->packet, smb_vwv0, 0x00ff);
server1775fs/smbfs/proc.cWSET(server->packet, smb_vwv1, 0);
server1776fs/smbfs/proc.cWSET(server->packet, smb_vwv2, given_max_xmit);
server1777fs/smbfs/proc.cWSET(server->packet, smb_vwv3, 2);
server1778fs/smbfs/proc.cWSET(server->packet, smb_vwv4, server->pid);
server1779fs/smbfs/proc.cDSET(server->packet, smb_vwv5, server->sesskey);
server1780fs/smbfs/proc.cWSET(server->packet, smb_vwv7, passlen + 1);
server1781fs/smbfs/proc.cWSET(server->packet, smb_vwv8, 0);
server1782fs/smbfs/proc.cWSET(server->packet, smb_vwv9, 0);
server1784fs/smbfs/proc.cp = SMB_BUF(server->packet);
server1785fs/smbfs/proc.cstrcpy(p, server->m.password);
server1787fs/smbfs/proc.cstrcpy(p, server->m.username);
server1790fs/smbfs/proc.cif ((result = smb_request_ok(server,SMBsesssetupX,3,0)) < 0) {
server1792fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1795fs/smbfs/proc.csmb_decode_word(server->packet+32, &(server->server_uid));
server1800fs/smbfs/proc.cserver->maxxmt = 0;
server1801fs/smbfs/proc.cserver->maxmux = 0;
server1802fs/smbfs/proc.cserver->maxvcs = 0;
server1803fs/smbfs/proc.cserver->blkmode = 0;
server1804fs/smbfs/proc.cserver->sesskey = 0;
server1809fs/smbfs/proc.csmb_setup_header(server, SMBtcon, 0,
server1810fs/smbfs/proc.c6 + strlen(server->m.service) +
server1811fs/smbfs/proc.cstrlen(server->m.password) + strlen(dev));
server1812fs/smbfs/proc.cp = SMB_BUF(server->packet);
server1813fs/smbfs/proc.cp = smb_encode_ascii(p, server->m.service, strlen(server->m.service));
server1814fs/smbfs/proc.cp = smb_encode_ascii(p,server->m.password, strlen(server->m.password));
server1817fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBtcon, 2, 0)) < 0) {
server1819fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1825fs/smbfs/proc.cp = SMB_VWV(server->packet);
server1826fs/smbfs/proc.cp = smb_decode_word(p, &server->max_xmit);
server1828fs/smbfs/proc.cif (server->max_xmit > given_max_xmit)
server1829fs/smbfs/proc.cserver->max_xmit = given_max_xmit;
server1831fs/smbfs/proc.cp = smb_decode_word(p, &server->tid);
server1835fs/smbfs/proc.cserver->max_xmit += 4;
server1837fs/smbfs/proc.cDPRINTK("max_xmit = %d, tid = %d\n", server->max_xmit, server->tid);
server1840fs/smbfs/proc.csmb_kfree_s(server->packet, max_xmit); 
server1842fs/smbfs/proc.cserver->packet = smb_kmalloc(server->max_xmit, GFP_KERNEL);
server1843fs/smbfs/proc.cif (server->packet == NULL) {
server1846fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1854fs/smbfs/proc.cserver->state = CONN_INVALID;
server1861fs/smbfs/proc.csmb_proc_connect(struct smb_server *server)
server1864fs/smbfs/proc.csmb_lock_server(server);
server1865fs/smbfs/proc.cresult = smb_proc_reconnect(server);
server1866fs/smbfs/proc.cif ((result < 0) && (server->packet != NULL)) {
server1867fs/smbfs/proc.csmb_kfree_s(server->packet, server->max_xmit);
server1868fs/smbfs/proc.cserver->packet = NULL;
server1870fs/smbfs/proc.csmb_unlock_server(server);
server1875fs/smbfs/proc.csmb_proc_disconnect(struct smb_server *server)
server1877fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBtdis, 0, 0);
server1878fs/smbfs/proc.creturn smb_request_ok_unlock(server, SMBtdis, 0, 0);
server107fs/smbfs/sock.csmb_catch_keepalive(struct smb_server *server)
server114fs/smbfs/sock.cif (   (server == NULL)
server115fs/smbfs/sock.c|| ((file  = server->sock_file) == NULL)
server120fs/smbfs/sock.cserver->data_ready = NULL;
server128fs/smbfs/sock.cserver->data_ready = NULL;
server136fs/smbfs/sock.cserver->data_ready = NULL;
server142fs/smbfs/sock.c(unsigned int)(server->data_ready));
server149fs/smbfs/sock.cserver->data_ready = sk->data_ready;
server155fs/smbfs/sock.csmb_dont_catch_keepalive(struct smb_server *server)
server162fs/smbfs/sock.cif (   (server == NULL)
server163fs/smbfs/sock.c|| ((file  = server->sock_file) == NULL)
server186fs/smbfs/sock.cif (server->data_ready == NULL) {
server200fs/smbfs/sock.c(unsigned int)(server->data_ready));
server202fs/smbfs/sock.csk->data_ready = server->data_ready;
server203fs/smbfs/sock.cserver->data_ready = NULL;
server294fs/smbfs/sock.csmb_receive(struct smb_server *server, struct socket *sock)
server298fs/smbfs/sock.cresult = smb_receive_raw(sock, server->packet,
server299fs/smbfs/sock.cserver->max_xmit - 4, /* max_xmit in server
server308fs/smbfs/sock.cserver->rcls = *((unsigned char *)(server->packet+9));
server309fs/smbfs/sock.cserver->err  = *((unsigned short *)(server->packet+11));
server311fs/smbfs/sock.cif (server->rcls != 0) {
server313fs/smbfs/sock.cserver->rcls, server->err);
server324fs/smbfs/sock.csmb_receive_trans2(struct smb_server *server, struct socket *sock,
server331fs/smbfs/sock.cunsigned char *inbuf = server->packet;
server337fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
server341fs/smbfs/sock.cif (server->rcls != 0) {
server412fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
server415fs/smbfs/sock.cif (server->rcls != 0) {
server434fs/smbfs/sock.cserver_sock(struct smb_server *server)
server439fs/smbfs/sock.cif (server == NULL)
server441fs/smbfs/sock.cif ((file = server->sock_file) == NULL)
server449fs/smbfs/sock.csmb_release(struct smb_server *server)
server451fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server471fs/smbfs/sock.csmb_connect(struct smb_server *server)
server473fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server480fs/smbfs/sock.creturn sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr),
server491fs/smbfs/sock.csmb_request(struct smb_server *server)
server498fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server499fs/smbfs/sock.cunsigned char *buffer = (server == NULL) ? NULL : server->packet;
server506fs/smbfs/sock.cif (server->state != CONN_VALID)
server509fs/smbfs/sock.cif ((result = smb_dont_catch_keepalive(server)) != 0) {
server510fs/smbfs/sock.cserver->state = CONN_INVALID;
server511fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server529fs/smbfs/sock.cresult = smb_receive(server, sock);
server538fs/smbfs/sock.cif ((result2 = smb_catch_keepalive(server)) < 0) {
server543fs/smbfs/sock.cserver->state = CONN_INVALID;
server544fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server557fs/smbfs/sock.csmb_trans2_request(struct smb_server *server,
server566fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server567fs/smbfs/sock.cunsigned char *buffer = (server == NULL) ? NULL : server->packet;
server574fs/smbfs/sock.cif (server->state != CONN_VALID)
server577fs/smbfs/sock.cif ((result = smb_dont_catch_keepalive(server)) != 0) {
server578fs/smbfs/sock.cserver->state = CONN_INVALID;
server579fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server597fs/smbfs/sock.cresult = smb_receive_trans2(server, sock,
server608fs/smbfs/sock.cif ((result2 = smb_catch_keepalive(server)) < 0) {
server613fs/smbfs/sock.cserver->state = CONN_INVALID;
server614fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server624fs/smbfs/sock.csmb_request_read_raw(struct smb_server *server,
server632fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server633fs/smbfs/sock.cunsigned char *buffer = (server == NULL) ? NULL : server->packet;
server640fs/smbfs/sock.cif (server->state != CONN_VALID)
server643fs/smbfs/sock.cif ((result = smb_dont_catch_keepalive(server)) != 0) {
server644fs/smbfs/sock.cserver->state = CONN_INVALID;
server645fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server680fs/smbfs/sock.cif ((result2 = smb_catch_keepalive(server)) < 0) {
server685fs/smbfs/sock.cserver->state = CONN_INVALID;
server686fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server698fs/smbfs/sock.csmb_request_write_raw(struct smb_server *server,
server707fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server708fs/smbfs/sock.cunsigned char *buffer = (server == NULL) ? NULL : server->packet;
server715fs/smbfs/sock.cif (server->state != CONN_VALID)
server718fs/smbfs/sock.cif ((result = smb_dont_catch_keepalive(server)) != 0) {
server719fs/smbfs/sock.cserver->state = CONN_INVALID;
server720fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server744fs/smbfs/sock.cresult = smb_receive(server, sock);
server754fs/smbfs/sock.cif ((result2 = smb_catch_keepalive(server)) < 0) {
server759fs/smbfs/sock.cserver->state = CONN_INVALID;
server760fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server128include/linux/ncp_fs.hvoid ncp_free_all_inodes(struct ncp_server *server);
server129include/linux/ncp_fs.hvoid ncp_init_root(struct ncp_server *server);
server130include/linux/ncp_fs.hint  ncp_conn_logged_in(struct ncp_server *server);
server134include/linux/ncp_fs.hino_t ncp_info_ino(struct ncp_server *server, struct ncp_inode_info *info);
server148include/linux/ncp_fs.hvoid ncp_trigger_message(struct ncp_server *server);
server151include/linux/ncp_fs.hint ncp_request(struct ncp_server *server, int function);
server152include/linux/ncp_fs.hint ncp_connect(struct ncp_server *server);
server153include/linux/ncp_fs.hint ncp_disconnect(struct ncp_server *server);
server154include/linux/ncp_fs.hint ncp_catch_watchdog(struct ncp_server *server);
server155include/linux/ncp_fs.hint ncp_dont_catch_watchdog(struct ncp_server *server);
server156include/linux/ncp_fs.hint ncp_catch_message(struct ncp_server *server);
server157include/linux/ncp_fs.hvoid ncp_lock_server(struct ncp_server *server);
server158include/linux/ncp_fs.hvoid ncp_unlock_server(struct ncp_server *server);
server61include/linux/ncp_fs_sb.hncp_conn_valid(struct ncp_server *server)
server63include/linux/ncp_fs_sb.hreturn ((server->conn_status & 0x11) == 0);
server67include/linux/ncp_fs_sb.hncp_invalidate_conn(struct ncp_server *server)
server69include/linux/ncp_fs_sb.hserver->conn_status |= 0x01;
server59include/linux/nfs_fs.hextern int nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
server61include/linux/nfs_fs.hextern int nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle,
server63include/linux/nfs_fs.hextern int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir,
server66include/linux/nfs_fs.hextern int nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle,
server69include/linux/nfs_fs.hextern int nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle,
server74include/linux/nfs_fs.hextern int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir,
server77include/linux/nfs_fs.hextern int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir,
server79include/linux/nfs_fs.hextern int nfs_proc_rename(struct nfs_server *server,
server82include/linux/nfs_fs.hextern int nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle,
server84include/linux/nfs_fs.hextern int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir,
server86include/linux/nfs_fs.hextern int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir,
server89include/linux/nfs_fs.hextern int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir,
server91include/linux/nfs_fs.hextern int nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle,
server93include/linux/nfs_fs.hextern int nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle,
server101include/linux/nfs_fs.hextern int nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size);
server102include/linux/smb_fs.hvoid smb_free_all_inodes(struct smb_server *server);
server103include/linux/smb_fs.hvoid smb_init_root(struct smb_server *server);
server104include/linux/smb_fs.hint  smb_stat_root(struct smb_server *server);
server107include/linux/smb_fs.hvoid smb_invalidate_all_inodes(struct smb_server *server);
server119include/linux/smb_fs.hvoid smb_invalidate_connection(struct smb_server *server);
server120include/linux/smb_fs.hint smb_conn_is_valid(struct smb_server *server);
server125include/linux/smb_fs.hint smb_proc_open(struct smb_server *server, const char *pathname,
server127include/linux/smb_fs.hint smb_proc_close(struct smb_server *server, struct smb_dirent *finfo);
server128include/linux/smb_fs.hint smb_proc_read(struct smb_server *server, struct smb_dirent *finfo, 
server130include/linux/smb_fs.hint smb_proc_read_raw(struct smb_server *server, struct smb_dirent *finfo, 
server132include/linux/smb_fs.hint smb_proc_write(struct smb_server *server, struct smb_dirent *finfo,
server134include/linux/smb_fs.hint smb_proc_write_raw(struct smb_server *server, struct smb_dirent *finfo, 
server136include/linux/smb_fs.hint smb_proc_create(struct smb_server *server, const char *path,
server138include/linux/smb_fs.hint smb_proc_mknew(struct smb_server *server, const char *path, int len,
server140include/linux/smb_fs.hint smb_proc_mv(struct smb_server *server, const char *opath, const int olen, 
server142include/linux/smb_fs.hint smb_proc_mkdir(struct smb_server *server, const char *path, const int len);
server143include/linux/smb_fs.hint smb_proc_rmdir(struct smb_server *server, const char *path, const int len);
server144include/linux/smb_fs.hint smb_proc_unlink(struct smb_server *server, const char *path,
server146include/linux/smb_fs.hint smb_proc_readdir(struct smb_server *server, struct inode *dir,
server149include/linux/smb_fs.hint smb_proc_getattr(struct smb_server *server, const char *path,
server151include/linux/smb_fs.hint smb_proc_setattr(struct smb_server *server,
server154include/linux/smb_fs.hint smb_proc_chkpath(struct smb_server *server, char *path, int len,
server157include/linux/smb_fs.hint smb_proc_reconnect(struct smb_server *server);
server158include/linux/smb_fs.hint smb_proc_connect(struct smb_server *server);
server159include/linux/smb_fs.hint smb_proc_disconnect(struct smb_server *server);
server160include/linux/smb_fs.hint smb_proc_trunc(struct smb_server *server, word fid, dword length);
server163include/linux/smb_fs.hint smb_release(struct smb_server *server);
server164include/linux/smb_fs.hint smb_connect(struct smb_server *server);
server165include/linux/smb_fs.hint smb_request(struct smb_server *server);
server166include/linux/smb_fs.hint smb_request_read_raw(struct smb_server *server,
server168include/linux/smb_fs.hint smb_request_write_raw(struct smb_server *server,
server170include/linux/smb_fs.hint smb_catch_keepalive(struct smb_server *server);
server171include/linux/smb_fs.hint smb_dont_catch_keepalive(struct smb_server *server);
server172include/linux/smb_fs.hint smb_trans2_request(struct smb_server *server,