Lines Matching defs:test
88 /* test interface constants */
274 * struct ca8210_test - ca8210 test interface structure
301 * @test: test interface data section for this instance
326 struct ca8210_test test;
571 * ca8210_test_int_driver_write() - Writes a message to the test interface to be
586 struct ca8210_test *test = &priv->test;
600 kfifo_in(&test->up_fifo, &fifo_buffer, 4);
601 wake_up_interruptible(&priv->test.readq);
678 * Presents a received SAP command from the ca8210 to the Cascoda EVBME, test
1956 /* Turn receiver on when idle for now just to test rx */
2365 * ca8210_test_int_open() - Opens the test interface to the userspace
2534 if (kfifo_is_empty(&priv->test.up_fifo))
2539 priv->test.readq,
2540 !kfifo_is_empty(&priv->test.up_fifo)
2544 if (kfifo_out(&priv->test.up_fifo, &fifo_buffer, 4) != 4) {
2617 poll_wait(filp, &priv->test.readq, ptable);
2618 if (!kfifo_is_empty(&priv->test.up_fifo))
2621 priv->test.readq,
2622 !kfifo_is_empty(&priv->test.up_fifo))) {
2940 * ca8210_test_interface_init() - Initialise the test file interface
2943 * Provided as an alternative to the standard linux network interface, the test
2952 struct ca8210_test *test = &priv->test;
2963 test->ca8210_dfs_spi_int = debugfs_create_file(
2972 init_waitqueue_head(&test->readq);
2974 &test->up_fifo,
2981 * ca8210_test_interface_clear() - Deinitialise the test file interface
2986 struct ca8210_test *test = &priv->test;
2988 debugfs_remove(test->ca8210_dfs_spi_int);
2989 kfifo_free(&test->up_fifo);