Lines Matching defs:h
7 #include "glob.h"
8 #include "nterr.h"
9 #include "smb_common.h"
10 #include "../common/smb2status.h"
11 #include "mgmt/user_session.h"
12 #include "connection.h"
28 * Note that commands are defined in smb2pdu.h in le16 but the array below is
263 static inline int smb2_query_info_req_len(struct smb2_query_info_req *h)
265 return le32_to_cpu(h->InputBufferLength) +
266 le32_to_cpu(h->OutputBufferLength);
269 static inline int smb2_set_info_req_len(struct smb2_set_info_req *h)
271 return le32_to_cpu(h->BufferLength);
274 static inline int smb2_read_req_len(struct smb2_read_req *h)
276 return le32_to_cpu(h->Length);
279 static inline int smb2_write_req_len(struct smb2_write_req *h)
281 return le32_to_cpu(h->Length);
284 static inline int smb2_query_dir_req_len(struct smb2_query_directory_req *h)
286 return le32_to_cpu(h->OutputBufferLength);
289 static inline int smb2_ioctl_req_len(struct smb2_ioctl_req *h)
291 return le32_to_cpu(h->InputCount) +
292 le32_to_cpu(h->OutputCount);
295 static inline int smb2_ioctl_resp_len(struct smb2_ioctl_req *h)
297 return le32_to_cpu(h->MaxInputResponse) +
298 le32_to_cpu(h->MaxOutputResponse);