| 1976 | } |
| 1977 | |
| 1978 | static void init_txq(struct adapter *adap, struct sge_txq *q, unsigned int id, |
| 1979 | unsigned int abs_id) |
| 1980 | { |
| 1981 | q->cntxt_id = id; |
| 1982 | q->abs_id = abs_id; |
| 1983 | q->bar2_addr = bar2_address(adap, q->cntxt_id, T4_BAR2_QTYPE_EGRESS, |
| 1984 | &q->bar2_qid); |
| 1985 | q->cidx = 0; |
| 1986 | q->pidx = 0; |
| 1987 | q->dbidx = 0; |
| 1988 | q->in_use = 0; |
| 1989 | q->equeidx = 0; |
| 1990 | q->coalesce.idx = 0; |
| 1991 | q->coalesce.len = 0; |
| 1992 | q->coalesce.flits = 0; |
| 1993 | q->last_coal_idx = 0; |
| 1994 | q->last_pidx = 0; |
| 1995 | q->stat = (void *)&q->desc[q->size]; |
| 1996 | } |
| 1997 | |
| 1998 | int t4_sge_eth_txq_start(struct sge_eth_txq *txq) |
| 1999 | { |
no test coverage detected