Lines Matching refs:pending_packet
116 struct gve_tx_pending_packet_dqo *pending_packet; in gve_alloc_pending_packet() local
133 pending_packet = &tx->dqo.pending_packets[index]; in gve_alloc_pending_packet()
136 tx->dqo_tx.free_pending_packets = pending_packet->next; in gve_alloc_pending_packet()
137 pending_packet->state = GVE_PACKET_STATE_PENDING_DATA_COMPL; in gve_alloc_pending_packet()
139 return pending_packet; in gve_alloc_pending_packet()
144 struct gve_tx_pending_packet_dqo *pending_packet) in gve_free_pending_packet() argument
146 s16 index = pending_packet - tx->dqo.pending_packets; in gve_free_pending_packet()
148 pending_packet->state = GVE_PACKET_STATE_UNALLOCATED; in gve_free_pending_packet()
152 pending_packet->next = old_head; in gve_free_pending_packet()
1000 struct gve_tx_pending_packet_dqo *pending_packet) in add_to_list() argument
1004 index = pending_packet - tx->dqo.pending_packets; in add_to_list()
1012 pending_packet->next = -1; in add_to_list()
1013 pending_packet->prev = old_tail; in add_to_list()
1065 struct gve_tx_pending_packet_dqo *pending_packet; in gve_handle_packet_completion() local
1073 pending_packet = &tx->dqo.pending_packets[compl_tag]; in gve_handle_packet_completion()
1076 if (unlikely(pending_packet->state == in gve_handle_packet_completion()
1085 pending_packet); in gve_handle_packet_completion()
1086 gve_free_pending_packet(tx, pending_packet); in gve_handle_packet_completion()
1089 if (unlikely(pending_packet->state != in gve_handle_packet_completion()
1101 pending_packet); in gve_handle_packet_completion()
1104 if (unlikely(pending_packet->state != in gve_handle_packet_completion()
1111 tx->dqo_tx.completed_packet_desc_cnt += pending_packet->num_bufs; in gve_handle_packet_completion()
1113 gve_free_tx_qpl_bufs(tx, pending_packet); in gve_handle_packet_completion()
1115 gve_unmap_packet(tx->dev, pending_packet); in gve_handle_packet_completion()
1117 *bytes += pending_packet->skb->len; in gve_handle_packet_completion()
1119 napi_consume_skb(pending_packet->skb, is_napi); in gve_handle_packet_completion()
1120 pending_packet->skb = NULL; in gve_handle_packet_completion()
1121 gve_free_pending_packet(tx, pending_packet); in gve_handle_packet_completion()
1128 struct gve_tx_pending_packet_dqo *pending_packet; in gve_handle_miss_completion() local
1136 pending_packet = &tx->dqo.pending_packets[compl_tag]; in gve_handle_miss_completion()
1137 if (unlikely(pending_packet->state != in gve_handle_miss_completion()
1140 priv->dev->name, (int)pending_packet->state, in gve_handle_miss_completion()
1145 pending_packet->state = GVE_PACKET_STATE_PENDING_REINJECT_COMPL; in gve_handle_miss_completion()
1147 pending_packet->timeout_jiffies = in gve_handle_miss_completion()
1151 add_to_list(tx, &tx->dqo_compl.miss_completions, pending_packet); in gve_handle_miss_completion()
1153 *bytes += pending_packet->skb->len; in gve_handle_miss_completion()
1160 struct gve_tx_pending_packet_dqo *pending_packet; in remove_miss_completions() local
1165 pending_packet = &tx->dqo.pending_packets[next_index]; in remove_miss_completions()
1166 next_index = pending_packet->next; in remove_miss_completions()
1168 if (time_is_after_jiffies(pending_packet->timeout_jiffies)) in remove_miss_completions()
1172 pending_packet); in remove_miss_completions()
1179 gve_free_tx_qpl_bufs(tx, pending_packet); in remove_miss_completions()
1181 gve_unmap_packet(tx->dev, pending_packet); in remove_miss_completions()
1184 dev_kfree_skb_any(pending_packet->skb); in remove_miss_completions()
1185 pending_packet->skb = NULL; in remove_miss_completions()
1189 (int)(pending_packet - tx->dqo.pending_packets)); in remove_miss_completions()
1191 pending_packet->state = GVE_PACKET_STATE_TIMED_OUT_COMPL; in remove_miss_completions()
1192 pending_packet->timeout_jiffies = in remove_miss_completions()
1200 pending_packet); in remove_miss_completions()
1207 struct gve_tx_pending_packet_dqo *pending_packet; in remove_timed_out_completions() local
1212 pending_packet = &tx->dqo.pending_packets[next_index]; in remove_timed_out_completions()
1213 next_index = pending_packet->next; in remove_timed_out_completions()
1215 if (time_is_after_jiffies(pending_packet->timeout_jiffies)) in remove_timed_out_completions()
1219 pending_packet); in remove_timed_out_completions()
1220 gve_free_pending_packet(tx, pending_packet); in remove_timed_out_completions()