Lines Matching refs:desc
1328 struct uath_tx_desc *desc;
1339 desc = (struct uath_tx_desc *)(chunk + 1);
1346 memset(desc, 0, sizeof(struct uath_tx_desc));
1347 desc->msglen = htobe32(sizeof(struct uath_tx_desc));
1348 desc->msgid = (sc->sc_msgid++) + 1; /* don't care about endianness */
1349 desc->type = htobe32(WDCMSG_FLUSH);
1350 desc->txqid = htobe32(0);
1351 desc->connid = htobe32(0);
1352 desc->flags = htobe32(0);
1357 desc->msgid);
1525 struct uath_tx_desc *desc;
1535 desc = (struct uath_tx_desc *)(chunk + 1);
1558 m_copydata(m0, 0, m0->m_pkthdr.len, (uint8_t *)(desc + 1));
1573 desc->msglen = htobe32(msglen);
1575 desc->msgid = (sc->sc_msgid++) + 1; /* don't care about endianness */
1576 desc->type = htobe32(WDCMSG_SEND);
1583 desc->txqid = htobe32(WME_AC_VO | UATH_TXQID_MINRATE);
1585 desc->txqid = htobe32(WME_AC_BE | UATH_TXQID_MINRATE);
1589 desc->txqid = htobe32(M_WME_GETAC(m0));
1600 desc->connid = htobe32(UATH_ID_BSS);
1602 desc->connid = htobe32(UATH_ID_INVALID);
1603 desc->flags = htobe32(0 /* no UATH_TX_NOTIFY */);
1604 desc->buflen = htobe32(m0->m_pkthdr.len);
1609 desc->msgid, framelen, msglen, be32toh(desc->connid),
1610 be32toh(desc->txqid));
2480 struct uath_rx_desc *desc;
2597 desc = (chunk->flags & UATH_CFLAGS_RXMSG) ?
2603 (uint8_t *)desc) {
2606 "(desc %p chunk %p actlen %d)\n",
2607 __func__, desc, chunk, actlen);
2615 *pdesc = desc;
2620 "keycachemiss %u\n", __func__, be32toh(desc->framelen)
2621 , be32toh(desc->code), be32toh(desc->status), be32toh(desc->rate)
2622 , be32toh(desc->antenna), be32toh(desc->rssi), be32toh(desc->channel)
2623 , be32toh(desc->phyerror), be32toh(desc->connix)
2624 , be32toh(desc->decrypterror), be32toh(desc->keycachemiss));
2626 if (be32toh(desc->len) > MCLBYTES) {
2629 be32toh(desc->len));
2638 uath_update_rxstat(sc, be32toh(desc->status));
2644 if (be32toh(desc->framelen) < UATH_RX_DUMMYSIZE) {
2647 __func__, be32toh(desc->framelen));
2655 framelen = be32toh(desc->framelen) - UATH_RX_DUMMYSIZE;
2681 uint32_t tsf_hi = be32toh(desc->tstamp_high);
2682 uint32_t tsf_lo = be32toh(desc->tstamp_low);
2687 if (be32toh(desc->status) == UATH_STATUS_CRC_ERR)
2691 tap->wr_rate = be32toh(desc->rate);
2692 tap->wr_antenna = be32toh(desc->antenna);
2693 tap->wr_antsignal = -95 + be32toh(desc->rssi);
2712 struct uath_rx_desc *desc = NULL;
2724 m = uath_data_rxeof(xfer, data, &desc);
2751 if (m != NULL && desc != NULL) {
2759 (int)be32toh(desc->rssi), nf);
2764 (int)be32toh(desc->rssi), nf);
2767 desc = NULL;