Lines Matching refs:cos

173 	int i, cos, old_eth_num = BNX2X_NUM_ETH_QUEUES(bp);  in bnx2x_shrink_eth_fp()  local
178 for (cos = 1; cos < bp->max_cos; cos++) { in bnx2x_shrink_eth_fp()
181 int new_idx = cos * (old_eth_num - delta) + i; in bnx2x_shrink_eth_fp()
183 memcpy(&bp->bnx2x_txq[new_idx], fp->txdata_ptr[cos], in bnx2x_shrink_eth_fp()
185 fp->txdata_ptr[cos] = &bp->bnx2x_txq[new_idx]; in bnx2x_shrink_eth_fp()
1124 u8 cos; in bnx2x_msix_fp_int() local
1138 for_each_cos_in_tx_queue(fp, cos) in bnx2x_msix_fp_int()
1139 prefetch(fp->txdata_ptr[cos]->tx_cons_sb); in bnx2x_msix_fp_int()
1481 u8 cos; in bnx2x_free_tx_skbs_queue() local
1484 for_each_cos_in_tx_queue(fp, cos) { in bnx2x_free_tx_skbs_queue()
1485 struct bnx2x_fp_txdata *txdata = fp->txdata_ptr[cos]; in bnx2x_free_tx_skbs_queue()
2448 int cos; in bnx2x_bz_fp() local
2473 for_each_cos_in_tx_queue(fp, cos) in bnx2x_bz_fp()
2474 fp->txdata_ptr[cos] = &bp->bnx2x_txq[cos * in bnx2x_bz_fp()
2919 u8 rc = 0, cos, i; in bnx2x_drain_tx_queues() local
2925 for_each_cos_in_tx_queue(fp, cos) in bnx2x_drain_tx_queues()
2926 rc = bnx2x_clean_tx_queue(bp, fp->txdata_ptr[cos]); in bnx2x_drain_tx_queues()
3167 u8 cos; in bnx2x_poll() local
3182 for_each_cos_in_tx_queue(fp, cos) in bnx2x_poll()
3183 if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos])) in bnx2x_poll()
3184 bnx2x_tx_int(bp, fp->txdata_ptr[cos]); in bnx2x_poll()
4174 int cos, prio, count, offset; in bnx2x_setup_tc() local
4218 for (cos = 0; cos < bp->max_cos; cos++) { in bnx2x_setup_tc()
4220 offset = cos * BNX2X_NUM_NON_CNIC_QUEUES(bp); in bnx2x_setup_tc()
4221 netdev_set_tc_queue(dev, cos, count, offset); in bnx2x_setup_tc()
4224 cos, offset, count); in bnx2x_setup_tc()
4265 u8 cos; in bnx2x_free_fp_mem_at() local
4311 for_each_cos_in_tx_queue(fp, cos) { in bnx2x_free_fp_mem_at()
4312 struct bnx2x_fp_txdata *txdata = fp->txdata_ptr[cos]; in bnx2x_free_fp_mem_at()
4316 fp_index, cos, txdata->cid); in bnx2x_free_fp_mem_at()
4419 u8 cos; in bnx2x_alloc_fp_mem_at() local
4476 for_each_cos_in_tx_queue(fp, cos) { in bnx2x_alloc_fp_mem_at()
4477 struct bnx2x_fp_txdata *txdata = fp->txdata_ptr[cos]; in bnx2x_alloc_fp_mem_at()
4481 index, cos); in bnx2x_alloc_fp_mem_at()