• Home
  • Raw
  • Download

Lines Matching refs:dev

48     struct spi_dev dev;  member
80 rc = spi_dev_open(&test_dev->dev, test_dev->name, MAX_NUM_CMDS, in spi_dev_init_once()
122 struct spi_dev* dev = &test_dev->dev; in exec_xfer() local
125 rc = spi_add_set_clk_cmd(dev, CLK_SPEED, NULL); in exec_xfer()
128 rc = spi_add_cs_assert_cmd(dev); in exec_xfer()
131 rc = spi_add_data_xfer_cmd(dev, &tx, &rx, len); in exec_xfer()
134 rc = spi_add_cs_deassert_cmd(dev); in exec_xfer()
147 rc = spi_exec_cmds(dev, &failed); in exec_xfer()
166 spi_clear_cmds(&_state->test_dev->dev); in TEST_F_SETUP()
178 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
180 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
183 rc = spi_add_data_xfer_cmd(dev, &tx, &rx, 1); in TEST_P()
190 rc = spi_add_data_xfer_cmd(dev, &tx, NULL, 1); in TEST_P()
195 rc = spi_add_data_xfer_cmd(dev, NULL, &rx, 1); in TEST_P()
200 rc = spi_add_data_xfer_cmd(dev, &tx, &tx, 1); in TEST_P()
205 rc = spi_add_data_xfer_cmd(dev, NULL, NULL, 0); in TEST_P()
208 rc = spi_add_cs_deassert_cmd(dev); in TEST_P()
211 rc = spi_add_set_clk_cmd(dev, CLK_SPEED, NULL); in TEST_P()
214 rc = spi_add_set_clk_cmd(dev, CLK_SPEED, &clk_hz); in TEST_P()
226 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
229 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
231 rc = spi_add_cs_deassert_cmd(dev); in TEST_P()
235 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
244 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
246 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
250 rc = spi_add_data_xfer_cmd(dev, &tx, &rx, MAX_TOTAL_PAYLOAD + 1); in TEST_P()
254 rc = spi_add_cs_deassert_cmd(dev); in TEST_P()
257 rc = spi_exec_cmds(dev, &failed); in TEST_P()
266 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
268 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
272 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
275 rc = spi_exec_cmds(dev, &failed); in TEST_P()
284 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
287 rc = spi_add_cs_deassert_cmd(dev); in TEST_P()
290 rc = spi_exec_cmds(dev, &failed); in TEST_P()
298 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
310 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
313 rc = spi_exec_cmds(dev, &failed); in TEST_P()
320 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
322 rc = spi_add_set_clk_cmd(dev, CLK_SPEED, &clk_hz); in TEST_P()
325 rc = spi_exec_cmds(dev, NULL); in TEST_P()
333 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
338 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
341 rc = spi_add_delay_cmd(dev, delay_ns); in TEST_P()
344 rc = spi_add_cs_deassert_cmd(dev); in TEST_P()
348 rc = spi_exec_cmds(dev, NULL); in TEST_P()
406 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
409 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
412 rc = spi_add_data_xfer_cmd(dev, &tx0, &rx0, sz0); in TEST_P()
415 rc = spi_add_data_xfer_cmd(dev, &tx1, &rx1, sz1); in TEST_P()
418 rc = spi_add_cs_deassert_cmd(dev); in TEST_P()
427 rc = spi_exec_cmds(dev, NULL); in TEST_P()
445 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local
451 rc = spi_add_cs_assert_cmd(dev); in TEST_P()
454 rc = spi_add_data_xfer_cmd(dev, NULL, &rx, sz); in TEST_P()
457 rc = spi_add_cs_deassert_cmd(dev); in TEST_P()
460 rc = spi_exec_cmds(dev, NULL); in TEST_P()