Home
last modified time | relevance | path

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

/linux/fs/ksmbd/
A Dsmb_common.c47 static struct smb_protocol smb2_protos[] = { variable
113 offt = ARRAY_SIZE(smb2_protos) - 1; in ksmbd_lookup_protocol_idx()
115 if (!strncmp(str, smb2_protos[offt].prot, len)) { in ksmbd_lookup_protocol_idx()
117 smb2_protos[offt].prot, offt); in ksmbd_lookup_protocol_idx()
118 return smb2_protos[offt].index; in ksmbd_lookup_protocol_idx()
219 for (i = ARRAY_SIZE(smb2_protos) - 1; i >= 0; i--) { in ksmbd_lookup_dialect_by_id()
225 smb2_protos[i].prot_id) in ksmbd_lookup_dialect_by_id()
228 if (supported_protocol(smb2_protos[i].index)) { in ksmbd_lookup_dialect_by_id()
230 smb2_protos[i].name); in ksmbd_lookup_dialect_by_id()
231 return smb2_protos[i].prot_id; in ksmbd_lookup_dialect_by_id()

Completed in 4 milliseconds