p_tx 301 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx; p_tx 309 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx = &p_ll2_conn->tx_queue; p_tx 311 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_tx->lock, flags); p_tx 312 drivers/net/ethernet/qlogic/qed/qed_ll2.c while (!list_empty(&p_tx->active_descq)) { p_tx 313 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = list_first_entry(&p_tx->active_descq, p_tx 319 drivers/net/ethernet/qlogic/qed/qed_ll2.c b_last_packet = list_empty(&p_tx->active_descq); p_tx 320 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); p_tx 321 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_tx->lock, flags); p_tx 329 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_completing_packet = *p_pkt; p_tx 330 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_completing_bd_idx = 1; p_tx 332 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_completing_bd_idx == p_pkt->bd_used; p_tx 341 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_tx->lock, flags); p_tx 343 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_tx->lock, flags); p_tx 349 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx = &p_ll2_conn->tx_queue; p_tx 356 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_tx->lock, flags); p_tx 357 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (p_tx->b_completing_packet) { p_tx 362 drivers/net/ethernet/qlogic/qed/qed_ll2.c new_idx = le16_to_cpu(*p_tx->p_fw_cons); p_tx 363 drivers/net/ethernet/qlogic/qed/qed_ll2.c num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); p_tx 365 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (list_empty(&p_tx->active_descq)) p_tx 368 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = list_first_entry(&p_tx->active_descq, p_tx 373 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->b_completing_packet = true; p_tx 374 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_completing_packet = *p_pkt; p_tx 385 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->bds_idx += num_bds_in_packet; p_tx 387 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_consume(&p_tx->txq_chain); p_tx 389 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_completing_bd_idx = 1; p_tx 390 drivers/net/ethernet/qlogic/qed/qed_ll2.c b_last_frag = p_tx->cur_completing_bd_idx == p_pkt->bd_used; p_tx 391 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); p_tx 393 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_tx->lock, flags); p_tx 401 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_tx->lock, flags); p_tx 404 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->b_completing_packet = false; p_tx 407 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_tx->lock, flags); p_tx 866 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx = &p_ll2_conn->tx_queue; p_tx 876 drivers/net/ethernet/qlogic/qed/qed_ll2.c new_idx = le16_to_cpu(*p_tx->p_fw_cons); p_tx 877 drivers/net/ethernet/qlogic/qed/qed_ll2.c num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); p_tx 883 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (list_empty(&p_tx->active_descq)) p_tx 886 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = list_first_entry(&p_tx->active_descq, p_tx 901 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->bds_idx++; p_tx 902 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_consume(&p_tx->txq_chain); p_tx 905 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); p_tx 1006 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx = &p_ll2_conn->tx_queue; p_tx 1036 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ramrod->sb_index = p_tx->tx_sb_index; p_tx 1042 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_get_pbl_phys(&p_tx->txq_chain)); p_tx 1043 drivers/net/ethernet/qlogic/qed/qed_ll2.c pbl_size = qed_chain_get_page_cnt(&p_tx->txq_chain); p_tx 1090 drivers/net/ethernet/qlogic/qed/qed_ll2.c rc = qed_db_recovery_add(p_hwfn->cdev, p_tx->doorbell_addr, p_tx 1091 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_tx->db_msg, DB_REC_WIDTH_32B, p_tx 1127 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx = &p_ll2_conn->tx_queue; p_tx 1131 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_db_recovery_del(p_hwfn->cdev, p_tx->doorbell_addr, &p_tx->db_msg); p_tx 1484 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx; p_tx 1502 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx = &p_ll2_conn->tx_queue; p_tx 1516 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_chain_reset(&p_tx->txq_chain); p_tx 1517 drivers/net/ethernet/qlogic/qed/qed_ll2.c INIT_LIST_HEAD(&p_tx->active_descq); p_tx 1518 drivers/net/ethernet/qlogic/qed/qed_ll2.c INIT_LIST_HEAD(&p_tx->free_descq); p_tx 1519 drivers/net/ethernet/qlogic/qed/qed_ll2.c INIT_LIST_HEAD(&p_tx->sending_descq); p_tx 1520 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_init(&p_tx->lock); p_tx 1521 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_tx->txq_chain); p_tx 1528 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = p_tx->descq_mem + desc_size * i; p_tx 1529 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_add_tail(&p_pkt->list_entry, &p_tx->free_descq); p_tx 1531 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_completing_bd_idx = 0; p_tx 1532 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->bds_idx = 0; p_tx 1533 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->b_completing_packet = false; p_tx 1534 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_send_packet = NULL; p_tx 1535 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_send_frag_num = 0; p_tx 1536 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_completing_frag_num = 0; p_tx 1537 drivers/net/ethernet/qlogic/qed/qed_ll2.c *p_tx->p_fw_cons = 0; p_tx 1549 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->doorbell_addr = (u8 __iomem *)p_hwfn->doorbells + p_tx 1553 drivers/net/ethernet/qlogic/qed/qed_ll2.c SET_FIELD(p_tx->db_msg.params, CORE_DB_DATA_DEST, DB_DEST_XCM); p_tx 1554 drivers/net/ethernet/qlogic/qed/qed_ll2.c SET_FIELD(p_tx->db_msg.params, CORE_DB_DATA_AGG_CMD, DB_AGG_CMD_SET); p_tx 1555 drivers/net/ethernet/qlogic/qed/qed_ll2.c SET_FIELD(p_tx->db_msg.params, CORE_DB_DATA_AGG_VAL_SEL, p_tx 1557 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->db_msg.agg_flags = DQ_XCM_CORE_DQ_CF_CMD; p_tx 1689 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx, p_tx 1698 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_send_packet = p_curp; p_tx 1699 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_send_frag_num = 0; p_tx 1701 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_curp->bds_set[p_tx->cur_send_frag_num].tx_frag = pkt->first_frag; p_tx 1702 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_curp->bds_set[p_tx->cur_send_frag_num].frag_len = pkt->first_frag_len; p_tx 1703 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->cur_send_frag_num++; p_tx 1799 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx = &p_ll2_conn->tx_queue; p_tx 1820 drivers/net/ethernet/qlogic/qed/qed_ll2.c while (!list_empty(&p_tx->sending_descq)) { p_tx 1821 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_pkt = list_first_entry(&p_tx->sending_descq, p_tx 1826 drivers/net/ethernet/qlogic/qed/qed_ll2.c list_move_tail(&p_pkt->list_entry, &p_tx->active_descq); p_tx 1829 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx->db_msg.spq_prod = cpu_to_le16(bd_prod); p_tx 1834 drivers/net/ethernet/qlogic/qed/qed_ll2.c DIRECT_REG_WR(p_tx->doorbell_addr, *((u32 *)&p_tx->db_msg)); p_tx 1841 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_conn->input.conn_type, p_tx->db_msg.spq_prod); p_tx 1852 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_tx_queue *p_tx; p_tx 1860 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx = &p_ll2_conn->tx_queue; p_tx 1861 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx_chain = &p_tx->txq_chain; p_tx 1866 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_lock_irqsave(&p_tx->lock, flags); p_tx 1867 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (p_tx->cur_send_packet) { p_tx 1873 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!list_empty(&p_tx->free_descq)) p_tx 1874 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_curp = list_first_entry(&p_tx->free_descq, p_tx 1885 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_ll2_prepare_tx_packet_set(p_hwfn, p_tx, p_curp, pkt, notify_fw); p_tx 1892 drivers/net/ethernet/qlogic/qed/qed_ll2.c spin_unlock_irqrestore(&p_tx->lock, flags);