Lines Matching refs:tx_ring

1005 static void i40e_fcoe_program_ddp(struct i40e_ring *tx_ring,  in i40e_fcoe_program_ddp()  argument
1012 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fcoe_program_ddp()
1013 u16 i = tx_ring->next_to_use; in i40e_fcoe_program_ddp()
1035 ddp_desc = I40E_DDP_CONTEXT_DESC(tx_ring, i); in i40e_fcoe_program_ddp()
1037 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1057 queue_desc = I40E_QUEUE_CONTEXT_DESC(tx_ring, i++); in i40e_fcoe_program_ddp()
1058 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1067 filter_desc = I40E_FILTER_CONTEXT_DESC(tx_ring, i); in i40e_fcoe_program_ddp()
1069 if (i == tx_ring->count) in i40e_fcoe_program_ddp()
1092 tx_ring->next_to_use = i; in i40e_fcoe_program_ddp()
1103 static void i40e_fcoe_invalidate_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_invalidate_ddp() argument
1113 i = tx_ring->next_to_use; in i40e_fcoe_invalidate_ddp()
1114 context_desc = I40E_TX_CTXTDESC(tx_ring, i); in i40e_fcoe_invalidate_ddp()
1116 if (i == tx_ring->count) in i40e_fcoe_invalidate_ddp()
1128 tx_ring->next_to_use = i; in i40e_fcoe_invalidate_ddp()
1143 static void i40e_fcoe_handle_ddp(struct i40e_ring *tx_ring, in i40e_fcoe_handle_ddp() argument
1146 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fcoe_handle_ddp()
1166 i40e_fcoe_program_ddp(tx_ring, skb, ddp, sof); in i40e_fcoe_handle_ddp()
1175 i40e_fcoe_program_ddp(tx_ring, skb, ddp, sof); in i40e_fcoe_handle_ddp()
1184 i40e_fcoe_invalidate_ddp(tx_ring, skb, ddp); in i40e_fcoe_handle_ddp()
1204 static int i40e_fcoe_tso(struct i40e_ring *tx_ring, in i40e_fcoe_tso() argument
1251 context_desc = I40E_TX_CTXTDESC(tx_ring, tx_ring->next_to_use); in i40e_fcoe_tso()
1252 tx_ring->next_to_use++; in i40e_fcoe_tso()
1253 if (tx_ring->next_to_use == tx_ring->count) in i40e_fcoe_tso()
1254 tx_ring->next_to_use = 0; in i40e_fcoe_tso()
1275 static void i40e_fcoe_tx_map(struct i40e_ring *tx_ring, in i40e_fcoe_tx_map() argument
1309 i40e_tx_map(tx_ring, skb, first, tx_flags, hdr_len, td_cmd, td_offset); in i40e_fcoe_tx_map()
1359 struct i40e_ring *tx_ring = vsi->tx_rings[skb->queue_mapping]; in i40e_fcoe_xmit_frame() local
1370 if (!i40e_xmit_descriptor_count(skb, tx_ring)) in i40e_fcoe_xmit_frame()
1374 if (i40e_tx_prepare_vlan_flags(skb, tx_ring, &tx_flags)) in i40e_fcoe_xmit_frame()
1378 first = &tx_ring->tx_bi[tx_ring->next_to_use]; in i40e_fcoe_xmit_frame()
1394 fso = i40e_fcoe_tso(tx_ring, skb, tx_flags, &hdr_len, sof); in i40e_fcoe_xmit_frame()
1400 i40e_fcoe_handle_ddp(tx_ring, skb, sof); in i40e_fcoe_xmit_frame()
1404 i40e_fcoe_tx_map(tx_ring, skb, first, tx_flags, hdr_len, eof); in i40e_fcoe_xmit_frame()
1406 i40e_maybe_stop_tx(tx_ring, DESC_NEEDED); in i40e_fcoe_xmit_frame()