Home
last modified time | relevance | path

Searched refs:smb2_protos (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/fs/ksmbd/
Dsmb_common.c49 static struct smb_protocol smb2_protos[] = { variable
115 offt = ARRAY_SIZE(smb2_protos) - 1; in ksmbd_lookup_protocol_idx()
117 if (!strncmp(str, smb2_protos[offt].prot, len)) { in ksmbd_lookup_protocol_idx()
119 smb2_protos[offt].prot, offt); in ksmbd_lookup_protocol_idx()
120 return smb2_protos[offt].index; in ksmbd_lookup_protocol_idx()
223 for (i = ARRAY_SIZE(smb2_protos) - 1; i >= 0; i--) { in ksmbd_lookup_dialect_by_id()
229 smb2_protos[i].prot_id) in ksmbd_lookup_dialect_by_id()
232 if (supported_protocol(smb2_protos[i].index)) { in ksmbd_lookup_dialect_by_id()
234 smb2_protos[i].name); in ksmbd_lookup_dialect_by_id()
235 return smb2_protos[i].prot_id; in ksmbd_lookup_dialect_by_id()