Lines Matching refs:pneg_inbuf
1096 struct validate_negotiate_info_req *pneg_inbuf; in smb3_validate_negotiate() local
1126 pneg_inbuf = kmalloc(sizeof(*pneg_inbuf), GFP_NOFS); in smb3_validate_negotiate()
1127 if (!pneg_inbuf) in smb3_validate_negotiate()
1130 pneg_inbuf->Capabilities = in smb3_validate_negotiate()
1133 pneg_inbuf->Capabilities |= cpu_to_le32(SMB2_GLOBAL_CAP_MULTI_CHANNEL); in smb3_validate_negotiate()
1135 memcpy(pneg_inbuf->Guid, server->client_guid, in smb3_validate_negotiate()
1139 pneg_inbuf->SecurityMode = in smb3_validate_negotiate()
1142 pneg_inbuf->SecurityMode = in smb3_validate_negotiate()
1145 pneg_inbuf->SecurityMode = 0; in smb3_validate_negotiate()
1150 pneg_inbuf->Dialects[0] = cpu_to_le16(SMB30_PROT_ID); in smb3_validate_negotiate()
1151 pneg_inbuf->Dialects[1] = cpu_to_le16(SMB302_PROT_ID); in smb3_validate_negotiate()
1152 pneg_inbuf->Dialects[2] = cpu_to_le16(SMB311_PROT_ID); in smb3_validate_negotiate()
1153 pneg_inbuf->DialectCount = cpu_to_le16(3); in smb3_validate_negotiate()
1155 inbuflen = sizeof(*pneg_inbuf) - in smb3_validate_negotiate()
1156 (sizeof(pneg_inbuf->Dialects[0])); in smb3_validate_negotiate()
1159 pneg_inbuf->Dialects[0] = cpu_to_le16(SMB21_PROT_ID); in smb3_validate_negotiate()
1160 pneg_inbuf->Dialects[1] = cpu_to_le16(SMB30_PROT_ID); in smb3_validate_negotiate()
1161 pneg_inbuf->Dialects[2] = cpu_to_le16(SMB302_PROT_ID); in smb3_validate_negotiate()
1162 pneg_inbuf->Dialects[3] = cpu_to_le16(SMB311_PROT_ID); in smb3_validate_negotiate()
1163 pneg_inbuf->DialectCount = cpu_to_le16(4); in smb3_validate_negotiate()
1165 inbuflen = sizeof(*pneg_inbuf); in smb3_validate_negotiate()
1168 pneg_inbuf->Dialects[0] = in smb3_validate_negotiate()
1170 pneg_inbuf->DialectCount = cpu_to_le16(1); in smb3_validate_negotiate()
1172 inbuflen = sizeof(*pneg_inbuf) - in smb3_validate_negotiate()
1173 sizeof(pneg_inbuf->Dialects[0]) * 3; in smb3_validate_negotiate()
1178 (char *)pneg_inbuf, inbuflen, CIFSMaxBufSize, in smb3_validate_negotiate()
1228 kfree(pneg_inbuf); in smb3_validate_negotiate()