Searched refs:dsaf_device (Results 1 – 12 of 12) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_main.h | 186 struct dsaf_device *dsaf_dev; 273 struct dsaf_device { struct 303 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument 342 static inline void hns_dsaf_tbl_tcam_addr_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_tcam_addr_cfg() 350 static inline void hns_dsaf_tbl_tcam_load_pul(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_tcam_load_pul() 361 static inline void hns_dsaf_tbl_line_addr_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_line_addr_cfg() 383 int hns_dsaf_set_mac_uc_entry(struct dsaf_device *dsaf_dev, 385 int hns_dsaf_set_mac_mc_entry(struct dsaf_device *dsaf_dev, 387 int hns_dsaf_add_mac_mc_port(struct dsaf_device *dsaf_dev, 389 int hns_dsaf_del_mac_entry(struct dsaf_device *dsaf_dev, u16 vlan_id, [all …]
|
D | hns_dsaf_main.c | 33 int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_get_cfg() 165 static void hns_dsaf_free_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_free_cfg() 187 static void hns_dsaf_sbm_link_sram_init_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_link_sram_init_en() 198 hns_dsaf_reg_cnt_clr_ce(struct dsaf_device *dsaf_dev, u32 reg_cnt_clr_ce) in hns_dsaf_reg_cnt_clr_ce() 210 hns_dsaf_ppe_qid_cfg(struct dsaf_device *dsaf_dev, u32 qid_cfg) in hns_dsaf_ppe_qid_cfg() 222 static void hns_dsaf_mix_def_qid_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_mix_def_qid_cfg() 246 static void hns_dsaf_sw_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_sw_port_type_cfg() 264 static void hns_dsaf_stp_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_stp_port_type_cfg() 281 static void hns_dsaf_sbm_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg() 300 static int hns_dsaf_sbm_cfg_mib_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg_mib_en() [all …]
|
D | hns_dsaf_rcb.h | 89 struct dsaf_device *dsaf_dev; 104 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index); 105 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index); 120 u32 hns_rcb_get_coalesced_frames(struct dsaf_device *dsaf_dev, int comm_index); 121 u32 hns_rcb_get_coalesce_usecs(struct dsaf_device *dsaf_dev, int comm_index); 122 void hns_rcb_set_coalesce_usecs(struct dsaf_device *dsaf_dev, 124 int hns_rcb_set_coalesced_frames(struct dsaf_device *dsaf_dev,
|
D | hns_dsaf_ppe.h | 79 struct dsaf_device *dsaf_dev; 91 int hns_ppe_init(struct dsaf_device *dsaf_dev); 93 void hns_ppe_uninit(struct dsaf_device *dsaf_dev); 95 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index);
|
D | hns_dsaf_misc.c | 85 void hns_dsaf_rst(struct dsaf_device *dsaf_dev, u32 val) in hns_dsaf_rst() 104 void hns_dsaf_xge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, u32 val) in hns_dsaf_xge_srst_by_port() 123 void hns_dsaf_xge_core_srst_by_port(struct dsaf_device *dsaf_dev, in hns_dsaf_xge_core_srst_by_port() 142 void hns_dsaf_ge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, u32 val) in hns_dsaf_ge_srst_by_port() 195 void hns_ppe_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, u32 val) in hns_ppe_srst_by_port() 213 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; in hns_ppe_com_srst()
|
D | hns_ae_adapt.c | 51 static struct dsaf_device *hns_ae_get_dsaf_dev(struct hnae_ae_dev *dev) in hns_ae_get_dsaf_dev() 53 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev() 76 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_q_num_per_vf() 84 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_vf_num_per_port() 92 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_base_ring_pair() 117 struct dsaf_device *dsaf_dev; in hns_ae_get_handle() 487 struct dsaf_device *dsaf_dev; in hns_ae_update_stats() 770 int hns_dsaf_ae_init(struct dsaf_device *dsaf_dev) in hns_dsaf_ae_init() 780 void hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev) in hns_dsaf_ae_uninit()
|
D | hns_dsaf_mac.c | 247 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_change_vf_addr() 289 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_set_multi() 325 struct dsaf_device *dsaf_dev; in hns_mac_del_mac() 374 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_port_config_bc_en() 409 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_vm_config_bc_en() 713 u8 __iomem *hns_mac_get_vaddr(struct dsaf_device *dsaf_dev, in hns_mac_get_vaddr() 733 int hns_mac_get_cfg(struct dsaf_device *dsaf_dev, int mac_idx) in hns_mac_get_cfg() 784 int hns_mac_init(struct dsaf_device *dsaf_dev) in hns_mac_init() 815 void hns_mac_uninit(struct dsaf_device *dsaf_dev) in hns_mac_uninit()
|
D | hns_dsaf_rcb.c | 496 u32 hns_rcb_get_coalesced_frames(struct dsaf_device *dsaf_dev, int port) in hns_rcb_get_coalesced_frames() 510 u32 hns_rcb_get_coalesce_usecs(struct dsaf_device *dsaf_dev, int comm_index) in hns_rcb_get_coalesce_usecs() 524 void hns_rcb_set_coalesce_usecs(struct dsaf_device *dsaf_dev, in hns_rcb_set_coalesce_usecs() 549 int hns_rcb_set_coalesced_frames(struct dsaf_device *dsaf_dev, in hns_rcb_set_coalesced_frames() 610 int hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev, int comm_index) in hns_rcb_get_ring_num() 649 void __iomem *hns_rcb_common_get_vaddr(struct dsaf_device *dsaf_dev, in hns_rcb_common_get_vaddr() 664 static phys_addr_t hns_rcb_common_get_paddr(struct dsaf_device *dsaf_dev, in hns_rcb_common_get_paddr() 687 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_get_cfg() 722 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_free_cfg() 732 struct dsaf_device *dsaf_dev = ring->rcb_common->dsaf_dev; in hns_rcb_update_stats()
|
D | hns_dsaf_ppe.c | 46 int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg() 77 void hns_ppe_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) in hns_ppe_common_free_cfg() 275 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; in hns_ppe_init_hw() 316 void hns_ppe_uninit(struct dsaf_device *dsaf_dev) in hns_ppe_uninit() 333 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index) in hns_ppe_reset_common() 459 int hns_ppe_init(struct dsaf_device *dsaf_dev) in hns_ppe_init()
|
D | hns_dsaf_mac.h | 18 struct dsaf_device; 309 struct dsaf_device *dsaf_dev; 423 int hns_mac_init(struct dsaf_device *dsaf_dev); 433 void hns_mac_uninit(struct dsaf_device *dsaf_dev);
|
D | hns_dsaf_xgmac.c | 118 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()
|
D | hns_dsaf_gmac.c | 108 struct dsaf_device *dsaf_dev in hns_gmac_free() 109 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_gmac_free() 297 struct dsaf_device *dsaf_dev in hns_gmac_init() 298 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_gmac_init()
|