Home
last modified time | relevance | path

Searched refs:tqp (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhns3_debugfs.c58 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
60 base_add_l = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
65 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
69 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
73 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
77 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
81 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
85 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
90 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
92 base_add_l = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
[all …]
Dhns3_enet.c312 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument
316 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
318 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
321 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
325 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
327 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
395 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
407 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
431 ring->tqp->tqp_index); in hns3_config_xps()
504 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_nic_net_down()
[all …]
Dhns3_enet.h407 struct hnae3_queue *tqp; member
611 #define hnae3_queue_xmit(tqp, buf_num) writel_relaxed(buf_num, \ argument
612 (tqp)->io_base + HNS3_RING_TX_RING_TAIL_REG)
Dhnae3.h581 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
610 struct hnae3_queue **tqp; /* array base of all TQPs of this instance */ member
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c103 struct hclgevf_tqp *tqp; in hclgevf_tqps_update_stats() local
108 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_update_stats()
113 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
121 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
127 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
135 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
145 struct hclgevf_tqp *tqp; in hclgevf_tqps_get_stats() local
150 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
151 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclgevf_tqps_get_stats()
154 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
[all …]
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c543 struct hclge_tqp *tqp; in hclge_tqps_update_stats() local
547 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
548 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
553 desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff)); in hclge_tqps_update_stats()
561 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclge_tqps_update_stats()
566 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
567 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
573 desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff)); in hclge_tqps_update_stats()
581 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclge_tqps_update_stats()
591 struct hclge_tqp *tqp; in hclge_tqps_get_stats() local
[all …]
Dhclge_main.h945 struct hclge_tqp *tqp = container_of(queue, struct hclge_tqp, q); in hclge_get_queue_id() local
947 return tqp->index; in hclge_get_queue_id()
Dhclge_mbx.c150 hclge_get_queue_id(vport->nic.kinfo.tqp[req->msg[4]]); in hclge_get_ring_chain_from_mbx()
167 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
Dhclge_tm.c754 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local
762 struct hnae3_queue *q = tqp[v_tc_info->tqp_offset + j]; in hclge_vport_q_to_qs_map()
/Linux-v5.4/drivers/net/usb/
Dlan78xx.c3324 struct sk_buff_head *tqp = &dev->txq_pend; in lan78xx_tx_bh() local
3334 spin_lock_irqsave(&tqp->lock, flags); in lan78xx_tx_bh()
3335 skb_queue_walk(tqp, skb) { in lan78xx_tx_bh()
3337 if (!skb_queue_is_first(tqp, skb)) { in lan78xx_tx_bh()
3343 __skb_unlink(skb, tqp); in lan78xx_tx_bh()
3344 spin_unlock_irqrestore(&tqp->lock, flags); in lan78xx_tx_bh()
3353 spin_unlock_irqrestore(&tqp->lock, flags); in lan78xx_tx_bh()
3363 skb2 = skb_dequeue(tqp); in lan78xx_tx_bh()