Lines Matching refs:param

1512 				      const struct bt_tbs_register_param *param)  in tbs_inst_init_and_register()  argument
1525 (void)utf8_lcpy(inst->provider_name, param->provider_name, sizeof(inst->provider_name)); in tbs_inst_init_and_register()
1526 (void)utf8_lcpy(inst->uci, param->uci, sizeof(inst->uci)); in tbs_inst_init_and_register()
1527 (void)utf8_lcpy(inst->uri_scheme_list, param->uri_schemes_supported, in tbs_inst_init_and_register()
1529 inst->optional_opcodes = param->supported_features; in tbs_inst_init_and_register()
1530 inst->technology = param->technology; in tbs_inst_init_and_register()
1533 inst->authorization_required = param->authorization_required; in tbs_inst_init_and_register()
1539 LOG_DBG("Could not register %sTBS: %d", param->gtbs ? "G" : "", ret); in tbs_inst_init_and_register()
1548 static int gtbs_service_inst_register(const struct bt_tbs_register_param *param) in gtbs_service_inst_register() argument
1550 return tbs_inst_init_and_register(&gtbs_inst, &gtbs_svc, param); in gtbs_service_inst_register()
1553 static int tbs_service_inst_register(const struct bt_tbs_register_param *param) in tbs_service_inst_register() argument
1559 return tbs_inst_init_and_register(inst, &tbs_service_list[i], param); in tbs_service_inst_register()
1566 static bool valid_register_param(const struct bt_tbs_register_param *param) in valid_register_param() argument
1570 if (param == NULL) { in valid_register_param()
1576 if (param->provider_name == NULL) { in valid_register_param()
1582 str_len = strlen(param->provider_name); in valid_register_param()
1591 if (param->uci == NULL) { in valid_register_param()
1597 if (param->uri_schemes_supported == NULL) { in valid_register_param()
1603 if (!IN_RANGE(param->technology, BT_TBS_TECHNOLOGY_3G, BT_TBS_TECHNOLOGY_WCDMA)) { in valid_register_param()
1604 LOG_DBG("Invalid technology: %u", param->technology); in valid_register_param()
1609 if (param->supported_features > BT_TBS_FEATURE_ALL) { in valid_register_param()
1610 LOG_DBG("Invalid supported_features: %u", param->supported_features); in valid_register_param()
1615 if (CONFIG_BT_TBS_BEARER_COUNT == 0 && !param->gtbs) { in valid_register_param()
1624 int bt_tbs_register_bearer(const struct bt_tbs_register_param *param) in bt_tbs_register_bearer() argument
1628 CHECKIF(!valid_register_param(param)) { in bt_tbs_register_bearer()
1634 if (param->gtbs && inst_is_registered(&gtbs_inst)) { in bt_tbs_register_bearer()
1640 if (!param->gtbs && !inst_is_registered(&gtbs_inst)) { in bt_tbs_register_bearer()
1646 if (param->gtbs) { in bt_tbs_register_bearer()
1647 ret = gtbs_service_inst_register(param); in bt_tbs_register_bearer()
1654 ret = tbs_service_inst_register(param); in bt_tbs_register_bearer()