dsaf_device
struct dsaf_device *dsaf_dev;
static struct dsaf_device *hns_ae_get_dsaf_dev(struct hnae_ae_dev *dev)
return container_of(dev, struct dsaf_device, ae_dev);
struct dsaf_device *dsaf_dev, int port)
struct dsaf_device *dsaf_dev, int port)
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev, int port)
struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev);
struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev);
struct dsaf_device *dsaf_dev;
struct dsaf_device *dsaf_dev;
struct dsaf_device *dsaf_dev;
struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev);
struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev);
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
int hns_dsaf_ae_init(struct dsaf_device *dsaf_dev)
void hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev
= (struct dsaf_device *)dev_get_drvdata(drv->dev);
struct dsaf_device *dsaf_dev
= (struct dsaf_device *)dev_get_drvdata(drv->dev);
hns_mac_get_cfg(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb)
static int hns_mac_get_max_port_num(struct dsaf_device *dsaf_dev)
int hns_mac_init(struct dsaf_device *dsaf_dev)
void hns_mac_uninit(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
hns_mac_get_vaddr(struct dsaf_device *dsaf_dev,
struct dsaf_device;
struct dsaf_device *dsaf_dev;
int hns_mac_init(struct dsaf_device *dsaf_dev);
void hns_mac_uninit(struct dsaf_device *dsaf_dev);
struct dsaf_device *dsaf_dev, u32 address,
struct dsaf_device *dsaf_dev, u32 address,
static void hns_dsaf_tbl_line_init(struct dsaf_device *dsaf_dev)
static void hns_dsaf_tbl_tcam_init(struct dsaf_device *dsaf_dev)
static void hns_dsaf_pfc_en_cfg(struct dsaf_device *dsaf_dev,
static void hns_dsaf_set_pfc_pause(struct dsaf_device *dsaf_dev,
int hns_dsaf_set_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id,
void hns_dsaf_get_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id,
static void hns_dsaf_comm_init(struct dsaf_device *dsaf_dev)
static void hns_dsaf_inode_init(struct dsaf_device *dsaf_dev)
static int hns_dsaf_sbm_init(struct dsaf_device *dsaf_dev)
static void hns_dsaf_tbl_init(struct dsaf_device *dsaf_dev)
static void hns_dsaf_voq_init(struct dsaf_device *dsaf_dev)
static int hns_dsaf_init_hw(struct dsaf_device *dsaf_dev)
static void hns_dsaf_remove_hw(struct dsaf_device *dsaf_dev)
static int hns_dsaf_init(struct dsaf_device *dsaf_dev)
static void hns_dsaf_free(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev,
static u16 hns_dsaf_find_empty_mac_entry(struct dsaf_device *dsaf_dev)
static u16 hns_dsaf_find_empty_mac_entry_reverse(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev,
static void hns_dsaf_setup_mc_mask(struct dsaf_device *dsaf_dev,
int hns_dsaf_add_mac_mc_port(struct dsaf_device *dsaf_dev,
int hns_dsaf_del_mac_entry(struct dsaf_device *dsaf_dev, u16 vlan_id,
int hns_dsaf_del_mac_mc_port(struct dsaf_device *dsaf_dev,
int hns_dsaf_clr_mac_mc_port(struct dsaf_device *dsaf_dev, u8 mac_id,
static struct dsaf_device *hns_dsaf_alloc_dev(struct device *dev,
struct dsaf_device *dsaf_dev;
static void hns_dsaf_free_dev(struct dsaf_device *dsaf_dev)
static void hns_dsaf_pfc_unit_cnt(struct dsaf_device *dsaf_dev, int mac_id,
static void hns_dsaf_sbm_link_sram_init_en(struct dsaf_device *dsaf_dev)
hns_dsaf_port_work_rate_cfg(struct dsaf_device *dsaf_dev, int mac_id,
struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev;
void hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 node_num)
hns_dsaf_reg_cnt_clr_ce(struct dsaf_device *dsaf_dev, u32 reg_cnt_clr_ce)
void hns_dsaf_get_regs(struct dsaf_device *ddev, u32 port, void *data)
hns_dsaf_ppe_qid_cfg(struct dsaf_device *dsaf_dev, u32 qid_cfg)
static void hns_dsaf_mix_def_qid_cfg(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev)
static u64 *hns_dsaf_get_node_stats(struct dsaf_device *ddev, u64 *data,
static void hns_dsaf_inner_qid_cfg(struct dsaf_device *dsaf_dev)
void hns_dsaf_get_stats(struct dsaf_device *ddev, u64 *data, int port)
int hns_dsaf_get_sset_count(struct dsaf_device *dsaf_dev, int stringset)
struct dsaf_device *dsaf_dev)
static void set_promisc_tcam_enable(struct dsaf_device *dsaf_dev, u32 port)
static void set_promisc_tcam_disable(struct dsaf_device *dsaf_dev, u32 port)
void hns_dsaf_set_promisc_tcam(struct dsaf_device *dsaf_dev,
int hns_dsaf_wait_pkt_clean(struct dsaf_device *dsaf_dev, int port)
static void hns_dsaf_sw_port_type_cfg(struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev;
struct dsaf_device *dsaf_dev = dev_get_drvdata(&pdev->dev);
static void hns_dsaf_stp_port_type_cfg(struct dsaf_device *dsaf_dev,
static void hns_dsaf_sbm_cfg(struct dsaf_device *dsaf_dev)
static int hns_dsaf_sbm_cfg_mib_en(struct dsaf_device *dsaf_dev)
static void hns_dsaf_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev)
static int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev)
static void hns_dsafv2_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev)
static void hns_dsaf_voq_bp_all_thrd_cfg(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev,
static void hns_dsaf_tbl_line_cfg(struct dsaf_device *dsaf_dev,
static void hns_dsaf_tbl_tcam_mcast_pul(struct dsaf_device *dsaf_dev)
static void hns_dsaf_tbl_line_pul(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev)
void hns_dsaf_set_promisc_mode(struct dsaf_device *dsaf_dev, u32 en)
static void hns_dsaf_tbl_stat_en(struct dsaf_device *dsaf_dev)
static void hns_dsaf_rocee_bp_en(struct dsaf_device *dsaf_dev)
static void hns_dsaf_int_xge_msk_set(struct dsaf_device *dsaf_dev,
static void hns_dsaf_int_ppe_msk_set(struct dsaf_device *dsaf_dev,
static void hns_dsaf_int_rocee_msk_set(struct dsaf_device *dsaf_dev,
hns_dsaf_int_tbl_msk_set(struct dsaf_device *dsaf_dev, u32 msk_set)
static void hns_dsaf_int_xge_src_clr(struct dsaf_device *dsaf_dev,
static void hns_dsaf_int_ppe_src_clr(struct dsaf_device *dsaf_dev,
static void hns_dsaf_int_rocee_src_clr(struct dsaf_device *dsaf_dev,
static void hns_dsaf_int_tbl_src_clr(struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev, u32 address,
struct dsaf_device *dsaf_dev, u32 address,
static void hns_dsaf_tcam_uc_cfg_vague(struct dsaf_device *dsaf_dev,
static void hns_dsaf_tcam_mc_cfg_vague(struct dsaf_device *dsaf_dev,
static void hns_dsaf_tcam_mc_invld(struct dsaf_device *dsaf_dev, u32 address)
struct dsaf_device *dsaf_dev;
void (*dsaf_reset)(struct dsaf_device *dsaf_dev, bool dereset);
void (*xge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
void (*ge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
void (*ppe_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset);
void (*ppe_comm_srst)(struct dsaf_device *dsaf_dev, bool dereset);
static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev)
static inline void hns_dsaf_tbl_tcam_addr_cfg(struct dsaf_device *dsaf_dev,
static inline void hns_dsaf_tbl_tcam_load_pul(struct dsaf_device *dsaf_dev)
static inline void hns_dsaf_tbl_line_addr_cfg(struct dsaf_device *dsaf_dev,
int hns_dsaf_set_mac_uc_entry(struct dsaf_device *dsaf_dev,
int hns_dsaf_add_mac_mc_port(struct dsaf_device *dsaf_dev,
int hns_dsaf_del_mac_entry(struct dsaf_device *dsaf_dev, u16 vlan_id,
int hns_dsaf_del_mac_mc_port(struct dsaf_device *dsaf_dev,
int hns_dsaf_ae_init(struct dsaf_device *dsaf_dev);
void hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev);
void hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 inode_num);
int hns_dsaf_get_sset_count(struct dsaf_device *dsaf_dev, int stringset);
void hns_dsaf_get_stats(struct dsaf_device *ddev, u64 *data, int port);
struct dsaf_device *dsaf_dev);
void hns_dsaf_get_regs(struct dsaf_device *ddev, u32 port, void *data);
void hns_dsaf_set_promisc_mode(struct dsaf_device *dsaf_dev, u32 en);
void hns_dsaf_set_promisc_tcam(struct dsaf_device *dsaf_dev,
void hns_dsaf_get_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id,
int hns_dsaf_set_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id,
struct dsaf_device *dsaf_dev,
int hns_dsaf_clr_mac_mc_port(struct dsaf_device *dsaf_dev,
int hns_dsaf_wait_pkt_clean(struct dsaf_device *dsaf_dev, int port);
static void hns_dsaf_acpi_srst_by_port(struct dsaf_device *dsaf_dev, u8 op_type,
static void hns_dsaf_rst(struct dsaf_device *dsaf_dev, bool dereset)
static void hns_dsaf_rst_acpi(struct dsaf_device *dsaf_dev, bool dereset)
static void hns_dsaf_xge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port,
static void hns_dsaf_xge_srst_by_port_acpi(struct dsaf_device *dsaf_dev,
static void hns_dsaf_ge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port,
static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val)
static void hns_dsaf_ge_srst_by_port_acpi(struct dsaf_device *dsaf_dev,
static void hns_ppe_srst_by_port(struct dsaf_device *dsaf_dev, u32 port,
static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg)
hns_ppe_srst_by_port_acpi(struct dsaf_device *dsaf_dev, u32 port, bool dereset)
static void hns_ppe_com_srst(struct dsaf_device *dsaf_dev, bool dereset)
struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev)
struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
hns_ppe_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index)
struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev;
struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev;
struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev;
void hns_ppe_uninit(struct dsaf_device *dsaf_dev)
void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index)
int hns_ppe_init(struct dsaf_device *dsaf_dev)
static int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index)
int hns_ppe_init(struct dsaf_device *dsaf_dev);
void hns_ppe_uninit(struct dsaf_device *dsaf_dev);
void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index);
struct dsaf_device *dsaf_dev;
static int hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev)
struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev;
struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev;
int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev,
void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev,
struct dsaf_device *dsaf_dev = ring->rcb_common->dsaf_dev;
struct dsaf_device *dsaf_dev;
int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index);
void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index);
struct dsaf_device *dsaf_dev
= (struct dsaf_device *)dev_get_drvdata(drv->dev);
struct dsaf_device *dsaf_dev
= (struct dsaf_device *)dev_get_drvdata(drv->dev);