Searched refs:misc_op (Results 1 – 11 of 11) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_misc.c | 716 struct dsaf_misc_op *misc_op; in hns_misc_op_get() local 718 misc_op = devm_kzalloc(dsaf_dev->dev, sizeof(*misc_op), GFP_KERNEL); in hns_misc_op_get() 719 if (!misc_op) in hns_misc_op_get() 723 misc_op->cpld_set_led = hns_cpld_set_led; in hns_misc_op_get() 724 misc_op->cpld_reset_led = cpld_led_reset; in hns_misc_op_get() 725 misc_op->cpld_set_led_id = cpld_set_led_id; in hns_misc_op_get() 727 misc_op->dsaf_reset = hns_dsaf_rst; in hns_misc_op_get() 728 misc_op->xge_srst = hns_dsaf_xge_srst_by_port; in hns_misc_op_get() 729 misc_op->ge_srst = hns_dsaf_ge_srst_by_port; in hns_misc_op_get() 730 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() 540 mac_cb->dsaf_dev->misc_op->cpld_reset_led(mac_cb); in hns_mac_stop() 1008 mac_cb->phy_if = dsaf_dev->misc_op->get_phy_if(mac_cb); in hns_mac_get_cfg() 1023 mac_cb->dsaf_dev->misc_op->cpld_reset_led(mac_cb); in hns_mac_get_cfg() 1133 dsaf_dev->misc_op->cpld_reset_led(dsaf_dev->mac_cb[i]); in hns_mac_uninit() 1219 mac_cb->dsaf_dev->misc_op->cpld_set_led(mac_cb, (int)mac_cb->link, in hns_set_led_opt() 1229 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() 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()
|
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() 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() 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() 3135 dsaf_dev->misc_op->hns_dsaf_srst_chns(dsaf_dev, DSAF_CHNS_MASK, in hns_dsaf_roce_reset() 3138 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() 417 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 | 799 ret = dsaf_dev->misc_op->cfg_serdes_loopback(vf_cb->mac_cb, in hns_ae_config_loopback()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_mes.c | 834 if (!adev->mes.funcs->misc_op) { in amdgpu_mes_rreg() 839 r = adev->mes.funcs->misc_op(&adev->mes, &op_input); in amdgpu_mes_rreg() 859 if (!adev->mes.funcs->misc_op) { in amdgpu_mes_wreg() 865 r = adev->mes.funcs->misc_op(&adev->mes, &op_input); in amdgpu_mes_wreg() 886 if (!adev->mes.funcs->misc_op) { in amdgpu_mes_reg_write_reg_wait() 892 r = adev->mes.funcs->misc_op(&adev->mes, &op_input); in amdgpu_mes_reg_write_reg_wait() 911 if (!adev->mes.funcs->misc_op) { in amdgpu_mes_reg_wait() 917 r = adev->mes.funcs->misc_op(&adev->mes, &op_input); in amdgpu_mes_reg_wait()
|
D | amdgpu_mes.h | 302 int (*misc_op)(struct amdgpu_mes *mes, member
|
D | mes_v11_0.c | 453 .misc_op = mes_v11_0_misc_op,
|