Lines Matching refs:msglen
749 u32 msglen = hv_pkt_datalen(desc); in netvsc_send_completion() local
752 if (msglen < sizeof(struct nvsp_message_header)) { in netvsc_send_completion()
753 netdev_err(ndev, "nvsp_message length too small: %u\n", msglen); in netvsc_send_completion()
759 if (msglen < sizeof(struct nvsp_message_header) + in netvsc_send_completion()
762 msglen); in netvsc_send_completion()
768 if (msglen < sizeof(struct nvsp_message_header) + in netvsc_send_completion()
771 msglen); in netvsc_send_completion()
777 if (msglen < sizeof(struct nvsp_message_header) + in netvsc_send_completion()
780 msglen); in netvsc_send_completion()
786 if (msglen < sizeof(struct nvsp_message_header) + in netvsc_send_completion()
789 msglen); in netvsc_send_completion()
1179 u32 msglen = hv_pkt_datalen(desc); in netvsc_receive() local
1187 if (msglen < sizeof(struct nvsp_message_header)) { in netvsc_receive()
1190 msglen); in netvsc_receive()
1272 u32 msglen) in netvsc_send_table() argument
1279 if (msglen < sizeof(struct nvsp_message_header) + in netvsc_send_table()
1281 netdev_err(ndev, "nvsp_v5_msg length too small: %u\n", msglen); in netvsc_send_table()
1297 msglen >= sizeof(struct nvsp_message_header) + in netvsc_send_table()
1303 if (offset > msglen - count * sizeof(u32)) { in netvsc_send_table()
1317 u32 msglen) in netvsc_send_vf() argument
1322 if (msglen < sizeof(struct nvsp_message_header) + in netvsc_send_vf()
1324 netdev_err(ndev, "nvsp_v4_msg length too small: %u\n", msglen); in netvsc_send_vf()
1344 u32 msglen = hv_pkt_datalen(desc); in netvsc_receive_inband() local
1347 if (msglen < sizeof(struct nvsp_message_header)) { in netvsc_receive_inband()
1348 netdev_err(ndev, "inband nvsp_message length too small: %u\n", msglen); in netvsc_receive_inband()
1354 netvsc_send_table(ndev, nvscdev, nvmsg, msglen); in netvsc_receive_inband()
1358 netvsc_send_vf(ndev, nvmsg, msglen); in netvsc_receive_inband()