Home | History | Annotate | Download | only in ic

Lines Matching refs:rid

219 wi_write_val(struct wi_softc *sc, int rid, uint16_t val)
223 return wi_write_rid(sc, rid, &val, sizeof(val));
343 wi_read_xrid(struct wi_softc *sc, int rid, void *buf, int ebuflen)
348 if ((rc = wi_read_rid(sc, rid, buf, &buflen)) != 0)
353 printf("%s: rid=%#04x read %d, expected %d\n", __func__,
354 rid, buflen, ebuflen);
822 /* Intersil interprets this RID as joining ESS even in IBSS mode */
981 /* Lucent firmware does not support the JOIN RID. */
2220 wi_write_ssid(struct wi_softc *sc, int rid, uint8_t *buf, int buflen)
2229 return wi_write_rid(sc, rid, &ssid, sizeof(ssid));
2602 sc->sc_tx_rate = 0; /* force write to RID */
3085 wi_read_rid(struct wi_softc *sc, int rid, void *buf, int *buflenp)
3091 error = wi_cmd(sc, WI_CMD_ACCESS | WI_ACCESS_READ, rid, 0, 0);
3095 rid, 0, ltbuf, sizeof(ltbuf));
3101 if (le16toh(ltbuf[1]) != rid) {
3103 "record read mismatch, rid=%x, got=%x\n",
3104 rid, le16toh(ltbuf[1]));
3107 len = (le16toh(ltbuf[0]) - 1) * 2; /* already got rid */
3110 "rid=%x, size=%d, len=%d\n",
3111 rid, *buflenp, len);
3115 return wi_read_bap(sc, rid, sizeof(ltbuf), buf, len);
3119 wi_write_rid(struct wi_softc *sc, int rid, void *buf, int buflen)
3124 ltbuf[0] = htole16((buflen + 1) / 2 + 1); /* includes rid */
3125 ltbuf[1] = htole16(rid);
3127 error = wi_write_bap(sc, rid, 0, ltbuf, sizeof(ltbuf));
3130 error = wi_write_bap(sc, rid, sizeof(ltbuf), buf, buflen);
3134 return wi_cmd(sc, WI_CMD_ACCESS | WI_ACCESS_WRITE, rid, 0, 0);