Searched refs:ppe_common (Results 1 – 4 of 4) sorted by relevance
58 hns_ppe_common_get_ioaddr(struct ppe_common_cb *ppe_common) in hns_ppe_common_get_ioaddr() argument60 return ppe_common->dsaf_dev->ppe_base + PPE_COMMON_REG_OFFSET; in hns_ppe_common_get_ioaddr()71 struct ppe_common_cb *ppe_common; in hns_ppe_common_get_cfg() local79 ppe_common = devm_kzalloc(dsaf_dev->dev, in hns_ppe_common_get_cfg()80 struct_size(ppe_common, ppe_cb, ppe_num), in hns_ppe_common_get_cfg()82 if (!ppe_common) in hns_ppe_common_get_cfg()85 ppe_common->ppe_num = ppe_num; in hns_ppe_common_get_cfg()86 ppe_common->dsaf_dev = dsaf_dev; in hns_ppe_common_get_cfg()87 ppe_common->comm_index = comm_index; in hns_ppe_common_get_cfg()89 ppe_common->ppe_mode = PPE_COMMON_MODE_SERVICE; in hns_ppe_common_get_cfg()[all …]
819 struct ppe_common_cb *ppe_common in hns_rcb_update_stats() local820 = dsaf_dev->ppe_common[ring->rcb_common->comm_index]; in hns_rcb_update_stats()827 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()829 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()836 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()838 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats()
342 struct ppe_common_cb *ppe_common[DSAF_COMM_DEV_NUM]; member
34 ppe_comm = vf_cb->dsaf_dev->ppe_common[0]; in hns_get_ppe_cb()