Lines Matching refs:q1

18 static struct eth_ivshmem_queue q1, q2;  variable
28 &q1, (uintptr_t)shmem_buff[0], in test_init_queues()
60 zassert_equal(q1.desc_max_len, VRING_DESC_LEN); in ZTEST()
61 zassert_equal(q1.vring_header_size, VRING_HEADER_SIZE); in ZTEST()
62 zassert_equal(q1.vring_data_max_len, VRING_DATA_MAX_LEN); in ZTEST()
63 zassert_equal_ptr(q1.tx.shmem, shmem_buff[0]); in ZTEST()
64 zassert_equal_ptr(q1.rx.shmem, shmem_buff[1]); in ZTEST()
74 zassert_ok(queue_tx(&q1, &x, sizeof(x))); in ZTEST()
88 zassert_ok(queue_tx(&q1, &q1_tx_data, sizeof(q1_tx_data))); in ZTEST()
102 zassert_ok(eth_ivshmem_queue_rx(&q1, &rx_message, &rx_len)); in ZTEST()
105 zassert_ok(eth_ivshmem_queue_rx_complete(&q1)); in ZTEST()
111 zassert_equal(eth_ivshmem_queue_rx(&q1, &rx_message, &rx_len), -EWOULDBLOCK); in ZTEST()
114 zassert_equal(eth_ivshmem_queue_rx_complete(&q1), -EWOULDBLOCK); in ZTEST()
117 zassert_equal(eth_ivshmem_queue_tx_commit_buff(&q1), -EINVAL); in ZTEST()
123 zassert_ok(eth_ivshmem_queue_tx_get_buff(&q1, &data, KB(1))); in ZTEST()
131 zassert_ok(queue_tx(&q1, &i, sizeof(i))); in ZTEST()
137 zassert_equal(queue_tx(&q1, &x, sizeof(x)), -ENOBUFS); in ZTEST()
149 zassert_ok(queue_tx(&q1, &i, sizeof(i))); in ZTEST()
153 zassert_equal(queue_tx(&q1, &x, sizeof(x)), -ENOBUFS); in ZTEST()
162 zassert_ok(queue_tx(&q1, large_message, sizeof(large_message))); in ZTEST()
166 zassert_equal(queue_tx(&q1, large_message, sizeof(large_message)), -ENOBUFS); in ZTEST()
174 zassert_ok(queue_tx(&q1, large_message, sizeof(large_message))); in ZTEST()
177 zassert_equal(queue_tx(&q1, large_message, sizeof(large_message)), -ENOBUFS); in ZTEST()