/linux/drivers/net/ethernet/hisilicon/hns/ |
A D | hns_dsaf_main.c | 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() 2178 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_dsaf_fix_mac_mode() local 3099 if (!dsaf_dev) { in hns_dsaf_roce_reset() 3116 dsaf_dev->misc_op->hns_dsaf_srst_chns(dsaf_dev, DSAF_CHNS_MASK, in hns_dsaf_roce_reset() 3118 dsaf_dev->misc_op->hns_dsaf_roce_srst(dsaf_dev, false); in hns_dsaf_roce_reset() [all …]
|
A D | hns_dsaf_misc.c | 35 if (dsaf_dev->sub_ctrl) in dsaf_write_sub() 46 if (dsaf_dev->sub_ctrl) { in dsaf_read_sub() 350 dsaf_write_sub(dsaf_dev, reg_addr, msk); in hns_dsaf_srst_chns() 377 dsaf_write_sub(dsaf_dev, in hns_dsaf_roce_srst() 379 dsaf_write_sub(dsaf_dev, in hns_dsaf_roce_srst() 402 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) { in hns_dsaf_ge_srst_by_port() 431 reg_val_1 <<= dsaf_dev->reset_offset; in hns_dsaf_ge_srst_by_port() 432 reg_val_2 <<= dsaf_dev->reset_offset; in hns_dsaf_ge_srst_by_port() 485 if (!(dev_of_node(dsaf_dev->dev))) in hns_ppe_com_srst() 488 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) { in hns_ppe_com_srst() [all …]
|
A D | hns_dsaf_mac.c | 247 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_change_vf_addr() local 288 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_add_uc_addr() local 308 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_rm_uc_addr() local 329 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_set_multi() local 343 dev_err(dsaf_dev->dev, in hns_mac_set_multi() 356 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_clr_multicast() local 388 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_port_config_bc_en() local 421 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_mac_vm_config_bc_en() local 993 mac_cb->dsaf_dev = dsaf_dev; in hns_mac_get_cfg() 1012 dev_err(dsaf_dev->dev, in hns_mac_get_cfg() [all …]
|
A D | hns_dsaf_main.h | 212 struct dsaf_device *dsaf_dev; member 355 return (void *)((u8 *)dsaf_dev + sizeof(*dsaf_dev)); in hns_dsaf_dev_priv() 398 dsaf_set_dev_field(dsaf_dev, DSAF_TBL_TCAM_ADDR_0_REG, in hns_dsaf_tbl_tcam_addr_cfg() 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() 417 dsaf_set_dev_field(dsaf_dev, DSAF_TBL_LINE_ADDR_0_REG, in hns_dsaf_tbl_line_addr_cfg() 438 int hns_dsaf_ae_init(struct dsaf_device *dsaf_dev); 439 void hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev); 446 struct dsaf_device *dsaf_dev); [all …]
|
A D | hns_ae_adapt.c | 73 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() 792 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_ae_config_loopback() local [all …]
|
A D | hns_dsaf_ppe.c | 89 ppe_common->dsaf_dev = dsaf_dev; in hns_ppe_common_get_cfg() 200 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; in hns_ppe_common_init_hw() local 203 dsaf_dev->misc_op->ppe_comm_srst(dsaf_dev, 0); in hns_ppe_common_init_hw() 205 dsaf_dev->misc_op->ppe_comm_srst(dsaf_dev, 1); in hns_ppe_common_init_hw() 306 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; in hns_ppe_init_hw() local 312 dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 0); in hns_ppe_init_hw() 314 dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 1); in hns_ppe_init_hw() 354 struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; in hns_ppe_uninit_hw() local 357 dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 0); in hns_ppe_uninit_hw() 377 if (dsaf_dev->ppe_common[i]) in hns_ppe_uninit() [all …]
|
A D | hns_dsaf_rcb.c | 382 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_common_init_hw() 624 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_coalesce_usecs() 652 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_set_tx_coalesced_frames() 730 switch (dsaf_dev->dsaf_mode) { in hns_rcb_get_ring_num() 757 dev_warn(dsaf_dev->dev, in hns_rcb_get_ring_num() 759 dsaf_dev->dsaf_mode); in hns_rcb_get_ring_num() 766 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_vaddr() local 773 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; in hns_rcb_common_get_paddr() local 788 devm_kzalloc(dsaf_dev->dev, in hns_rcb_common_get_cfg() 797 rcb_common->dsaf_dev = dsaf_dev; in hns_rcb_common_get_cfg() [all …]
|
A D | hns_dsaf_ppe.h | 87 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);
|
A D | hns_dsaf_rcb.h | 103 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);
|
A D | hns_dsaf_gmac.c | 109 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()
|
A D | hns_dsaf_xgmac.c | 209 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()
|
A D | hns_dsaf_misc.h | 32 struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
|
A D | hns_dsaf_mac.h | 305 struct dsaf_device *dsaf_dev; member 424 int hns_mac_init(struct dsaf_device *dsaf_dev); 435 void hns_mac_uninit(struct dsaf_device *dsaf_dev);
|