Lines Matching refs:msglen
173 static void vgen_handle_pkt_data_nop(void *arg1, void *arg2, uint32_t msglen);
175 uint32_t msglen);
205 void vgen_handle_pkt_data(void *arg1, void *arg2, uint32_t msglen);
213 extern int vgen_sendmsg(vgen_ldc_t *ldcp, caddr_t msg, size_t msglen,
927 if (size > (size_t)(ldcp->msglen - VIO_PKT_DATA_HDRSIZE)) {
2512 ldcp->msglen = VIO_PKT_DATA_HDRSIZE + vgenp->max_frame_size;
2513 ldcp->ldcmsg = kmem_alloc(ldcp->msglen, KM_SLEEP);
2545 kmem_free(ldcp->ldcmsg, ldcp->msglen);
2587 kmem_free(ldcp->ldcmsg, ldcp->msglen);
3111 size_t msglen;
3131 msglen = ldcp->msglen;
3132 rv = ldc_read(ldcp->ldc_handle, (caddr_t)ldcmsg, &msglen);
3136 "rv(%d) len(%d)\n", rv, msglen);
3141 if (msglen == 0) {
3145 DBG2(vgenp, ldcp, "ldc_read msglen(%d)", msglen);
3182 rv = vgen_handle_datamsg(ldcp, tagp, msglen);
3207 } while (msglen);
5319 vgen_handle_pkt_data(void *arg1, void *arg2, uint32_t msglen)
5336 size = msglen - VIO_PKT_DATA_HDRSIZE;
5406 vgen_handle_pkt_data_nop(void *arg1, void *arg2, uint32_t msglen)
5408 _NOTE(ARGUNUSED(arg1, arg2, msglen))
5413 vgen_handle_datamsg(vgen_ldc_t *ldcp, vio_msg_tag_t *tagp, uint32_t msglen)
5442 ldcp->rx_pktdata((void *)ldcp, (void *)tagp, msglen);