Lines Matching refs:sym
29 struct smb2_symlink_err_rsp *sym = ERR_PTR(-EINVAL);
45 sym = (struct smb2_symlink_err_rsp *)&p->ErrorContextData;
54 } else if (le32_to_cpu(err->ByteCount) >= sizeof(*sym) &&
56 sym = (struct smb2_symlink_err_rsp *)err->ErrorData;
59 if (!IS_ERR(sym) && (le32_to_cpu(sym->SymLinkErrorTag) != SYMLINK_ERROR_TAG ||
60 le32_to_cpu(sym->ReparseTag) != IO_REPARSE_TAG_SYMLINK))
61 sym = ERR_PTR(-EINVAL);
63 return sym;
68 struct smb2_symlink_err_rsp *sym;
76 sym = symlink_data(iov);
77 if (IS_ERR(sym))
78 return PTR_ERR(sym);
80 sub_len = le16_to_cpu(sym->SubstituteNameLength);
81 sub_offs = le16_to_cpu(sym->SubstituteNameOffset);
82 print_len = le16_to_cpu(sym->PrintNameLength);
83 print_offs = le16_to_cpu(sym->PrintNameOffset);
89 s = cifs_strndup_from_utf16((char *)sym->PathBuffer + sub_offs, sub_len, true,