Home
last modified time | relevance | path

Searched refs:t1 (Results 1 – 25 of 34) sorted by relevance

12

/hardware/st/secure_element2/secure_element/1.0/esehal/src/
Diso7816_t1.c53 t1_init_recv_window(struct t1_state *t1, void *buf, size_t n) in t1_init_recv_window() argument
55 t1->recv.start = t1->recv.end = buf; in t1_init_recv_window()
56 t1->recv.size = n; in t1_init_recv_window()
60 t1_recv_window_free_size(struct t1_state *t1) in t1_recv_window_free_size() argument
62 return (ptrdiff_t)t1->recv.size - (t1->recv.end - t1->recv.start); in t1_recv_window_free_size()
66 t1_recv_window_append(struct t1_state *t1, const void *buf, int n) in t1_recv_window_append() argument
68 ptrdiff_t free = t1_recv_window_free_size(t1); in t1_recv_window_append()
73 memcpy(t1->recv.end, buf, (size_t)n); in t1_recv_window_append()
74 t1->recv.end += n; in t1_recv_window_append()
79 t1_recv_window_size(struct t1_state *t1) in t1_recv_window_size() argument
[all …]
Dtransport.c46 ts_compare(const struct timespec *t1, const struct timespec *t2) in ts_compare() argument
48 if (t1->tv_sec < t2->tv_sec) in ts_compare()
50 else if (t1->tv_sec > t2->tv_sec) in ts_compare()
53 return t1->tv_nsec - t2->tv_nsec; in ts_compare()
80 crc_length(struct t1_state *t1) in crc_length() argument
84 switch (t1->chk_algo) { in crc_length()
97 block_send(struct t1_state *t1, const void *block, size_t n) in block_send() argument
102 return spi_write(t1->spi_fd, block, n); in block_send()
106 block_recv(struct t1_state *t1, void *block, size_t n) in block_recv() argument
119 fd = t1->spi_fd; in block_recv()
[all …]
Dspi.c45 ctx->t1.spi_fd = open(ctx->gtodev, O_RDWR); in spi_setup()
46 if (ctx->t1.spi_fd < 0) { in spi_setup()
59 ctx->t1.spi_fd = open(ctx->gtodev, O_RDWR); in spi_setup()
60 if (ctx->t1.spi_fd < 0) { in spi_setup()
65 return ctx->t1.spi_fd < 0; in spi_setup()
71 if (ctx->t1.spi_fd >= 0) in spi_teardown()
72 if (close(ctx->t1.spi_fd) < 0) in spi_teardown()
74 ctx->t1.spi_fd = -1; in spi_teardown()
Diso7816_t1.h93 void isot1_init(struct t1_state *t1);
94 void isot1_release(struct t1_state *t1);
95 void isot1_bind(struct t1_state *t1, int src, int dst);
96 int isot1_transceive(struct t1_state *t1, const void *snd_buf,
98 int isot1_negotiate_ifsd(struct t1_state *t1, int ifsd);
99 int isot1_reset(struct t1_state *t1);
100 int isot1_resync(struct t1_state *t1);
101 int isot1_get_atr(struct t1_state *t1, void *atr, size_t n);
Dlibse-gto.c103 isot1_init(&ctx->t1); in se_gto_new()
166 err = isot1_reset(&ctx->t1); in se_gto_reset()
172 err = isot1_get_atr(&ctx->t1, atr, r); in se_gto_reset()
186 r = isot1_transceive(&ctx->t1, apdu, n, resp, r); in se_gto_apdu_transmit()
188 …1_transceive: ctx->t1.recv.end - ctx->t1.recv.start = %d\n", ctx->t1.recv.end - ctx->t1.recv.start… in se_gto_apdu_transmit()
189 dbg("isot1_transceive: ctx->t1.recv.size = %zu\n", ctx->t1.recv.size); in se_gto_apdu_transmit()
190 dbg("isot1_transceive: ctx->t1.buf[2] = %02X\n", ctx->t1.buf[2]); in se_gto_apdu_transmit()
216 isot1_bind(&ctx->t1, 0x2, 0x1); in se_gto_open()
218 dbg("fd: spi=%d\n", ctx->t1.spi_fd); in se_gto_open()
233 if (-1 == ioctl (ctx->t1.spi_fd, io_code, &power)) { in se_gto_Spi_Reset()
[all …]
Dtransport.h32 int block_send(struct t1_state *t1, const void *block, size_t n);
33 int block_recv(struct t1_state *t1, void *block, size_t n);
Dlibse-gto-private.h51 struct t1_state t1; member
/hardware/st/secure_element/ese-spi-driver/utils-lib/
DUtils.cc59 int Utils_getElapsedTimeInMs(struct timeval t1, struct timeval t2) { in Utils_getElapsedTimeInMs() argument
60 return (t2.tv_sec - t1.tv_sec) * 1000 + (t2.tv_usec - t1.tv_usec) / 1000; in Utils_getElapsedTimeInMs()
75 int Utils_getElapsedTimeInUs(struct timeval t1, struct timeval t2) { in Utils_getElapsedTimeInUs() argument
76 return (t2.tv_sec - t1.tv_sec) * 1000000 + (t2.tv_usec - t1.tv_usec); in Utils_getElapsedTimeInUs()
DUtils.h45 int Utils_getElapsedTimeInMs(struct timeval t1, struct timeval t2);
55 int Utils_getElapsedTimeInUs(struct timeval t1, struct timeval t2);
/hardware/qcom/sm7250/display/sdm/include/utils/
Dutils.h42 bool SameConfig(T *t1, T *t2, unsigned int size) { in SameConfig() argument
43 return !(std::memcmp(t1, t2, size)); in SameConfig()
/hardware/qcom/sm8150/display/sdm/include/utils/
Dutils.h49 bool SameConfig(T *t1, T *t2, unsigned int size) { in SameConfig() argument
50 return !(std::memcmp(t1, t2, size)); in SameConfig()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Ddatalogger_outputs.c164 long q00, q12, q22, q03, t1, t2; in inv_get_sensor_type_compass_float() local
182 t1 = q12 - q03; in inv_get_sensor_type_compass_float()
185 *mag_north = atan2f((float) t1, (float) t2) * 180.f / (float) M_PI; in inv_get_sensor_type_compass_float()
191 *true_north = atan2f((float) t1, (float) t2) * 180.f / (float) M_PI; in inv_get_sensor_type_compass_float()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.h104 static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2) in inv_delta_time_ms() argument
106 return (long)((t1 - t2) / 1000000L); in inv_delta_time_ms()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.h104 static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2) in inv_delta_time_ms() argument
106 return (long)((t1 - t2) / 1000000L); in inv_delta_time_ms()
/hardware/qcom/display/msm8909w_3100/libcopybit/
Dsoftware_converter.cpp66 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
74 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/sm8150p/gps/android/utils/
Dbattery_listener.cpp251 std::thread t1(android::batteryPropertiesListenerInit, in loc_extn_battery_properties_listener_init() local
253 t1.detach(); in loc_extn_battery_properties_listener_init()
/hardware/qcom/sm7250/display/libcopybit/
Dsoftware_converter.cpp66 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
74 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/display/msm8909/libcopybit/
Dsoftware_converter.cpp66 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
74 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/display/msm8996/libcopybit/
Dsoftware_converter.cpp66 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
74 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/display/msm8960/libcopybit/
Dsoftware_converter.cpp66 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
74 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/display/msm8226/libcopybit/
Dsoftware_converter.cpp66 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
74 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/display/msm8998/libcopybit/
Dsoftware_converter.cpp68 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
76 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/sm7150/gps/android/utils/
Dbattery_listener.cpp255 std::thread t1(android::batteryPropertiesListenerInit, in loc_extn_battery_properties_listener_init() local
257 t1.detach(); in loc_extn_battery_properties_listener_init()
/hardware/qcom/display/msm8994/libcopybit/
Dsoftware_converter.cpp67 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
75 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()
/hardware/qcom/display/msm8084/libcopybit/
Dsoftware_converter.cpp66 unsigned char * t1 = newChroma; in convertYV12toYCrCb420SP() local
74 :"+r"(t2), "+r"(t3), "+r"(t1) in convertYV12toYCrCb420SP()

12