• Home
  • Raw
  • Download

Lines Matching refs:rx_len

79   int rx_len;  in ese_weaver_session_open()  local
89 rx_len = ese_transceive(ese, kManageChannelOpen, sizeof(kManageChannelOpen), in ese_weaver_session_open()
96 if (rx_len < 0) { in ese_weaver_session_open()
97 ALOGE("transceive error: rx_len: %d", rx_len); in ese_weaver_session_open()
100 if (rx_len < 2) { in ese_weaver_session_open()
105 ret = check_apdu_status(&rx_buf[rx_len - 2]); in ese_weaver_session_open()
108 rx_buf[rx_len - 2], rx_buf[rx_len - 1]); in ese_weaver_session_open()
111 if (rx_len < 3) { in ese_weaver_session_open()
116 session->channel_id = rx_buf[rx_len - 3]; in ese_weaver_session_open()
126 rx_len = ese_transceive_sg(ese, tx, 2, &rx, 1); in ese_weaver_session_open()
127 if (rx_len < 0 || ese_error(ese)) { in ese_weaver_session_open()
131 if (rx_len < 2) { in ese_weaver_session_open()
135 ret = check_apdu_status(&rx_buf[rx_len - 2]); in ese_weaver_session_open()
137 ALOGE("SELECT failed with error code: %x %x", rx_buf[rx_len - 2], in ese_weaver_session_open()
138 rx_buf[rx_len - 1]); in ese_weaver_session_open()
148 int rx_len; in ese_weaver_session_close() local
160 rx_len = ese_transceive(session->ese, close_channel, sizeof(close_channel), in ese_weaver_session_close()
162 if (rx_len < 0 || ese_error(session->ese)) { in ese_weaver_session_close()
165 if (rx_len < 2) { in ese_weaver_session_close()
169 ret = check_apdu_status(&rx_buf[rx_len - 2]); in ese_weaver_session_close()
197 const int rx_len = in ese_weaver_get_num_slots() local
202 if (rx_len < 2 || ese_error(session->ese)) { in ese_weaver_get_num_slots()
206 if (rx_len == 2) { in ese_weaver_get_num_slots()
211 if (rx_len != 6) { in ese_weaver_get_num_slots()
260 const int rx_len = ese_transceive_sg(session->ese, tx, 5, &rx, 1); in ese_weaver_write() local
263 if (rx_len < 2 || ese_error(session->ese)) { in ese_weaver_write()
267 if (rx_len > 2) { in ese_weaver_write()
322 const int rx_len = ese_transceive_sg(session->ese, tx, 5, rx, 3); in ese_weaver_read() local
325 if (rx_len < 2 || ese_error(session->ese)) { in ese_weaver_read()
329 if (rx_len == 2) { in ese_weaver_read()
336 if (rx_len < 7) { in ese_weaver_read()
356 if (rx_len != 19) { in ese_weaver_read()
393 const int rx_len = ese_transceive_sg(session->ese, tx, 3, &rx, 1); in ese_weaver_erase_value() local
396 if (rx_len < 2 || ese_error(session->ese)) { in ese_weaver_erase_value()
400 if (rx_len > 2) { in ese_weaver_erase_value()