Lines Matching defs:code
9 * 1. Redistributions of source code must retain the above copyright
112 static int uath_countrycode = CTRY_DEFAULT; /* country code */
114 0, "country code");
618 uath_codename(int code)
683 if (code < N(names))
684 return names[code];
685 if (code == WDCMSG_SET_DEFAULT_KEY)
687 snprintf(buf, sizeof(buf), "0x%02x", code);
697 uath_cmdsend(struct uath_softc *sc, uint32_t code, const void *idata, int ilen,
720 hdr->code = htobe32(code);
728 __func__, uath_codename(code), cmd->flags, olen);
751 "to cmd 0x%x (%u)\n", code, code);
755 code, code, cmd->olen, olen);
764 uath_cmd_read(struct uath_softc *sc, uint32_t code, const void *idata,
769 return uath_cmdsend(sc, code, idata, ilen, odata, olen, flags);
773 uath_cmd_write(struct uath_softc *sc, uint32_t code, const void *data, int len,
778 return uath_cmdsend(sc, code, data, len, NULL, 0, flags);
2297 __func__, uath_codename(be32toh(hdr->code)),
2304 hdr->code = be32toh(hdr->code);
2308 switch (hdr->code & 0xff) {
2318 "%s: code %d data len %u\n",
2319 __func__, hdr->code & 0xff, dlen);
2358 __func__, hdr->code, olen,
2366 __func__, hdr->code, olen, dlen);
2647 "%s: frame len %u code %u status %u rate %u antenna %u "
2650 , be32toh(desc->code), be32toh(desc->status), be32toh(desc->rate)
2696 /* XXX ath h/w rate code, need to map */