Lines Matching refs:max_len
573 static int pd_build_reply(struct osdp_pd *pd, uint8_t *buf, int max_len) in pd_build_reply() argument
584 max_len -= data_off; in pd_build_reply()
588 if (!check_buf_len(REPLY_ACK_LEN, max_len)) { in pd_build_reply()
595 if (!check_buf_len(REPLY_PDID_LEN, max_len)) { in pd_build_reply()
618 if (!check_buf_len(REPLY_PDCAP_LEN, max_len)) { in pd_build_reply()
626 if (max_len < REPLY_PDCAP_ENTITY_LEN) { in pd_build_reply()
633 max_len -= REPLY_PDCAP_ENTITY_LEN; in pd_build_reply()
638 if (!check_buf_len(REPLY_LSTATR_LEN, max_len)) { in pd_build_reply()
647 if (!check_buf_len(REPLY_RSTATR_LEN, max_len)) { in pd_build_reply()
656 if (!check_buf_len(REPLY_KEYPAD_LEN + event->keypress.length, max_len)) { in pd_build_reply()
671 if (!check_buf_len(REPLY_RAW_LEN + len_bytes, max_len)) { in pd_build_reply()
686 if (!check_buf_len(REPLY_FMT_LEN + event->cardread.length, max_len)) { in pd_build_reply()
698 if (!check_buf_len(REPLY_COM_LEN, max_len)) { in pd_build_reply()
726 if (!check_buf_len(REPLY_NAK_LEN, max_len)) { in pd_build_reply()
738 if (!check_buf_len(REPLY_CCRYPT_LEN, max_len)) { in pd_build_reply()
758 if (!check_buf_len(REPLY_RMAC_I_LEN, max_len)) { in pd_build_reply()
796 if (!check_buf_len(REPLY_NAK_LEN, max_len)) { in pd_build_reply()