HomeSort by relevance Sort by last modified time
    Searched refs:ese (Results 1 - 25 of 61) sorted by null

1 2 3

  /external/libese/libese/
ese.c 17 #include "include/ese/ese.h"
18 #include "include/ese/log.h"
28 ESE_API const char *ese_name(const struct EseInterface *ese) {
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) {
39 if (!ese) {
42 ALOGV("opening interface '%s'", ese_name(ese));
    [all...]
  /external/libese/apps/boot/tests/
ese_operations_interface.h 21 #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;
ese_operations_wrapper.h 21 #include <ese/ese.h>
39 static void InitializeEse(struct EseInterface *ese, EseOperationsInterface *ops_interface);
ese_operations_wrapper.cpp 18 #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) {
31 return EseOperationsWrapperData::ops_interface->EseOpen(ese, data);
34 static uint32_t EseHwReceive(struct EseInterface *ese, uint8_t *data, uint32_t len, int complete) {
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) {
39 return EseOperationsWrapperData::ops_interface->EseHwTransmit(ese, data, len, complete)
    [all...]
  /external/libese/libese-teq1/tests/
ese_operations_interface.h 21 #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;
ese_operations_wrapper.h 21 #include <ese/ese.h>
39 static void InitializeEse(struct EseInterface *ese, EseOperationsInterface *ops_interface);
ese_operations_wrapper.cpp 18 #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) {
32 return EseOperationsWrapperData::ops_interface->EseOpen(ese, data);
35 static uint32_t EseHwReceive(struct EseInterface *ese, uint8_t *data, uint32_t len, int complete) {
36 return EseOperationsWrapperData::ops_interface->EseHwReceive(ese, data, len, complete);
39 static uint32_t EseHwTransmit(struct EseInterface *ese, const uint8_t *data, uint32_t len, int complete)
    [all...]
  /external/libese/libese-hw/
ese_hw_fake.c 19 #include "../libese/include/ese/ese.h"
42 static int fake_open(struct EseInterface *ese,
44 ese->pad[0] = 1; /* rx complete */
45 ese->pad[1] = 1; /* tx complete */
49 static void fake_close(struct EseInterface *ese) {
50 if (!ese->pad[0] || !ese->pad[1]) {
51 /* Set by caller. ese->error.is_error = 1; */
52 ese_set_error(ese, kEseFakeHwErrorEarlyClose)
    [all...]
ese_hw_echo.c 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);
    [all...]
  /external/libese/tools/ese_relay/
ese_relay_fake.c 19 #include <ese/ese.h>
27 void ese_relay_init(struct EseInterface *ese) { ese_init(ese, ESE_HW_FAKE); }
ese_relay_pn80t_nq_nci.c 18 #include <ese/ese.h>
32 void ese_relay_init(struct EseInterface *ese) {
33 ese_init(ese, ESE_HW_NXP_PN80T_NQ_NCI);
ese_relay_pn80t_spidev.c 18 #include <ese/ese.h>
19 #include <ese/hw/nxp/pn80t/boards/hikey-spidev.h>
33 void ese_relay_init(struct EseInterface *ese) {
34 ese_init(ese, ESE_HW_NXP_PN80T_SPIDEV);
ese_relay.c 16 * Hack-y server to forward communication with an eSE during development.
28 #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))
    [all...]
  /external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/
common.h 20 #include "../../libese-teq1/include/ese/teq1.h"
21 #include "../../libese/include/ese/ese.h"
22 #include "../../libese/include/ese/log.h"
25 /* Card state is _required_ to be at the front of eSE pad. */
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
    [all...]
  /external/libese/libese/include/ese/
ese.h 22 #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/
main.c 27 #define LOG_TAG "ese-replay"
28 #include <ese/ese.h>
29 #include <ese/log.h>
79 struct EseInterface ese; local
80 printf("[-] Initializing eSE\n");
82 if (!initialize_hardware(&ese, hw)) {
86 printf("eSE implementation selected: %s\n", ese_name(&ese));
87 if (ese_open(&ese, hw->options))
    [all...]
hw.h 22 #include <ese/ese.h>
37 bool initialize_hardware(struct EseInterface *ese, const struct Hardware *hw);
hw.c 24 #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) {
68 ese_init(ese, *hw);
  /external/libese/libese-hw/nxp/pn80t/
common.c 19 #include "include/ese/hw/nxp/pn80t/common.h"
53 int nxp_pn80t_open(struct EseInterface *ese, void *board) {
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);
88 /* Power on eSE */
94 uint32_t nxp_pn80t_send_cooldown(struct EseInterface *ese, bool end)
    [all...]
nq_nci.c 26 * 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,
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,
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/
hikey-spidev.h 18 #include <ese/hw/nxp/spi_board.h>
  /external/libese/esed/
esed.cpp 48 // Open connection to the eSE
49 EseInterfaceImpl ese; local
52 ese.init();
53 if (ese.open() < 0) {
54 std::string errMsg = "Failed to open connection to eSE";
55 if (ese.error()) {
56 errMsg += " (" + std::to_string(ese.error_code()) + "): " + ese.error_message();
67 LOG(INFO) << "Opened connection to the eSE";
71 ese.close()
    [all...]
ScopedEseConnection.h 29 ScopedEseConnection(EseInterface& ese) : mEse_(ese) {}
36 LOG(ERROR) << "Failed to open eSE connection: " << res;
  /external/libese/examples/
ese_nxp_sample.c 24 #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)) {
    [all...]
  /external/libese/libese-cpp/include/esecpp/
EseInterface.h 22 #include <ese/ese.h>

Completed in 199 milliseconds

1 2 3