Searched refs:nic_cb (Results 1 – 2 of 2) sorted by relevance
541 struct hinic_nic_cb *nic_cb; in hinic_hwdev_cb_register() local547 nic_cb = &pfhwdev->nic_cb[cmd_cb]; in hinic_hwdev_cb_register()549 nic_cb->handler = handler; in hinic_hwdev_cb_register()550 nic_cb->handle = handle; in hinic_hwdev_cb_register()551 nic_cb->cb_state = HINIC_CB_ENABLED; in hinic_hwdev_cb_register()564 struct hinic_nic_cb *nic_cb; in hinic_hwdev_cb_unregister() local573 nic_cb = &pfhwdev->nic_cb[cmd_cb]; in hinic_hwdev_cb_unregister()575 nic_cb->cb_state &= ~HINIC_CB_ENABLED; in hinic_hwdev_cb_unregister()577 while (nic_cb->cb_state & HINIC_CB_RUNNING) in hinic_hwdev_cb_unregister()580 nic_cb->handler = NULL; in hinic_hwdev_cb_unregister()[all …]
402 struct hinic_nic_cb nic_cb[HINIC_MGMT_NUM_MSG_CMD]; member