Lines Matching refs:dsaf_dev
212 struct dsaf_device *dsaf_dev; member
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);
353 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument
355 return (void *)((u8 *)dsaf_dev + sizeof(*dsaf_dev)); in hns_dsaf_dev_priv()
395 static inline void hns_dsaf_tbl_tcam_addr_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_tcam_addr_cfg() argument
398 dsaf_set_dev_field(dsaf_dev, DSAF_TBL_TCAM_ADDR_0_REG, in hns_dsaf_tbl_tcam_addr_cfg()
403 static inline void hns_dsaf_tbl_tcam_load_pul(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_tcam_load_pul() argument
407 o_tbl_pul = dsaf_read_dev(dsaf_dev, DSAF_TBL_PUL_0_REG); in hns_dsaf_tbl_tcam_load_pul()
409 dsaf_write_dev(dsaf_dev, DSAF_TBL_PUL_0_REG, o_tbl_pul); in hns_dsaf_tbl_tcam_load_pul()
411 dsaf_write_dev(dsaf_dev, DSAF_TBL_PUL_0_REG, o_tbl_pul); in hns_dsaf_tbl_tcam_load_pul()
414 static inline void hns_dsaf_tbl_line_addr_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_line_addr_cfg() argument
417 dsaf_set_dev_field(dsaf_dev, DSAF_TBL_LINE_ADDR_0_REG, in hns_dsaf_tbl_line_addr_cfg()
428 int hns_dsaf_set_mac_uc_entry(struct dsaf_device *dsaf_dev,
430 int hns_dsaf_add_mac_mc_port(struct dsaf_device *dsaf_dev,
432 int hns_dsaf_del_mac_entry(struct dsaf_device *dsaf_dev, u16 vlan_id,
434 int hns_dsaf_del_mac_mc_port(struct dsaf_device *dsaf_dev,
438 int hns_dsaf_ae_init(struct dsaf_device *dsaf_dev);
439 void hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev);
441 void hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 inode_num);
443 int hns_dsaf_get_sset_count(struct dsaf_device *dsaf_dev, int stringset);
446 struct dsaf_device *dsaf_dev);
450 void hns_dsaf_set_promisc_mode(struct dsaf_device *dsaf_dev, u32 en);
451 void hns_dsaf_set_promisc_tcam(struct dsaf_device *dsaf_dev,
454 void hns_dsaf_get_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id,
456 int hns_dsaf_set_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id,
459 struct dsaf_device *dsaf_dev,
462 int hns_dsaf_clr_mac_mc_port(struct dsaf_device *dsaf_dev,
464 int hns_dsaf_wait_pkt_clean(struct dsaf_device *dsaf_dev, int port);