Home
last modified time | relevance | path

Searched refs:nic_cb (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_dev.c535 struct hinic_nic_cb *nic_cb; in hinic_hwdev_cb_register() local
541 nic_cb = &pfhwdev->nic_cb[cmd_cb]; in hinic_hwdev_cb_register()
543 nic_cb->handler = handler; in hinic_hwdev_cb_register()
544 nic_cb->handle = handle; in hinic_hwdev_cb_register()
545 nic_cb->cb_state = HINIC_CB_ENABLED; in hinic_hwdev_cb_register()
558 struct hinic_nic_cb *nic_cb; in hinic_hwdev_cb_unregister() local
567 nic_cb = &pfhwdev->nic_cb[cmd_cb]; in hinic_hwdev_cb_unregister()
569 nic_cb->cb_state &= ~HINIC_CB_ENABLED; in hinic_hwdev_cb_unregister()
571 while (nic_cb->cb_state & HINIC_CB_RUNNING) in hinic_hwdev_cb_unregister()
574 nic_cb->handler = NULL; in hinic_hwdev_cb_unregister()
[all …]
Dhinic_hw_dev.h468 struct hinic_nic_cb nic_cb[HINIC_MGMT_NUM_MSG_CMD]; member