Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_main.c83 dev_err(dsaf_dev->dev, in hns_dsaf_get_cfg()
176 dev_dbg(dsaf_dev->dev, in hns_dsaf_get_cfg()
183 dev_err(dsaf_dev->dev, in hns_dsaf_get_cfg()
191 dev_err(dsaf_dev->dev, in hns_dsaf_get_cfg()
196 dsaf_dev->misc_op = hns_misc_op_get(dsaf_dev); in hns_dsaf_get_cfg()
764 if (AE_IS_VER1(dsaf_dev->dsaf_ver) && !HNS_DSAF_IS_DEBUG(dsaf_dev)) in hns_dsaf_set_promisc_mode()
1406 dsaf_dev->misc_op->dsaf_reset(dsaf_dev, 0); in hns_dsaf_init_hw()
1408 dsaf_dev->misc_op->dsaf_reset(dsaf_dev, 1); in hns_dsaf_init_hw()
1436 dsaf_dev->misc_op->dsaf_reset(dsaf_dev, 0); in hns_dsaf_remove_hw()
2101 return dsaf_dev; in hns_dsaf_alloc_dev()
[all …]
H A Dhns_dsaf_misc.c35 if (dsaf_dev->sub_ctrl) in dsaf_write_sub()
38 dsaf_write_reg(dsaf_dev->sc_base, reg, val); in dsaf_write_sub()
46 if (dsaf_dev->sub_ctrl) { in dsaf_read_sub()
52 ret = dsaf_read_reg(dsaf_dev->sc_base, reg); in dsaf_read_sub()
339 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) { in hns_dsaf_ge_srst_by_port()
368 reg_val_1 <<= dsaf_dev->reset_offset; in hns_dsaf_ge_srst_by_port()
369 reg_val_2 <<= dsaf_dev->reset_offset; in hns_dsaf_ge_srst_by_port()
422 if (!(dev_of_node(dsaf_dev->dev))) in hns_ppe_com_srst()
425 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) { in hns_ppe_com_srst()
458 if (HNS_DSAF_IS_DEBUG(mac_cb->dsaf_dev)) in hns_mac_get_phy_if()
[all …]
H A Dhns_dsaf_mac.c276 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_change_vf_addr() local
317 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_add_uc_addr() local
337 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_rm_uc_addr() local
358 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_set_multi() local
372 dev_err(dsaf_dev->dev, in hns_mac_set_multi()
385 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_clr_multicast() local
417 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_port_config_bc_en() local
450 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_vm_config_bc_en() local
1023 mac_cb->dsaf_dev = dsaf_dev; in hns_mac_get_cfg()
1042 dev_err(dsaf_dev->dev, in hns_mac_get_cfg()
[all …]
H A Dhns_dsaf_main.h189 struct dsaf_device *dsaf_dev; member
329 return (void *)((u8 *)dsaf_dev + sizeof(*dsaf_dev)); in hns_dsaf_dev_priv()
372 dsaf_set_dev_field(dsaf_dev, DSAF_TBL_TCAM_ADDR_0_REG, in hns_dsaf_tbl_tcam_addr_cfg()
381 o_tbl_pul = dsaf_read_dev(dsaf_dev, DSAF_TBL_PUL_0_REG); in hns_dsaf_tbl_tcam_load_pul()
383 dsaf_write_dev(dsaf_dev, DSAF_TBL_PUL_0_REG, o_tbl_pul); in hns_dsaf_tbl_tcam_load_pul()
385 dsaf_write_dev(dsaf_dev, DSAF_TBL_PUL_0_REG, o_tbl_pul); in hns_dsaf_tbl_tcam_load_pul()
391 dsaf_set_dev_field(dsaf_dev, DSAF_TBL_LINE_ADDR_0_REG, in hns_dsaf_tbl_line_addr_cfg()
412 int hns_dsaf_ae_init(struct dsaf_device *dsaf_dev);
413 void hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev);
420 struct dsaf_device *dsaf_dev);
[all …]
H A Dhns_ae_adapt.c73 struct dsaf_device *dsaf_dev; in hns_ae_get_handle() local
120 vf_cb->dsaf_dev = dsaf_dev; in hns_ae_get_handle()
151 struct dsaf_device *dsaf_dev; in hns_ae_wait_flow_down() local
169 if (!dsaf_dev) in hns_ae_wait_flow_down()
476 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_get_pauseparam() local
499 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_set_pauseparam() local
593 struct dsaf_device *dsaf_dev; in hns_ae_get_coalesce_range() local
623 struct dsaf_device *dsaf_dev; in hns_ae_update_stats() local
633 if (!dsaf_dev) in hns_ae_update_stats()
786 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_config_loopback() local
[all …]
H A Dhns_dsaf_ppe.c86 ppe_common->dsaf_dev = dsaf_dev; in hns_ppe_common_get_cfg()
197 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; in hns_ppe_common_init_hw() local
200 dsaf_dev->misc_op->ppe_comm_srst(dsaf_dev, 0); in hns_ppe_common_init_hw()
202 dsaf_dev->misc_op->ppe_comm_srst(dsaf_dev, 1); in hns_ppe_common_init_hw()
303 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; in hns_ppe_init_hw() local
309 dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 0); in hns_ppe_init_hw()
311 dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 1); in hns_ppe_init_hw()
351 struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; in hns_ppe_uninit_hw() local
354 dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 0); in hns_ppe_uninit_hw()
374 if (dsaf_dev->ppe_common[i]) in hns_ppe_uninit()
[all …]
H A Dhns_dsaf_rcb.c373 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_common_init_hw()
615 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_coalesce_usecs()
643 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_tx_coalesced_frames()
721 switch (dsaf_dev->dsaf_mode) { in hns_rcb_get_ring_num()
748 dev_warn(dsaf_dev->dev, in hns_rcb_get_ring_num()
750 dsaf_dev->dsaf_mode); in hns_rcb_get_ring_num()
757 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_vaddr() local
764 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_paddr() local
779 devm_kzalloc(dsaf_dev->dev, in hns_rcb_common_get_cfg()
788 rcb_common->dsaf_dev = dsaf_dev; in hns_rcb_common_get_cfg()
[all …]
H A Dhns_dsaf_ppe.h87 struct dsaf_device *dsaf_dev; member
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);
H A Dhns_dsaf_rcb.h103 struct dsaf_device *dsaf_dev; member
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);
H A Dhns_dsaf_gmac.c109 struct dsaf_device *dsaf_dev in hns_gmac_free() local
114 dsaf_dev->misc_op->ge_srst(dsaf_dev, mac_id, 0); in hns_gmac_free()
336 struct dsaf_device *dsaf_dev in hns_gmac_init() local
341 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 0); in hns_gmac_init()
343 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 1); in hns_gmac_init()
H A Dhns_dsaf_misc.h32 struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
H A Dhns_dsaf_xgmac.c209 struct dsaf_device *dsaf_dev in hns_xgmac_init() local
213 dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 0); in hns_xgmac_init()
215 dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 1); in hns_xgmac_init()
412 struct dsaf_device *dsaf_dev in hns_xgmac_free() local
417 dsaf_dev->misc_op->xge_srst(dsaf_dev, mac_id, 0); in hns_xgmac_free()
H A Dhns_dsaf_mac.h305 struct dsaf_device *dsaf_dev; member
424 int hns_mac_init(struct dsaf_device *dsaf_dev);
434 void hns_mac_uninit(struct dsaf_device *dsaf_dev);