Lines Matching refs:hnddma_t

37 typedef const struct hnddma_pub hnddma_t;  typedef
120 extern bool dma_check_last_desc(hnddma_t *dmah);
121 extern void dma_txfrwd(hnddma_t *dmah);
126 extern void dma_set_indqsel(hnddma_t *di, bool force);
127 extern bool dma_is_indirect(hnddma_t *dmah);
133 extern hnddma_t * dma_attach_ext(dma_common_t *dmac, osl_t *osh, const char *name, si_t *sih,
138 extern hnddma_t * dma_attach(osl_t *osh, const char *name, si_t *sih,
143 void dma_rx_desc_init(hnddma_t *dmah, uint rxfifo);
144 void dma_detach(hnddma_t *dmah);
145 bool dma_txreset(hnddma_t *dmah);
146 bool dma_rxreset(hnddma_t *dmah);
147 bool dma_rxidle(hnddma_t *dmah);
148 void dma_txinit(hnddma_t *dmah);
149 bool dma_txenabled(hnddma_t *dmah);
150 void dma_rxinit(hnddma_t *dmah);
151 void dma_txsuspend(hnddma_t *dmah);
152 void dma_txresume(hnddma_t *dmah);
153 bool dma_txsuspended(hnddma_t *dmah);
154 bool dma_txsuspendedidle(hnddma_t *dmah);
155 void dma_txflush(hnddma_t *dmah);
156 void dma_txflush_clear(hnddma_t *dmah);
157 int dma_txfast_ext(hnddma_t *dmah, void *p0, bool commit, uint16 *pre_txout, uint16 *numd);
158 int dma_txfast_alfrag(hnddma_t *dmah, hnddma_t *aqm_dmah, void *p, bool commit, dma64dd_t *aqmdesc,
162 void dma_txcommit(hnddma_t *dmah);
163 int dma_txunframed(hnddma_t *dmah, void *buf, uint len, bool commit);
164 void *dma_getpos(hnddma_t *dmah, bool direction);
165 void dma_fifoloopbackenable(hnddma_t *dmah);
166 void dma_fifoloopbackdisable(hnddma_t *dmah);
167 bool dma_txstopped(hnddma_t *dmah);
168 bool dma_rxstopped(hnddma_t *dmah);
169 void dma_rxenable(hnddma_t *dmah);
170 bool dma_rxenabled(hnddma_t *dmah);
171 void *dma_rx(hnddma_t *dmah);
173 void dma_getnextrxp_app(hnddma_t *dmah, bool forceall, uint *pktcnt,
175 void dma_rxfill_haddr_getparams(hnddma_t *dmah, uint *nrxd, uint16 *rxout,
177 void dma_rxfill_haddr_setparams(hnddma_t *dmah, uint16 rxout);
179 uint dma_rx_get_rxoffset(hnddma_t *dmah);
180 bool dma_rxfill(hnddma_t *dmah);
181 bool dma_rxfill_required(hnddma_t *dmah);
182 void dma_txreclaim(hnddma_t *dmah, txd_range_t range);
183 void dma_rxreclaim(hnddma_t *dmah);
185 uint *dma_getuintvarptr(hnddma_t *dmah, const char *name);
186 uint8 dma_getuint8var(hnddma_t *dmah, const char *name);
187 uint16 dma_getuint16var(hnddma_t *dmah, const char *name);
188 uint32 dma_getuint32var(hnddma_t *dmah, const char *name);
189 void * dma_getnexttxp(hnddma_t *dmah, txd_range_t range);
190 void * dma_getnextp(hnddma_t *dmah);
191 void * dma_getnextrxp(hnddma_t *dmah, bool forceall);
192 void * dma_peeknexttxp(hnddma_t *dmah, txd_range_t range);
193 int dma_peekntxp(hnddma_t *dmah, int *len, void *txps[], txd_range_t range);
194 void * dma_peeknextrxp(hnddma_t *dmah);
195 void dma_rxparam_get(hnddma_t *dmah, uint16 *rxoffset, uint16 *rxbufsize);
196 bool dma_is_rxfill_suspend(hnddma_t *dmah);
197 void dma_txblock(hnddma_t *dmah);
198 void dma_txunblock(hnddma_t *dmah);
199 uint dma_txactive(hnddma_t *dmah);
200 uint dma_rxactive(hnddma_t *dmah);
201 void dma_txrotate(hnddma_t *dmah);
202 void dma_counterreset(hnddma_t *dmah);
203 uint dma_ctrlflags(hnddma_t *dmah, uint mask, uint flags);
204 uint dma_txpending(hnddma_t *dmah);
205 uint dma_txcommitted(hnddma_t *dmah);
206 int dma_pktpool_set(hnddma_t *dmah, pktpool_t *pool);
207 int dma_rxdatapool_set(hnddma_t *dmah, pktpool_t *pktpool);
208 pktpool_t *dma_rxdatapool_get(hnddma_t *dmah);
210 void dma_dump_txdmaregs(hnddma_t *dmah, uint32 **buf);
211 void dma_dump_rxdmaregs(hnddma_t *dmah, uint32 **buf);
213 void dma_dump(hnddma_t *dmah, struct bcmstrbuf *b, bool dumpring);
214 void dma_dumptx(hnddma_t *dmah, struct bcmstrbuf *b, bool dumpring);
215 void dma_dumprx(hnddma_t *dmah, struct bcmstrbuf *b, bool dumpring);
217 bool dma_rxtxerror(hnddma_t *dmah, bool istx);
218 void dma_burstlen_set(hnddma_t *dmah, uint8 rxburstlen, uint8 txburstlen);
219 uint dma_avoidance_cnt(hnddma_t *dmah);
220 void dma_param_set(hnddma_t *dmah, uint16 paramid, uint16 paramval);
221 void dma_param_get(hnddma_t *dmah, uint16 paramid, uint *paramval);
222 void dma_context(hnddma_t *dmah, setup_context_t fn, void *ctx);
224 bool dma_glom_enable(hnddma_t *dmah, uint32 val);
225 uint dma_activerxbuf(hnddma_t *dmah);
226 bool dma_rxidlestatus(hnddma_t *dmah);
227 uint dma_get_rxpost(hnddma_t *dmah);
237 extern uint dma_txp(hnddma_t *di);
239 extern void dma_txrewind(hnddma_t *di);
242 extern int dma_msgbuf_txfast(hnddma_t *di, dma64addr_t p0, bool com, uint32 ln, bool fst, bool lst);
243 extern int dma_ptrbuf_txfast(hnddma_t *dmah, dma64addr_t p0, void *p, bool commit,
246 extern int dma_rxfast(hnddma_t *di, dma64addr_t p, uint32 len);
247 extern int dma_rxfill_suspend(hnddma_t *dmah, bool suspended);
248 extern void dma_link_handle(hnddma_t *dmah1, hnddma_t *dmah2);
249 extern void dma_unlink_handle(hnddma_t *dmah1, hnddma_t *dmah2);
250 extern int dma_rxfill_unframed(hnddma_t *di, void *buf, uint len, bool commit);
252 extern uint16 dma_get_next_txd_idx(hnddma_t *di, bool txout);
253 extern uint16 dma_get_txd_count(hnddma_t *dmah, uint16 start, bool txout);
254 extern uintptr dma_get_txd_addr(hnddma_t *di, uint16 idx);
259 extern void dma_get_txd_memaddr(hnddma_t *dmah, uint32 *addrlo, uint32 *addrhi, uint idx);
261 extern int dma_txdesc(hnddma_t *dmah, dma64dd_t *dd, bool commit);
262 extern int dma_nexttxdd(hnddma_t *dmah, txd_range_t range, uint32 *flags1, uint32 *flags2,
265 extern void dma_update_rxfill(hnddma_t *dmah);
266 extern void dma_rxchan_reset(hnddma_t *di);
267 extern void dma_txchan_reset(hnddma_t *di);
268 extern void dma_chan_reset(hnddma_t *dmah);
269 extern pktpool_t* dma_pktpool_get(hnddma_t *dmah);
270 extern void dma_clearrxp(hnddma_t *dmah);
271 extern void dma_cleartxp(hnddma_t *dmah);
328 extern int dma_m2m_submit(hnddma_t *dmah, m2m_desc_t *desc, bool implicit);
329 extern void dma_chan_enable(hnddma_t *dmah, bool enable);
331 extern bool dma_rxfill_p(hnddma_t *dmah, void *p);
332 extern void dma_aqm_di_link(hnddma_t *dmah_aqm, hnddma_t *dmah_hw);
333 extern void dma_dump_aqminfo(hnddma_t * dmah, struct bcmstrbuf *b, uint16 fifonum);
336 void dma_dump_info(hnddma_t *dmah, uint16 fifonum, struct bcmstrbuf *b);