Lines Matching refs:gen

412 				 unsigned int gen, struct pci_dev *pdev)  in add_one_rx_buf()  argument
425 d->len_gen = cpu_to_be32(V_FLD_GEN1(gen)); in add_one_rx_buf()
426 d->gen2 = cpu_to_be32(V_FLD_GEN2(gen)); in add_one_rx_buf()
431 unsigned int gen) in add_one_rx_chunk() argument
436 d->len_gen = cpu_to_be32(V_FLD_GEN1(gen)); in add_one_rx_chunk()
437 d->gen2 = cpu_to_be32(V_FLD_GEN2(gen)); in add_one_rx_chunk()
523 add_one_rx_chunk(mapping, d, q->gen); in refill_fl()
537 q->gen, adap->pdev); in refill_fl()
548 q->gen ^= 1; in refill_fl()
587 to->len_gen = cpu_to_be32(V_FLD_GEN1(q->gen)); in recycle_rx_buf()
588 to->gen2 = cpu_to_be32(V_FLD_GEN2(q->gen)); in recycle_rx_buf()
592 q->gen ^= 1; in recycle_rx_buf()
1063 static inline void wr_gen2(struct tx_desc *d, unsigned int gen) in wr_gen2() argument
1066 d->flit[TX_DESC_FLITS - 1] = cpu_to_be64(gen); in wr_gen2()
1094 unsigned int gen, __be32 wr_hi, in write_wr_hdr_sgl() argument
1113 V_WR_GEN(gen)) | wr_lo; in write_wr_hdr_sgl()
1114 wr_gen2(d, gen); in write_wr_hdr_sgl()
1116 unsigned int ogen = gen; in write_wr_hdr_sgl()
1140 gen ^= 1; in write_wr_hdr_sgl()
1151 V_WR_GEN(gen)) | wr_lo; in write_wr_hdr_sgl()
1152 wr_gen2(d, gen); in write_wr_hdr_sgl()
1180 unsigned int pidx, unsigned int gen, in write_tx_pkt_wr() argument
1229 cpl->wr.wr_lo = htonl(V_WR_LEN(flits) | V_WR_GEN(gen) | in write_tx_pkt_wr()
1231 wr_gen2(d, gen); in write_tx_pkt_wr()
1242 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1265 unsigned int ndesc, pidx, credits, gen, compl; in t3_eth_xmit() local
1319 gen = q->gen; in t3_eth_xmit()
1327 q->gen ^= 1; in t3_eth_xmit()
1365 write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl, addr); in t3_eth_xmit()
1383 unsigned int len, unsigned int gen) in write_imm() argument
1396 to->wr_lo = from->wr_lo | htonl(V_WR_GEN(gen) | in write_imm()
1398 wr_gen2(d, gen); in write_imm()
1502 write_imm(&q->desc[q->pidx], skb, skb->len, q->gen); in ctrl_xmit()
1507 q->gen ^= 1; in ctrl_xmit()
1535 write_imm(&q->desc[q->pidx], skb, skb->len, q->gen); in restart_ctrlq()
1539 q->gen ^= 1; in restart_ctrlq()
1633 unsigned int gen, unsigned int ndesc, in write_ofld_wr() argument
1643 write_imm(d, skb, skb->len, gen); in write_ofld_wr()
1664 gen, from->wr_hi, from->wr_lo); in write_ofld_wr()
1700 unsigned int ndesc = calc_tx_descs_ofld(skb), pidx, gen; in ofld_xmit() local
1721 gen = q->gen; in ofld_xmit()
1727 q->gen ^= 1; in ofld_xmit()
1731 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, (dma_addr_t *)skb->head); in ofld_xmit()
1756 unsigned int gen, pidx; in restart_offloadq() local
1774 gen = q->gen; in restart_offloadq()
1781 q->gen ^= 1; in restart_offloadq()
1786 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, in restart_offloadq()
2292 return (r->intr_gen & F_RSPD_GEN2) == q->gen; in is_new_response()
2417 q->gen ^= 1; in process_responses()
2541 q->gen ^= 1; in process_pure_responses()
3083 q->txq[i].gen = 1; in t3_sge_alloc_qset()
3092 q->fl[0].gen = q->fl[1].gen = 1; in t3_sge_alloc_qset()
3096 q->rspq.gen = 1; in t3_sge_alloc_qset()