Home
last modified time | relevance | path

Searched refs:spi_fd (Results 1 – 5 of 5) sorted by relevance

/hardware/st/secure_element2/secure_element/1.0/esehal/src/
Dspi.c45 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()
Dtransport.c102 return spi_write(t1->spi_fd, block, n); in block_send()
119 fd = t1->spi_fd; in block_recv()
Dlibse-gto.c218 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()
Diso7816_t1.h29 int spi_fd; /* File descriptor for transport */ member
Diso7816_t1.c671 t1->spi_fd = -1; in t1_init()