Lines Matching refs:cpu_to_le16

104 	hdr->StructureSize = cpu_to_le16(64);  in smb2_hdr_assemble()
106 hdr->CreditRequest = cpu_to_le16(2); /* BB make this dynamic */ in smb2_hdr_assemble()
116 hdr->CreditCharge = cpu_to_le16(1); in smb2_hdr_assemble()
140 pdu->StructureSize2 = cpu_to_le16(parmsize); in smb2_hdr_assemble()
349 req->Dialects[0] = cpu_to_le16(ses->server->vals->protocol_id); in SMB2_negotiate()
351 req->DialectCount = cpu_to_le16(1); /* One vers= at a time for now */ in SMB2_negotiate()
356 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED); in SMB2_negotiate()
358 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED); in SMB2_negotiate()
389 if (rsp->DialectRevision == cpu_to_le16(SMB20_PROT_ID)) in SMB2_negotiate()
391 else if (rsp->DialectRevision == cpu_to_le16(SMB21_PROT_ID)) in SMB2_negotiate()
393 else if (rsp->DialectRevision == cpu_to_le16(SMB30_PROT_ID)) in SMB2_negotiate()
395 else if (rsp->DialectRevision == cpu_to_le16(SMB302_PROT_ID)) in SMB2_negotiate()
472 cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED); in smb3_validate_negotiate()
475 cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED); in smb3_validate_negotiate()
479 vneg_inbuf.DialectCount = cpu_to_le16(1); in smb3_validate_negotiate()
481 cpu_to_le16(tcon->ses->server->vals->protocol_id); in smb3_validate_negotiate()
500 cpu_to_le16(tcon->ses->server->vals->protocol_id)) in smb3_validate_negotiate()
503 if (pneg_rsp->SecurityMode != cpu_to_le16(tcon->ses->server->sec_mode)) in smb3_validate_negotiate()
576 req->hdr.CreditRequest = cpu_to_le16(3); in SMB2_sess_setup()
695 cpu_to_le16(sizeof(struct smb2_sess_setup_req) - in SMB2_sess_setup()
697 req->SecurityBufferLength = cpu_to_le16(blob_length); in SMB2_sess_setup()
895 req->PathOffset = cpu_to_le16(sizeof(struct smb2_tree_connect_req) in SMB2_tcon()
897 req->PathLength = cpu_to_le16(unc_path_len - 2); in SMB2_tcon()
1000 buf->ccontext.DataOffset = cpu_to_le16(offsetof in create_durable_buf()
1003 buf->ccontext.NameOffset = cpu_to_le16(offsetof in create_durable_buf()
1005 buf->ccontext.NameLength = cpu_to_le16(4); in create_durable_buf()
1023 buf->ccontext.DataOffset = cpu_to_le16(offsetof in create_reconnect_durable_buf()
1026 buf->ccontext.NameOffset = cpu_to_le16(offsetof in create_reconnect_durable_buf()
1028 buf->ccontext.NameLength = cpu_to_le16(4); in create_reconnect_durable_buf()
1162 req->NameOffset = cpu_to_le16(sizeof(struct smb2_create_req) - 4); in SMB2_open()
1169 req->NameLength = cpu_to_le16(uni_path_len - 2); in SMB2_open()
1414 cpu_to_le16(COMPRESSION_FORMAT_DEFAULT); in SMB2_set_compression()
1558 cpu_to_le16(sizeof(struct smb2_query_info_req) - 1 - 4); in query_info()
1639 req->hdr.CreditRequest = cpu_to_le16(1); in SMB2_echo()
1849 buf->CreditCharge = cpu_to_le16(DIV_ROUND_UP(rdata->bytes, in smb2_async_readv()
2009 req->DataOffset = cpu_to_le16( in smb2_async_writev()
2032 req->hdr.CreditCharge = cpu_to_le16(DIV_ROUND_UP(wdata->bytes, in smb2_async_writev()
2092 req->DataOffset = cpu_to_le16( in SMB2_write()
2174 __le16 asteriks = cpu_to_le16('*'); in SMB2_query_directory()
2213 cpu_to_le16(sizeof(struct smb2_query_directory_req) - 1 - 4); in SMB2_query_directory()
2214 req->FileNameLength = cpu_to_le16(len); in SMB2_query_directory()
2325 cpu_to_le16(sizeof(struct smb2_set_info_req) - 1 - 4); in send_set_info()
2482 req->hdr.CreditRequest = cpu_to_le16(1); in SMB2_oplock_break()
2529 cpu_to_le16(sizeof(struct smb2_query_info_req) - 1 - 4); in build_qfs_info_req()
2657 req->LockCount = cpu_to_le16(num_lock); in smb2_lockv()
2711 req->hdr.CreditRequest = cpu_to_le16(1); in SMB2_lease_break()
2712 req->StructureSize = cpu_to_le16(36); in SMB2_lease_break()