Home
last modified time | relevance | path

Searched refs:ppe_cb (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_ppe.c22 void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value) in hns_ppe_set_tso_enable() argument
24 dsaf_set_dev_bit(ppe_cb, PPEV2_CFG_TSO_EN_REG, 0, !!value); in hns_ppe_set_tso_enable()
27 void hns_ppe_set_rss_key(struct hns_ppe_cb *ppe_cb, in hns_ppe_set_rss_key() argument
33 dsaf_write_dev(ppe_cb, PPEV2_RSS_KEY_REG + key_item * 0x4, in hns_ppe_set_rss_key()
37 void hns_ppe_set_indir_table(struct hns_ppe_cb *ppe_cb, in hns_ppe_set_indir_table() argument
44 reg_value = dsaf_read_dev(ppe_cb, in hns_ppe_set_indir_table()
60 ppe_cb, PPEV2_INDRECTION_TBL_REG + i * 0x4, reg_value); in hns_ppe_set_indir_table()
121 struct hns_ppe_cb *ppe_cb; in hns_ppe_get_cfg() local
125 ppe_cb = &ppe_common->ppe_cb[i]; in hns_ppe_get_cfg()
126 ppe_cb->dev = ppe_common->dev; in hns_ppe_get_cfg()
[all …]
Dhns_dsaf_ppe.h99 struct hns_ppe_cb ppe_cb[0]; member
109 void hns_ppe_update_stats(struct hns_ppe_cb *ppe_cb);
113 void hns_ppe_get_regs(struct hns_ppe_cb *ppe_cb, void *data);
115 void hns_ppe_get_strings(struct hns_ppe_cb *ppe_cb, int stringset, u8 *data);
116 void hns_ppe_get_stats(struct hns_ppe_cb *ppe_cb, u64 *data);
117 void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value);
118 void hns_ppe_set_rss_key(struct hns_ppe_cb *ppe_cb,
120 void hns_ppe_set_indir_table(struct hns_ppe_cb *ppe_cb,
Dhns_ae_adapt.c46 return &ppe_comm->ppe_cb[ppe_index]; in hns_get_ppe_cb()
247 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); in hns_ae_set_tso_stats() local
249 hns_ppe_set_tso_enable(ppe_cb, enable); in hns_ae_set_tso_stats()
501 struct hns_ppe_cb *ppe_cb; in hns_ae_update_stats() local
512 ppe_cb = hns_get_ppe_cb(handle); in hns_ae_update_stats()
529 hns_ppe_update_stats(ppe_cb); in hns_ae_update_stats()
530 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats()
531 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats()
532 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats()
581 struct hns_ppe_cb *ppe_cb; in hns_ae_get_stats() local
[all …]