Lines Matching refs:tx_ring
995 static void i40e_fcoe_program_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_program_ddp() argument
1002 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fcoe_program_ddp()
1003 u16 i = tx_ring->next_to_use; in i40e_fcoe_program_ddp()
1025 ddp_desc = I40E_DDP_CONTEXT_DESC(tx_ring, i); in i40e_fcoe_program_ddp()
1027 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1047 queue_desc = I40E_QUEUE_CONTEXT_DESC(tx_ring, i++); in i40e_fcoe_program_ddp()
1048 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1057 filter_desc = I40E_FILTER_CONTEXT_DESC(tx_ring, i); in i40e_fcoe_program_ddp()
1059 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1082 tx_ring->next_to_use = i; in i40e_fcoe_program_ddp()
1093 static void i40e_fcoe_invalidate_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_invalidate_ddp() argument
1103 i = tx_ring->next_to_use; in i40e_fcoe_invalidate_ddp()
1104 context_desc = I40E_TX_CTXTDESC(tx_ring, i); in i40e_fcoe_invalidate_ddp()
1106 if (i == tx_ring->count) in i40e_fcoe_invalidate_ddp()
1118 tx_ring->next_to_use = i; in i40e_fcoe_invalidate_ddp()
1133 static void i40e_fcoe_handle_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_handle_ddp() argument
1136 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fcoe_handle_ddp()
1156 i40e_fcoe_program_ddp(tx_ring, skb, ddp, sof); in i40e_fcoe_handle_ddp()
1165 i40e_fcoe_program_ddp(tx_ring, skb, ddp, sof); in i40e_fcoe_handle_ddp()
1174 i40e_fcoe_invalidate_ddp(tx_ring, skb, ddp); in i40e_fcoe_handle_ddp()
1194 static int i40e_fcoe_tso(struct i40e_ring *tx_ring, in i40e_fcoe_tso() argument
1241 context_desc = I40E_TX_CTXTDESC(tx_ring, tx_ring->next_to_use); in i40e_fcoe_tso()
1242 tx_ring->next_to_use++; in i40e_fcoe_tso()
1243 if (tx_ring->next_to_use == tx_ring->count) in i40e_fcoe_tso()
1244 tx_ring->next_to_use = 0; in i40e_fcoe_tso()
1265 static void i40e_fcoe_tx_map(struct i40e_ring *tx_ring, in i40e_fcoe_tx_map() argument
1299 i40e_tx_map(tx_ring, skb, first, tx_flags, hdr_len, td_cmd, td_offset); in i40e_fcoe_tx_map()
1349 struct i40e_ring *tx_ring = vsi->tx_rings[skb->queue_mapping]; in i40e_fcoe_xmit_frame() local
1365 tx_ring->tx_stats.tx_linearize++; in i40e_fcoe_xmit_frame()
1374 if (i40e_maybe_stop_tx(tx_ring, count + 4 + 1)) { in i40e_fcoe_xmit_frame()
1375 tx_ring->tx_stats.tx_busy++; in i40e_fcoe_xmit_frame()
1380 if (i40e_tx_prepare_vlan_flags(skb, tx_ring, &tx_flags)) in i40e_fcoe_xmit_frame()
1384 first = &tx_ring->tx_bi[tx_ring->next_to_use]; in i40e_fcoe_xmit_frame()
1400 fso = i40e_fcoe_tso(tx_ring, skb, tx_flags, &hdr_len, sof); in i40e_fcoe_xmit_frame()
1406 i40e_fcoe_handle_ddp(tx_ring, skb, sof); in i40e_fcoe_xmit_frame()
1410 i40e_fcoe_tx_map(tx_ring, skb, first, tx_flags, hdr_len, eof); in i40e_fcoe_xmit_frame()
1412 i40e_maybe_stop_tx(tx_ring, DESC_NEEDED); in i40e_fcoe_xmit_frame()