Lines Matching refs:tx_ring
1010 static void i40e_fcoe_program_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_program_ddp() argument
1017 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fcoe_program_ddp()
1018 u16 i = tx_ring->next_to_use; in i40e_fcoe_program_ddp()
1040 ddp_desc = I40E_DDP_CONTEXT_DESC(tx_ring, i); in i40e_fcoe_program_ddp()
1042 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1062 queue_desc = I40E_QUEUE_CONTEXT_DESC(tx_ring, i++); in i40e_fcoe_program_ddp()
1063 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1072 filter_desc = I40E_FILTER_CONTEXT_DESC(tx_ring, i); in i40e_fcoe_program_ddp()
1074 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1097 tx_ring->next_to_use = i; in i40e_fcoe_program_ddp()
1108 static void i40e_fcoe_invalidate_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_invalidate_ddp() argument
1118 i = tx_ring->next_to_use; in i40e_fcoe_invalidate_ddp()
1119 context_desc = I40E_TX_CTXTDESC(tx_ring, i); in i40e_fcoe_invalidate_ddp()
1121 if (i == tx_ring->count) in i40e_fcoe_invalidate_ddp()
1133 tx_ring->next_to_use = i; in i40e_fcoe_invalidate_ddp()
1148 static void i40e_fcoe_handle_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_handle_ddp() argument
1151 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fcoe_handle_ddp()
1171 i40e_fcoe_program_ddp(tx_ring, skb, ddp, sof); in i40e_fcoe_handle_ddp()
1180 i40e_fcoe_program_ddp(tx_ring, skb, ddp, sof); in i40e_fcoe_handle_ddp()
1189 i40e_fcoe_invalidate_ddp(tx_ring, skb, ddp); in i40e_fcoe_handle_ddp()
1209 static int i40e_fcoe_tso(struct i40e_ring *tx_ring, in i40e_fcoe_tso() argument
1256 context_desc = I40E_TX_CTXTDESC(tx_ring, tx_ring->next_to_use); in i40e_fcoe_tso()
1257 tx_ring->next_to_use++; in i40e_fcoe_tso()
1258 if (tx_ring->next_to_use == tx_ring->count) in i40e_fcoe_tso()
1259 tx_ring->next_to_use = 0; in i40e_fcoe_tso()
1280 static void i40e_fcoe_tx_map(struct i40e_ring *tx_ring, in i40e_fcoe_tx_map() argument
1314 return i40e_tx_map(tx_ring, skb, first, tx_flags, hdr_len, in i40e_fcoe_tx_map()
1365 struct i40e_ring *tx_ring = vsi->tx_rings[skb->queue_mapping]; in i40e_fcoe_xmit_frame() local
1376 if (!i40e_xmit_descriptor_count(skb, tx_ring)) 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()