Lines Matching refs:ese
54 int nxp_pn80t_open(struct EseInterface *ese, void *board) { in nxp_pn80t_open() argument
57 if (sizeof(ese->pad) < sizeof(struct NxpState *)) { in nxp_pn80t_open()
59 ALOGE("Pad size too small to use NXP HW (%zu < %zu)", sizeof(ese->pad), in nxp_pn80t_open()
63 platform = ese->ops->opts; in nxp_pn80t_open()
72 ns = NXP_PN80T_STATE(ese); in nxp_pn80t_open()
73 TEQ1_INIT_CARD_STATE((struct Teq1CardState *)(&ese->pad[0])); in nxp_pn80t_open()
77 ese_set_error(ese, kNxpPn80tErrorPlatformInit); in nxp_pn80t_open()
99 int nxp_pn80t_reset(struct EseInterface *ese) { in nxp_pn80t_reset() argument
100 const struct Pn80tPlatform *platform = ese->ops->opts; in nxp_pn80t_reset()
101 struct NxpState *ns = NXP_PN80T_STATE(ese); in nxp_pn80t_reset()
103 ese_set_error(ese, kNxpPn80tErrorResetToggle); in nxp_pn80t_reset()
108 ese_set_error(ese, kNxpPn80tErrorResetToggle); in nxp_pn80t_reset()
114 int nxp_pn80t_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, in nxp_pn80t_poll() argument
116 struct NxpState *ns = NXP_PN80T_STATE(ese); in nxp_pn80t_poll()
117 const struct Pn80tPlatform *platform = ese->ops->opts; in nxp_pn80t_poll()
129 if (ese->ops->hw_receive(ese, &byte, 1, complete) != 1) { in nxp_pn80t_poll()
131 ese_set_error(ese, kNxpPn80tErrorPollRead); in nxp_pn80t_poll()
150 uint32_t nxp_pn80t_transceive(struct EseInterface *ese, in nxp_pn80t_transceive() argument
154 return teq1_transceive(ese, &kTeq1Options, tx_buf, tx_len, rx_buf, rx_len); in nxp_pn80t_transceive()
157 uint32_t nxp_pn80t_send_cooldown(struct EseInterface *ese) { in nxp_pn80t_send_cooldown() argument
158 const struct Pn80tPlatform *platform = ese->ops->opts; in nxp_pn80t_send_cooldown()
162 ese->ops->hw_transmit(ese, kCooldown, sizeof(kCooldown), 1); in nxp_pn80t_send_cooldown()
163 nxp_pn80t_poll(ese, kTeq1Options.host_address, 5.0f, 0); in nxp_pn80t_send_cooldown()
164 ese->ops->hw_receive(ese, rx_buf, sizeof(rx_buf), 1); in nxp_pn80t_send_cooldown()
174 void nxp_pn80t_close(struct EseInterface *ese) { in nxp_pn80t_close() argument
176 const struct Pn80tPlatform *platform = ese->ops->opts; in nxp_pn80t_close()
178 ns = NXP_PN80T_STATE(ese); in nxp_pn80t_close()
179 nxp_pn80t_send_cooldown(ese); in nxp_pn80t_close()