Lines Matching refs:cfg_len
539 uint16_t cfg_len = 0; in l2cu_send_peer_config_req() local
549 cfg_len += L2CAP_CFG_MTU_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_req()
551 cfg_len += L2CAP_CFG_FLUSH_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_req()
553 cfg_len += L2CAP_CFG_QOS_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_req()
555 cfg_len += L2CAP_CFG_FCR_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_req()
557 cfg_len += L2CAP_CFG_FCS_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_req()
559 cfg_len += L2CAP_CFG_EXT_FLOW_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_req()
562 (uint16_t)(L2CAP_CONFIG_REQ_LEN + cfg_len), in l2cu_send_peer_config_req()
640 uint16_t cfg_len = 0; in l2cu_send_peer_config_rsp() local
645 cfg_len += L2CAP_CFG_MTU_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rsp()
647 cfg_len += L2CAP_CFG_FLUSH_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rsp()
649 cfg_len += L2CAP_CFG_QOS_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rsp()
651 cfg_len += L2CAP_CFG_FCR_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rsp()
653 cfg_len += L2CAP_CFG_EXT_FLOW_OPTION_LEN + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rsp()
656 (uint16_t)(L2CAP_CONFIG_RSP_LEN + cfg_len), in l2cu_send_peer_config_rsp()
730 uint16_t len, cfg_len, buf_space, len1; in l2cu_send_peer_config_rej() local
788 cfg_len = *(p_data + 1); in l2cu_send_peer_config_rej()
798 p_data += cfg_len + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rej()
804 if ((cfg_len + L2CAP_CFG_OPTION_OVERHEAD) <= data_len) { in l2cu_send_peer_config_rej()
806 if (buf_space >= (cfg_len + L2CAP_CFG_OPTION_OVERHEAD)) { in l2cu_send_peer_config_rej()
807 memcpy(p, p_data, cfg_len + L2CAP_CFG_OPTION_OVERHEAD); in l2cu_send_peer_config_rej()
808 p += cfg_len + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rej()
809 buf_space -= (cfg_len + L2CAP_CFG_OPTION_OVERHEAD); in l2cu_send_peer_config_rej()
816 p_data += cfg_len + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rej()