taglinefilesource code
server80fs/nfs/inode.cstruct nfs_server *server;
server118fs/nfs/inode.cserver = &sb->u.nfs_sb.s_server;
server119fs/nfs/inode.cserver->file = filp;
server120fs/nfs/inode.cserver->lock = 0;
server121fs/nfs/inode.cserver->wait = NULL;
server122fs/nfs/inode.cserver->flags = data->flags;
server123fs/nfs/inode.cserver->rsize = data->rsize;
server124fs/nfs/inode.cif (server->rsize <= 0)
server125fs/nfs/inode.cserver->rsize = NFS_DEF_FILE_IO_BUFFER_SIZE;
server126fs/nfs/inode.celse if (server->rsize >= NFS_MAX_FILE_IO_BUFFER_SIZE)
server127fs/nfs/inode.cserver->rsize = NFS_MAX_FILE_IO_BUFFER_SIZE;
server128fs/nfs/inode.cserver->wsize = data->wsize;
server129fs/nfs/inode.cif (server->wsize <= 0)
server130fs/nfs/inode.cserver->wsize = NFS_DEF_FILE_IO_BUFFER_SIZE;
server131fs/nfs/inode.celse if (server->wsize >= NFS_MAX_FILE_IO_BUFFER_SIZE)
server132fs/nfs/inode.cserver->wsize = NFS_MAX_FILE_IO_BUFFER_SIZE;
server133fs/nfs/inode.cserver->timeo = data->timeo*HZ/10;
server134fs/nfs/inode.cserver->retrans = data->retrans;
server135fs/nfs/inode.cserver->acregmin = data->acregmin*HZ;
server136fs/nfs/inode.cserver->acregmax = data->acregmax*HZ;
server137fs/nfs/inode.cserver->acdirmin = data->acdirmin*HZ;
server138fs/nfs/inode.cserver->acdirmax = data->acdirmax*HZ;
server139fs/nfs/inode.cstrcpy(server->hostname, data->hostname);
server144fs/nfs/inode.cif (((struct sockaddr_in *)(&server->toaddr))->sin_addr.s_addr == INADDR_ANY) {
server157fs/nfs/inode.csock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ;
server161fs/nfs/inode.cmemcpy((char *)&(server->toaddr),(char *)(&data->addr),sizeof(server->toaddr));
server229fs/nfs/proc.cint nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
server237fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server242fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server265fs/nfs/proc.cint nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle,
server273fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server279fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server302fs/nfs/proc.cint nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, const char *name,
server314fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server320fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server344fs/nfs/proc.cint nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle,
server351fs/nfs/proc.cif (!(*p0 = nfs_rpc_alloc(server->rsize)))
server356fs/nfs/proc.cif ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0)
server379fs/nfs/proc.cint nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle,
server388fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server396fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server425fs/nfs/proc.cint nfs_proc_write(struct nfs_server *server, struct nfs_fh *fhandle,
server433fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server442fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server465fs/nfs/proc.cint nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir,
server474fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server481fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server505fs/nfs/proc.cint nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, const char *name)
server512fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server518fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server540fs/nfs/proc.cint nfs_proc_rename(struct nfs_server *server,
server549fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server557fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server579fs/nfs/proc.cint nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle,
server587fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server594fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server616fs/nfs/proc.cint nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir,
server624fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server632fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server654fs/nfs/proc.cint nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir,
server663fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server670fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server694fs/nfs/proc.cint nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, const char *name)
server701fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->wsize)))
server707fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) {
server729fs/nfs/proc.cint nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle,
server740fs/nfs/proc.csize = server->rsize;
server741fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server748fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server785fs/nfs/proc.cint nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle,
server793fs/nfs/proc.cif (!(p0 = nfs_rpc_alloc(server->rsize)))
server798fs/nfs/proc.cif ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) {
server52fs/nfs/sock.cstatic int do_nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size)
server78fs/nfs/sock.cfile = server->file;
server86fs/nfs/sock.cinit_timeout = server->timeo;
server88fs/nfs/sock.cretrans = server->retrans;
server90fs/nfs/sock.cserver_name = server->hostname;
server96fs/nfs/sock.c| ((server->flags & NFS_MOUNT_INTR)
server108fs/nfs/sock.c&(server->toaddr), sizeof((server->toaddr))) ;
server139fs/nfs/sock.cif (server->flags & NFS_MOUNT_SOFT) {
server233fs/nfs/sock.cint nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size)
server237fs/nfs/sock.cwhile (server->lock)
server238fs/nfs/sock.csleep_on(&server->wait);
server239fs/nfs/sock.cserver->lock = 1;
server240fs/nfs/sock.cresult = do_nfs_rpc_call(server, start, end, size);
server241fs/nfs/sock.cserver->lock = 0;
server242fs/nfs/sock.cwake_up(&server->wait);
server49fs/smbfs/dir.csmb_find_inode(struct smb_server *server, const char *path);
server167fs/smbfs/dir.cstruct smb_server *server = SMB_SERVER(inode);
server210fs/smbfs/dir.cresult = smb_proc_readdir(server, inode,
server227fs/smbfs/dir.cswitch (server->case_handling) 
server259fs/smbfs/dir.cino_info = smb_find_inode(server, complete_path);
server558fs/smbfs/dir.csmb_init_root(struct smb_server *server)
server560fs/smbfs/dir.cstruct smb_inode_info *root = &(server->root);
server562fs/smbfs/dir.croot->finfo.path = server->m.root_path;
server574fs/smbfs/dir.csmb_stat_root(struct smb_server *server)
server576fs/smbfs/dir.cstruct smb_inode_info *root = &(server->root);
server580fs/smbfs/dir.cresult = smb_proc_getattr(server, "\\", 1, &(root->finfo));
server584fs/smbfs/dir.cresult = smb_proc_getattr(server, 
server592fs/smbfs/dir.csmb_free_all_inodes(struct smb_server *server)
server598fs/smbfs/dir.cstruct smb_inode_info *root = &(server->root);
server619fs/smbfs/dir.csmb_invalidate_all_inodes(struct smb_server *server)
server621fs/smbfs/dir.cstruct smb_inode_info *ino = &(server->root);
server626fs/smbfs/dir.c} while (ino != &(server->root));
server637fs/smbfs/dir.csmb_find_inode(struct smb_server *server, const char *path)
server639fs/smbfs/dir.cstruct smb_inode_info *result = &(server->root);
server649fs/smbfs/dir.c} while (result != &(server->root));
server159fs/smbfs/inode.cstruct smb_server *server = &(SMB_SBP(sb)->s_server);
server161fs/smbfs/inode.csmb_proc_disconnect(server);
server162fs/smbfs/inode.cclose_fp(server->sock_file);
server166fs/smbfs/inode.csmb_free_all_inodes(server);
server168fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server184fs/smbfs/inode.cstruct smb_server *server;
server234fs/smbfs/inode.cserver = &(SMB_SBP(sb)->s_server);
server235fs/smbfs/inode.cserver->sock_file = filp;
server236fs/smbfs/inode.cserver->lock = 0;
server237fs/smbfs/inode.cserver->wait = NULL;
server238fs/smbfs/inode.cserver->packet = NULL;
server239fs/smbfs/inode.cserver->max_xmit = data->max_xmit;
server240fs/smbfs/inode.cif (server->max_xmit <= 0)
server241fs/smbfs/inode.cserver->max_xmit = SMB_DEF_MAX_XMIT;
server243fs/smbfs/inode.cserver->tid = 0;
server244fs/smbfs/inode.cserver->pid = current->pid;
server245fs/smbfs/inode.cserver->mid = current->pid + 20;
server247fs/smbfs/inode.cserver->m = *data;
server248fs/smbfs/inode.cserver->m.file_mode = (server->m.file_mode &
server250fs/smbfs/inode.cserver->m.dir_mode  = (server->m.dir_mode &
server253fs/smbfs/inode.csmb_init_root(server);
server259fs/smbfs/inode.cerror = smb_proc_connect(server);
server270fs/smbfs/inode.cif (server->protocol >= PROTOCOL_LANMAN2)
server271fs/smbfs/inode.cserver->case_handling = CASE_DEFAULT;
server273fs/smbfs/inode.cserver->case_handling = CASE_LOWER;
server279fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server283fs/smbfs/inode.cif ((error = smb_stat_root(server)) < 0) {
server286fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server298fs/smbfs/inode.cif (!(sb->s_mounted = iget(sb, (int)&(server->root)))) {
server301fs/smbfs/inode.csmb_kfree_s(server->packet, server->max_xmit);
server399fs/smbfs/proc.csmb_lock_server(struct smb_server *server)
server401fs/smbfs/proc.cwhile (server->lock)
server402fs/smbfs/proc.csleep_on(&server->wait);
server403fs/smbfs/proc.cserver->lock = 1;
server407fs/smbfs/proc.csmb_unlock_server(struct smb_server *server)
server409fs/smbfs/proc.cif (server->lock != 1) {
server413fs/smbfs/proc.cserver->lock = 0;
server414fs/smbfs/proc.cwake_up(&server->wait);
server455fs/smbfs/proc.csmb_retry(struct smb_server *server)
server457fs/smbfs/proc.cif (server->state != CONN_INVALID) {
server461fs/smbfs/proc.cif (smb_release(server) < 0) {
server463fs/smbfs/proc.cserver->state = CONN_RETRIED;
server466fs/smbfs/proc.cif(smb_proc_reconnect(server) < 0) {
server468fs/smbfs/proc.cserver->state = CONN_RETRIED;
server472fs/smbfs/proc.cserver->state = CONN_VALID;
server490fs/smbfs/proc.csmb_setup_header(struct smb_server *server, byte command, word wct, word bcc)
server493fs/smbfs/proc.cbyte *p = server->packet;
server494fs/smbfs/proc.cbyte *buf = server->packet;
server509fs/smbfs/proc.cWSET(buf, smb_tid, server->tid);
server510fs/smbfs/proc.cWSET(buf, smb_pid, server->pid);
server511fs/smbfs/proc.cWSET(buf, smb_uid, server->server_uid);
server512fs/smbfs/proc.cWSET(buf, smb_mid, server->mid);
server514fs/smbfs/proc.cif (server->protocol > PROTOCOL_CORE) {
server530fs/smbfs/proc.csmb_setup_header_exclusive(struct smb_server *server,
server533fs/smbfs/proc.csmb_lock_server(server);
server534fs/smbfs/proc.creturn smb_setup_header(server, command, wct, bcc);
server545fs/smbfs/proc.csmb_proc_open(struct smb_server *server, const char *pathname, int len,
server550fs/smbfs/proc.cchar* buf = server->packet;
server555fs/smbfs/proc.csmb_lock_server(server);
server558fs/smbfs/proc.cp = smb_setup_header(server, SMBopen, 2, 2 + len);
server563fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBopen, 7, 0)) != 0) {
server565fs/smbfs/proc.cif (smb_retry(server)) {
server570fs/smbfs/proc.csmb_unlock_server(server);
server574fs/smbfs/proc.cp = smb_setup_header(server, SMBopen, 2, 2 + len);
server579fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBopen, 7, 0)) != 0) {
server580fs/smbfs/proc.cif (smb_retry(server)) {
server583fs/smbfs/proc.csmb_unlock_server(server);
server597fs/smbfs/proc.csmb_unlock_server(server);
server607fs/smbfs/proc.csmb_proc_close(struct smb_server *server, struct smb_dirent *finfo)
server609fs/smbfs/proc.cchar *buf = server->packet;
server611fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBclose, 3, 0);
server615fs/smbfs/proc.creturn smb_request_ok_unlock(server, SMBclose, 0, 0);
server625fs/smbfs/proc.csmb_proc_read(struct smb_server *server, struct smb_dirent *finfo, 
server629fs/smbfs/proc.cchar *buf = server->packet;
server632fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBread, 5, 0);
server639fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBread, 5, -1)) < 0) {
server640fs/smbfs/proc.csmb_unlock_server(server);
server646fs/smbfs/proc.csmb_decode_data(SMB_BUF(server->packet), data, &data_len, fs);
server648fs/smbfs/proc.csmb_unlock_server(server);
server660fs/smbfs/proc.csmb_proc_write(struct smb_server *server, struct smb_dirent *finfo,
server664fs/smbfs/proc.cchar *buf = server->packet;
server667fs/smbfs/proc.cp = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3);
server677fs/smbfs/proc.cif ((res = smb_request_ok(server, SMBwrite, 1, 0)) >= 0) {
server681fs/smbfs/proc.csmb_unlock_server(server);
server689fs/smbfs/proc.csmb_proc_do_create(struct smb_server *server, const char *path, int len, 
server694fs/smbfs/proc.cchar *buf = server->packet;
server696fs/smbfs/proc.csmb_lock_server(server);
server698fs/smbfs/proc.cp = smb_setup_header(server, command, 3, len + 2);
server703fs/smbfs/proc.cif ((error = smb_request_ok(server, command, 1, 0)) < 0) {
server704fs/smbfs/proc.cif (smb_retry(server)) {
server707fs/smbfs/proc.csmb_unlock_server(server);
server713fs/smbfs/proc.csmb_unlock_server(server);
server715fs/smbfs/proc.csmb_proc_close(server, entry);
server721fs/smbfs/proc.csmb_proc_create(struct smb_server *server, const char *path, int len,
server724fs/smbfs/proc.creturn smb_proc_do_create(server, path, len, entry, SMBcreate);
server728fs/smbfs/proc.csmb_proc_mknew(struct smb_server *server, const char *path, int len,
server731fs/smbfs/proc.creturn smb_proc_do_create(server, path, len, entry, SMBmknew);
server735fs/smbfs/proc.csmb_proc_mv(struct smb_server *server, 
server740fs/smbfs/proc.cchar *buf = server->packet;
server743fs/smbfs/proc.csmb_lock_server(server);
server746fs/smbfs/proc.cp = smb_setup_header(server, SMBmv, 1, olen + nlen + 4);
server751fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBmv, 0, 0)) < 0) {
server752fs/smbfs/proc.cif (smb_retry(server)) {
server756fs/smbfs/proc.csmb_unlock_server(server);
server761fs/smbfs/proc.csmb_proc_mkdir(struct smb_server *server, const char *path, const int len)
server766fs/smbfs/proc.csmb_lock_server(server);
server769fs/smbfs/proc.cp = smb_setup_header(server, SMBmkdir, 0, 2 + len);
server772fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBmkdir, 0, 0)) < 0) {
server773fs/smbfs/proc.cif (smb_retry(server)) {
server777fs/smbfs/proc.csmb_unlock_server(server);
server782fs/smbfs/proc.csmb_proc_rmdir(struct smb_server *server, const char *path, const int len)
server787fs/smbfs/proc.csmb_lock_server(server);
server790fs/smbfs/proc.cp = smb_setup_header(server, SMBrmdir, 0, 2 + len);
server793fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBrmdir, 0, 0)) < 0) {
server794fs/smbfs/proc.cif (smb_retry(server)) {
server798fs/smbfs/proc.csmb_unlock_server(server);
server803fs/smbfs/proc.csmb_proc_unlink(struct smb_server *server, const char *path, const int len)
server806fs/smbfs/proc.cchar *buf = server->packet;
server809fs/smbfs/proc.csmb_lock_server(server);
server812fs/smbfs/proc.cp = smb_setup_header(server, SMBunlink, 1, 2 + len);
server816fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBunlink, 0, 0)) < 0) {
server817fs/smbfs/proc.cif (smb_retry(server)) {
server821fs/smbfs/proc.csmb_unlock_server(server);
server826fs/smbfs/proc.csmb_proc_trunc(struct smb_server *server, word fid, dword length)
server829fs/smbfs/proc.cchar *buf = server->packet;
server832fs/smbfs/proc.csmb_lock_server(server);
server835fs/smbfs/proc.cp = smb_setup_header(server, SMBwrite, 5, 3);
server842fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBwrite, 1, 0)) < 0) {
server843fs/smbfs/proc.cif (smb_retry(server)) {
server847fs/smbfs/proc.csmb_unlock_server(server);
server869fs/smbfs/proc.csmb_proc_readdir_short(struct smb_server *server, struct inode *dir, int fpos,
server882fs/smbfs/proc.cint entries_asked = (server->max_xmit - 100) / SMB_DIRINFO_SIZE;
server892fs/smbfs/proc.cbuf = server->packet;
server894fs/smbfs/proc.csmb_lock_server(server);
server903fs/smbfs/proc.cp = smb_setup_header(server, SMBsearch, 2,
server911fs/smbfs/proc.cp = smb_setup_header(server, SMBsearch, 2,
server919fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBsearch, 1, -1)) < 0) {
server920fs/smbfs/proc.cif (   (server->rcls == ERRDOS)
server921fs/smbfs/proc.c&& (server->err  == ERRnofiles)) {
server927fs/smbfs/proc.cif (smb_retry(server)) {
server935fs/smbfs/proc.cp = SMB_VWV(server->packet);
server954fs/smbfs/proc.cSMB_BUF(server->packet) + 3 +
server983fs/smbfs/proc.csmb_unlock_server(server);
server1073fs/smbfs/proc.csmb_proc_readdir_long(struct smb_server *server, struct inode *dir, int fpos,
server1113fs/smbfs/proc.csmb_lock_server(server);
server1124fs/smbfs/proc.cunsigned char *outbuf = server->packet;
server1134fs/smbfs/proc.csmb_setup_header(server, SMBtrans2, 15,
server1185fs/smbfs/proc.cresult = smb_trans2_request(server,
server1190fs/smbfs/proc.cif (smb_retry(server)) {
server1198fs/smbfs/proc.cif (server->rcls != 0)
server1294fs/smbfs/proc.csmb_unlock_server(server);
server1300fs/smbfs/proc.csmb_proc_readdir(struct smb_server *server, struct inode *dir, int fpos,
server1303fs/smbfs/proc.cif (server->protocol >= PROTOCOL_LANMAN2)
server1304fs/smbfs/proc.creturn smb_proc_readdir_long(server, dir, fpos, cache_size,
server1307fs/smbfs/proc.creturn smb_proc_readdir_short(server, dir, fpos, cache_size,
server1312fs/smbfs/proc.csmb_proc_getattr_core(struct smb_server *server, const char *path, int len, 
server1317fs/smbfs/proc.cchar *buf = server->packet;
server1319fs/smbfs/proc.csmb_lock_server(server);
server1324fs/smbfs/proc.cp = smb_setup_header(server, SMBgetatr, 0, 2 + len);
server1327fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBgetatr, 10, 0)) < 0) {
server1328fs/smbfs/proc.cif (smb_retry(server)) {
server1331fs/smbfs/proc.csmb_unlock_server(server);
server1340fs/smbfs/proc.csmb_unlock_server(server);
server1347fs/smbfs/proc.csmb_proc_getattrE(struct smb_server *server, struct smb_dirent *entry)
server1349fs/smbfs/proc.cchar* buf = server->packet;
server1352fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBgetattrE, 1, 0);
server1355fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBgetattrE, 11, 0)) != 0) {
server1356fs/smbfs/proc.csmb_unlock_server(server);
server1366fs/smbfs/proc.csmb_unlock_server(server);
server1371fs/smbfs/proc.csmb_proc_getattr(struct smb_server *server, const char *path, int len, 
server1374fs/smbfs/proc.cif (server->protocol >= PROTOCOL_LANMAN1) {
server1379fs/smbfs/proc.cif ((result=smb_proc_open(server,path,len,
server1383fs/smbfs/proc.creturn smb_proc_getattr_core(server,path,len,entry);
server1386fs/smbfs/proc.cif ((result=smb_proc_getattrE(server, &temp_entry)) >= 0) {
server1394fs/smbfs/proc.csmb_proc_close(server, &temp_entry);
server1398fs/smbfs/proc.creturn smb_proc_getattr_core(server, path, len, entry);
server1406fs/smbfs/proc.csmb_proc_setattr_core(struct smb_server *server,
server1411fs/smbfs/proc.cchar *buf = server->packet;
server1414fs/smbfs/proc.csmb_lock_server(server);
server1417fs/smbfs/proc.cp = smb_setup_header(server, SMBsetatr, 8, 4 + len);
server1423fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBsetatr, 0, 0)) < 0) {
server1424fs/smbfs/proc.cif (smb_retry(server)) {
server1428fs/smbfs/proc.csmb_unlock_server(server);
server1435fs/smbfs/proc.csmb_proc_setattrE(struct smb_server *server, word fid,
server1438fs/smbfs/proc.cchar *buf = server->packet;
server1441fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBsetattrE, 7, 0);
server1457fs/smbfs/proc.creturn smb_request_ok_unlock(server, SMBsetattrE, 0, 0);
server1463fs/smbfs/proc.csmb_proc_setattr(struct smb_server *server, struct inode *inode,
server1469fs/smbfs/proc.cif (server->protocol >= PROTOCOL_LANMAN1) {
server1472fs/smbfs/proc.creturn smb_proc_setattrE(server, finfo->fileid, new_finfo);
server1474fs/smbfs/proc.creturn smb_proc_setattr_core(server, finfo->path, finfo->len,
server1484fs/smbfs/proc.cstruct smb_server *server = &(SMB_SBP(super)->s_server);
server1486fs/smbfs/proc.csmb_lock_server(server);
server1489fs/smbfs/proc.csmb_setup_header(server, SMBdskattr, 0, 0);
server1491fs/smbfs/proc.cif ((error = smb_request_ok(server, SMBdskattr, 5, 0)) < 0) {
server1492fs/smbfs/proc.cif (smb_retry(server)) {
server1495fs/smbfs/proc.csmb_unlock_server(server);
server1499fs/smbfs/proc.cp = SMB_VWV(server->packet);
server1504fs/smbfs/proc.csmb_unlock_server(server);
server1525fs/smbfs/proc.csmb_proc_reconnect(struct smb_server *server)
server1541fs/smbfs/proc.cint given_max_xmit = server->m.max_xmit;
server1545fs/smbfs/proc.cif ((result = smb_connect(server)) < 0) {
server1551fs/smbfs/proc.cserver->state = CONN_VALID;
server1553fs/smbfs/proc.cif (server->packet != NULL) {
server1554fs/smbfs/proc.csmb_kfree_s(server->packet, server->max_xmit);
server1557fs/smbfs/proc.cserver->packet = smb_kmalloc(max_xmit, GFP_KERNEL);
server1559fs/smbfs/proc.cif (server->packet == NULL) {
server1565fs/smbfs/proc.cserver->max_xmit = max_xmit;
server1570fs/smbfs/proc.cp = server->packet + 4;
server1572fs/smbfs/proc.cp = smb_name_mangle(p, server->m.server_name);
server1573fs/smbfs/proc.cp = smb_name_mangle(p, server->m.client_name);
server1575fs/smbfs/proc.csmb_encode_smb_length(server->packet,
server1576fs/smbfs/proc.c(void *)p - (void *)(server->packet));
server1578fs/smbfs/proc.cserver->packet[0] = 0x81; /* SESSION REQUEST */
server1580fs/smbfs/proc.cif (smb_catch_keepalive(server) < 0) {
server1584fs/smbfs/proc.cif ((result = smb_request(server)) < 0) {
server1586fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1590fs/smbfs/proc.cif (server->packet[0] != 0x82) {
server1593fs/smbfs/proc.cserver->packet[0]);
server1594fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1596fs/smbfs/proc.csmb_dump_packet(server->packet);
server1605fs/smbfs/proc.cmemset(server->packet, 0, SMB_HEADER_LEN);
server1612fs/smbfs/proc.csmb_setup_header(server, SMBnegprot, 0, plength);
server1614fs/smbfs/proc.cp = SMB_BUF(server->packet);
server1620fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBnegprot, 1, -1)) < 0) {
server1622fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1630fs/smbfs/proc.cp = SMB_VWV(server->packet);
server1632fs/smbfs/proc.cserver->protocol = prots[i].prot;
server1637fs/smbfs/proc.cif (server->protocol > PROTOCOL_LANMAN1) {
server1639fs/smbfs/proc.cword passlen = strlen(server->m.password);
server1640fs/smbfs/proc.cword userlen = strlen(server->m.username);
server1643fs/smbfs/proc.cserver->m.password);
server1645fs/smbfs/proc.cserver->m.username);
server1647fs/smbfs/proc.cp = smb_decode_word(p, &(server->maxxmt));
server1648fs/smbfs/proc.cp = smb_decode_word(p, &(server->maxmux));
server1649fs/smbfs/proc.cp = smb_decode_word(p, &(server->maxvcs));
server1650fs/smbfs/proc.cp = smb_decode_word(p, &(server->blkmode));
server1651fs/smbfs/proc.cp = smb_decode_dword(p, &(server->sesskey));
server1653fs/smbfs/proc.csmb_setup_header(server, SMBsesssetupX, 10,
server1656fs/smbfs/proc.cWSET(server->packet, smb_vwv0, 0x00ff);
server1657fs/smbfs/proc.cWSET(server->packet, smb_vwv1, 0);
server1658fs/smbfs/proc.cWSET(server->packet, smb_vwv2, given_max_xmit);
server1659fs/smbfs/proc.cWSET(server->packet, smb_vwv3, 2);
server1660fs/smbfs/proc.cWSET(server->packet, smb_vwv4, server->pid);
server1661fs/smbfs/proc.cDSET(server->packet, smb_vwv5, server->sesskey);
server1662fs/smbfs/proc.cWSET(server->packet, smb_vwv7, passlen + 1);
server1663fs/smbfs/proc.cWSET(server->packet, smb_vwv8, 0);
server1664fs/smbfs/proc.cWSET(server->packet, smb_vwv9, 0);
server1666fs/smbfs/proc.cp = SMB_BUF(server->packet);
server1667fs/smbfs/proc.cstrcpy(p, server->m.password);
server1669fs/smbfs/proc.cstrcpy(p, server->m.username);
server1671fs/smbfs/proc.cif ((result = smb_request_ok(server,SMBsesssetupX,3,0)) < 0) {
server1673fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1676fs/smbfs/proc.csmb_decode_word(server->packet+32, &(server->server_uid));
server1681fs/smbfs/proc.csmb_setup_header(server, SMBtcon, 0,
server1682fs/smbfs/proc.c6 + strlen(server->m.service) +
server1683fs/smbfs/proc.cstrlen(server->m.password) + strlen(dev));
server1684fs/smbfs/proc.cp = SMB_BUF(server->packet);
server1685fs/smbfs/proc.cp = smb_encode_ascii(p, server->m.service, strlen(server->m.service));
server1686fs/smbfs/proc.cp = smb_encode_ascii(p,server->m.password, strlen(server->m.password));
server1689fs/smbfs/proc.cif ((result = smb_request_ok(server, SMBtcon, 2, 0)) < 0) {
server1691fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1697fs/smbfs/proc.cp = SMB_VWV(server->packet);
server1698fs/smbfs/proc.cp = smb_decode_word(p, &server->max_xmit);
server1700fs/smbfs/proc.cif (server->max_xmit > given_max_xmit)
server1701fs/smbfs/proc.cserver->max_xmit = given_max_xmit;
server1703fs/smbfs/proc.cp = smb_decode_word(p, &server->tid);
server1707fs/smbfs/proc.cserver->max_xmit += 4;
server1709fs/smbfs/proc.cDPRINTK("max_xmit = %d, tid = %d\n", server->max_xmit, server->tid);
server1712fs/smbfs/proc.csmb_kfree_s(server->packet, max_xmit); 
server1714fs/smbfs/proc.cserver->packet = smb_kmalloc(server->max_xmit, GFP_KERNEL);
server1715fs/smbfs/proc.cif (server->packet == NULL) {
server1718fs/smbfs/proc.csmb_dont_catch_keepalive(server);
server1726fs/smbfs/proc.cserver->state = CONN_INVALID;
server1733fs/smbfs/proc.csmb_proc_connect(struct smb_server *server)
server1736fs/smbfs/proc.csmb_lock_server(server);
server1737fs/smbfs/proc.cresult = smb_proc_reconnect(server);
server1738fs/smbfs/proc.cif ((result < 0) && (server->packet != NULL)) {
server1739fs/smbfs/proc.csmb_kfree_s(server->packet, server->max_xmit);
server1740fs/smbfs/proc.cserver->packet = NULL;
server1742fs/smbfs/proc.csmb_unlock_server(server);
server1747fs/smbfs/proc.csmb_proc_disconnect(struct smb_server *server)
server1749fs/smbfs/proc.csmb_setup_header_exclusive(server, SMBtdis, 0, 0);
server1750fs/smbfs/proc.creturn smb_request_ok_unlock(server, SMBtdis, 0, 0);
server77fs/smbfs/sock.csmb_catch_keepalive(struct smb_server *server)
server84fs/smbfs/sock.cif (   (server == NULL)
server85fs/smbfs/sock.c|| ((file  = server->sock_file) == NULL)
server90fs/smbfs/sock.cserver->data_ready = NULL;
server98fs/smbfs/sock.cserver->data_ready = NULL;
server106fs/smbfs/sock.cserver->data_ready = NULL;
server112fs/smbfs/sock.c(unsigned int)(server->data_ready));
server119fs/smbfs/sock.cserver->data_ready = sk->data_ready;
server125fs/smbfs/sock.csmb_dont_catch_keepalive(struct smb_server *server)
server132fs/smbfs/sock.cif (   (server == NULL)
server133fs/smbfs/sock.c|| ((file  = server->sock_file) == NULL)
server156fs/smbfs/sock.cif (server->data_ready == NULL) {
server170fs/smbfs/sock.c(unsigned int)(server->data_ready));
server172fs/smbfs/sock.csk->data_ready = server->data_ready;
server173fs/smbfs/sock.cserver->data_ready = NULL;
server182fs/smbfs/sock.csmb_receive(struct smb_server *server, struct socket *sock)
server221fs/smbfs/sock.cif (len > server->max_xmit) { 
server223fs/smbfs/sock.clen, server->max_xmit);
server234fs/smbfs/sock.c(void *)(server->packet+already_read),
server249fs/smbfs/sock.cserver->rcls = *((unsigned char *)(server->packet+9));
server250fs/smbfs/sock.cserver->err  = *((unsigned short *)(server->packet+11));
server252fs/smbfs/sock.cif (server->rcls != 0) {
server254fs/smbfs/sock.cserver->rcls, server->err);
server265fs/smbfs/sock.csmb_receive_trans2(struct smb_server *server, struct socket *sock,
server272fs/smbfs/sock.cunsigned char *inbuf = server->packet;
server278fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
server282fs/smbfs/sock.cif (server->rcls != 0) {
server353fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
server356fs/smbfs/sock.cif (server->rcls != 0) {
server375fs/smbfs/sock.cserver_sock(struct smb_server *server)
server380fs/smbfs/sock.cif (server == NULL)
server382fs/smbfs/sock.cif ((file = server->sock_file) == NULL)
server390fs/smbfs/sock.csmb_release(struct smb_server *server)
server392fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server412fs/smbfs/sock.csmb_connect(struct smb_server *server)
server414fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server421fs/smbfs/sock.creturn sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr),
server432fs/smbfs/sock.csmb_request(struct smb_server *server)
server439fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server440fs/smbfs/sock.cunsigned char *buffer = (server == NULL) ? NULL : server->packet;
server447fs/smbfs/sock.cif (server->state != CONN_VALID)
server451fs/smbfs/sock.cwhile (server->lock)
server452fs/smbfs/sock.csleep_on(&server->wait);
server453fs/smbfs/sock.cserver->lock = 1;
server456fs/smbfs/sock.cif ((result = smb_dont_catch_keepalive(server)) != 0) {
server457fs/smbfs/sock.cserver->state = CONN_INVALID;
server458fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server476fs/smbfs/sock.cresult = smb_receive(server, sock);
server485fs/smbfs/sock.cif ((result2 = smb_catch_keepalive(server)) < 0) {
server490fs/smbfs/sock.cserver->lock = 0;
server491fs/smbfs/sock.cwake_up(&server->wait);
server495fs/smbfs/sock.cserver->state = CONN_INVALID;
server496fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server509fs/smbfs/sock.csmb_trans2_request(struct smb_server *server,
server518fs/smbfs/sock.cstruct socket *sock = server_sock(server);
server519fs/smbfs/sock.cunsigned char *buffer = (server == NULL) ? NULL : server->packet;
server526fs/smbfs/sock.cif (server->state != CONN_VALID)
server530fs/smbfs/sock.cwhile (server->lock)
server531fs/smbfs/sock.csleep_on(&server->wait);
server532fs/smbfs/sock.cserver->lock = 1;
server535fs/smbfs/sock.cif ((result = smb_dont_catch_keepalive(server)) != 0) {
server536fs/smbfs/sock.cserver->state = CONN_INVALID;
server537fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server555fs/smbfs/sock.cresult = smb_receive_trans2(server, sock,
server566fs/smbfs/sock.cif ((result2 = smb_catch_keepalive(server)) < 0) {
server571fs/smbfs/sock.cserver->lock = 0;
server572fs/smbfs/sock.cwake_up(&server->wait);
server576fs/smbfs/sock.cserver->state = CONN_INVALID;
server577fs/smbfs/sock.csmb_invalidate_all_inodes(server);
server52include/linux/nfs_fs.hextern int nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
server54include/linux/nfs_fs.hextern int nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle,
server56include/linux/nfs_fs.hextern int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir,
server59include/linux/nfs_fs.hextern int nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle,
server62include/linux/nfs_fs.hextern int nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle,
server65include/linux/nfs_fs.hextern int nfs_proc_write(struct nfs_server *server, struct nfs_fh *fhandle,
server68include/linux/nfs_fs.hextern int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir,
server71include/linux/nfs_fs.hextern int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir,
server73include/linux/nfs_fs.hextern int nfs_proc_rename(struct nfs_server *server,
server76include/linux/nfs_fs.hextern int nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle,
server78include/linux/nfs_fs.hextern int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir,
server80include/linux/nfs_fs.hextern int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir,
server83include/linux/nfs_fs.hextern int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir,
server85include/linux/nfs_fs.hextern int nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle,
server87include/linux/nfs_fs.hextern int nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle,
server92include/linux/nfs_fs.hextern int nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size);
server106include/linux/smb_fs.hvoid smb_free_all_inodes(struct smb_server *server);
server107include/linux/smb_fs.hvoid smb_init_root(struct smb_server *server);
server108include/linux/smb_fs.hint  smb_stat_root(struct smb_server *server);
server111include/linux/smb_fs.hvoid smb_invalidate_all_inodes(struct smb_server *server);
server122include/linux/smb_fs.hvoid smb_invalidate_connection(struct smb_server *server);
server123include/linux/smb_fs.hint smb_conn_is_valid(struct smb_server *server);
server127include/linux/smb_fs.hint smb_proc_open(struct smb_server *server, const char *pathname,
server129include/linux/smb_fs.hint smb_proc_close(struct smb_server *server, struct smb_dirent *finfo);
server130include/linux/smb_fs.hint smb_proc_read(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_create(struct smb_server *server, const char *path,
server136include/linux/smb_fs.hint smb_proc_mknew(struct smb_server *server, const char *path, int len,
server138include/linux/smb_fs.hint smb_proc_mv(struct smb_server *server, const char *opath, const int olen, 
server140include/linux/smb_fs.hint smb_proc_mkdir(struct smb_server *server, const char *path, const int len);
server141include/linux/smb_fs.hint smb_proc_rmdir(struct smb_server *server, const char *path, const int len);
server142include/linux/smb_fs.hint smb_proc_unlink(struct smb_server *server, const char *path,
server144include/linux/smb_fs.hint smb_proc_readdir(struct smb_server *server, struct inode *dir,
server147include/linux/smb_fs.hint smb_proc_getattr(struct smb_server *server, const char *path,
server149include/linux/smb_fs.hint smb_proc_setattr(struct smb_server *server,
server152include/linux/smb_fs.hint smb_proc_chkpath(struct smb_server *server, char *path, int len,
server155include/linux/smb_fs.hint smb_proc_reconnect(struct smb_server *server);
server156include/linux/smb_fs.hint smb_proc_connect(struct smb_server *server);
server157include/linux/smb_fs.hint smb_proc_disconnect(struct smb_server *server);
server158include/linux/smb_fs.hint smb_proc_trunc(struct smb_server *server, word fid, dword length);
server161include/linux/smb_fs.hint smb_release(struct smb_server *server);
server162include/linux/smb_fs.hint smb_connect(struct smb_server *server);
server163include/linux/smb_fs.hint smb_request(struct smb_server *server);
server164include/linux/smb_fs.hint smb_catch_keepalive(struct smb_server *server);
server165include/linux/smb_fs.hint smb_dont_catch_keepalive(struct smb_server *server);
server166include/linux/smb_fs.hint smb_trans2_request(struct smb_server *server,