Searched refs:nic_cb (Results 1 – 2 of 2) sorted by relevance
535 struct hinic_nic_cb *nic_cb; in hinic_hwdev_cb_register() local541 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() local567 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 …]
402 struct hinic_nic_cb nic_cb[HINIC_MGMT_NUM_MSG_CMD]; member