Lines Matching refs:state
37 * struct tso_state - TSO state for an SKB
54 * The state used during segmentation. It is put into this data structure
168 /* Parse the SKB header and initialise state. */
227 * @st: TSO state
280 * @st: TSO state
368 struct tso_state state;
376 state.protocol = efx_tso_check_protocol(skb);
380 rc = tso_start(&state, efx, tx_queue, skb);
384 if (likely(state.in_len == 0)) {
388 rc = tso_get_fragment(&state, efx,
397 rc = tso_start_new_packet(tx_queue, skb, &state);
404 tso_fill_packet_with_fragment(tx_queue, skb, &state);
407 if (state.in_len == 0) {
411 rc = tso_get_fragment(&state, efx,
418 if (state.packet_space == 0) {
419 rc = tso_start_new_packet(tx_queue, skb, &state);
437 if (state.unmap_len) {
438 dma_unmap_page(&efx->pci_dev->dev, state.unmap_addr,
439 state.unmap_len, DMA_TO_DEVICE);
443 if (state.header_unmap_len)
444 dma_unmap_single(&efx->pci_dev->dev, state.header_dma_addr,
445 state.header_unmap_len, DMA_TO_DEVICE);