Lines Matching refs:msg

197 	struct scifmsg msg;  in scif_destroy_incomplete_window()  local
209 msg.uop = SCIF_FREE_VIRT; in scif_destroy_incomplete_window()
210 msg.src = ep->port; in scif_destroy_incomplete_window()
211 msg.payload[0] = ep->remote_ep; in scif_destroy_incomplete_window()
212 msg.payload[1] = window->alloc_handle.vaddr; in scif_destroy_incomplete_window()
213 msg.payload[2] = (u64)window; in scif_destroy_incomplete_window()
214 msg.payload[3] = SCIF_REGISTER; in scif_destroy_incomplete_window()
215 _scif_nodeqp_send(ep->remote_dev, &msg); in scif_destroy_incomplete_window()
646 struct scifmsg msg; in scif_send_scif_unregister() local
648 msg.uop = SCIF_UNREGISTER; in scif_send_scif_unregister()
649 msg.src = ep->port; in scif_send_scif_unregister()
650 msg.payload[0] = window->alloc_handle.vaddr; in scif_send_scif_unregister()
651 msg.payload[1] = (u64)window; in scif_send_scif_unregister()
652 return scif_nodeqp_send(ep->remote_dev, &msg); in scif_send_scif_unregister()
759 struct scifmsg msg; in scif_send_alloc_request() local
767 msg.uop = SCIF_ALLOC_REQ; in scif_send_alloc_request()
768 msg.payload[1] = window->nr_pages; in scif_send_alloc_request()
769 msg.payload[2] = (u64)&window->alloc_handle; in scif_send_alloc_request()
770 return _scif_nodeqp_send(ep->remote_dev, &msg); in scif_send_alloc_request()
784 struct scifmsg msg; in scif_prep_remote_window() local
825 msg.uop = SCIF_FREE_VIRT; in scif_prep_remote_window()
826 msg.src = ep->port; in scif_prep_remote_window()
827 msg.payload[0] = ep->remote_ep; in scif_prep_remote_window()
828 msg.payload[1] = window->alloc_handle.vaddr; in scif_prep_remote_window()
829 msg.payload[2] = (u64)window; in scif_prep_remote_window()
830 msg.payload[3] = SCIF_REGISTER; in scif_prep_remote_window()
833 err = _scif_nodeqp_send(ep->remote_dev, &msg); in scif_prep_remote_window()
962 struct scifmsg msg; in scif_send_scif_register() local
964 msg.src = ep->port; in scif_send_scif_register()
965 msg.payload[0] = ep->remote_ep; in scif_send_scif_register()
966 msg.payload[1] = window->alloc_handle.vaddr; in scif_send_scif_register()
967 msg.payload[2] = (u64)window; in scif_send_scif_register()
970 msg.uop = SCIF_REGISTER; in scif_send_scif_register()
972 err = _scif_nodeqp_send(ep->remote_dev, &msg); in scif_send_scif_register()
988 msg.uop = SCIF_FREE_VIRT; in scif_send_scif_register()
989 msg.payload[3] = SCIF_REGISTER; in scif_send_scif_register()
990 err = _scif_nodeqp_send(ep->remote_dev, &msg); in scif_send_scif_register()
1057 void scif_alloc_req(struct scif_dev *scifdev, struct scifmsg *msg) in scif_alloc_req() argument
1061 int nr_pages = msg->payload[1]; in scif_alloc_req()
1070 msg->uop = SCIF_ALLOC_GNT; in scif_alloc_req()
1071 msg->payload[0] = (u64)window; in scif_alloc_req()
1072 msg->payload[1] = window->mapped_offset; in scif_alloc_req()
1073 err = scif_nodeqp_send(scifdev, msg); in scif_alloc_req()
1082 msg->uop = SCIF_ALLOC_REJ; in scif_alloc_req()
1083 scif_nodeqp_send(scifdev, msg); in scif_alloc_req()
1092 void scif_alloc_gnt_rej(struct scif_dev *scifdev, struct scifmsg *msg) in scif_alloc_gnt_rej() argument
1094 struct scif_allocmsg *handle = (struct scif_allocmsg *)msg->payload[2]; in scif_alloc_gnt_rej()
1100 handle->vaddr = msg->payload[0]; in scif_alloc_gnt_rej()
1101 handle->phys_addr = msg->payload[1]; in scif_alloc_gnt_rej()
1102 if (msg->uop == SCIF_ALLOC_GNT) in scif_alloc_gnt_rej()
1116 void scif_free_virt(struct scif_dev *scifdev, struct scifmsg *msg) in scif_free_virt() argument
1118 struct scif_window *window = (struct scif_window *)msg->payload[1]; in scif_free_virt()
1154 void scif_recv_reg(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_reg() argument
1156 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_reg()
1158 (struct scif_window *)msg->payload[1]; in scif_recv_reg()
1163 msg->uop = SCIF_REGISTER_ACK; in scif_recv_reg()
1164 scif_nodeqp_send(ep->remote_dev, msg); in scif_recv_reg()
1169 msg->uop = SCIF_REGISTER_NACK; in scif_recv_reg()
1170 scif_nodeqp_send(ep->remote_dev, msg); in scif_recv_reg()
1180 if (msg->uop == SCIF_REGISTER_NACK) in scif_recv_reg()
1190 void scif_recv_unreg(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_unreg() argument
1195 (struct scif_window *)msg->payload[0]; in scif_recv_unreg()
1206 msg->payload[0] = ep->remote_ep; in scif_recv_unreg()
1213 msg->uop = SCIF_UNREGISTER_ACK; in scif_recv_unreg()
1225 msg->uop = SCIF_UNREGISTER_ACK; in scif_recv_unreg()
1232 msg->uop = SCIF_UNREGISTER_NACK; in scif_recv_unreg()
1236 msg->uop = SCIF_UNREGISTER_ACK; in scif_recv_unreg()
1244 scif_nodeqp_send(ep->remote_dev, msg); in scif_recv_unreg()
1255 void scif_recv_reg_ack(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_reg_ack() argument
1258 (struct scif_window *)msg->payload[2]; in scif_recv_reg_ack()
1274 void scif_recv_reg_nack(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_reg_nack() argument
1277 (struct scif_window *)msg->payload[2]; in scif_recv_reg_nack()
1292 void scif_recv_unreg_ack(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_unreg_ack() argument
1295 (struct scif_window *)msg->payload[1]; in scif_recv_unreg_ack()
1311 void scif_recv_unreg_nack(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_unreg_nack() argument
1314 (struct scif_window *)msg->payload[1]; in scif_recv_unreg_nack()