Lines Matching refs:param_len
51 uint8_t param_type, param_len, *p = p_bytes; in llcp_util_parse_link_params() local
55 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params()
56 if (length < param_len + 2) { in llcp_util_parse_link_params()
61 length -= param_len + 2; in llcp_util_parse_link_params()
65 if (param_len != LLCP_VERSION_LEN) { in llcp_util_parse_link_params()
76 if (param_len != LLCP_MIUX_LEN) { in llcp_util_parse_link_params()
89 if (param_len != LLCP_WKS_LEN) { in llcp_util_parse_link_params()
100 if (param_len != LLCP_LTO_LEN) { in llcp_util_parse_link_params()
112 if (param_len != LLCP_OPT_LEN) { in llcp_util_parse_link_params()
124 p += param_len; in llcp_util_parse_link_params()
489 uint8_t param_type, param_len, *p = p_bytes; in llcp_util_parse_connect() local
498 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_connect()
500 if (length < param_len + 2) { in llcp_util_parse_connect()
505 length -= param_len + 2; in llcp_util_parse_connect()
509 if (param_len != LLCP_MIUX_LEN) { in llcp_util_parse_connect()
523 if (param_len != LLCP_RW_LEN) { in llcp_util_parse_connect()
536 if (param_len == 0) { in llcp_util_parse_connect()
539 } else if (param_len <= LLCP_MAX_SN_LEN) { in llcp_util_parse_connect()
540 memcpy(p_params->sn, p, param_len); in llcp_util_parse_connect()
541 p_params->sn[param_len] = 0; in llcp_util_parse_connect()
546 p += param_len; in llcp_util_parse_connect()
554 p += param_len; in llcp_util_parse_connect()
628 uint8_t param_type, param_len, *p = p_bytes; in llcp_util_parse_cc() local
635 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_cc()
636 if (length < param_len + 2) { in llcp_util_parse_cc()
641 length -= param_len + 2; in llcp_util_parse_cc()
645 if (param_len != LLCP_MIUX_LEN) { in llcp_util_parse_cc()
659 if (param_len != LLCP_RW_LEN) { in llcp_util_parse_cc()
673 p += param_len; in llcp_util_parse_cc()