Lines Matching refs:ese
23 #include "../libese-teq1/include/ese/teq1.h"
24 #include "../libese/include/ese/ese.h"
25 #include "../libese/include/ese/log.h"
34 #define ECHO_STATE(ese) (*(struct EchoState **)(&ese->pad[1]))
36 static int echo_open(struct EseInterface *ese, void *hw_opts) {
39 if (sizeof(ese->pad) < sizeof(struct EchoState *)) {
41 ALOGE("Pad size too small to use Echo HW (%zu < %zu)", sizeof(ese->pad),
45 es_ptr = &ECHO_STATE(ese);
50 es = ECHO_STATE(ese);
57 static void echo_close(struct EseInterface *ese) {
59 es = ECHO_STATE(ese);
67 static uint32_t echo_receive(struct EseInterface *ese, uint8_t *buf,
69 struct EchoState *es = ECHO_STATE(ese);
90 static uint32_t echo_transmit(struct EseInterface *ese, const uint8_t *buf,
92 struct EchoState *es = ECHO_STATE(ese);
112 static int echo_poll(struct EseInterface *ese, uint8_t poll_for, float timeout,
114 struct EchoState *es = ECHO_STATE(ese);
115 const struct Teq1ProtocolOptions *opts = ese->ops->opts;
155 uint32_t echo_transceive(struct EseInterface *ese,
158 return teq1_transceive(ese, &kTeq1Options, tx_buf, tx_len, rx_buf, rx_len);
168 .name = "eSE Echo Hardware (fake)",