Home
last modified time | relevance | path

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

/Linux-v4.19/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 (*ge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
312 void (*ppe_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
313 void (*ppe_comm_srst)(struct dsaf_device *dsaf_dev, bool dereset);
314 void (*hns_dsaf_srst_chns)(struct dsaf_device *dsaf_dev, u32 msk,
316 void (*hns_dsaf_roce_srst)(struct dsaf_device *dsaf_dev, bool dereset);
325 struct dsaf_device { struct
357 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument
[all …]
Dhns_dsaf_main.c45 static 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.c37 static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val) in dsaf_write_sub()
45 static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg) in dsaf_read_sub()
254 static void hns_dsaf_acpi_srst_by_port(struct dsaf_device *dsaf_dev, u8 op_type, in hns_dsaf_acpi_srst_by_port()
282 static void hns_dsaf_rst(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_rst()
299 static void hns_dsaf_rst_acpi(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_rst_acpi()
306 static void hns_dsaf_xge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, in hns_dsaf_xge_srst_by_port()
326 static void hns_dsaf_xge_srst_by_port_acpi(struct dsaf_device *dsaf_dev, in hns_dsaf_xge_srst_by_port_acpi()
344 hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) in hns_dsaf_srst_chns()
367 hns_dsaf_srst_chns_acpi(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) in hns_dsaf_srst_chns_acpi()
374 static void hns_dsaf_roce_srst(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_roce_srst()
[all …]
Dhns_dsaf_ppe.h91 struct dsaf_device *dsaf_dev;
104 int hns_ppe_init(struct dsaf_device *dsaf_dev);
106 void hns_ppe_uninit(struct dsaf_device *dsaf_dev);
108 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index);
Dhns_ae_adapt.c29 static struct dsaf_device *hns_ae_get_dsaf_dev(struct hnae_ae_dev *dev) in hns_ae_get_dsaf_dev()
31 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev()
47 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_q_num_per_vf()
53 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_vf_num_per_port()
59 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_base_ring_pair()
79 struct dsaf_device *dsaf_dev; in hns_ae_get_handle()
160 struct dsaf_device *dsaf_dev; in hns_ae_wait_flow_down()
484 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_get_pauseparam()
525 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_set_pauseparam()
560 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); in hns_ae_get_max_coalesced_frames()
[all …]
Dhns_dsaf_rcb.h107 struct dsaf_device *dsaf_dev;
120 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index);
121 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index);
Dhns_dsaf_ppe.c76 static int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg()
108 hns_ppe_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) in hns_ppe_common_free_cfg()
203 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; in hns_ppe_common_init_hw()
309 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; in hns_ppe_init_hw()
357 struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; in hns_ppe_uninit_hw()
375 void hns_ppe_uninit(struct dsaf_device *dsaf_dev) in hns_ppe_uninit()
392 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index) in hns_ppe_reset_common()
521 int hns_ppe_init(struct dsaf_device *dsaf_dev) in hns_ppe_init()
Dhns_dsaf_mac.c251 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_change_vf_addr()
292 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_add_uc_addr()
312 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_rm_uc_addr()
333 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_set_multi()
360 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_clr_multicast()
391 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_port_config_bc_en()
424 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_vm_config_bc_en()
962 hns_mac_get_vaddr(struct dsaf_device *dsaf_dev, in hns_mac_get_vaddr()
982 hns_mac_get_cfg(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb) in hns_mac_get_cfg()
1023 static int hns_mac_get_max_port_num(struct dsaf_device *dsaf_dev) in hns_mac_get_max_port_num()
[all …]
Dhns_dsaf_misc.h36 struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
Dhns_dsaf_mac.h19 struct dsaf_device;
309 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_rcb.c731 static int hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev) in hns_rcb_get_ring_num()
769 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_vaddr()
776 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_paddr()
781 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_get_cfg()
814 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_free_cfg()
824 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()
350 struct dsaf_device *dsaf_dev in hns_gmac_init()
351 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_gmac_init()
Dhns_dsaf_xgmac.c213 struct dsaf_device *dsaf_dev in hns_xgmac_init()
214 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_init()
428 struct dsaf_device *dsaf_dev in hns_xgmac_free()
429 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_free()