Lines Matching refs:p_pkt

273 	struct qed_ll2_tx_packet *p_pkt = NULL;  in qed_ll2_txq_flush()  local
287 p_pkt = list_first_entry(&p_tx->active_descq, in qed_ll2_txq_flush()
289 if (!p_pkt) in qed_ll2_txq_flush()
292 list_del(&p_pkt->list_entry); in qed_ll2_txq_flush()
294 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_txq_flush()
299 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_txq_flush()
303 p_tx->cur_completing_packet = *p_pkt; in qed_ll2_txq_flush()
306 p_tx->cur_completing_bd_idx == p_pkt->bd_used; in qed_ll2_txq_flush()
307 tx_frag = p_pkt->bds_set[0].tx_frag; in qed_ll2_txq_flush()
310 p_pkt->cookie, in qed_ll2_txq_flush()
325 struct qed_ll2_tx_packet *p_pkt; in qed_ll2_txq_completion() local
342 p_pkt = list_first_entry(&p_tx->active_descq, in qed_ll2_txq_completion()
344 if (!p_pkt) in qed_ll2_txq_completion()
348 p_tx->cur_completing_packet = *p_pkt; in qed_ll2_txq_completion()
349 num_bds_in_packet = p_pkt->bd_used; in qed_ll2_txq_completion()
350 list_del(&p_pkt->list_entry); in qed_ll2_txq_completion()
364 b_last_frag = p_tx->cur_completing_bd_idx == p_pkt->bd_used; in qed_ll2_txq_completion()
365 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_txq_completion()
371 p_pkt->cookie, in qed_ll2_txq_completion()
372 p_pkt->bds_set[0].tx_frag, in qed_ll2_txq_completion()
456 struct qed_ll2_rx_packet *p_pkt = NULL; in qed_ll2_rxq_handle_completion() local
460 p_pkt = list_first_entry(&p_rx->active_descq, in qed_ll2_rxq_handle_completion()
462 if (!p_pkt) { in qed_ll2_rxq_handle_completion()
469 list_del(&p_pkt->list_entry); in qed_ll2_rxq_handle_completion()
475 if (qed_chain_consume(&p_rx->rxq_chain) != p_pkt->rxq_bd) in qed_ll2_rxq_handle_completion()
479 list_add_tail(&p_pkt->list_entry, &p_rx->free_descq); in qed_ll2_rxq_handle_completion()
482 data.cookie = p_pkt->cookie; in qed_ll2_rxq_handle_completion()
483 data.rx_buf_addr = p_pkt->rx_buf_addr; in qed_ll2_rxq_handle_completion()
543 struct qed_ll2_rx_packet *p_pkt = NULL; in qed_ll2_rxq_flush() local
555 p_pkt = list_first_entry(&p_rx->active_descq, in qed_ll2_rxq_flush()
557 if (!p_pkt) in qed_ll2_rxq_flush()
559 list_move_tail(&p_pkt->list_entry, &p_rx->free_descq); in qed_ll2_rxq_flush()
565 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_rxq_flush()
569 dma_addr_t rx_buf_addr = p_pkt->rx_buf_addr; in qed_ll2_rxq_flush()
570 void *cookie = p_pkt->cookie; in qed_ll2_rxq_flush()
610 struct qed_ll2_rx_packet *p_pkt = NULL; in qed_ll2_lb_rxq_handler() local
670 p_pkt = list_first_entry(&p_rx->active_descq, in qed_ll2_lb_rxq_handler()
678 if (!p_pkt) { in qed_ll2_lb_rxq_handler()
683 list_del(&p_pkt->list_entry); in qed_ll2_lb_rxq_handler()
684 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_lb_rxq_handler()
690 list_add_tail(&p_pkt->list_entry, &p_rx->free_descq); in qed_ll2_lb_rxq_handler()
841 struct qed_ll2_tx_packet *p_pkt = NULL; in qed_ll2_lb_txq_completion() local
860 p_pkt = list_first_entry(&p_tx->active_descq, in qed_ll2_lb_txq_completion()
862 if (!p_pkt) in qed_ll2_lb_txq_completion()
865 if (p_pkt->bd_used != 1) { in qed_ll2_lb_txq_completion()
868 p_pkt->bd_used); in qed_ll2_lb_txq_completion()
872 list_del(&p_pkt->list_entry); in qed_ll2_lb_txq_completion()
878 p_buffer = (struct qed_ooo_buffer *)p_pkt->cookie; in qed_ll2_lb_txq_completion()
879 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_lb_txq_completion()
1517 struct qed_ll2_tx_packet *p_pkt; in qed_ll2_establish_connection() local
1561 desc_size = struct_size(p_pkt, bds_set, in qed_ll2_establish_connection()
1565 p_pkt = p_tx->descq_mem + desc_size * i; in qed_ll2_establish_connection()
1566 list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); in qed_ll2_establish_connection()
1886 struct qed_ll2_tx_packet *p_pkt = NULL; in qed_ll2_tx_packet_notify() local
1907 p_pkt = list_first_entry(&p_tx->sending_descq, in qed_ll2_tx_packet_notify()
1909 if (!p_pkt) in qed_ll2_tx_packet_notify()
1912 list_move_tail(&p_pkt->list_entry, &p_tx->active_descq); in qed_ll2_tx_packet_notify()