Searched refs:tx_index (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_debugfs.c | 167 u32 tx_index, rx_index; in hns3_dbg_bd_info() local 172 cnt = sscanf(&cmd_buf[8], "%u %u", &q_num, &tx_index); in hns3_dbg_bd_info() 174 rx_index = tx_index; in hns3_dbg_bd_info() 189 tx_index = (cnt == 1) ? value : tx_index; in hns3_dbg_bd_info() 191 if (tx_index >= ring->desc_num) { in hns3_dbg_bd_info() 192 dev_err(dev, "bd index(%u) is out of range(0-%u)\n", tx_index, in hns3_dbg_bd_info() 197 tx_desc = &ring->desc[tx_index]; in hns3_dbg_bd_info() 199 dev_info(dev, "TX Queue Num: %u, BD Index: %u\n", q_num, tx_index); in hns3_dbg_bd_info() 219 rx_index = (cnt == 1) ? value : tx_index; in hns3_dbg_bd_info()
|
/Linux-v5.4/drivers/net/ethernet/amd/ |
D | amd8111e.c | 639 int tx_index; in amd8111e_tx() local 643 tx_index = lp->tx_complete_idx & TX_RING_DR_MOD_MASK; in amd8111e_tx() 644 status = le16_to_cpu(lp->tx_ring[tx_index].tx_flags); in amd8111e_tx() 649 lp->tx_ring[tx_index].buff_phy_addr = 0; in amd8111e_tx() 652 if (lp->tx_skbuff[tx_index]) { in amd8111e_tx() 653 pci_unmap_single(lp->pci_dev, lp->tx_dma_addr[tx_index], in amd8111e_tx() 654 lp->tx_skbuff[tx_index]->len, in amd8111e_tx() 656 dev_consume_skb_irq(lp->tx_skbuff[tx_index]); in amd8111e_tx() 657 lp->tx_skbuff[tx_index] = NULL; in amd8111e_tx() 658 lp->tx_dma_addr[tx_index] = 0; in amd8111e_tx() [all …]
|
/Linux-v5.4/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 734 int tx_index; in txq_put_data_tso() local 738 tx_index = txq->tx_curr_desc++; in txq_put_data_tso() 741 desc = &txq->tx_desc_area[tx_index]; in txq_put_data_tso() 742 txq->tx_desc_mapping[tx_index] = DESC_DMA_MAP_SINGLE; in txq_put_data_tso() 749 memcpy(txq->tso_hdrs + tx_index * TSO_HEADER_SIZE, in txq_put_data_tso() 752 + tx_index * TSO_HEADER_SIZE; in txq_put_data_tso() 755 txq->tx_desc_mapping[tx_index] = DESC_DMA_MAP_SINGLE; in txq_put_data_tso() 783 int tx_index; in txq_put_hdr_tso() local 790 tx_index = txq->tx_curr_desc; in txq_put_hdr_tso() 791 desc = &txq->tx_desc_area[tx_index]; in txq_put_hdr_tso() [all …]
|
D | pxa168_eth.c | 702 int tx_index; in txq_reclaim() local 711 tx_index = pep->tx_used_desc_q; in txq_reclaim() 712 desc = &pep->p_tx_desc_area[tx_index]; in txq_reclaim() 722 pep->tx_used_desc_q = (tx_index + 1) % pep->tx_ring_size; in txq_reclaim() 726 skb = pep->tx_skb[tx_index]; in txq_reclaim() 728 pep->tx_skb[tx_index] = NULL; in txq_reclaim() 1258 int tx_index; in pxa168_eth_start_xmit() local 1261 tx_index = eth_alloc_tx_desc_index(pep); in pxa168_eth_start_xmit() 1262 desc = &pep->p_tx_desc_area[tx_index]; in pxa168_eth_start_xmit() 1264 pep->tx_skb[tx_index] = skb; in pxa168_eth_start_xmit()
|
/Linux-v5.4/drivers/spi/ |
D | spi-topcliff-pch.c | 169 u32 tx_index; member 261 u32 n_read, tx_index, rx_index, bpw_len; in pch_spi_handler_sub() local 274 tx_index = data->tx_index; in pch_spi_handler_sub() 286 if (tx_index < bpw_len) in pch_spi_handler_sub() 287 iowrite32(pkt_tx_buff[tx_index++], spdwr); in pch_spi_handler_sub() 303 data->tx_index = tx_index; in pch_spi_handler_sub() 308 if ((tx_index == bpw_len) && (rx_index == tx_index)) { in pch_spi_handler_sub() 567 data->tx_index = 0; in pch_spi_set_tx() 624 data->tx_index = j; in pch_spi_set_tx()
|
/Linux-v5.4/drivers/ntb/ |
D | ntb_transport.c | 117 unsigned int tx_index; member 156 unsigned int tx_index; member 526 "tx_index (H) - \t%u\n", qp->tx_index); in debugfs_read() 680 qp->tx_index = 0; in ntb_transport_setup_qp_mw() 919 qp->tx_index = 0; in ntb_qp_link_down_reset() 1747 entry->tx_index; in ntb_tx_copy_callback() 1815 dest = qp->tx_mw_dma_addr + qp->tx_max_frame * entry->tx_index; in ntb_async_tx_submit() 1868 entry->tx_index = qp->tx_index; in ntb_async_tx() 1869 offset = qp->tx_mw + qp->tx_max_frame * entry->tx_index; in ntb_async_tx() 1899 if (qp->tx_index == qp->remote_rx_info->entry) { in ntb_process_tx() [all …]
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 8772 int tx_index, bool leading) in bnx2x_setup_tx_only() argument 8783 tx_only_params->cid_index = tx_index; in bnx2x_setup_tx_only() 8786 bnx2x_pf_q_prep_general(bp, fp, &tx_only_params->gen_params, tx_index); in bnx2x_setup_tx_only() 8789 bnx2x_pf_tx_q_prep(bp, fp, &tx_only_params->txq_params, tx_index); in bnx2x_setup_tx_only() 8793 tx_index, q_params->q_obj->cids[FIRST_TX_COS_INDEX], in bnx2x_setup_tx_only() 8794 q_params->q_obj->cids[tx_index], q_params->q_obj->cl_id, in bnx2x_setup_tx_only() 8821 u8 tx_index; in bnx2x_setup_queue() local 8879 for (tx_index = FIRST_TX_ONLY_COS_INDEX; in bnx2x_setup_queue() 8880 tx_index < fp->max_cos; in bnx2x_setup_queue() 8881 tx_index++) { in bnx2x_setup_queue() [all …]
|