Home
last modified time | relevance | path

Searched refs:dsaf_device (Results 1 – 13 of 13) sorted by relevance

/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.h216 struct dsaf_device *dsaf_dev;
309 void (*dsaf_reset)(struct dsaf_device *dsaf_dev, bool dereset);
310 void (*xge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
311 void (*xge_core_srst)(struct dsaf_device *dsaf_dev, u32 port,
313 void (*ge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
314 void (*ppe_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
315 void (*ppe_comm_srst)(struct dsaf_device *dsaf_dev, bool dereset);
316 void (*hns_dsaf_srst_chns)(struct dsaf_device *dsaf_dev, u32 msk,
318 void (*hns_dsaf_roce_srst)(struct dsaf_device *dsaf_dev, bool dereset);
327 struct dsaf_device { struct
[all …]
Dhns_dsaf_main.c45 int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_get_cfg()
216 static void hns_dsaf_sbm_link_sram_init_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_link_sram_init_en()
227 hns_dsaf_reg_cnt_clr_ce(struct dsaf_device *dsaf_dev, u32 reg_cnt_clr_ce) in hns_dsaf_reg_cnt_clr_ce()
239 hns_dsaf_ppe_qid_cfg(struct dsaf_device *dsaf_dev, u32 qid_cfg) in hns_dsaf_ppe_qid_cfg()
251 static void hns_dsaf_mix_def_qid_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_mix_def_qid_cfg()
268 static void hns_dsaf_inner_qid_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_inner_qid_cfg()
295 static void hns_dsaf_sw_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_sw_port_type_cfg()
313 static void hns_dsaf_stp_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_stp_port_type_cfg()
332 static void hns_dsaf_sbm_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg()
351 static int hns_dsaf_sbm_cfg_mib_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg_mib_en()
[all …]
Dhns_dsaf_misc.c38 static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val) in dsaf_write_sub()
46 static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg) in dsaf_read_sub()
137 static void hns_dsaf_acpi_srst_by_port(struct dsaf_device *dsaf_dev, u8 op_type, in hns_dsaf_acpi_srst_by_port()
165 static void hns_dsaf_rst(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_rst()
182 static void hns_dsaf_rst_acpi(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_rst_acpi()
189 static void hns_dsaf_xge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, in hns_dsaf_xge_srst_by_port()
209 static void hns_dsaf_xge_srst_by_port_acpi(struct dsaf_device *dsaf_dev, in hns_dsaf_xge_srst_by_port_acpi()
216 static void hns_dsaf_xge_core_srst_by_port(struct dsaf_device *dsaf_dev, in hns_dsaf_xge_core_srst_by_port()
246 void hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) in hns_dsaf_srst_chns()
269 hns_dsaf_srst_chns_acpi(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) in hns_dsaf_srst_chns_acpi()
[all …]
Dhns_dsaf_ppe.h91 struct dsaf_device *dsaf_dev;
103 int hns_ppe_init(struct dsaf_device *dsaf_dev);
105 void hns_ppe_uninit(struct dsaf_device *dsaf_dev);
107 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index);
Dhns_ae_adapt.c32 static struct dsaf_device *hns_ae_get_dsaf_dev(struct hnae_ae_dev *dev) in hns_ae_get_dsaf_dev()
34 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev()
50 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_q_num_per_vf()
56 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_vf_num_per_port()
62 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_base_ring_pair()
82 struct dsaf_device *dsaf_dev; in hns_ae_get_handle()
366 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_get_pauseparam()
407 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_set_pauseparam()
476 struct dsaf_device *dsaf_dev; in hns_ae_get_coalesce_range()
499 struct dsaf_device *dsaf_dev; in hns_ae_update_stats()
[all …]
Dhns_dsaf_ppe.c76 int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg()
107 void hns_ppe_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) in hns_ppe_common_free_cfg()
202 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; in hns_ppe_common_init_hw()
285 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; in hns_ppe_init_hw()
333 struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; in hns_ppe_uninit_hw()
351 void hns_ppe_uninit(struct dsaf_device *dsaf_dev) in hns_ppe_uninit()
368 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index) in hns_ppe_reset_common()
497 int hns_ppe_init(struct dsaf_device *dsaf_dev) in hns_ppe_init()
Dhns_dsaf_rcb.h96 struct dsaf_device *dsaf_dev;
109 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index);
110 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index);
Dhns_dsaf_mac.c228 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_change_vf_addr()
270 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_set_multi()
306 struct dsaf_device *dsaf_dev; in hns_mac_del_mac()
355 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_port_config_bc_en()
390 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_vm_config_bc_en()
892 u8 __iomem *hns_mac_get_vaddr(struct dsaf_device *dsaf_dev, in hns_mac_get_vaddr()
911 int hns_mac_get_cfg(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb) in hns_mac_get_cfg()
952 static int hns_mac_get_max_port_num(struct dsaf_device *dsaf_dev) in hns_mac_get_max_port_num()
965 int hns_mac_init(struct dsaf_device *dsaf_dev) in hns_mac_init()
1027 void hns_mac_uninit(struct dsaf_device *dsaf_dev) in hns_mac_uninit()
Dhns_dsaf_mac.h19 struct dsaf_device;
312 struct dsaf_device *dsaf_dev;
432 int hns_mac_init(struct dsaf_device *dsaf_dev);
442 void hns_mac_uninit(struct dsaf_device *dsaf_dev);
Dhns_dsaf_xgmac.c118 struct dsaf_device *dsaf_dev in hns_xgmac_enable()
119 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_enable()
146 struct dsaf_device *dsaf_dev in hns_xgmac_disable()
147 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_disable()
197 struct dsaf_device *dsaf_dev in hns_xgmac_init()
198 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_init()
423 struct dsaf_device *dsaf_dev in hns_xgmac_free()
424 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_free()
Dhns_dsaf_misc.h36 struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
Dhns_dsaf_rcb.c630 int hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev) in hns_rcb_get_ring_num()
668 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_vaddr()
675 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_paddr()
680 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_get_cfg()
713 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_free_cfg()
723 struct dsaf_device *dsaf_dev = ring->rcb_common->dsaf_dev; in hns_rcb_update_stats()
Dhns_dsaf_gmac.c107 struct dsaf_device *dsaf_dev in hns_gmac_free()
108 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_gmac_free()
314 struct dsaf_device *dsaf_dev in hns_gmac_init()
315 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_gmac_init()