p_rx 446 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue; p_rx 463 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_rx->lock, *p_lock_flags); p_rx 470 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_rx->lock, *p_lock_flags); p_rx 481 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue; p_rx 485 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!list_empty(&p_rx->active_descq)) p_rx 486 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = list_first_entry(&p_rx->active_descq, p_rx 501 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (qed_chain_consume(&p_rx->rxq_chain) != p_pkt->rxq_bd) p_rx 505 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_pkt->list_entry, &p_rx->free_descq); p_rx 512 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_rx->lock, *p_lock_flags); p_rx 515 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_rx->lock, *p_lock_flags); p_rx 523 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue; p_rx 529 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_rx->lock, flags); p_rx 530 drivers/net/ethernet/qlogic/qed/qed_ll2.c cq_new_idx = le16_to_cpu(*p_rx->p_fw_cons); p_rx 531 drivers/net/ethernet/qlogic/qed/qed_ll2.c cq_old_idx = qed_chain_get_cons_idx(&p_rx->rcq_chain); p_rx 538 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_consume(&p_rx->rcq_chain); p_rx 539 drivers/net/ethernet/qlogic/qed/qed_ll2.c cq_old_idx = qed_chain_get_cons_idx(&p_rx->rcq_chain); p_rx 562 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_rx->lock, flags); p_rx 570 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx; p_rx 577 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_rx = &p_ll2_conn->rx_queue; p_rx 579 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_rx->lock, flags); p_rx 580 drivers/net/ethernet/qlogic/qed/qed_ll2.c while (!list_empty(&p_rx->active_descq)) { p_rx 581 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = list_first_entry(&p_rx->active_descq, p_rx 585 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_move_tail(&p_pkt->list_entry, &p_rx->free_descq); p_rx 586 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_rx->lock, flags); p_rx 599 drivers/net/ethernet/qlogic/qed/qed_ll2.c b_last = list_empty(&p_rx->active_descq); p_rx 605 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_rx->lock, flags); p_rx 607 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_rx->lock, flags); p_rx 634 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue; p_rx 645 drivers/net/ethernet/qlogic/qed/qed_ll2.c cq_new_idx = le16_to_cpu(*p_rx->p_fw_cons); p_rx 646 drivers/net/ethernet/qlogic/qed/qed_ll2.c cq_old_idx = qed_chain_get_cons_idx(&p_rx->rcq_chain); p_rx 653 drivers/net/ethernet/qlogic/qed/qed_ll2.c cqe = qed_chain_consume(&p_rx->rcq_chain); p_rx 654 drivers/net/ethernet/qlogic/qed/qed_ll2.c cq_old_idx = qed_chain_get_cons_idx(&p_rx->rcq_chain); p_rx 689 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (list_empty(&p_rx->active_descq)) { p_rx 696 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = list_first_entry(&p_rx->active_descq, p_rx 715 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_consume(&p_rx->rxq_chain); p_rx 716 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_pkt->list_entry, &p_rx->free_descq); p_rx 945 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue; p_rx 967 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ramrod->sb_index = p_rx->rx_sb_index; p_rx 971 drivers/net/ethernet/qlogic/qed/qed_ll2.c DMA_REGPAIR_LE(p_ramrod->bd_base, p_rx->rxq_chain.p_phys_addr); p_rx 972 drivers/net/ethernet/qlogic/qed/qed_ll2.c cqe_pbl_size = (u16)qed_chain_get_page_cnt(&p_rx->rcq_chain); p_rx 975 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_get_pbl_phys(&p_rx->rcq_chain)); p_rx 1483 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx; p_rx 1501 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_rx = &p_ll2_conn->rx_queue; p_rx 1504 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_reset(&p_rx->rxq_chain); p_rx 1505 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_reset(&p_rx->rcq_chain); p_rx 1506 drivers/net/ethernet/qlogic/qed/qed_ll2.c INIT_LIST_HEAD(&p_rx->active_descq); p_rx 1507 drivers/net/ethernet/qlogic/qed/qed_ll2.c INIT_LIST_HEAD(&p_rx->free_descq); p_rx 1508 drivers/net/ethernet/qlogic/qed/qed_ll2.c INIT_LIST_HEAD(&p_rx->posting_descq); p_rx 1509 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_init(&p_rx->lock); p_rx 1510 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_rx->rxq_chain); p_rx 1512 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_rx->descq_array[i].list_entry, p_rx 1513 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_rx->free_descq); p_rx 1514 drivers/net/ethernet/qlogic/qed/qed_ll2.c *p_rx->p_fw_cons = 0; p_rx 1546 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_rx->set_prod_addr = (u8 __iomem *)p_hwfn->regview + p_rx 1589 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx, p_rx 1598 drivers/net/ethernet/qlogic/qed/qed_ll2.c while (!list_empty(&p_rx->posting_descq)) { p_rx 1599 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_posting_packet = list_first_entry(&p_rx->posting_descq, p_rx 1603 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_rx->active_descq); p_rx 1609 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_curp->list_entry, &p_rx->active_descq); p_rx 1616 drivers/net/ethernet/qlogic/qed/qed_ll2.c bd_prod = qed_chain_get_prod_idx(&p_rx->rxq_chain); p_rx 1617 drivers/net/ethernet/qlogic/qed/qed_ll2.c cq_prod = qed_chain_get_prod_idx(&p_rx->rcq_chain); p_rx 1624 drivers/net/ethernet/qlogic/qed/qed_ll2.c DIRECT_REG_WR(p_rx->set_prod_addr, *((u32 *)&rx_prod)); p_rx 1636 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_rx_queue *p_rx; p_rx 1644 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_rx = &p_ll2_conn->rx_queue; p_rx 1646 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_rx->lock, flags); p_rx 1647 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!list_empty(&p_rx->free_descq)) p_rx 1648 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_curp = list_first_entry(&p_rx->free_descq, p_rx 1651 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (qed_chain_get_elem_left(&p_rx->rxq_chain) && p_rx 1652 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_get_elem_left(&p_rx->rcq_chain)) { p_rx 1653 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_data = qed_chain_produce(&p_rx->rxq_chain); p_rx 1655 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_produce(&p_rx->rcq_chain); p_rx 1677 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_curp->list_entry, &p_rx->posting_descq); p_rx 1682 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_ll2_post_rx_buffer_notify_fw(p_hwfn, p_rx, p_curp); p_rx 1684 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_rx->lock, flags);