Searched refs:ppe_cb (Results 1 – 3 of 3) sorted by relevance
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_ppe.c | 22 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 …]
|
D | hns_dsaf_ppe.h | 99 struct hns_ppe_cb ppe_cb[0]; member 103 int hns_ppe_wait_tx_fifo_clean(struct hns_ppe_cb *ppe_cb); 110 void hns_ppe_update_stats(struct hns_ppe_cb *ppe_cb); 114 void hns_ppe_get_regs(struct hns_ppe_cb *ppe_cb, void *data); 116 void hns_ppe_get_strings(struct hns_ppe_cb *ppe_cb, int stringset, u8 *data); 117 void hns_ppe_get_stats(struct hns_ppe_cb *ppe_cb, u64 *data); 118 void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value); 119 void hns_ppe_set_rss_key(struct hns_ppe_cb *ppe_cb, 121 void hns_ppe_set_indir_table(struct hns_ppe_cb *ppe_cb,
|
D | hns_ae_adapt.c | 43 return &ppe_comm->ppe_cb[ppe_index]; in hns_get_ppe_cb() 159 struct hns_ppe_cb *ppe_cb; in hns_ae_wait_flow_down() local 170 ppe_cb = hns_get_ppe_cb(handle); in hns_ae_wait_flow_down() 171 ret = hns_ppe_wait_tx_fifo_clean(ppe_cb); in hns_ae_wait_flow_down() 334 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); in hns_ae_set_tso_stats() local 336 hns_ppe_set_tso_enable(ppe_cb, enable); in hns_ae_set_tso_stats() 652 struct hns_ppe_cb *ppe_cb; in hns_ae_update_stats() local 663 ppe_cb = hns_get_ppe_cb(handle); in hns_ae_update_stats() 680 hns_ppe_update_stats(ppe_cb); in hns_ae_update_stats() 681 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats() [all …]
|