Lines Matching refs:p_cfg
277 static void avdt_msg_bld_cfg(uint8_t** p, AvdtpSepConfig* p_cfg) { in avdt_msg_bld_cfg() argument
284 if (p_cfg->psc_mask & AVDT_PSC_TRANS) { in avdt_msg_bld_cfg()
290 if (p_cfg->psc_mask & AVDT_PSC_REPORT) { in avdt_msg_bld_cfg()
296 if (p_cfg->num_codec != 0) { in avdt_msg_bld_cfg()
298 len = p_cfg->codec_info[0] + 1; in avdt_msg_bld_cfg()
301 memcpy(*p, p_cfg->codec_info, len); in avdt_msg_bld_cfg()
306 if (p_cfg->num_protect != 0) { in avdt_msg_bld_cfg()
308 len = p_cfg->protect_info[0] + 1; in avdt_msg_bld_cfg()
311 memcpy(*p, p_cfg->protect_info, len); in avdt_msg_bld_cfg()
316 if (p_cfg->psc_mask & AVDT_PSC_DELAY_RPT) { in avdt_msg_bld_cfg()
366 avdt_msg_bld_cfg(p, p_msg->config_cmd.p_cfg); in avdt_msg_bld_setconfig_cmd()
384 p_msg->reconfig_cmd.p_cfg->psc_mask = 0; in avdt_msg_bld_reconfig_cmd()
385 avdt_msg_bld_cfg(p, p_msg->reconfig_cmd.p_cfg); in avdt_msg_bld_reconfig_cmd()
473 AvdtpSepConfig cfg = *p_msg->svccap.p_cfg; in avdt_msg_bld_svccap()
493 avdt_msg_bld_cfg(p, p_msg->svccap.p_cfg); in avdt_msg_bld_all_svccap()
524 static uint8_t avdt_msg_prs_cfg(AvdtpSepConfig* p_cfg, uint8_t* p, uint16_t len, in avdt_msg_prs_cfg() argument
533 if (!p_cfg) { in avdt_msg_prs_cfg()
538 p_cfg->psc_mask = 0; in avdt_msg_prs_cfg()
539 p_cfg->num_codec = 0; in avdt_msg_prs_cfg()
540 p_cfg->num_protect = 0; in avdt_msg_prs_cfg()
584 p_cfg->psc_mask |= (1 << elem); in avdt_msg_prs_cfg()
586 p_cfg->psc_mask); in avdt_msg_prs_cfg()
595 p_cfg->recov_type = *p++; in avdt_msg_prs_cfg()
596 p_cfg->recov_mrws = *p++; in avdt_msg_prs_cfg()
597 p_cfg->recov_mnmp = *p++; in avdt_msg_prs_cfg()
598 if (p_cfg->recov_type != AVDT_RECOV_RFC2733) { in avdt_msg_prs_cfg()
600 } else if ((p_cfg->recov_mrws < AVDT_RECOV_MRWS_MIN) || in avdt_msg_prs_cfg()
601 (p_cfg->recov_mrws > AVDT_RECOV_MRWS_MAX) || in avdt_msg_prs_cfg()
602 (p_cfg->recov_mnmp < AVDT_RECOV_MNMP_MIN) || in avdt_msg_prs_cfg()
603 (p_cfg->recov_mnmp > AVDT_RECOV_MNMP_MAX)) { in avdt_msg_prs_cfg()
609 p_cfg->psc_mask &= ~AVDT_PSC_PROTECT; in avdt_msg_prs_cfg()
616 p_cfg->num_protect++; in avdt_msg_prs_cfg()
617 p_cfg->protect_info[protect_offset] = elem_len; in avdt_msg_prs_cfg()
619 memcpy(&p_cfg->protect_info[protect_offset], p, elem_len); in avdt_msg_prs_cfg()
630 p_cfg->hdrcmp_mask = *p++; in avdt_msg_prs_cfg()
634 p_cfg->psc_mask &= ~AVDT_PSC_CODEC; in avdt_msg_prs_cfg()
644 p_cfg->num_codec++; in avdt_msg_prs_cfg()
645 p_cfg->codec_info[0] = elem_len; in avdt_msg_prs_cfg()
646 memcpy(&p_cfg->codec_info[1], p, tmp); in avdt_msg_prs_cfg()
662 p_cfg->psc_mask); in avdt_msg_prs_cfg()
748 err = avdt_msg_prs_cfg(p_msg->config_cmd.p_cfg, p, len, in avdt_msg_prs_setconfig_cmd()
753 if (((p_msg->config_cmd.p_cfg->psc_mask & (~AVDT_PSC)) != 0) || in avdt_msg_prs_setconfig_cmd()
754 (p_msg->config_cmd.p_cfg->num_codec == 0)) { in avdt_msg_prs_setconfig_cmd()
791 err = avdt_msg_prs_cfg(p_msg->config_cmd.p_cfg, p, len, in avdt_msg_prs_reconfig_cmd()
797 p_msg->config_cmd.p_cfg->psc_mask, AVDT_MSG_PSC_MASK); in avdt_msg_prs_reconfig_cmd()
798 if ((p_msg->config_cmd.p_cfg->psc_mask != 0) || in avdt_msg_prs_reconfig_cmd()
799 (p_msg->config_cmd.p_cfg->num_codec == 0 && in avdt_msg_prs_reconfig_cmd()
800 p_msg->config_cmd.p_cfg->num_protect == 0)) { in avdt_msg_prs_reconfig_cmd()
931 uint8_t err = avdt_msg_prs_cfg(p_msg->svccap.p_cfg, p, len, in avdt_msg_prs_svccap()
933 if (p_msg->svccap.p_cfg) { in avdt_msg_prs_svccap()
934 p_msg->svccap.p_cfg->psc_mask &= AVDT_LEG_PSC; in avdt_msg_prs_svccap()
953 uint8_t err = avdt_msg_prs_cfg(p_msg->svccap.p_cfg, p, len, in avdt_msg_prs_all_svccap()
955 if (p_msg->svccap.p_cfg) { in avdt_msg_prs_all_svccap()
956 p_msg->svccap.p_cfg->psc_mask &= AVDT_MSG_PSC_MASK; in avdt_msg_prs_all_svccap()
1596 msg.svccap.p_cfg = (AvdtpSepConfig*)p_ccb->p_proc_data; in avdt_msg_ind()
1599 msg.svccap.p_cfg = &cfg; in avdt_msg_ind()
1602 msg.config_cmd.p_cfg = &cfg; in avdt_msg_ind()
1605 msg.reconfig_cmd.p_cfg = &cfg; in avdt_msg_ind()