Lines Matching refs:bufs
14 static struct spi_buf_set *copy_and_check(struct spi_buf_set *bufs, in copy_and_check() argument
20 if (bufs->count == 0) { in copy_and_check()
21 bufs->buffers = NULL; in copy_and_check()
26 K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(bufs->buffers, in copy_and_check()
27 bufs->count, in copy_and_check()
33 bufs->buffers = memcpy(buf_copy, in copy_and_check()
34 bufs->buffers, in copy_and_check()
35 bufs->count * sizeof(struct spi_buf)); in copy_and_check()
37 for (i = 0; i < bufs->count; i++) { in copy_and_check()
41 const struct spi_buf *buf = &bufs->buffers[i]; in copy_and_check()
46 return bufs; in copy_and_check()