Lines Matching refs:spicontext
12 int st95hf_spi_send(struct st95hf_spi_context *spicontext, in st95hf_spi_send() argument
19 struct spi_device *spidev = spicontext->spidev; in st95hf_spi_send()
25 mutex_lock(&spicontext->spi_lock); in st95hf_spi_send()
28 spicontext->req_issync = true; in st95hf_spi_send()
29 reinit_completion(&spicontext->done); in st95hf_spi_send()
31 spicontext->req_issync = false; in st95hf_spi_send()
41 mutex_unlock(&spicontext->spi_lock); in st95hf_spi_send()
47 mutex_unlock(&spicontext->spi_lock); in st95hf_spi_send()
51 result = wait_for_completion_timeout(&spicontext->done, in st95hf_spi_send()
61 mutex_unlock(&spicontext->spi_lock); in st95hf_spi_send()
68 int st95hf_spi_recv_response(struct st95hf_spi_context *spicontext, in st95hf_spi_recv_response() argument
74 struct spi_device *spidev = spicontext->spidev; in st95hf_spi_recv_response()
85 mutex_lock(&spicontext->spi_lock); in st95hf_spi_recv_response()
96 mutex_unlock(&spicontext->spi_lock); in st95hf_spi_recv_response()
118 mutex_unlock(&spicontext->spi_lock); in st95hf_spi_recv_response()
129 int st95hf_spi_recv_echo_res(struct st95hf_spi_context *spicontext, in st95hf_spi_recv_echo_res() argument
138 struct spi_device *spidev = spicontext->spidev; in st95hf_spi_recv_echo_res()
141 mutex_lock(&spicontext->spi_lock); in st95hf_spi_recv_echo_res()
148 mutex_unlock(&spicontext->spi_lock); in st95hf_spi_recv_echo_res()