Home
last modified time | relevance | path

Searched refs:pf_to_mgmt (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/net/ethernet/huawei/hinic3/
H A Dhinic3_mgmt.c23 hinic3_mgmt_resp_msg_handler(struct hinic3_msg_pf_to_mgmt *pf_to_mgmt, in hinic3_mgmt_resp_msg_handler() argument
26 struct device *dev = pf_to_mgmt->hwdev->dev; in hinic3_mgmt_resp_msg_handler()
32 spin_lock(&pf_to_mgmt->sync_event_lock); in hinic3_mgmt_resp_msg_handler()
33 if (recv_msg->msg_id != pf_to_mgmt->sync_msg_id) { in hinic3_mgmt_resp_msg_handler()
35 pf_to_mgmt->sync_msg_id, recv_msg->msg_id, in hinic3_mgmt_resp_msg_handler()
36 pf_to_mgmt->event_flag); in hinic3_mgmt_resp_msg_handler()
37 } else if (pf_to_mgmt->event_flag == COMM_SEND_EVENT_START) { in hinic3_mgmt_resp_msg_handler()
38 pf_to_mgmt->event_flag = COMM_SEND_EVENT_SUCCESS; in hinic3_mgmt_resp_msg_handler()
42 pf_to_mgmt->sync_msg_id, recv_msg->msg_id, in hinic3_mgmt_resp_msg_handler()
43 pf_to_mgmt->event_flag); in hinic3_mgmt_resp_msg_handler()
[all …]
H A Dhinic3_hwdev.c627 recv_resp_msg = &hwdev->pf_to_mgmt->recv_resp_msg_from_mgmt; in hinic3_set_api_stop()
628 spin_lock_bh(&hwdev->pf_to_mgmt->sync_event_lock); in hinic3_set_api_stop()
629 if (hwdev->pf_to_mgmt->event_flag == COMM_SEND_EVENT_START) { in hinic3_set_api_stop()
631 hwdev->pf_to_mgmt->event_flag = COMM_SEND_EVENT_TIMEOUT; in hinic3_set_api_stop()
633 spin_unlock_bh(&hwdev->pf_to_mgmt->sync_event_lock); in hinic3_set_api_stop()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_mgmt.c27 #define SYNC_MSG_ID(pf_to_mgmt) ((pf_to_mgmt)->sync_msg_id) argument
29 #define SYNC_MSG_ID_INC(pf_to_mgmt) (SYNC_MSG_ID(pf_to_mgmt) = \ argument
30 ((SYNC_MSG_ID(pf_to_mgmt) + 1) & \
57 container_of(pf_mgmt, struct hinic_pfhwdev, pf_to_mgmt)
81 void hinic_register_mgmt_msg_cb(struct hinic_pf_to_mgmt *pf_to_mgmt, in hinic_register_mgmt_msg_cb() argument
89 struct hinic_mgmt_cb *mgmt_cb = &pf_to_mgmt->mgmt_cb[mod]; in hinic_register_mgmt_msg_cb()
101 void hinic_unregister_mgmt_msg_cb(struct hinic_pf_to_mgmt *pf_to_mgmt, in hinic_unregister_mgmt_msg_cb() argument
104 struct hinic_mgmt_cb *mgmt_cb = &pf_to_mgmt->mgmt_cb[mod]; in hinic_unregister_mgmt_msg_cb()
126 static u64 prepare_header(struct hinic_pf_to_mgmt *pf_to_mgmt, in prepare_header() argument
132 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in prepare_header()
[all …]
H A Dhinic_hw_mgmt.h149 struct hinic_pf_to_mgmt *pf_to_mgmt; member
160 void hinic_register_mgmt_msg_cb(struct hinic_pf_to_mgmt *pf_to_mgmt,
168 void hinic_unregister_mgmt_msg_cb(struct hinic_pf_to_mgmt *pf_to_mgmt,
171 int hinic_msg_to_mgmt(struct hinic_pf_to_mgmt *pf_to_mgmt,
176 int hinic_pf_to_mgmt_init(struct hinic_pf_to_mgmt *pf_to_mgmt,
179 void hinic_pf_to_mgmt_free(struct hinic_pf_to_mgmt *pf_to_mgmt);
H A Dhinic_hw_dev.c105 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_CFGM, in get_capability()
215 return hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_L2NIC, cmd, in hinic_port_msg_cmd()
228 return hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_HILINK, cmd, in hinic_hilink_msg_cmd()
293 return hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in set_hw_ioctxt()
362 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in clear_io_resources()
393 return hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, in set_resources_state()
744 err = hinic_pf_to_mgmt_init(&pfhwdev->pf_to_mgmt, hwif); in init_pfhwdev()
753 hinic_pf_to_mgmt_free(&pfhwdev->pf_to_mgmt); in init_pfhwdev()
758 hinic_register_mgmt_msg_cb(&pfhwdev->pf_to_mgmt, in init_pfhwdev()
761 hinic_register_mgmt_msg_cb(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in init_pfhwdev()
[all …]
H A Dhinic_hw_cmdq.c822 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in init_cmdqs_ctxt()
861 return hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in hinic_set_cmdq_depth()
H A Dhinic_hw_dev.h466 struct hinic_pf_to_mgmt pf_to_mgmt; member
H A Dhinic_hw_mbox.c531 ret = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in set_vf_mbox_random_id()
1386 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in comm_pf_mbox_handler()
H A Dhinic_hw_io.c505 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in hinic_set_wq_page_size()
H A Dhinic_hw_eqs.c559 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in set_ceq_ctrl_reg()
H A Dhinic_sriov.c1067 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_L2NIC, in nic_pf_mbox_handler()
H A Dhinic_port.c1304 err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM, in _set_led_status()