Lines Matching refs:mbox_msg

42 				     struct hns_roce_mbox_msg *mbox_msg)  in hns_roce_cmd_mbox_post_hw()  argument
44 return hr_dev->hw->post_mbox(hr_dev, mbox_msg); in hns_roce_cmd_mbox_post_hw()
49 struct hns_roce_mbox_msg *mbox_msg) in __hns_roce_cmd_mbox_poll() argument
53 ret = hns_roce_cmd_mbox_post_hw(hr_dev, mbox_msg); in __hns_roce_cmd_mbox_poll()
57 mbox_msg->cmd, ret); in __hns_roce_cmd_mbox_poll()
65 struct hns_roce_mbox_msg *mbox_msg) in hns_roce_cmd_mbox_poll() argument
70 ret = __hns_roce_cmd_mbox_poll(hr_dev, mbox_msg); in hns_roce_cmd_mbox_poll()
95 struct hns_roce_mbox_msg *mbox_msg) in __hns_roce_cmd_mbox_wait() argument
116 mbox_msg->token = context->token; in __hns_roce_cmd_mbox_wait()
117 ret = hns_roce_cmd_mbox_post_hw(hr_dev, mbox_msg); in __hns_roce_cmd_mbox_wait()
121 mbox_msg->cmd, ret); in __hns_roce_cmd_mbox_wait()
128 context->token, mbox_msg->cmd); in __hns_roce_cmd_mbox_wait()
136 context->token, mbox_msg->cmd, ret); in __hns_roce_cmd_mbox_wait()
144 struct hns_roce_mbox_msg *mbox_msg) in hns_roce_cmd_mbox_wait() argument
149 ret = __hns_roce_cmd_mbox_wait(hr_dev, mbox_msg); in hns_roce_cmd_mbox_wait()
158 struct hns_roce_mbox_msg mbox_msg = {}; in hns_roce_cmd_mbox() local
165 mbox_msg.in_param = in_param; in hns_roce_cmd_mbox()
166 mbox_msg.out_param = out_param; in hns_roce_cmd_mbox()
167 mbox_msg.cmd = cmd; in hns_roce_cmd_mbox()
168 mbox_msg.tag = tag; in hns_roce_cmd_mbox()
171 mbox_msg.event_en = 1; in hns_roce_cmd_mbox()
173 return hns_roce_cmd_mbox_wait(hr_dev, &mbox_msg); in hns_roce_cmd_mbox()
175 mbox_msg.event_en = 0; in hns_roce_cmd_mbox()
176 mbox_msg.token = CMD_POLL_TOKEN; in hns_roce_cmd_mbox()
178 return hns_roce_cmd_mbox_poll(hr_dev, &mbox_msg); in hns_roce_cmd_mbox()