Lines Matching refs:msgp

59 	ibmf_msg_t *msgp, void *args);
60 static void ibdma_create_resp_mad(ibmf_msg_t *msgp);
574 ibdma_create_resp_mad(ibmf_msg_t *msgp) in ibdma_create_resp_mad() argument
579 msgp->im_msgbufs_send.im_bufs_mad_hdr = in ibdma_create_resp_mad()
582 msgp->im_msgbufs_send.im_bufs_cl_hdr = (uchar_t *) in ibdma_create_resp_mad()
583 msgp->im_msgbufs_send.im_bufs_mad_hdr + sizeof (ib_mad_hdr_t); in ibdma_create_resp_mad()
584 msgp->im_msgbufs_send.im_bufs_cl_hdr_len = IBDMA_DM_MAD_HDR_SIZE; in ibdma_create_resp_mad()
585 msgp->im_msgbufs_send.im_bufs_cl_data = in ibdma_create_resp_mad()
586 ((char *)msgp->im_msgbufs_send.im_bufs_cl_hdr + in ibdma_create_resp_mad()
588 msgp->im_msgbufs_send.im_bufs_cl_data_len = in ibdma_create_resp_mad()
590 (void) memcpy(msgp->im_msgbufs_send.im_bufs_mad_hdr, in ibdma_create_resp_mad()
591 msgp->im_msgbufs_recv.im_bufs_mad_hdr, IBDMA_MAD_SIZE); in ibdma_create_resp_mad()
598 if (msgp->im_msg_flags & IBMF_MSG_FLAGS_GLOBAL_ADDRESS) { in ibdma_create_resp_mad()
599 ib_gid_t temp = msgp->im_global_addr.ig_recver_gid; in ibdma_create_resp_mad()
601 msgp->im_global_addr.ig_recver_gid = in ibdma_create_resp_mad()
602 msgp->im_global_addr.ig_sender_gid; in ibdma_create_resp_mad()
603 msgp->im_global_addr.ig_sender_gid = temp; in ibdma_create_resp_mad()
613 ibdma_mad_send_cb(ibmf_handle_t ibmf_hdl, ibmf_msg_t *msgp, void *arg) in ibdma_mad_send_cb() argument
618 if (msgp->im_msgbufs_send.im_bufs_mad_hdr != NULL) { in ibdma_mad_send_cb()
619 kmem_free(msgp->im_msgbufs_send.im_bufs_mad_hdr, in ibdma_mad_send_cb()
621 msgp->im_msgbufs_send.im_bufs_mad_hdr = NULL; in ibdma_mad_send_cb()
623 if (ibmf_free_msg(ibmf_hdl, &msgp) != IBMF_SUCCESS) { in ibdma_mad_send_cb()
632 ibdma_mad_recv_cb(ibmf_handle_t ibmf_hdl, ibmf_msg_t *msgp, void *args) in ibdma_mad_recv_cb() argument
639 ASSERT(msgp != NULL); in ibdma_mad_recv_cb()
642 if (msgp->im_msg_status != IBMF_SUCCESS) { in ibdma_mad_recv_cb()
644 msgp->im_msg_status); in ibdma_mad_recv_cb()
648 in_mad = msgp->im_msgbufs_recv.im_bufs_mad_hdr; in ibdma_mad_recv_cb()
657 ibdma_create_resp_mad(msgp); in ibdma_mad_recv_cb()
658 out_mad = msgp->im_msgbufs_send.im_bufs_mad_hdr; in ibdma_mad_recv_cb()
687 ibdma_get_class_portinfo(msgp); in ibdma_mad_recv_cb()
691 ibdma_get_io_unitinfo(port->ip_hcap, msgp); in ibdma_mad_recv_cb()
695 ibdma_get_ioc_profile(port->ip_hcap, msgp); in ibdma_mad_recv_cb()
699 ibdma_get_ioc_services(port->ip_hcap, msgp); in ibdma_mad_recv_cb()
709 msgp, NULL, ibdma_mad_send_cb, NULL, 0); in ibdma_mad_recv_cb()
712 ibdma_mad_send_cb(ibmf_hdl, msgp, NULL); in ibdma_mad_recv_cb()
717 status = ibmf_free_msg(ibmf_hdl, &msgp); in ibdma_mad_recv_cb()