Lines Matching refs:cardread
475 event.cardread.reader_no = buf[pos++]; in cp_decode_response()
476 event.cardread.format = buf[pos++]; in cp_decode_response()
477 event.cardread.length = buf[pos++]; /* bits LSB */ in cp_decode_response()
478 event.cardread.length |= buf[pos++] << 8; /* bits MSB */ in cp_decode_response()
479 event.cardread.direction = 0; /* un-specified */ in cp_decode_response()
480 t1 = (event.cardread.length + 7) / 8; /* len: bytes */ in cp_decode_response()
484 memcpy(event.cardread.data, buf + pos, t1); in cp_decode_response()
493 event.cardread.reader_no = buf[pos++]; in cp_decode_response()
494 event.cardread.direction = buf[pos++]; in cp_decode_response()
495 event.cardread.length = buf[pos++]; in cp_decode_response()
496 event.cardread.format = OSDP_CARD_FMT_ASCII; in cp_decode_response()
497 if (event.cardread.length != (len - REPLY_FMT_DATA_LEN) || in cp_decode_response()
498 event.cardread.length > OSDP_EVENT_MAX_DATALEN) { in cp_decode_response()
501 memcpy(event.cardread.data, buf + pos, event.cardread.length); in cp_decode_response()