Lines Matching refs:p_pkt
302 struct qed_ll2_tx_packet *p_pkt = NULL; in qed_ll2_txq_flush() local
316 p_pkt = list_first_entry(&p_tx->active_descq, in qed_ll2_txq_flush()
318 if (!p_pkt) in qed_ll2_txq_flush()
321 list_del(&p_pkt->list_entry); in qed_ll2_txq_flush()
323 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_txq_flush()
328 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_txq_flush()
332 p_tx->cur_completing_packet = *p_pkt; in qed_ll2_txq_flush()
335 p_tx->cur_completing_bd_idx == p_pkt->bd_used; in qed_ll2_txq_flush()
336 tx_frag = p_pkt->bds_set[0].tx_frag; in qed_ll2_txq_flush()
339 p_pkt->cookie, in qed_ll2_txq_flush()
354 struct qed_ll2_tx_packet *p_pkt; in qed_ll2_txq_completion() local
374 p_pkt = list_first_entry(&p_tx->active_descq, in qed_ll2_txq_completion()
376 if (!p_pkt) in qed_ll2_txq_completion()
380 p_tx->cur_completing_packet = *p_pkt; in qed_ll2_txq_completion()
381 num_bds_in_packet = p_pkt->bd_used; in qed_ll2_txq_completion()
382 list_del(&p_pkt->list_entry); in qed_ll2_txq_completion()
396 b_last_frag = p_tx->cur_completing_bd_idx == p_pkt->bd_used; in qed_ll2_txq_completion()
397 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_txq_completion()
403 p_pkt->cookie, in qed_ll2_txq_completion()
404 p_pkt->bds_set[0].tx_frag, in qed_ll2_txq_completion()
488 struct qed_ll2_rx_packet *p_pkt = NULL; in qed_ll2_rxq_handle_completion() local
492 p_pkt = list_first_entry(&p_rx->active_descq, in qed_ll2_rxq_handle_completion()
494 if (unlikely(!p_pkt)) { in qed_ll2_rxq_handle_completion()
501 list_del(&p_pkt->list_entry); in qed_ll2_rxq_handle_completion()
507 if (unlikely(qed_chain_consume(&p_rx->rxq_chain) != p_pkt->rxq_bd)) in qed_ll2_rxq_handle_completion()
511 list_add_tail(&p_pkt->list_entry, &p_rx->free_descq); in qed_ll2_rxq_handle_completion()
514 data.cookie = p_pkt->cookie; in qed_ll2_rxq_handle_completion()
515 data.rx_buf_addr = p_pkt->rx_buf_addr; in qed_ll2_rxq_handle_completion()
584 struct qed_ll2_rx_packet *p_pkt = NULL; in qed_ll2_rxq_flush() local
596 p_pkt = list_first_entry(&p_rx->active_descq, in qed_ll2_rxq_flush()
598 if (!p_pkt) in qed_ll2_rxq_flush()
600 list_move_tail(&p_pkt->list_entry, &p_rx->free_descq); in qed_ll2_rxq_flush()
606 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_rxq_flush()
610 dma_addr_t rx_buf_addr = p_pkt->rx_buf_addr; in qed_ll2_rxq_flush()
611 void *cookie = p_pkt->cookie; in qed_ll2_rxq_flush()
651 struct qed_ll2_rx_packet *p_pkt = NULL; in qed_ll2_lb_rxq_handler() local
710 p_pkt = list_first_entry(&p_rx->active_descq, in qed_ll2_lb_rxq_handler()
718 if (unlikely(!p_pkt)) { in qed_ll2_lb_rxq_handler()
723 list_del(&p_pkt->list_entry); in qed_ll2_lb_rxq_handler()
724 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_lb_rxq_handler()
730 list_add_tail(&p_pkt->list_entry, &p_rx->free_descq); in qed_ll2_lb_rxq_handler()
883 struct qed_ll2_tx_packet *p_pkt = NULL; in qed_ll2_lb_txq_completion() local
905 p_pkt = list_first_entry(&p_tx->active_descq, in qed_ll2_lb_txq_completion()
907 if (unlikely(!p_pkt)) in qed_ll2_lb_txq_completion()
910 if (unlikely(p_pkt->bd_used != 1)) { in qed_ll2_lb_txq_completion()
913 p_pkt->bd_used); in qed_ll2_lb_txq_completion()
917 list_del(&p_pkt->list_entry); in qed_ll2_lb_txq_completion()
923 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_lb_txq_completion()
924 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_lb_txq_completion()
1565 struct qed_ll2_tx_packet *p_pkt; in qed_ll2_establish_connection() local
1609 desc_size = struct_size(p_pkt, bds_set, in qed_ll2_establish_connection()
1613 p_pkt = p_tx->descq_mem + desc_size * i; in qed_ll2_establish_connection()
1614 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_establish_connection()
1953 struct qed_ll2_tx_packet *p_pkt = NULL; in qed_ll2_tx_packet_notify() local
1974 p_pkt = list_first_entry(&p_tx->sending_descq, in qed_ll2_tx_packet_notify()
1976 if (!p_pkt) in qed_ll2_tx_packet_notify()
1979 list_move_tail(&p_pkt->list_entry, &p_tx->active_descq); in qed_ll2_tx_packet_notify()