Lines Matching refs:ueid
63 static bool smc_clc_ueid_valid(char *ueid) in smc_clc_ueid_valid() argument
65 char *end = ueid + SMC_MAX_EID_LEN; in smc_clc_ueid_valid()
67 while (--end >= ueid && isspace(*end)) in smc_clc_ueid_valid()
69 if (end < ueid) in smc_clc_ueid_valid()
71 if (!isalnum(*ueid) || islower(*ueid)) in smc_clc_ueid_valid()
73 while (ueid <= end) { in smc_clc_ueid_valid()
74 if ((!isalnum(*ueid) || islower(*ueid)) && *ueid != '.' && in smc_clc_ueid_valid()
75 *ueid != '-') in smc_clc_ueid_valid()
77 ueid++; in smc_clc_ueid_valid()
82 static int smc_clc_ueid_add(char *ueid) in smc_clc_ueid_add() argument
87 if (!smc_clc_ueid_valid(ueid)) in smc_clc_ueid_add()
94 memcpy(new_ueid->eid, ueid, SMC_MAX_EID_LEN); in smc_clc_ueid_add()
102 if (!memcmp(tmp_ueid->eid, ueid, SMC_MAX_EID_LEN)) { in smc_clc_ueid_add()
132 char *ueid; in smc_nl_add_ueid() local
136 ueid = (char *)nla_data(nla_ueid); in smc_nl_add_ueid()
138 return smc_clc_ueid_add(ueid); in smc_nl_add_ueid()
142 static int smc_clc_ueid_remove(char *ueid) in smc_clc_ueid_remove() argument
151 if (!ueid || !memcmp(lst_ueid->eid, ueid, SMC_MAX_EID_LEN)) { in smc_clc_ueid_remove()
169 char *ueid; in smc_nl_remove_ueid() local
173 ueid = (char *)nla_data(nla_ueid); in smc_nl_remove_ueid()
175 return smc_clc_ueid_remove(ueid); in smc_nl_remove_ueid()
185 u32 flags, char *ueid) in smc_nl_ueid_dumpinfo() argument
194 memcpy(ueid_str, ueid, SMC_MAX_EID_LEN); in smc_nl_ueid_dumpinfo()