Searched refs:nic_cb (Results 1 – 2 of 2) sorted by relevance
610 struct hinic_nic_cb *nic_cb; in hinic_hwdev_cb_register() local621 nic_cb = &pfhwdev->nic_cb[cmd_cb]; in hinic_hwdev_cb_register()623 nic_cb->handler = handler; in hinic_hwdev_cb_register()624 nic_cb->handle = handle; in hinic_hwdev_cb_register()625 nic_cb->cb_state = HINIC_CB_ENABLED; in hinic_hwdev_cb_register()639 struct hinic_nic_cb *nic_cb; in hinic_hwdev_cb_unregister() local650 nic_cb = &pfhwdev->nic_cb[cmd_cb]; in hinic_hwdev_cb_unregister()652 nic_cb->cb_state &= ~HINIC_CB_ENABLED; in hinic_hwdev_cb_unregister()654 while (nic_cb->cb_state & HINIC_CB_RUNNING) in hinic_hwdev_cb_unregister()657 nic_cb->handler = NULL; in hinic_hwdev_cb_unregister()[all …]
246 struct hinic_nic_cb nic_cb[HINIC_MGMT_NUM_MSG_CMD]; member