Searched refs:ppe_common (Results 1 – 4 of 4) sorted by relevance
65 hns_ppe_common_get_ioaddr(struct ppe_common_cb *ppe_common) in hns_ppe_common_get_ioaddr() argument67 return ppe_common->dsaf_dev->ppe_base + PPE_COMMON_REG_OFFSET; in hns_ppe_common_get_ioaddr()78 struct ppe_common_cb *ppe_common; in hns_ppe_common_get_cfg() local86 ppe_common = devm_kzalloc(dsaf_dev->dev, sizeof(*ppe_common) + in hns_ppe_common_get_cfg()88 if (!ppe_common) in hns_ppe_common_get_cfg()91 ppe_common->ppe_num = ppe_num; in hns_ppe_common_get_cfg()92 ppe_common->dsaf_dev = dsaf_dev; in hns_ppe_common_get_cfg()93 ppe_common->comm_index = comm_index; in hns_ppe_common_get_cfg()95 ppe_common->ppe_mode = PPE_COMMON_MODE_SERVICE; in hns_ppe_common_get_cfg()97 ppe_common->ppe_mode = PPE_COMMON_MODE_DEBUG; in hns_ppe_common_get_cfg()[all …]
724 struct ppe_common_cb *ppe_common in hns_rcb_update_stats() local725 = dsaf_dev->ppe_common[ring->rcb_common->comm_index]; in hns_rcb_update_stats()732 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()734 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()741 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()743 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
347 struct ppe_common_cb *ppe_common[DSAF_COMM_DEV_NUM]; member
43 ppe_comm = vf_cb->dsaf_dev->ppe_common[0]; in hns_get_ppe_cb()