Lines Matching refs:bufs
61 struct spi_buf bufs[8]; member
260 tdata.bufs[i].buf = buf_alloc(len, i < 2); in test_basic()
261 tdata.bufs[i].len = len; in test_basic()
262 tdata.sets[i].buffers = &tdata.bufs[i]; in test_basic()
291 tdata.bufs[0].buf = buf_alloc(len, true); in test_basic_zero_len()
292 tdata.bufs[0].len = len; in test_basic_zero_len()
293 tdata.bufs[1].buf = buf_alloc(len, true); in test_basic_zero_len()
295 tdata.bufs[1].len = 0; in test_basic_zero_len()
296 tdata.sets[0].buffers = &tdata.bufs[0]; in test_basic_zero_len()
300 tdata.bufs[2].buf = buf_alloc(len, true); in test_basic_zero_len()
301 tdata.bufs[2].len = len; in test_basic_zero_len()
302 tdata.bufs[3].buf = buf_alloc(len, true); in test_basic_zero_len()
304 tdata.bufs[3].len = 0; in test_basic_zero_len()
305 tdata.sets[1].buffers = &tdata.bufs[2]; in test_basic_zero_len()
310 tdata.bufs[4].buf = buf_alloc(len, false); in test_basic_zero_len()
311 tdata.bufs[4].len = len; in test_basic_zero_len()
312 tdata.sets[2].buffers = &tdata.bufs[4]; in test_basic_zero_len()
316 tdata.bufs[6].buf = buf_alloc(len, false); in test_basic_zero_len()
317 tdata.bufs[6].len = len; in test_basic_zero_len()
318 tdata.sets[3].buffers = &tdata.bufs[6]; in test_basic_zero_len()
343 tdata.bufs[0].buf = buf_alloc(len, true); in test_short_rx()
344 tdata.bufs[0].len = len; in test_short_rx()
345 tdata.bufs[1].buf = buf_alloc(len, true); in test_short_rx()
346 tdata.bufs[1].len = len - 3; /* RX buffer */ in test_short_rx()
347 tdata.bufs[2].buf = buf_alloc(len, false); in test_short_rx()
348 tdata.bufs[2].len = len; in test_short_rx()
349 tdata.bufs[3].buf = buf_alloc(len, false); in test_short_rx()
350 tdata.bufs[3].len = len - 4; /* RX buffer */ in test_short_rx()
353 tdata.sets[i].buffers = &tdata.bufs[i]; in test_short_rx()
381 tdata.bufs[0].buf = buf_alloc(len, true); in test_only_tx()
382 tdata.bufs[0].len = len; in test_only_tx()
383 tdata.sets[0].buffers = &tdata.bufs[0]; in test_only_tx()
389 tdata.bufs[1].buf = buf_alloc(len, false); in test_only_tx()
390 tdata.bufs[1].len = len; in test_only_tx()
391 tdata.sets[1].buffers = &tdata.bufs[1]; in test_only_tx()
416 tdata.bufs[0].buf = buf_alloc(len1 + len2, true); in test_only_tx_in_chunks()
417 tdata.bufs[0].len = len1 + len2; in test_only_tx_in_chunks()
418 tdata.sets[0].buffers = &tdata.bufs[0]; in test_only_tx_in_chunks()
424 tdata.bufs[1].buf = buf_alloc(len1, false); in test_only_tx_in_chunks()
425 tdata.bufs[1].len = len1; in test_only_tx_in_chunks()
426 tdata.bufs[2].buf = buf_alloc(len2, false); in test_only_tx_in_chunks()
427 tdata.bufs[2].len = len2; in test_only_tx_in_chunks()
428 tdata.sets[1].buffers = &tdata.bufs[1]; in test_only_tx_in_chunks()
452 tdata.bufs[0].buf = buf_alloc(len, true); in test_only_rx()
453 tdata.bufs[0].len = len; in test_only_rx()
454 tdata.sets[0].buffers = &tdata.bufs[0]; in test_only_rx()
460 tdata.bufs[1].buf = buf_alloc(len, false); in test_only_rx()
461 tdata.bufs[1].len = len; in test_only_rx()
462 tdata.sets[1].buffers = &tdata.bufs[1]; in test_only_rx()
487 tdata.bufs[0].buf = buf_alloc(len1 + len2, true); in test_only_rx_in_chunks()
488 tdata.bufs[0].len = len1 + len2; in test_only_rx_in_chunks()
489 tdata.sets[0].buffers = &tdata.bufs[0]; in test_only_rx_in_chunks()
495 tdata.bufs[1].buf = buf_alloc(len1, false); in test_only_rx_in_chunks()
496 tdata.bufs[1].len = len1; in test_only_rx_in_chunks()
497 tdata.bufs[2].buf = buf_alloc(len2, false); in test_only_rx_in_chunks()
498 tdata.bufs[2].len = len2; in test_only_rx_in_chunks()
499 tdata.sets[1].buffers = &tdata.bufs[1]; in test_only_rx_in_chunks()