Lines Matching refs:assert
107 assert(dev->sock != -1); in vdev_create_socket()
110 assert(ioctl(dev->sock, SIOCGIFINDEX, &ifr) >= 0); in vdev_create_socket()
115 assert(ioctl(dev->sock, SIOCGIFFLAGS, &ifr) >= 0); in vdev_create_socket()
117 assert(ioctl(dev->sock, SIOCSIFFLAGS, &ifr) >= 0); in vdev_create_socket()
135 assert(ret >= 0); in vdev_send_packet()
145 assert(r == sizeof(v)); in vq_notify()
164 assert(r >= 0); in vhost_vq_setup()
168 assert(r >= 0); in vhost_vq_setup()
171 assert(r >= 0); in vhost_vq_setup()
175 assert(r >= 0); in vhost_vq_setup()
187 assert(info->vq); in vq_reset()
200 assert(r >= 0); in vq_info_add()
205 assert(!r); in vq_info_add()
219 assert(dev->buf); in vdev_info_init()
233 assert(dev->control >= 0); in vdev_info_init()
236 assert(r >= 0); in vdev_info_init()
240 assert(dev->mem); in vdev_info_init()
249 assert(r >= 0); in vdev_info_init()
252 assert(r >= 0); in vdev_info_init()
272 assert(res_buf[i] == (char)i); in verify_res_buf()
314 assert(n == TEST_BUF_LEN); in run_tx_test()
325 assert(vq->completed <= bufs); in run_tx_test()
326 assert(vq->started <= bufs); in run_tx_test()
388 assert(len == TEST_BUF_LEN + HDR_LEN); in run_rx_test()
400 assert(vq->completed <= bufs); in run_rx_test()
401 assert(vq->started <= bufs); in run_rx_test()
508 assert(nbufs > 0); in main()
511 assert(0); in main()
521 assert(fd >= 0); in main()