Lines Matching refs:p_cfg
275 static void avdt_msg_bld_cfg(uint8_t** p, AvdtpSepConfig* p_cfg) { in avdt_msg_bld_cfg() argument
282 if (p_cfg->psc_mask & AVDT_PSC_TRANS) { in avdt_msg_bld_cfg()
288 if (p_cfg->psc_mask & AVDT_PSC_REPORT) { in avdt_msg_bld_cfg()
294 if (p_cfg->num_codec != 0) { in avdt_msg_bld_cfg()
296 len = p_cfg->codec_info[0] + 1; in avdt_msg_bld_cfg()
299 memcpy(*p, p_cfg->codec_info, len); in avdt_msg_bld_cfg()
304 if (p_cfg->num_protect != 0) { in avdt_msg_bld_cfg()
306 len = p_cfg->protect_info[0] + 1; in avdt_msg_bld_cfg()
309 memcpy(*p, p_cfg->protect_info, len); in avdt_msg_bld_cfg()
314 if (p_cfg->psc_mask & AVDT_PSC_DELAY_RPT) { in avdt_msg_bld_cfg()
364 avdt_msg_bld_cfg(p, p_msg->config_cmd.p_cfg); in avdt_msg_bld_setconfig_cmd()
382 p_msg->reconfig_cmd.p_cfg->psc_mask = 0; in avdt_msg_bld_reconfig_cmd()
383 avdt_msg_bld_cfg(p, p_msg->reconfig_cmd.p_cfg); in avdt_msg_bld_reconfig_cmd()
471 AvdtpSepConfig cfg = *p_msg->svccap.p_cfg; in avdt_msg_bld_svccap()
491 avdt_msg_bld_cfg(p, p_msg->svccap.p_cfg); in avdt_msg_bld_all_svccap()
522 static uint8_t avdt_msg_prs_cfg(AvdtpSepConfig* p_cfg, uint8_t* p, uint16_t len, in avdt_msg_prs_cfg() argument
531 if (!p_cfg) { in avdt_msg_prs_cfg()
536 p_cfg->psc_mask = 0; in avdt_msg_prs_cfg()
537 p_cfg->num_codec = 0; in avdt_msg_prs_cfg()
538 p_cfg->num_protect = 0; in avdt_msg_prs_cfg()
582 p_cfg->psc_mask |= (1 << elem); in avdt_msg_prs_cfg()
584 p_cfg->psc_mask); in avdt_msg_prs_cfg()
593 p_cfg->recov_type = *p++; in avdt_msg_prs_cfg()
594 p_cfg->recov_mrws = *p++; in avdt_msg_prs_cfg()
595 p_cfg->recov_mnmp = *p++; in avdt_msg_prs_cfg()
596 if (p_cfg->recov_type != AVDT_RECOV_RFC2733) { in avdt_msg_prs_cfg()
598 } else if ((p_cfg->recov_mrws < AVDT_RECOV_MRWS_MIN) || in avdt_msg_prs_cfg()
599 (p_cfg->recov_mrws > AVDT_RECOV_MRWS_MAX) || in avdt_msg_prs_cfg()
600 (p_cfg->recov_mnmp < AVDT_RECOV_MNMP_MIN) || in avdt_msg_prs_cfg()
601 (p_cfg->recov_mnmp > AVDT_RECOV_MNMP_MAX)) { in avdt_msg_prs_cfg()
607 p_cfg->psc_mask &= ~AVDT_PSC_PROTECT; in avdt_msg_prs_cfg()
614 p_cfg->num_protect++; in avdt_msg_prs_cfg()
615 p_cfg->protect_info[protect_offset] = elem_len; in avdt_msg_prs_cfg()
617 memcpy(&p_cfg->protect_info[protect_offset], p, elem_len); in avdt_msg_prs_cfg()
628 p_cfg->hdrcmp_mask = *p++; in avdt_msg_prs_cfg()
632 p_cfg->psc_mask &= ~AVDT_PSC_CODEC; in avdt_msg_prs_cfg()
642 p_cfg->num_codec++; in avdt_msg_prs_cfg()
643 p_cfg->codec_info[0] = elem_len; in avdt_msg_prs_cfg()
644 memcpy(&p_cfg->codec_info[1], p, tmp); in avdt_msg_prs_cfg()
660 p_cfg->psc_mask); in avdt_msg_prs_cfg()
746 err = avdt_msg_prs_cfg(p_msg->config_cmd.p_cfg, p, len, in avdt_msg_prs_setconfig_cmd()
751 if (((p_msg->config_cmd.p_cfg->psc_mask & (~AVDT_PSC)) != 0) || in avdt_msg_prs_setconfig_cmd()
752 (p_msg->config_cmd.p_cfg->num_codec == 0)) { in avdt_msg_prs_setconfig_cmd()
789 err = avdt_msg_prs_cfg(p_msg->config_cmd.p_cfg, p, len, in avdt_msg_prs_reconfig_cmd()
795 p_msg->config_cmd.p_cfg->psc_mask, AVDT_MSG_PSC_MASK); in avdt_msg_prs_reconfig_cmd()
796 if ((p_msg->config_cmd.p_cfg->psc_mask != 0) || in avdt_msg_prs_reconfig_cmd()
797 (p_msg->config_cmd.p_cfg->num_codec == 0 && in avdt_msg_prs_reconfig_cmd()
798 p_msg->config_cmd.p_cfg->num_protect == 0)) { in avdt_msg_prs_reconfig_cmd()
929 uint8_t err = avdt_msg_prs_cfg(p_msg->svccap.p_cfg, p, len, in avdt_msg_prs_svccap()
931 if (p_msg->svccap.p_cfg) { in avdt_msg_prs_svccap()
932 p_msg->svccap.p_cfg->psc_mask &= AVDT_LEG_PSC; in avdt_msg_prs_svccap()
951 uint8_t err = avdt_msg_prs_cfg(p_msg->svccap.p_cfg, p, len, in avdt_msg_prs_all_svccap()
953 if (p_msg->svccap.p_cfg) { in avdt_msg_prs_all_svccap()
954 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()