Lines Matching refs:le16_to_cpu

105 		*off = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferOffset);  in smb2_get_data_area_len()
106 *len = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferLength); in smb2_get_data_area_len()
109 *off = le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathOffset); in smb2_get_data_area_len()
110 *len = le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathLength); in smb2_get_data_area_len()
122 *off = le16_to_cpu(((struct smb2_create_req *)hdr)->NameOffset); in smb2_get_data_area_len()
123 *len = le16_to_cpu(((struct smb2_create_req *)hdr)->NameLength); in smb2_get_data_area_len()
127 *off = le16_to_cpu(((struct smb2_query_info_req *)hdr)->InputBufferOffset); in smb2_get_data_area_len()
131 *off = le16_to_cpu(((struct smb2_set_info_req *)hdr)->BufferOffset); in smb2_get_data_area_len()
135 *off = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoOffset); in smb2_get_data_area_len()
136 *len = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoLength); in smb2_get_data_area_len()
140 *off = le16_to_cpu(((struct smb2_write_req *)hdr)->DataOffset); in smb2_get_data_area_len()
145 *off = le16_to_cpu(((struct smb2_write_req *)hdr)->WriteChannelInfoOffset); in smb2_get_data_area_len()
146 *len = le16_to_cpu(((struct smb2_write_req *)hdr)->WriteChannelInfoLength); in smb2_get_data_area_len()
149 *off = le16_to_cpu(((struct smb2_query_directory_req *)hdr)->FileNameOffset); in smb2_get_data_area_len()
150 *len = le16_to_cpu(((struct smb2_query_directory_req *)hdr)->FileNameLength); in smb2_get_data_area_len()
160 lock_count = le16_to_cpu(((struct smb2_lock_req *)hdr)->LockCount) - 1; in smb2_get_data_area_len()
201 *len = le16_to_cpu(hdr->StructureSize); in smb2_calc_size()
207 *len += le16_to_cpu(pdu->StructureSize2); in smb2_calc_size()
217 if (has_smb2_data_area[le16_to_cpu(hdr->Command)] == false) in smb2_calc_size()
290 unsigned short credit_charge = le16_to_cpu(hdr->CreditCharge); in smb2_validate_credit_charge()
365 le16_to_cpu(hdr->StructureSize)); in ksmbd_smb2_check_message()
369 command = le16_to_cpu(hdr->Command); in ksmbd_smb2_check_message()
381 le16_to_cpu(pdu->StructureSize2), command); in ksmbd_smb2_check_message()
385 le16_to_cpu(pdu->StructureSize2) != OP_BREAK_STRUCT_SIZE_20 && in ksmbd_smb2_check_message()
386 le16_to_cpu(pdu->StructureSize2) != OP_BREAK_STRUCT_SIZE_21) { in ksmbd_smb2_check_message()
390 le16_to_cpu(pdu->StructureSize2)); in ksmbd_smb2_check_message()