Lines Matching refs:error

76 	int error;  in smbfs_fullpath()  local
83 error = mb_put_padbyte(mbp); in smbfs_fullpath()
84 if (error) in smbfs_fullpath()
85 return (error); in smbfs_fullpath()
88 error = smb_put_dmem(mbp, vcp, in smbfs_fullpath()
116 error = mb_put_uint16le(mbp, sep); in smbfs_fullpath()
118 error = mb_put_uint8(mbp, sep); in smbfs_fullpath()
119 if (error) in smbfs_fullpath()
120 return (error); in smbfs_fullpath()
123 error = smb_put_dmem(mbp, vcp, in smbfs_fullpath()
125 if (error) in smbfs_fullpath()
126 return (error); in smbfs_fullpath()
132 error = mb_put_uint16le(mbp, 0); in smbfs_fullpath()
134 error = mb_put_uint8(mbp, 0); in smbfs_fullpath()
137 return (error); in smbfs_fullpath()
218 int error; in smbfs_decode_dirent() local
229 error = md_get_uint32le(mdp, &nextoff); in smbfs_decode_dirent()
230 if (error != 0) in smbfs_decode_dirent()
238 error = md_get_mbuf(mdp, nextoff - 4, &m); in smbfs_decode_dirent()
239 if (error != 0) in smbfs_decode_dirent()
270 error = md_get_uint32le(mdp, &nmsize); /* name size (otw) */ in smbfs_decode_dirent()
271 if (error) in smbfs_decode_dirent()
277 error = md_get_uint32le(mdp, &nmsize); /* name size (otw) */ in smbfs_decode_dirent()
305 error = EINVAL; in smbfs_decode_dirent()
314 error = smb_get_dstring(mdp, SSTOVC(ctx->f_ssp), in smbfs_decode_dirent()
316 if (error != 0) in smbfs_decode_dirent()
331 return (error); in smbfs_decode_dirent()
355 int error; in smbfs_decode_file_all_info() local
393 error = md_get_uint64le(mdp, &lsize); in smbfs_decode_file_all_info()
410 return (error); in smbfs_decode_file_all_info()
427 int error; in smbfs_decode_fs_attr_info() local
431 error = md_get_uint32le(mdp, &nlen); /* fs name length */ in smbfs_decode_fs_attr_info()
432 if (error) in smbfs_decode_fs_attr_info()
445 error = md_get_mem(mdp, tmpbuf, nlen, MB_MSYSTEM); in smbfs_decode_fs_attr_info()
446 if (error != 0) in smbfs_decode_fs_attr_info()
450 error = uconv_u16tou8(tmpbuf, &tmplen, in smbfs_decode_fs_attr_info()
456 error = md_get_mem(mdp, fsa->fsa_tname, nlen, MB_MSYSTEM); in smbfs_decode_fs_attr_info()
460 return (error); in smbfs_decode_fs_attr_info()