/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_ppe.c | 18 void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value) in hns_ppe_set_tso_enable() argument 20 dsaf_set_dev_bit(ppe_cb, PPEV2_CFG_TSO_EN_REG, 0, !!value); in hns_ppe_set_tso_enable() 23 void hns_ppe_set_rss_key(struct hns_ppe_cb *ppe_cb, in hns_ppe_set_rss_key() argument 29 dsaf_write_dev(ppe_cb, PPEV2_RSS_KEY_REG + key_item * 0x4, in hns_ppe_set_rss_key() 33 void hns_ppe_set_indir_table(struct hns_ppe_cb *ppe_cb, in hns_ppe_set_indir_table() argument 40 reg_value = dsaf_read_dev(ppe_cb, in hns_ppe_set_indir_table() 56 ppe_cb, PPEV2_INDRECTION_TBL_REG + i * 0x4, reg_value); in hns_ppe_set_indir_table() 83 struct_size(ppe_common, ppe_cb, ppe_num), in hns_ppe_common_get_cfg() 119 struct hns_ppe_cb *ppe_cb; in hns_ppe_get_cfg() local 123 ppe_cb in hns_ppe_get_cfg() 133 hns_ppe_cnt_clr_ce(struct hns_ppe_cb *ppe_cb) hns_ppe_cnt_clr_ce() argument 139 hns_ppe_set_vlan_strip(struct hns_ppe_cb *ppe_cb, int en) hns_ppe_set_vlan_strip() argument 149 hns_ppe_checksum_hw(struct hns_ppe_cb *ppe_cb, u32 value) hns_ppe_checksum_hw() argument 185 hns_ppe_set_port_mode(struct hns_ppe_cb *ppe_cb, enum ppe_port_mode mode) hns_ppe_set_port_mode() argument 257 hns_ppe_exc_irq_en(struct hns_ppe_cb *ppe_cb, int en) hns_ppe_exc_irq_en() argument 275 hns_ppe_wait_tx_fifo_clean(struct hns_ppe_cb *ppe_cb) hns_ppe_wait_tx_fifo_clean() argument 302 hns_ppe_init_hw(struct hns_ppe_cb *ppe_cb) hns_ppe_init_hw() argument 349 hns_ppe_uninit_hw(struct hns_ppe_cb *ppe_cb) hns_ppe_uninit_hw() argument 414 hns_ppe_update_stats(struct hns_ppe_cb *ppe_cb) hns_ppe_update_stats() argument 463 hns_ppe_get_strings(struct hns_ppe_cb *ppe_cb, int stringset, u8 *data) hns_ppe_get_strings() argument 494 hns_ppe_get_stats(struct hns_ppe_cb *ppe_cb, u64 *data) hns_ppe_get_stats() argument 554 hns_ppe_get_regs(struct hns_ppe_cb *ppe_cb, void *data) hns_ppe_get_regs() argument [all...] |
H A D | hns_dsaf_ppe.h | 95 struct hns_ppe_cb ppe_cb[]; member 99 int hns_ppe_wait_tx_fifo_clean(struct hns_ppe_cb *ppe_cb); 106 void hns_ppe_update_stats(struct hns_ppe_cb *ppe_cb); 110 void hns_ppe_get_regs(struct hns_ppe_cb *ppe_cb, void *data); 112 void hns_ppe_get_strings(struct hns_ppe_cb *ppe_cb, int stringset, u8 *data); 113 void hns_ppe_get_stats(struct hns_ppe_cb *ppe_cb, u64 *data); 114 void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value); 115 void hns_ppe_set_rss_key(struct hns_ppe_cb *ppe_cb, 117 void hns_ppe_set_indir_table(struct hns_ppe_cb *ppe_cb,
|
H A D | hns_ae_adapt.c | 37 return &ppe_comm->ppe_cb[ppe_index]; in hns_get_ppe_cb() 153 struct hns_ppe_cb *ppe_cb; in hns_ae_wait_flow_down() local 164 ppe_cb = hns_get_ppe_cb(handle); in hns_ae_wait_flow_down() 165 ret = hns_ppe_wait_tx_fifo_clean(ppe_cb); in hns_ae_wait_flow_down() 328 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); in hns_ae_set_tso_stats() local 330 hns_ppe_set_tso_enable(ppe_cb, enable); in hns_ae_set_tso_stats() 646 struct hns_ppe_cb *ppe_cb; in hns_ae_update_stats() local 657 ppe_cb = hns_get_ppe_cb(handle); in hns_ae_update_stats() 674 hns_ppe_update_stats(ppe_cb); in hns_ae_update_stats() 675 rx_missed_errors = ppe_cb in hns_ae_update_stats() 726 struct hns_ppe_cb *ppe_cb; hns_ae_get_stats() local 760 struct hns_ppe_cb *ppe_cb; hns_ae_get_strings() local 862 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); hns_ae_get_regs() local 911 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); hns_ae_get_rss() local 932 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); hns_ae_set_rss() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_ppe.c | 15 void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value) in hns_ppe_set_tso_enable() argument 17 dsaf_set_dev_bit(ppe_cb, PPEV2_CFG_TSO_EN_REG, 0, !!value); in hns_ppe_set_tso_enable() 20 void hns_ppe_set_rss_key(struct hns_ppe_cb *ppe_cb, in hns_ppe_set_rss_key() argument 26 dsaf_write_dev(ppe_cb, PPEV2_RSS_KEY_REG + key_item * 0x4, in hns_ppe_set_rss_key() 30 void hns_ppe_set_indir_table(struct hns_ppe_cb *ppe_cb, in hns_ppe_set_indir_table() argument 37 reg_value = dsaf_read_dev(ppe_cb, in hns_ppe_set_indir_table() 53 ppe_cb, PPEV2_INDRECTION_TBL_REG + i * 0x4, reg_value); in hns_ppe_set_indir_table() 80 struct_size(ppe_common, ppe_cb, ppe_num), in hns_ppe_common_get_cfg() 116 struct hns_ppe_cb *ppe_cb; in hns_ppe_get_cfg() local 120 ppe_cb in hns_ppe_get_cfg() 130 hns_ppe_cnt_clr_ce(struct hns_ppe_cb *ppe_cb) hns_ppe_cnt_clr_ce() argument 136 hns_ppe_set_vlan_strip(struct hns_ppe_cb *ppe_cb, int en) hns_ppe_set_vlan_strip() argument 146 hns_ppe_checksum_hw(struct hns_ppe_cb *ppe_cb, u32 value) hns_ppe_checksum_hw() argument 182 hns_ppe_set_port_mode(struct hns_ppe_cb *ppe_cb, enum ppe_port_mode mode) hns_ppe_set_port_mode() argument 254 hns_ppe_exc_irq_en(struct hns_ppe_cb *ppe_cb, int en) hns_ppe_exc_irq_en() argument 272 hns_ppe_wait_tx_fifo_clean(struct hns_ppe_cb *ppe_cb) hns_ppe_wait_tx_fifo_clean() argument 299 hns_ppe_init_hw(struct hns_ppe_cb *ppe_cb) hns_ppe_init_hw() argument 346 hns_ppe_uninit_hw(struct hns_ppe_cb *ppe_cb) hns_ppe_uninit_hw() argument 411 hns_ppe_update_stats(struct hns_ppe_cb *ppe_cb) hns_ppe_update_stats() argument 460 hns_ppe_get_strings(struct hns_ppe_cb *ppe_cb, int stringset, u8 *data) hns_ppe_get_strings() argument 480 hns_ppe_get_stats(struct hns_ppe_cb *ppe_cb, u64 *data) hns_ppe_get_stats() argument 540 hns_ppe_get_regs(struct hns_ppe_cb *ppe_cb, void *data) hns_ppe_get_regs() argument [all...] |
H A D | hns_dsaf_ppe.h | 95 struct hns_ppe_cb ppe_cb[]; member 99 int hns_ppe_wait_tx_fifo_clean(struct hns_ppe_cb *ppe_cb); 106 void hns_ppe_update_stats(struct hns_ppe_cb *ppe_cb); 110 void hns_ppe_get_regs(struct hns_ppe_cb *ppe_cb, void *data); 112 void hns_ppe_get_strings(struct hns_ppe_cb *ppe_cb, int stringset, u8 *data); 113 void hns_ppe_get_stats(struct hns_ppe_cb *ppe_cb, u64 *data); 114 void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value); 115 void hns_ppe_set_rss_key(struct hns_ppe_cb *ppe_cb, 117 void hns_ppe_set_indir_table(struct hns_ppe_cb *ppe_cb,
|
H A D | hns_ae_adapt.c | 37 return &ppe_comm->ppe_cb[ppe_index]; in hns_get_ppe_cb() 152 struct hns_ppe_cb *ppe_cb; in hns_ae_wait_flow_down() local 163 ppe_cb = hns_get_ppe_cb(handle); in hns_ae_wait_flow_down() 164 ret = hns_ppe_wait_tx_fifo_clean(ppe_cb); in hns_ae_wait_flow_down() 327 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); in hns_ae_set_tso_stats() local 329 hns_ppe_set_tso_enable(ppe_cb, enable); in hns_ae_set_tso_stats() 625 struct hns_ppe_cb *ppe_cb; in hns_ae_update_stats() local 636 ppe_cb = hns_get_ppe_cb(handle); in hns_ae_update_stats() 653 hns_ppe_update_stats(ppe_cb); in hns_ae_update_stats() 654 rx_missed_errors = ppe_cb in hns_ae_update_stats() 705 struct hns_ppe_cb *ppe_cb; hns_ae_get_stats() local 739 struct hns_ppe_cb *ppe_cb; hns_ae_get_strings() local 841 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); hns_ae_get_regs() local 890 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); hns_ae_get_rss() local 911 struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); hns_ae_set_rss() local [all...] |