Lines Matching refs:ds
1189 struct ath_desc *ds; in ath_beacon_alloc() local
1228 ds = bf->bf_desc; in ath_beacon_alloc()
1229 bzero(ds, sizeof(struct ath_desc)); in ath_beacon_alloc()
1232 ds->ds_link = bf->bf_daddr; /* link to self */ in ath_beacon_alloc()
1235 ds->ds_link = 0; in ath_beacon_alloc()
1237 ds->ds_data = bf->bf_segs[0].ds_addr; in ath_beacon_alloc()
1258 if (!ath_hal_setup_tx_desc(ah, ds in ath_beacon_alloc()
1275 if (!ath_hal_fill_tx_desc(ah, ds in ath_beacon_alloc()
1460 struct ath_desc *ds; in ath_desc_alloc() local
1494 ds = sc->sc_desc; in ath_desc_alloc()
1499 ds, (u_long)sc->sc_desc_len, in ath_desc_alloc()
1514 for (i = 0; i < ATH_RXBUF; i++, bf++, ds++) { in ath_desc_alloc()
1515 bf->bf_desc = ds; in ath_desc_alloc()
1517 ((caddr_t)ds - (caddr_t)sc->sc_desc); in ath_desc_alloc()
1528 for (i = 0; i < ATH_TXBUF; i++, bf++, ds += ATH_TXDESC) { in ath_desc_alloc()
1529 bf->bf_desc = ds; in ath_desc_alloc()
1531 ((caddr_t)ds - (caddr_t)sc->sc_desc); in ath_desc_alloc()
1543 bf->bf_desc = ds; in ath_desc_alloc()
1544 bf->bf_daddr = sc->sc_desc_paddr + ((caddr_t)ds - (caddr_t)sc->sc_desc); in ath_desc_alloc()
1696 struct ath_desc *ds; in ath_rxbuf_init() local
1748 ds = bf->bf_desc; in ath_rxbuf_init()
1749 bzero(ds, sizeof(struct ath_desc)); in ath_rxbuf_init()
1752 ds->ds_link = bf->bf_daddr; /* link to self */ in ath_rxbuf_init()
1754 ds->ds_data = bf->bf_segs[0].ds_addr; in ath_rxbuf_init()
1755 ath_hal_setup_rx_desc(ah, ds in ath_rxbuf_init()
1762 sc->sc_rxlink = &ds->ds_link; in ath_rxbuf_init()
1778 struct ath_desc *ds; in ath_rx_proc() local
1797 ds = bf->bf_desc; in ath_rx_proc()
1798 if (ds->ds_link == bf->bf_daddr) { in ath_rx_proc()
1819 status = ath_hal_proc_rx_desc(ah, ds, in ath_rx_proc()
1820 bf->bf_daddr, PA2DESC(sc, ds->ds_link)); in ath_rx_proc()
1829 if (ds->ds_rxstat.rs_more) { in ath_rx_proc()
1849 } else if (ds->ds_rxstat.rs_status != 0) { in ath_rx_proc()
1850 if (ds->ds_rxstat.rs_status & HAL_RXERR_CRC) in ath_rx_proc()
1852 if (ds->ds_rxstat.rs_status & HAL_RXERR_FIFO) in ath_rx_proc()
1854 if (ds->ds_rxstat.rs_status & HAL_RXERR_DECRYPT) in ath_rx_proc()
1856 if (ds->ds_rxstat.rs_status & HAL_RXERR_PHY) { in ath_rx_proc()
1858 phyerr = ds->ds_rxstat.rs_phyerr & 0x1f; in ath_rx_proc()
1866 if ((ds->ds_rxstat.rs_status & HAL_RXERR_DECRYPT ) || in ath_rx_proc()
1867 (ds->ds_rxstat.rs_status & HAL_RXERR_PHY)) in ath_rx_proc()
1874 if ((ds->ds_rxstat.rs_status & ~HAL_RXERR_DECRYPT) || in ath_rx_proc()
1879 len = ds->ds_rxstat.rs_datalen; in ath_rx_proc()
1898 sc->sc_hwmap[ds->ds_rxstat.rs_rate] & in ath_rx_proc()
1900 sc->sc_rxtap.wr_antenna = ds->ds_rxstat.rs_antenna; in ath_rx_proc()
1901 sc->sc_rxtap.wr_rssi = ds->ds_rxstat.rs_rssi; in ath_rx_proc()
1948 rh->arh_rssi = ds->ds_rxstat.rs_rssi; in ath_rx_proc()
1949 rh->arh_antenna = ds->ds_rxstat.rs_antenna; in ath_rx_proc()
1954 rxi.rxi_rssi = ds->ds_rxstat.rs_rssi; in ath_rx_proc()
1955 rxi.rxi_tstamp = ds->ds_rxstat.rs_tstamp; in ath_rx_proc()
1960 ds->ds_rxstat.rs_rssi); in ath_rx_proc()
1994 struct ath_desc *ds; in ath_tx_start() local
2129 ds = bf->bf_desc; in ath_tx_start()
2294 ath_hal_setup_tx_desc(ah, ds in ath_tx_start()
2307 ath_hal_setup_xtx_desc(ah, ds in ath_tx_start()
2317 for (i = 0; i < bf->bf_nseg; i++, ds++) { in ath_tx_start()
2318 ds->ds_data = bf->bf_segs[i].ds_addr; in ath_tx_start()
2320 ds->ds_link = 0; in ath_tx_start()
2322 ds->ds_link = bf->bf_daddr + sizeof(*ds) * (i + 1); in ath_tx_start()
2324 ath_hal_fill_tx_desc(ah, ds in ath_tx_start()
2331 __func__, i, ds->ds_link, ds->ds_data, in ath_tx_start()
2332 ds->ds_ctl0, ds->ds_ctl1, ds->ds_hw[0], ds->ds_hw[1])); in ath_tx_start()
2365 struct ath_desc *ds; in ath_tx_proc() local
2380 ds = &bf->bf_desc[bf->bf_nseg - 1]; in ath_tx_proc()
2381 status = ath_hal_proc_tx_desc(ah, ds); in ath_tx_proc()
2396 if (ds->ds_txstat.ts_status == 0) { in ath_tx_proc()
2400 an->an_tx_antenna = ds->ds_txstat.ts_antenna; in ath_tx_proc()
2405 if (ds->ds_txstat.ts_status & HAL_TXERR_XRETRY) in ath_tx_proc()
2407 if (ds->ds_txstat.ts_status & HAL_TXERR_FIFO) in ath_tx_proc()
2409 if (ds->ds_txstat.ts_status & HAL_TXERR_FILT) in ath_tx_proc()
2413 sr = ds->ds_txstat.ts_shortretry; in ath_tx_proc()
2414 lr = ds->ds_txstat.ts_longretry; in ath_tx_proc()
2527 struct ath_desc *ds = bf->bf_desc; in ath_stoprecv() local
2528 if (ath_hal_proc_rx_desc(ah, ds, bf->bf_daddr, in ath_stoprecv()
2529 PA2DESC(sc, ds->ds_link)) == HAL_OK) in ath_stoprecv()
3055 struct ath_desc *ds; in ath_printrxbuf() local
3058 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printrxbuf()
3060 i, ds, (struct ath_desc *)bf->bf_daddr + i, in ath_printrxbuf()
3061 ds->ds_link, ds->ds_data, in ath_printrxbuf()
3062 ds->ds_ctl0, ds->ds_ctl1, in ath_printrxbuf()
3063 ds->ds_hw[0], ds->ds_hw[1], in ath_printrxbuf()
3064 !done ? ' ' : (ds->ds_rxstat.rs_status == 0) ? '*' : '!'); in ath_printrxbuf()
3071 struct ath_desc *ds; in ath_printtxbuf() local
3074 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printtxbuf()
3077 i, ds, (struct ath_desc *)bf->bf_daddr + i, in ath_printtxbuf()
3078 ds->ds_link, ds->ds_data, in ath_printtxbuf()
3079 ds->ds_ctl0, ds->ds_ctl1, in ath_printtxbuf()
3080 ds->ds_hw[0], ds->ds_hw[1], ds->ds_hw[2], ds->ds_hw[3], in ath_printtxbuf()
3081 !done ? ' ' : (ds->ds_txstat.ts_status == 0) ? '*' : '!'); in ath_printtxbuf()