Home
last modified time | relevance | path

Searched refs:ppe_common (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_ppe.c61 hns_ppe_common_get_ioaddr(struct ppe_common_cb *ppe_common) in hns_ppe_common_get_ioaddr() argument
63 return ppe_common->dsaf_dev->ppe_base + PPE_COMMON_REG_OFFSET; in hns_ppe_common_get_ioaddr()
74 struct ppe_common_cb *ppe_common; in hns_ppe_common_get_cfg() local
82 ppe_common = devm_kzalloc(dsaf_dev->dev, in hns_ppe_common_get_cfg()
83 struct_size(ppe_common, ppe_cb, ppe_num), in hns_ppe_common_get_cfg()
85 if (!ppe_common) in hns_ppe_common_get_cfg()
88 ppe_common->ppe_num = ppe_num; in hns_ppe_common_get_cfg()
89 ppe_common->dsaf_dev = dsaf_dev; in hns_ppe_common_get_cfg()
90 ppe_common->comm_index = comm_index; in hns_ppe_common_get_cfg()
92 ppe_common->ppe_mode = PPE_COMMON_MODE_SERVICE; in hns_ppe_common_get_cfg()
[all …]
Dhns_dsaf_rcb.c823 struct ppe_common_cb *ppe_common in hns_rcb_update_stats() local
824 = dsaf_dev->ppe_common[ring->rcb_common->comm_index]; in hns_rcb_update_stats()
831 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
833 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
840 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
842 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
Dhns_dsaf_main.h342 struct ppe_common_cb *ppe_common[DSAF_COMM_DEV_NUM]; member
Dhns_ae_adapt.c34 ppe_comm = vf_cb->dsaf_dev->ppe_common[0]; in hns_get_ppe_cb()