Lines Matching refs:max_len
126 static int cp_build_command(struct osdp_pd *pd, uint8_t *buf, int max_len) in cp_build_command() argument
136 max_len -= data_off; in cp_build_command()
137 if (max_len <= 0) { in cp_build_command()
143 if (!check_buf_len(CMD_POLL_LEN, max_len)) { in cp_build_command()
149 if (!check_buf_len(CMD_LSTAT_LEN, max_len)) { in cp_build_command()
155 if (!check_buf_len(CMD_ISTAT_LEN, max_len)) { in cp_build_command()
161 if (!check_buf_len(CMD_OSTAT_LEN, max_len)) { in cp_build_command()
167 if (!check_buf_len(CMD_RSTAT_LEN, max_len)) { in cp_build_command()
173 if (!check_buf_len(CMD_ID_LEN, max_len)) { in cp_build_command()
180 if (!check_buf_len(CMD_CAP_LEN, max_len)) { in cp_build_command()
187 if (!check_buf_len(CMD_DIAG_LEN, max_len)) { in cp_build_command()
194 if (!check_buf_len(CMD_OUT_LEN, max_len)) { in cp_build_command()
205 if (!check_buf_len(CMD_LED_LEN, max_len)) { in cp_build_command()
228 if (!check_buf_len(CMD_BUZ_LEN, max_len)) { in cp_build_command()
241 if (!check_buf_len(CMD_TEXT_LEN + cmd->text.length, max_len)) { in cp_build_command()
255 if (!check_buf_len(CMD_COMSET_LEN, max_len)) { in cp_build_command()
272 if (!check_buf_len(CMD_KEYSET_LEN, max_len)) { in cp_build_command()
294 if (!check_buf_len(CMD_CHLNG_LEN, max_len)) { in cp_build_command()
309 if (!check_buf_len(CMD_SCRYPT_LEN, max_len)) { in cp_build_command()