Lines Matching refs:country
54 struct country *country; /* current country */ member
94 if (mt->country == NULL) { in start_element()
100 mt->country->rd = (void *)strdup(ref); in start_element()
154 if (iseq(name, "country") && mt->country == NULL) { in start_element()
155 mt->country = calloc(1, sizeof(struct country)); in start_element()
156 mt->country->isoname = strdup(id); in start_element()
157 mt->country->code = NO_COUNTRY; in start_element()
159 LIST_INSERT_HEAD(&mt->rdp->countries, mt->country, next); in start_element()
311 if (iseq(name, "isocc") && mt->country != NULL) { in end_element()
312 mt->country->code = strtoul(p, NULL, 0); in end_element()
315 if (iseq(name, "name") && mt->country != NULL) { in end_element()
316 mt->country->name = strdup(p); in end_element()
359 if (iseq(name, "country") && mt->country != NULL) { in end_element()
361 if ((int) mt->country->code == NO_COUNTRY) { in end_element()
365 if (mt->country->name == NULL) { in end_element()
369 if (mt->country->rd == NULL) { in end_element()
373 mt->country = NULL; in end_element()
419 struct country *cp; in lib80211_regdomain_readconfig()
599 struct country *cp = LIST_FIRST(&rdp->countries); in lib80211_regdomain_cleanup()
706 const struct country *
709 const struct country *cp; in lib80211_country_findbycc()
721 const struct country *
724 const struct country *cp; in lib80211_country_findbyname()