Searched refs:ese (Results 1 - 25 of 52) sorted by relevance

123

/external/libese/libese/
H A Dese.c17 #include "include/ese/ese.h"
18 #include "include/ese/log.h"
28 ESE_API const char *ese_name(const struct EseInterface *ese) { argument
29 if (!ese) {
32 if (ese->ops->name) {
33 return ese->ops->name;
38 ESE_API int ese_open(struct EseInterface *ese, void *hw_opts) { argument
39 if (!ese) {
42 ALOGV("opening interface '%s'", ese_name(ese));
51 ese_error_message(const struct EseInterface *ese) argument
55 ese_error_code(const struct EseInterface *ese) argument
59 ese_error(const struct EseInterface *ese) argument
63 ese_set_error(struct EseInterface *ese, int code) argument
86 ese_transceive(struct EseInterface *ese, const uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_max) argument
97 ese_transceive_sg(struct EseInterface *ese, const struct EseSgBuffer *tx_bufs, uint32_t tx_segs, struct EseSgBuffer *rx_bufs, uint32_t rx_segs) argument
117 ese_close(struct EseInterface *ese) argument
[all...]
/external/libese/libese-hw/
H A Dese_hw_fake.c19 #include "../libese/include/ese/ese.h"
42 static int fake_open(struct EseInterface *ese, argument
44 ese->pad[0] = 1; /* rx complete */
45 ese->pad[1] = 1; /* tx complete */
49 static void fake_close(struct EseInterface *ese) { argument
50 if (!ese->pad[0] || !ese->pad[1]) {
51 /* Set by caller. ese->error.is_error = 1; */
52 ese_set_error(ese, kEseFakeHwErrorEarlyClos
57 fake_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, int complete) argument
74 fake_transmit(struct EseInterface *ese, const uint8_t *buf, uint32_t len, int complete) argument
91 fake_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
110 fake_transceive(struct EseInterface *ese, const struct EseSgBuffer *tx_bufs, uint32_t tx_seg, struct EseSgBuffer *rx_bufs, uint32_t rx_seg) argument
[all...]
H A Dese_hw_echo.c23 #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) { argument
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);
57 echo_close(struct EseInterface *ese) argument
67 echo_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, int complete) argument
90 echo_transmit(struct EseInterface *ese, const uint8_t *buf, uint32_t len, int complete) argument
112 echo_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
155 echo_transceive(struct EseInterface *ese, const struct EseSgBuffer *tx_buf, uint32_t tx_len, struct EseSgBuffer *rx_buf, uint32_t rx_len) argument
[all...]
/external/libese/tools/ese_relay/
H A Dese_relay_fake.c19 #include <ese/ese.h>
27 void ese_relay_init(struct EseInterface *ese) { ese_init(ese, ESE_HW_FAKE); } argument
H A Dese_relay_pn80t_nq_nci.c18 #include <ese/ese.h>
32 void ese_relay_init(struct EseInterface *ese) { argument
33 ese_init(ese, ESE_HW_NXP_PN80T_NQ_NCI);
H A Dese_relay_pn80t_spidev.c18 #include <ese/ese.h>
19 #include <ese/hw/nxp/pn80t/boards/hikey-spidev.h>
33 void ese_relay_init(struct EseInterface *ese) { argument
34 ese_init(ese, ESE_HW_NXP_PN80T_SPIDEV);
H A Dese_relay.c28 #define LOG_TAG "ese-relay"
29 #include <ese/ese.h>
30 #include <ese/log.h>
35 void ese_relay_init(struct EseInterface *ese);
74 struct EseInterface ese; local
75 ese_relay_init(&ese);
101 if (ese_open(&ese, kEseOpenData)) {
103 if (ese_error(&ese))
104 ALOGE("eSE error (%d): %s", ese_error_code(&ese),
[all...]
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/
H A Dcommon.h20 #include "../../libese-teq1/include/ese/teq1.h"
21 #include "../../libese/include/ese/ese.h"
22 #include "../../libese/include/ese/log.h"
31 #define NXP_PN80T_STATE(ese) \
32 ((struct NxpState *)(&ese->pad[ESE_INTERFACE_STATE_PAD / 2]))
34 void nxp_pn80t_close(struct EseInterface *ese);
35 uint32_t nxp_pn80t_transceive(struct EseInterface *ese,
38 int nxp_pn80t_poll(struct EseInterface *ese, uint8_t poll_for, float timeout,
40 int nxp_pn80t_reset(struct EseInterface *ese);
[all...]
/external/libese/libese-teq1/tests/
H A Dese_operations_wrapper.cpp18 #include <ese/ese.h>
19 #include <ese/teq1.h>
25 struct EseInterface *ese, EseOperationsInterface *ops_interface) {
28 ese_init(ese, data.wrapper);
31 static int EseOpen(struct EseInterface *ese, void *data) { argument
32 return EseOperationsWrapperData::ops_interface->EseOpen(ese, data);
35 static uint32_t EseHwReceive(struct EseInterface *ese, uint8_t *data, uint32_t len, int complete) { argument
36 return EseOperationsWrapperData::ops_interface->EseHwReceive(ese, data, len, complete);
39 static uint32_t EseHwTransmit(struct EseInterface *ese, cons argument
24 InitializeEse( struct EseInterface *ese, EseOperationsInterface *ops_interface) argument
43 EseReset(struct EseInterface *ese) argument
47 EseTransceive(struct EseInterface *ese, const struct EseSgBuffer *tx_sg, uint32_t tx_nsg, struct EseSgBuffer *rx_sg, uint32_t rx_nsg) argument
52 EsePoll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
56 EseClose(struct EseInterface *ese) argument
[all...]
H A Dese_operations_interface.h21 #include <ese/ese.h>
28 virtual int EseOpen(struct EseInterface *ese, void *data) = 0;
29 virtual uint32_t EseHwReceive(struct EseInterface *ese, uint8_t *data, uint32_t len, int complete) = 0;
30 virtual uint32_t EseHwTransmit(struct EseInterface *ese, const uint8_t *data, uint32_t len, int complete) = 0;
31 virtual int EseReset(struct EseInterface *ese) = 0;
32 virtual uint32_t EseTransceive(struct EseInterface *ese, const struct EseSgBuffer *tx_sg, uint32_t tx_nsg,
34 virtual int EsePoll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) = 0;
35 virtual void EseClose(struct EseInterface *ese) = 0;
H A Dese_operations_wrapper.h21 #include <ese/ese.h>
39 static void InitializeEse(struct EseInterface *ese, EseOperationsInterface *ops_interface);
/external/libese/apps/boot/tests/
H A Dese_operations_interface.h21 #include <ese/ese.h>
28 virtual int EseOpen(struct EseInterface *ese, void *data) = 0;
29 virtual uint32_t EseHwReceive(struct EseInterface *ese, uint8_t *data, uint32_t len, int complete) = 0;
30 virtual uint32_t EseHwTransmit(struct EseInterface *ese, const uint8_t *data, uint32_t len, int complete) = 0;
31 virtual int EseReset(struct EseInterface *ese) = 0;
32 virtual uint32_t EseTransceive(struct EseInterface *ese, const struct EseSgBuffer *tx_sg, uint32_t tx_nsg,
34 virtual int EsePoll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) = 0;
35 virtual void EseClose(struct EseInterface *ese) = 0;
H A Dese_operations_wrapper.cpp18 #include <ese/ese.h>
24 struct EseInterface *ese, EseOperationsInterface *ops_interface) {
27 ese_init(ese, data.wrapper);
30 static int EseOpen(struct EseInterface *ese, void *data) { argument
31 return EseOperationsWrapperData::ops_interface->EseOpen(ese, data);
34 static uint32_t EseHwReceive(struct EseInterface *ese, uint8_t *data, uint32_t len, int complete) { argument
35 return EseOperationsWrapperData::ops_interface->EseHwReceive(ese, data, len, complete);
38 static uint32_t EseHwTransmit(struct EseInterface *ese, const uint8_t *data, uint32_t len, int complete) { argument
39 return EseOperationsWrapperData::ops_interface->EseHwTransmit(ese, dat
23 InitializeEse( struct EseInterface *ese, EseOperationsInterface *ops_interface) argument
42 EseReset(struct EseInterface *ese) argument
46 EseTransceive(struct EseInterface *ese, const struct EseSgBuffer *tx_sg, uint32_t tx_nsg, struct EseSgBuffer *rx_sg, uint32_t rx_nsg) argument
51 EsePoll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
55 EseClose(struct EseInterface *ese) argument
[all...]
H A Dese_operations_wrapper.h21 #include <ese/ese.h>
39 static void InitializeEse(struct EseInterface *ese, EseOperationsInterface *ops_interface);
/external/libese/libese/include/ese/
H A Dese.h22 #include "../../../libese-sysdeps/include/ese/sysdeps.h"
71 const char *ese_name(const struct EseInterface *ese);
72 int ese_open(struct EseInterface *ese, void *hw_opts);
73 void ese_close(struct EseInterface *ese);
74 int ese_transceive(struct EseInterface *ese, const uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_max);
75 int ese_transceive_sg(struct EseInterface *ese, const struct EseSgBuffer *tx, uint32_t tx_segs,
78 bool ese_error(const struct EseInterface *ese);
79 const char *ese_error_message(const struct EseInterface *ese);
80 int ese_error_code(const struct EseInterface *ese);
/external/libese/tools/ese_replay/
H A Dmain.c27 #define LOG_TAG "ese-replay"
28 #include <ese/ese.h>
29 #include <ese/log.h>
79 struct EseInterface ese; local
82 if (!initialize_hardware(&ese, hw)) {
86 printf("eSE implementation selected: %s\n", ese_name(&ese));
87 if (ese_open(&ese, hw->options)) {
89 if (ese_error(&ese)) {
90 ALOGE("eSE error (%d): %s", ese_error_code(&ese),
[all...]
H A Dhw.h22 #include <ese/ese.h>
37 bool initialize_hardware(struct EseInterface *ese, const struct Hardware *hw);
H A Dhw.c24 #define LOG_TAG "ese-sh"
25 #include <ese/ese.h>
26 #include <ese/log.h>
56 bool initialize_hardware(struct EseInterface *ese, const struct Hardware *hw) { argument
68 ese_init(ese, *hw);
/external/libese/libese-hw/nxp/pn80t/
H A Dcommon.c19 #include "include/ese/hw/nxp/pn80t/common.h"
53 int nxp_pn80t_open(struct EseInterface *ese, void *board) { argument
56 _static_assert(sizeof(ese->pad) >= sizeof(struct NxpState *),
58 platform = ese->ops->opts;
64 ese_set_error(ese, kNxpPn80tErrorPlatformInit);
68 ns = NXP_PN80T_STATE(ese);
69 TEQ1_INIT_CARD_STATE((struct Teq1CardState *)(&ese->pad[0]));
73 ese_set_error(ese, kNxpPn80tErrorPlatformInit);
94 uint32_t nxp_pn80t_send_cooldown(struct EseInterface *ese, bool end);
96 int nxp_pn80t_reset(struct EseInterface *ese) { argument
128 nxp_pn80t_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
176 nxp_pn80t_send_cooldown(struct EseInterface *ese, bool end) argument
242 nxp_pn80t_handle_interface_call(struct EseInterface *ese, const struct EseSgBuffer *tx_buf, uint32_t tx_len, struct EseSgBuffer *rx_buf, uint32_t rx_len) argument
303 nxp_pn80t_transceive(struct EseInterface *ese, const struct EseSgBuffer *tx_buf, uint32_t tx_len, struct EseSgBuffer *rx_buf, uint32_t rx_len) argument
315 nxp_pn80t_close(struct EseInterface *ese) argument
[all...]
H A Dnq_nci.c26 * also appears to do the same which keeps the ese data available
47 #include "../include/ese/hw/nxp/pn80t/common.h"
117 uint32_t nq_transmit(struct EseInterface *ese, const uint8_t *buf, uint32_t len, argument
119 struct NxpState *ns = NXP_PN80T_STATE(ese);
120 const struct Pn80tPlatform *platform = ese->ops->opts;
124 ese_set_error(ese, kNxpPn80tErrorTransmitSize);
137 ese_set_error(ese, kNxpPn80tErrorTransmit);
147 uint32_t nq_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, argument
149 const struct Pn80tPlatform *platform = ese->ops->opts;
150 struct NxpState *ns = NXP_PN80T_STATE(ese);
[all...]
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/boards/
H A Dhikey-spidev.h18 #include <ese/hw/nxp/spi_board.h>
/external/libese/esed/
H A Desed.cpp49 EseInterfaceImpl ese; local
52 ese.init();
53 if (ese.open() < 0) {
55 if (ese.error()) {
56 errMsg += " (" + std::to_string(ese.error_code()) + "): " + ese.error_message();
71 ese.close();
80 sp<Weaver> weaver = new Weaver{ese};
H A DScopedEseConnection.h29 ScopedEseConnection(EseInterface& ese) : mEse_(ese) {} argument
/external/libese/examples/
H A Dese_nxp_sample.c24 #include <ese/ese.h>
84 struct EseInterface ese = ESE_INITIALIZER(ESE_HW_NXP_PN80T_NQ_NCI); local
91 if (ese_open(&ese, ese_hw_open_data) < 0) {
93 if (ese_error(&ese))
94 printf("eSE error (%d): %s\n", ese_error_code(&ese),
95 ese_error_message(&ese));
109 recvd = ese_transceive(&ese, (uint8_t *)apdu->bytes, apdu->length, rx_buf,
111 if (ese_error(&ese)) {
112 printf("An error (%d) occurred: %s", ese_error_code(&ese),
[all...]
/external/libese/apps/weaver/
H A Dweaver.c17 #include "include/ese/app/weaver.h"
69 session->ese = NULL;
74 ESE_API EseAppResult ese_weaver_session_open(struct EseInterface *ese, argument
80 if (!ese || !session) {
81 ALOGE("Invalid |ese| or |session|");
89 rx_len = ese_transceive(ese, kManageChannelOpen, sizeof(kManageChannelOpen),
91 if (ese_error(ese)) {
92 ALOGE("transceive error: code:%d message:'%s'", ese_error_code(ese),
93 ese_error_message(ese));
115 session->ese
[all...]

Completed in 214 milliseconds

123