Searched refs:spi_fd (Results 1 – 5 of 5) sorted by relevance
45 ctx->t1.spi_fd = open(ctx->gtodev, O_RDWR); in spi_setup()46 if (ctx->t1.spi_fd < 0) { in spi_setup()59 ctx->t1.spi_fd = open(ctx->gtodev, O_RDWR); in spi_setup()60 if (ctx->t1.spi_fd < 0) { in spi_setup()65 return ctx->t1.spi_fd < 0; in spi_setup()71 if (ctx->t1.spi_fd >= 0) in spi_teardown()72 if (close(ctx->t1.spi_fd) < 0) in spi_teardown()74 ctx->t1.spi_fd = -1; in spi_teardown()
102 return spi_write(t1->spi_fd, block, n); in block_send()119 fd = t1->spi_fd; in block_recv()
218 dbg("fd: spi=%d\n", ctx->t1.spi_fd); in se_gto_open()233 if (-1 == ioctl (ctx->t1.spi_fd, io_code, &power)) { in se_gto_Spi_Reset()
29 int spi_fd; /* File descriptor for transport */ member
671 t1->spi_fd = -1; in t1_init()