Searched refs:dsaf_device (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_main.h | 212 struct dsaf_device *dsaf_dev; 305 void (*dsaf_reset)(struct dsaf_device *dsaf_dev, bool dereset); 306 void (*xge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 307 void (*ge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 308 void (*ppe_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 309 void (*ppe_comm_srst)(struct dsaf_device *dsaf_dev, bool dereset); 310 void (*hns_dsaf_srst_chns)(struct dsaf_device *dsaf_dev, u32 msk, 312 void (*hns_dsaf_roce_srst)(struct dsaf_device *dsaf_dev, bool dereset); 321 struct dsaf_device { struct 353 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument [all …]
|
D | hns_dsaf_main.c | 41 static int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_get_cfg() 212 static void hns_dsaf_sbm_link_sram_init_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_link_sram_init_en() 223 hns_dsaf_reg_cnt_clr_ce(struct dsaf_device *dsaf_dev, u32 reg_cnt_clr_ce) in hns_dsaf_reg_cnt_clr_ce() 235 hns_dsaf_ppe_qid_cfg(struct dsaf_device *dsaf_dev, u32 qid_cfg) in hns_dsaf_ppe_qid_cfg() 247 static void hns_dsaf_mix_def_qid_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_mix_def_qid_cfg() 264 static void hns_dsaf_inner_qid_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_inner_qid_cfg() 291 static void hns_dsaf_sw_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_sw_port_type_cfg() 309 static void hns_dsaf_stp_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_stp_port_type_cfg() 328 static void hns_dsaf_sbm_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg() 347 static int hns_dsaf_sbm_cfg_mib_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg_mib_en() [all …]
|
D | hns_dsaf_misc.c | 33 static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val) in dsaf_write_sub() 41 static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg) in dsaf_read_sub() 250 static void hns_dsaf_acpi_srst_by_port(struct dsaf_device *dsaf_dev, u8 op_type, in hns_dsaf_acpi_srst_by_port() 278 static void hns_dsaf_rst(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_rst() 295 static void hns_dsaf_rst_acpi(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_rst_acpi() 302 static void hns_dsaf_xge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, in hns_dsaf_xge_srst_by_port() 322 static void hns_dsaf_xge_srst_by_port_acpi(struct dsaf_device *dsaf_dev, in hns_dsaf_xge_srst_by_port_acpi() 341 hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) in hns_dsaf_srst_chns() 365 hns_dsaf_srst_chns_acpi(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) in hns_dsaf_srst_chns_acpi() 372 static void hns_dsaf_roce_srst(struct dsaf_device *dsaf_dev, bool dereset) in hns_dsaf_roce_srst() [all …]
|
D | hns_dsaf_ppe.h | 87 struct dsaf_device *dsaf_dev; 100 int hns_ppe_init(struct dsaf_device *dsaf_dev); 102 void hns_ppe_uninit(struct dsaf_device *dsaf_dev); 104 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index);
|
D | hns_ae_adapt.c | 23 static struct dsaf_device *hns_ae_get_dsaf_dev(struct hnae_ae_dev *dev) in hns_ae_get_dsaf_dev() 25 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev() 41 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_q_num_per_vf() 47 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_vf_num_per_port() 53 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_base_ring_pair() 73 struct dsaf_device *dsaf_dev; in hns_ae_get_handle() 151 struct dsaf_device *dsaf_dev; in hns_ae_wait_flow_down() 476 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_get_pauseparam() 499 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_set_pauseparam() 534 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); in hns_ae_get_max_coalesced_frames() [all …]
|
D | hns_dsaf_ppe.c | 69 static int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg() 102 hns_ppe_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) in hns_ppe_common_free_cfg() 197 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; in hns_ppe_common_init_hw() 303 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; in hns_ppe_init_hw() 351 struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; in hns_ppe_uninit_hw() 369 void hns_ppe_uninit(struct dsaf_device *dsaf_dev) in hns_ppe_uninit() 387 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index) in hns_ppe_reset_common() 505 int hns_ppe_init(struct dsaf_device *dsaf_dev) in hns_ppe_init()
|
D | hns_dsaf_rcb.h | 103 struct dsaf_device *dsaf_dev; 116 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index); 117 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index);
|
D | hns_dsaf_mac.c | 276 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_change_vf_addr() 317 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_add_uc_addr() 337 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_rm_uc_addr() 358 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_set_multi() 385 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_clr_multicast() 417 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_port_config_bc_en() 450 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_vm_config_bc_en() 998 hns_mac_get_vaddr(struct dsaf_device *dsaf_dev, in hns_mac_get_vaddr() 1018 hns_mac_get_cfg(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb) in hns_mac_get_cfg() 1059 static int hns_mac_get_max_port_num(struct dsaf_device *dsaf_dev) in hns_mac_get_max_port_num() [all …]
|
D | hns_dsaf_mac.h | 15 struct dsaf_device; 305 struct dsaf_device *dsaf_dev; 424 int hns_mac_init(struct dsaf_device *dsaf_dev); 434 void hns_mac_uninit(struct dsaf_device *dsaf_dev);
|
D | hns_dsaf_misc.h | 32 struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
|
D | hns_dsaf_rcb.c | 724 static int hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev) in hns_rcb_get_ring_num() 762 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_vaddr() 769 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_paddr() 774 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_get_cfg() 808 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, in hns_rcb_common_free_cfg() 818 struct dsaf_device *dsaf_dev = ring->rcb_common->dsaf_dev; in hns_rcb_update_stats()
|
D | hns_dsaf_gmac.c | 109 struct dsaf_device *dsaf_dev in hns_gmac_free() 110 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_gmac_free() 336 struct dsaf_device *dsaf_dev in hns_gmac_init() 337 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_gmac_init()
|
D | hns_dsaf_xgmac.c | 209 struct dsaf_device *dsaf_dev in hns_xgmac_init() 210 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_init() 412 struct dsaf_device *dsaf_dev in hns_xgmac_free() 413 = (struct dsaf_device *)dev_get_drvdata(drv->dev); in hns_xgmac_free()
|