Searched refs:misc_op (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_misc.c | 709 struct dsaf_misc_op *misc_op; in hns_misc_op_get() local 711 misc_op = devm_kzalloc(dsaf_dev->dev, sizeof(*misc_op), GFP_KERNEL); in hns_misc_op_get() 712 if (!misc_op) in hns_misc_op_get() 716 misc_op->cpld_set_led = hns_cpld_set_led; in hns_misc_op_get() 717 misc_op->cpld_reset_led = cpld_led_reset; in hns_misc_op_get() 718 misc_op->cpld_set_led_id = cpld_set_led_id; in hns_misc_op_get() 720 misc_op->dsaf_reset = hns_dsaf_rst; in hns_misc_op_get() 721 misc_op->xge_srst = hns_dsaf_xge_srst_by_port; in hns_misc_op_get() 722 misc_op->ge_srst = hns_dsaf_ge_srst_by_port; in hns_misc_op_get() 723 misc_op->ppe_srst = hns_ppe_srst_by_port; in hns_misc_op_get() [all …]
|
D | hns_dsaf_ppe.c | 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() 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() 357 dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 0); in hns_ppe_uninit_hw()
|
D | hns_dsaf_mac.c | 82 ret = mac_cb->dsaf_dev->misc_op->get_sfp_prsnt(mac_cb, in hns_mac_get_link_status() 539 mac_cb->dsaf_dev->misc_op->cpld_reset_led(mac_cb); in hns_mac_stop() 1009 mac_cb->phy_if = dsaf_dev->misc_op->get_phy_if(mac_cb); in hns_mac_get_cfg() 1024 mac_cb->dsaf_dev->misc_op->cpld_reset_led(mac_cb); in hns_mac_get_cfg() 1130 dsaf_dev->misc_op->cpld_reset_led(dsaf_dev->mac_cb[i]); in hns_mac_uninit() 1216 mac_cb->dsaf_dev->misc_op->cpld_set_led(mac_cb, (int)mac_cb->link, in hns_set_led_opt() 1226 return mac_cb->dsaf_dev->misc_op->cpld_set_led_id(mac_cb, status); in hns_cpld_led_set_id()
|
D | hns_dsaf_gmac.c | 114 dsaf_dev->misc_op->ge_srst(dsaf_dev, mac_id, 0); in hns_gmac_free() 357 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 0); in hns_gmac_init() 359 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 1); in hns_gmac_init()
|
D | hns_dsaf_main.c | 196 dsaf_dev->misc_op = hns_misc_op_get(dsaf_dev); in hns_dsaf_get_cfg() 197 if (!dsaf_dev->misc_op) in hns_dsaf_get_cfg() 1402 dsaf_dev->misc_op->dsaf_reset(dsaf_dev, 0); in hns_dsaf_init_hw() 1404 dsaf_dev->misc_op->dsaf_reset(dsaf_dev, 1); in hns_dsaf_init_hw() 1432 dsaf_dev->misc_op->dsaf_reset(dsaf_dev, 0); in hns_dsaf_remove_hw() 3108 dsaf_dev->misc_op->hns_dsaf_srst_chns(dsaf_dev, DSAF_CHNS_MASK, in hns_dsaf_roce_reset() 3110 dsaf_dev->misc_op->hns_dsaf_roce_srst(dsaf_dev, false); in hns_dsaf_roce_reset() 3127 dsaf_dev->misc_op->hns_dsaf_srst_chns(dsaf_dev, DSAF_CHNS_MASK, in hns_dsaf_roce_reset() 3130 dsaf_dev->misc_op->hns_dsaf_roce_srst(dsaf_dev, true); in hns_dsaf_roce_reset()
|
D | hns_dsaf_xgmac.c | 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() 429 dsaf_dev->misc_op->xge_srst(dsaf_dev, mac_id, 0); in hns_xgmac_free()
|
D | hns_dsaf_main.h | 345 struct dsaf_misc_op *misc_op; member
|
D | hns_ae_adapt.c | 822 ret = dsaf_dev->misc_op->cfg_serdes_loopback(vf_cb->mac_cb, in hns_ae_config_loopback()
|