Lines Matching refs:p_params
422 tLLCP_STATUS llcp_util_send_connect (tLLCP_DLCB *p_dlcb, tLLCP_CONNECTION_PARAMS *p_params) in llcp_util_send_connect() argument
428 if (p_params->miu != LLCP_DEFAULT_MIU) in llcp_util_send_connect()
432 if (p_params->rw != LLCP_DEFAULT_RW) in llcp_util_send_connect()
435 p_params->rw &= 0x0F; /* only 4 bits */ in llcp_util_send_connect()
437 if ((strlen (p_params->sn)) && (p_dlcb->remote_sap == LLCP_SAP_SDP)) in llcp_util_send_connect()
439 sn_len = (UINT16) (2 + strlen (p_params->sn)); /* TYPE, LEN, SN */ in llcp_util_send_connect()
457 UINT16_TO_BE_STREAM (p, p_params->miu - LLCP_DEFAULT_MIU); in llcp_util_send_connect()
464 UINT8_TO_BE_STREAM (p, p_params->rw); in llcp_util_send_connect()
471 memcpy (p, p_params->sn, sn_len - 2); in llcp_util_send_connect()
492 …_STATUS llcp_util_parse_connect (UINT8 *p_bytes, UINT16 length, tLLCP_CONNECTION_PARAMS *p_params) in llcp_util_parse_connect() argument
496 p_params->miu = LLCP_DEFAULT_MIU; in llcp_util_parse_connect()
497 p_params->rw = LLCP_DEFAULT_RW; in llcp_util_parse_connect()
498 p_params->sn[0] = 0; in llcp_util_parse_connect()
499 p_params->sn[1] = 0; in llcp_util_parse_connect()
510 BE_STREAM_TO_UINT16 (p_params->miu, p); in llcp_util_parse_connect()
511 p_params->miu &= LLCP_MIUX_MASK; in llcp_util_parse_connect()
512 p_params->miu += LLCP_DEFAULT_MIU; in llcp_util_parse_connect()
514 LLCP_TRACE_DEBUG1 ("llcp_util_parse_connect (): LLCP_MIUX_TYPE:%d", p_params->miu); in llcp_util_parse_connect()
519 BE_STREAM_TO_UINT8 (p_params->rw, p); in llcp_util_parse_connect()
520 p_params->rw &= 0x0F; in llcp_util_parse_connect()
522 LLCP_TRACE_DEBUG1 ("llcp_util_parse_connect (): LLCP_RW_TYPE:%d", p_params->rw); in llcp_util_parse_connect()
531 p_params->sn[1] = LLCP_SN_TYPE; in llcp_util_parse_connect()
535 memcpy (p_params->sn, p, param_len); in llcp_util_parse_connect()
536 p_params->sn[param_len] = 0; in llcp_util_parse_connect()
540 memcpy (p_params->sn, p, LLCP_MAX_SN_LEN); in llcp_util_parse_connect()
541 p_params->sn[LLCP_MAX_SN_LEN] = 0; in llcp_util_parse_connect()
545 LLCP_TRACE_DEBUG1 ("llcp_util_parse_connect (): LLCP_SN_TYPE:<%s>", p_params->sn); in llcp_util_parse_connect()
578 tLLCP_STATUS llcp_util_send_cc (tLLCP_DLCB *p_dlcb, tLLCP_CONNECTION_PARAMS *p_params) in llcp_util_send_cc() argument
584 if (p_params->miu != LLCP_DEFAULT_MIU) in llcp_util_send_cc()
588 if (p_params->rw != LLCP_DEFAULT_RW) in llcp_util_send_cc()
591 p_params->rw &= 0x0F; in llcp_util_send_cc()
609 UINT16_TO_BE_STREAM (p, p_params->miu - LLCP_DEFAULT_MIU); in llcp_util_send_cc()
616 UINT8_TO_BE_STREAM (p, p_params->rw); in llcp_util_send_cc()