Lines Matching refs:ads

29 	struct ar9003_txc *ads = ds;  in ar9003_set_txdesc()  local
42 WRITE_ONCE(ads->info, val); in ar9003_set_txdesc()
45 WRITE_ONCE(ads->link, i->link); in ar9003_set_txdesc()
48 WRITE_ONCE(ads->data0, i->buf_addr[0]); in ar9003_set_txdesc()
50 WRITE_ONCE(ads->data1, i->buf_addr[1]); in ar9003_set_txdesc()
52 WRITE_ONCE(ads->data2, i->buf_addr[2]); in ar9003_set_txdesc()
54 WRITE_ONCE(ads->data3, i->buf_addr[3]); in ar9003_set_txdesc()
57 WRITE_ONCE(ads->ctl3, val); in ar9003_set_txdesc()
59 WRITE_ONCE(ads->ctl5, val); in ar9003_set_txdesc()
61 WRITE_ONCE(ads->ctl7, val); in ar9003_set_txdesc()
63 WRITE_ONCE(ads->ctl9, val); in ar9003_set_txdesc()
66 WRITE_ONCE(ads->ctl10, checksum); in ar9003_set_txdesc()
69 WRITE_ONCE(ads->ctl13, set11nTries(i->rates, 0) in ar9003_set_txdesc()
76 WRITE_ONCE(ads->ctl14, set11nRate(i->rates, 0) in ar9003_set_txdesc()
81 WRITE_ONCE(ads->ctl13, 0); in ar9003_set_txdesc()
82 WRITE_ONCE(ads->ctl14, 0); in ar9003_set_txdesc()
85 ads->ctl20 = 0; in ar9003_set_txdesc()
86 ads->ctl21 = 0; in ar9003_set_txdesc()
87 ads->ctl22 = 0; in ar9003_set_txdesc()
88 ads->ctl23 = 0; in ar9003_set_txdesc()
92 WRITE_ONCE(ads->ctl11, 0); in ar9003_set_txdesc()
93 WRITE_ONCE(ads->ctl12, i->is_last ? 0 : AR_TxMore); in ar9003_set_txdesc()
94 WRITE_ONCE(ads->ctl15, 0); in ar9003_set_txdesc()
95 WRITE_ONCE(ads->ctl16, 0); in ar9003_set_txdesc()
96 WRITE_ONCE(ads->ctl17, ctl17); in ar9003_set_txdesc()
97 WRITE_ONCE(ads->ctl18, 0); in ar9003_set_txdesc()
98 WRITE_ONCE(ads->ctl19, 0); in ar9003_set_txdesc()
102 WRITE_ONCE(ads->ctl11, (i->pkt_len & AR_FrameLen) in ar9003_set_txdesc()
138 WRITE_ONCE(ads->ctl12, ctl12); in ar9003_set_txdesc()
139 WRITE_ONCE(ads->ctl17, ctl17); in ar9003_set_txdesc()
141 WRITE_ONCE(ads->ctl15, set11nPktDurRTSCTS(i->rates, 0) in ar9003_set_txdesc()
144 WRITE_ONCE(ads->ctl16, set11nPktDurRTSCTS(i->rates, 2) in ar9003_set_txdesc()
147 WRITE_ONCE(ads->ctl18, in ar9003_set_txdesc()
154 WRITE_ONCE(ads->ctl19, AR_Not_Sounding); in ar9003_set_txdesc()
156 WRITE_ONCE(ads->ctl20, SM(i->txpower[1], AR_XmitPower1)); in ar9003_set_txdesc()
157 WRITE_ONCE(ads->ctl21, SM(i->txpower[2], AR_XmitPower2)); in ar9003_set_txdesc()
158 WRITE_ONCE(ads->ctl22, SM(i->txpower[3], AR_XmitPower3)); in ar9003_set_txdesc()
161 static u16 ar9003_calc_ptr_chksum(struct ar9003_txc *ads) in ar9003_calc_ptr_chksum() argument
165 checksum = ads->info + ads->link in ar9003_calc_ptr_chksum()
166 + ads->data0 + ads->ctl3 in ar9003_calc_ptr_chksum()
167 + ads->data1 + ads->ctl5 in ar9003_calc_ptr_chksum()
168 + ads->data2 + ads->ctl7 in ar9003_calc_ptr_chksum()
169 + ads->data3 + ads->ctl9; in ar9003_calc_ptr_chksum()
176 struct ar9003_txc *ads = ds; in ar9003_hw_set_desc_link() local
178 ads->link = ds_link; in ar9003_hw_set_desc_link()
179 ads->ctl10 &= ~AR_TxPtrChkSum; in ar9003_hw_set_desc_link()
180 ads->ctl10 |= ar9003_calc_ptr_chksum(ads); in ar9003_hw_set_desc_link()
358 struct ar9003_txs *ads; in ar9003_hw_proc_txdesc() local
361 ads = &ah->ts_ring[ah->ts_tail]; in ar9003_hw_proc_txdesc()
363 status = READ_ONCE(ads->status8); in ar9003_hw_proc_txdesc()
369 if ((MS(ads->ds_info, AR_DescId) != ATHEROS_VENDOR_ID) || in ar9003_hw_proc_txdesc()
370 (MS(ads->ds_info, AR_TxRxDesc) != 1)) { in ar9003_hw_proc_txdesc()
372 "Tx Descriptor error %x\n", ads->ds_info); in ar9003_hw_proc_txdesc()
373 memset(ads, 0, sizeof(*ads)); in ar9003_hw_proc_txdesc()
381 ts->qid = MS(ads->ds_info, AR_TxQcuNum); in ar9003_hw_proc_txdesc()
382 ts->desc_id = MS(ads->status1, AR_TxDescId); in ar9003_hw_proc_txdesc()
383 ts->ts_tstamp = ads->status4; in ar9003_hw_proc_txdesc()
389 status = READ_ONCE(ads->status2); in ar9003_hw_proc_txdesc()
395 ts->ba_low = ads->status5; in ar9003_hw_proc_txdesc()
396 ts->ba_high = ads->status6; in ar9003_hw_proc_txdesc()
399 status = READ_ONCE(ads->status3); in ar9003_hw_proc_txdesc()
424 status = READ_ONCE(ads->status7); in ar9003_hw_proc_txdesc()
430 memset(ads, 0, sizeof(*ads)); in ar9003_hw_proc_txdesc()