Home
last modified time | relevance | path

Searched refs:tqp (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_tqp_stats.c13 struct hclge_comm_tqp *tqp; in hclge_comm_tqps_get_stats() local
18 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_stats()
19 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclge_comm_tqps_get_stats()
23 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_stats()
24 *buff++ = tqp->tqp_stats.rcb_rx_ring_pktnum_rcd; in hclge_comm_tqps_get_stats()
44 struct hclge_comm_tqp *tqp = in hclge_comm_tqps_get_strings() local
45 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_strings()
46 snprintf(buff, ETH_GSTRING_LEN, "txq%u_pktnum_rcd", tqp in hclge_comm_tqps_get_strings()
51 struct hclge_comm_tqp *tqp = hclge_comm_tqps_get_strings() local
64 struct hclge_comm_tqp *tqp; hclge_comm_tqps_update_stats() local
106 struct hclge_comm_tqp *tqp; hclge_comm_reset_tqp_stats() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_debugfs.c57 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
59 base_add_l = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
64 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
68 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
72 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
76 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
80 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
84 value = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
89 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dbg_queue_info()
91 base_add_l = readl_relaxed(ring->tqp in hns3_dbg_queue_info()
[all...]
H A Dhns3_trace.h78 __string(devname, ring->tqp->handle->kinfo.netdev->name)
82 __entry->index = ring->tqp->tqp_index;
88 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
110 __string(devname, ring->tqp->handle->kinfo.netdev->name)
114 __entry->index = ring->tqp->tqp_index;
121 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
H A Dhns3_enet.c327 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument
331 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
333 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
336 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
340 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
342 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
398 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
405 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
427 ring->tqp->tqp_index); in hns3_config_xps()
505 hns3_tqp_disable(h->kinfo.tqp[ in hns3_nic_net_down()
3776 hns3_queue_to_ring(struct hnae3_queue *tqp, struct hns3_nic_priv *priv) hns3_queue_to_ring() argument
[all...]
H A Dhns3_enet.h384 struct hnae3_queue *tqp; member
H A Dhnae3.h681 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_trace.h77 __string(devname, ring->tqp->handle->kinfo.netdev->name)
81 __entry->index = ring->tqp->tqp_index;
87 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
109 __string(devname, ring->tqp->handle->kinfo.netdev->name)
113 __entry->index = ring->tqp->tqp_index;
120 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
H A Dhns3_debugfs.c263 .name = "tqp",
642 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
645 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
648 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
651 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
654 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
657 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
661 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
665 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
670 base_add_h = readl_relaxed(ring->tqp in hns3_dump_rx_queue_info()
[all...]
H A Dhns3_enet.c658 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument
662 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
664 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
667 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
671 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
673 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
729 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
736 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
758 ring->tqp->tqp_index); in hns3_config_xps()
836 hns3_tqp_disable(h->kinfo.tqp[ in hns3_nic_net_down()
4905 hns3_queue_to_ring(struct hnae3_queue *tqp, struct hns3_nic_priv *priv) hns3_queue_to_ring() argument
[all...]
H A Dhns3_enet.h469 struct hnae3_queue *tqp; member
636 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()
H A Dhnae3.h837 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
H A Dhns3_ethtool.c12 /* tqp related stats */
1180 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c106 struct hclgevf_tqp *tqp; in hclgevf_tqps_update_stats() local
111 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_update_stats()
116 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
120 "Query tqp stat fail, status = %d,queue = %d\n", in hclgevf_tqps_update_stats()
124 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
130 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
134 "Query tqp stat fail, status = %d,queue = %d\n", in hclgevf_tqps_update_stats()
138 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
148 struct hclgevf_tqp *tqp; in hclgevf_tqps_get_stats() local
178 struct hclgevf_tqp *tqp = container_of(kinfo->tqp[i], hclgevf_tqps_get_strings() local
186 struct hclgevf_tqp *tqp = container_of(kinfo->tqp[i], hclgevf_tqps_get_strings() local
388 struct hclgevf_tqp *tqp; hclgevf_alloc_tqps() local
1230 struct hclgevf_tqp *tqp; hclgevf_reset_tqp_stats() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c551 struct hclge_tqp *tqp; in hclge_tqps_update_stats() local
555 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
556 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
561 desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff)); in hclge_tqps_update_stats()
565 "Query tqp stat fail, status = %d,queue = %d\n", in hclge_tqps_update_stats()
569 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclge_tqps_update_stats()
574 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
575 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
581 desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff)); in hclge_tqps_update_stats()
585 "Query tqp sta in hclge_tqps_update_stats()
599 struct hclge_tqp *tqp; hclge_tqps_get_stats() local
631 struct hclge_tqp *tqp = container_of(handle->kinfo.tqp[i], hclge_tqps_get_strings() local
639 struct hclge_tqp *tqp = container_of(kinfo->tqp[i], hclge_tqps_get_strings() local
1581 struct hclge_tqp *tqp; hclge_alloc_tqps() local
6970 struct hclge_tqp *tqp; hclge_reset_tqp_stats() local
9390 struct hclge_tqp *tqp; hclge_covert_handle_qid_global() local
[all...]
H A Dhclge_tm.c586 * valid msi numbers to ensure one to one map between tqp and in hclge_tm_vport_tc_info_update()
818 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local
826 struct hnae3_queue *q = tqp[v_tc_info->tqp_offset + j]; in hclge_vport_q_to_qs_map()
H A Dhclge_mbx.c160 /* hclge_get_ring_chain_from_mbx: get ring type & tqp id & int_gl idx
166 * msg[4]: first tqp id
168 * msg[6] ~ msg[14]: other ring type, tqp id and int_gl idx
187 dev_err(&hdev->pdev->dev, "tqp index(%u) is out of range(0-%u)\n", in hclge_get_ring_chain_from_mbx()
197 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
213 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
H A Dhclge_main.h84 /* bar registers for tqp interrupt */
745 u16 base_tqp_pid; /* Base task tqp physical id of this PF */
961 struct hclge_tqp *tqp = container_of(queue, struct hclge_tqp, q); in hclge_get_queue_id() local
963 return tqp->index; in hclge_get_queue_id()
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c185 "VF request to get tqp info from PF failed %d", in hclgevf_get_queue_info()
212 "VF request to get tqp depth info from PF failed %d", in hclgevf_get_queue_depth()
267 struct hclge_comm_tqp *tqp; in hclgevf_alloc_tqps() local
275 tqp = hdev->htqp; in hclgevf_alloc_tqps()
278 tqp->dev = &hdev->pdev->dev; in hclgevf_alloc_tqps()
279 tqp->index = i; in hclgevf_alloc_tqps()
281 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
282 tqp->q.buf_size = hdev->rx_buf_len; in hclgevf_alloc_tqps()
283 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclgevf_alloc_tqps()
284 tqp in hclgevf_alloc_tqps()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.h77 /* bar registers for tqp interrupt */
870 u16 base_tqp_pid; /* Base task tqp physical id of this PF */
1097 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local
1100 return tqp->index; in hclge_get_queue_id()
H A Dhclge_mbx.c170 /* hclge_get_ring_chain_from_mbx: get ring type & tqp id & int_gl idx
176 * msg[4]: first tqp id
178 * msg[6] ~ msg[14]: other ring type, tqp id and int_gl idx
197 dev_err(&hdev->pdev->dev, "tqp index(%u) is out of range(0-%u)\n", in hclge_get_ring_chain_from_mbx()
207 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
223 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
H A Dhclge_tm.c954 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local
960 struct hnae3_queue *q = tqp[tc_info->tqp_offset[i] + j]; in hclge_vport_q_to_qs_map()
H A Dhclge_main.c1580 struct hclge_comm_tqp *tqp; in hclge_alloc_tqps() local
1588 tqp = hdev->htqp; in hclge_alloc_tqps()
1591 tqp->dev = &hdev->pdev->dev; in hclge_alloc_tqps()
1592 tqp->index = i; in hclge_alloc_tqps()
1594 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1595 tqp->q.buf_size = hdev->rx_buf_len; in hclge_alloc_tqps()
1596 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclge_alloc_tqps()
1597 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclge_alloc_tqps()
1603 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps()
1607 tqp in hclge_alloc_tqps()
10699 struct hclge_comm_tqp *tqp; hclge_covert_handle_qid_global() local
[all...]
/kernel/linux/linux-5.10/drivers/net/usb/
H A Dlan78xx.c3219 struct sk_buff_head *tqp = &dev->txq_pend; in lan78xx_tx_bh() local
3229 spin_lock_irqsave(&tqp->lock, flags); in lan78xx_tx_bh()
3230 skb_queue_walk(tqp, skb) { in lan78xx_tx_bh()
3232 if (!skb_queue_is_first(tqp, skb)) { in lan78xx_tx_bh()
3238 __skb_unlink(skb, tqp); in lan78xx_tx_bh()
3239 spin_unlock_irqrestore(&tqp->lock, flags); in lan78xx_tx_bh()
3248 spin_unlock_irqrestore(&tqp->lock, flags); in lan78xx_tx_bh()
3258 skb2 = skb_dequeue(tqp); in lan78xx_tx_bh()

Completed in 57 milliseconds