Lines Matching defs:test
88 /* test interface constants */
316 * struct ca8210_test - ca8210 test interface structure
342 * @test: test interface data section for this instance
367 struct ca8210_test test;
612 * ca8210_test_int_driver_write() - Writes a message to the test interface to be
627 struct ca8210_test *test = &priv->test;
641 kfifo_in(&test->up_fifo, &fifo_buffer, 4);
642 wake_up_interruptible(&priv->test.readq);
719 * Presents a received SAP command from the ca8210 to the Cascoda EVBME, test
1999 /* Turn receiver on when idle for now just to test rx */
2408 * ca8210_test_int_open() - Opens the test interface to the userspace
2577 if (kfifo_is_empty(&priv->test.up_fifo))
2582 priv->test.readq,
2583 !kfifo_is_empty(&priv->test.up_fifo)
2587 if (kfifo_out(&priv->test.up_fifo, &fifo_buffer, 4) != 4) {
2660 poll_wait(filp, &priv->test.readq, ptable);
2661 if (!kfifo_is_empty(&priv->test.up_fifo))
2664 priv->test.readq,
2665 !kfifo_is_empty(&priv->test.up_fifo))) {
2985 * ca8210_test_interface_init() - Initialise the test file interface
2988 * Provided as an alternative to the standard linux network interface, the test
2997 struct ca8210_test *test = &priv->test;
3008 test->ca8210_dfs_spi_int = debugfs_create_file(
3017 init_waitqueue_head(&test->readq);
3019 &test->up_fifo,
3026 * ca8210_test_interface_clear() - Deinitialise the test file interface
3031 struct ca8210_test *test = &priv->test;
3033 debugfs_remove(test->ca8210_dfs_spi_int);
3034 kfifo_free(&test->up_fifo);