Lines Matching refs:param

190 	const struct bt_cap_commander_broadcast_reception_start_param *param)  in valid_broadcast_reception_start_param()  argument
194 CHECKIF(param == NULL) { in valid_broadcast_reception_start_param()
199 CHECKIF(param->count == 0) { in valid_broadcast_reception_start_param()
200 LOG_DBG("Invalid param->count: %zu", param->count); in valid_broadcast_reception_start_param()
204 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_broadcast_reception_start_param()
205 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_broadcast_reception_start_param()
210 CHECKIF(param->param == NULL) { in valid_broadcast_reception_start_param()
215 for (size_t i = 0; i < param->count; i++) { in valid_broadcast_reception_start_param()
217 &param->param[i]; in valid_broadcast_reception_start_param()
218 const union bt_cap_set_member *member = &param->param[i].member; in valid_broadcast_reception_start_param()
220 bt_cap_common_get_member_conn(param->type, member); in valid_broadcast_reception_start_param()
313 const union bt_cap_set_member *other = &param->param[j].member; in valid_broadcast_reception_start_param()
328 const struct bt_cap_commander_broadcast_reception_start_param *param) in bt_cap_commander_broadcast_reception_start() argument
342 if (!valid_broadcast_reception_start_param(param)) { in bt_cap_commander_broadcast_reception_start()
346 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_BROADCAST_RECEPTION_START, param->count); in bt_cap_commander_broadcast_reception_start()
358 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_broadcast_reception_start()
360 &param->param[i]; in bt_cap_commander_broadcast_reception_start()
363 bt_cap_common_get_member_conn(param->type, &member_param->member); in bt_cap_commander_broadcast_reception_start()
532 const struct bt_cap_commander_broadcast_reception_stop_param *param) in valid_broadcast_reception_stop_param() argument
534 CHECKIF(param == NULL) { in valid_broadcast_reception_stop_param()
539 CHECKIF(param->count == 0) { in valid_broadcast_reception_stop_param()
540 LOG_DBG("Invalid param->count: %zu", param->count); in valid_broadcast_reception_stop_param()
544 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_broadcast_reception_stop_param()
545 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_broadcast_reception_stop_param()
550 CHECKIF(param->param == NULL) { in valid_broadcast_reception_stop_param()
555 for (size_t i = 0; i < param->count; i++) { in valid_broadcast_reception_stop_param()
557 &param->param[i]; in valid_broadcast_reception_stop_param()
558 const union bt_cap_set_member *member = &param->param[i].member; in valid_broadcast_reception_stop_param()
560 bt_cap_common_get_member_conn(param->type, member); in valid_broadcast_reception_stop_param()
584 const union bt_cap_set_member *other = &param->param[j].member; in valid_broadcast_reception_stop_param()
585 uint8_t other_src_id = param->param[j].src_id; in valid_broadcast_reception_stop_param()
600 const struct bt_cap_commander_broadcast_reception_stop_param *param) in bt_cap_commander_broadcast_reception_stop() argument
614 if (!valid_broadcast_reception_stop_param(param)) { in bt_cap_commander_broadcast_reception_stop()
618 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_BROADCAST_RECEPTION_STOP, param->count); in bt_cap_commander_broadcast_reception_stop()
632 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_broadcast_reception_stop()
634 &param->param[i]; in bt_cap_commander_broadcast_reception_stop()
637 bt_cap_common_get_member_conn(param->type, &member_param->member); in bt_cap_commander_broadcast_reception_stop()
726 const struct bt_cap_commander_distribute_broadcast_code_param *param) in valid_distribute_broadcast_code_param() argument
728 CHECKIF(param == NULL) { in valid_distribute_broadcast_code_param()
733 CHECKIF(param->count == 0) { in valid_distribute_broadcast_code_param()
734 LOG_DBG("Invalid param->count: %zu", param->count); in valid_distribute_broadcast_code_param()
738 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_distribute_broadcast_code_param()
739 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_distribute_broadcast_code_param()
744 CHECKIF(param->param == NULL) { in valid_distribute_broadcast_code_param()
749 for (size_t i = 0; i < param->count; i++) { in valid_distribute_broadcast_code_param()
750 const union bt_cap_set_member *member = &param->param[i].member; in valid_distribute_broadcast_code_param()
752 bt_cap_common_get_member_conn(param->type, member); in valid_distribute_broadcast_code_param()
765 const union bt_cap_set_member *other = &param->param[j].member; in valid_distribute_broadcast_code_param()
767 bt_cap_common_get_member_conn(param->type, other); in valid_distribute_broadcast_code_param()
782 const struct bt_cap_commander_distribute_broadcast_code_param *param) in bt_cap_commander_distribute_broadcast_code() argument
795 if (!valid_distribute_broadcast_code_param(param)) { in bt_cap_commander_distribute_broadcast_code()
799 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_DISTRIBUTE_BROADCAST_CODE, param->count); in bt_cap_commander_distribute_broadcast_code()
812 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_distribute_broadcast_code()
814 &param->param[i]; in bt_cap_commander_distribute_broadcast_code()
817 bt_cap_common_get_member_conn(param->type, &member_param->member); in bt_cap_commander_distribute_broadcast_code()
832 param->broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in bt_cap_commander_distribute_broadcast_code()
964 static bool valid_change_volume_param(const struct bt_cap_commander_change_volume_param *param) in valid_change_volume_param() argument
966 CHECKIF(param == NULL) { in valid_change_volume_param()
971 CHECKIF(param->count == 0) { in valid_change_volume_param()
972 LOG_DBG("Invalid param->count: %u", param->count); in valid_change_volume_param()
976 CHECKIF(param->members == NULL) { in valid_change_volume_param()
981 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_change_volume_param()
982 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_change_volume_param()
987 for (size_t i = 0U; i < param->count; i++) { in valid_change_volume_param()
988 const union bt_cap_set_member *member = &param->members[i]; in valid_change_volume_param()
990 bt_cap_common_get_member_conn(param->type, member); in valid_change_volume_param()
1008 const union bt_cap_set_member *other = &param->members[j]; in valid_change_volume_param()
1080 int bt_cap_commander_change_volume(const struct bt_cap_commander_change_volume_param *param) in bt_cap_commander_change_volume() argument
1093 if (!valid_change_volume_param(param)) { in bt_cap_commander_change_volume()
1097 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_VOLUME_CHANGE, param->count); in bt_cap_commander_change_volume()
1108 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_change_volume()
1110 bt_cap_common_get_member_conn(param->type, &param->members[i]); in bt_cap_commander_change_volume()
1121 active_proc->proc_param.commander[i].change_volume.volume = param->volume; in bt_cap_commander_change_volume()
1138 const struct bt_cap_commander_change_volume_mute_state_param *param) in valid_change_volume_mute_state_param() argument
1140 CHECKIF(param == NULL) { in valid_change_volume_mute_state_param()
1145 CHECKIF(param->count == 0) { in valid_change_volume_mute_state_param()
1146 LOG_DBG("Invalid param->count: %u", param->count); in valid_change_volume_mute_state_param()
1150 CHECKIF(param->members == NULL) { in valid_change_volume_mute_state_param()
1155 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_change_volume_mute_state_param()
1156 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_change_volume_mute_state_param()
1161 for (size_t i = 0U; i < param->count; i++) { in valid_change_volume_mute_state_param()
1162 const union bt_cap_set_member *member = &param->members[i]; in valid_change_volume_mute_state_param()
1164 bt_cap_common_get_member_conn(param->type, member); in valid_change_volume_mute_state_param()
1182 const union bt_cap_set_member *other = &param->members[j]; in valid_change_volume_mute_state_param()
1259 const struct bt_cap_commander_change_volume_mute_state_param *param) in bt_cap_commander_change_volume_mute_state() argument
1272 if (!valid_change_volume_mute_state_param(param)) { in bt_cap_commander_change_volume_mute_state()
1276 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_VOLUME_MUTE_CHANGE, param->count); in bt_cap_commander_change_volume_mute_state()
1288 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_change_volume_mute_state()
1290 bt_cap_common_get_member_conn(param->type, &param->members[i]); in bt_cap_commander_change_volume_mute_state()
1301 active_proc->proc_param.commander[i].change_vol_mute.mute = param->mute; in bt_cap_commander_change_volume_mute_state()
1324 valid_change_offset_param(const struct bt_cap_commander_change_volume_offset_param *param) in valid_change_offset_param() argument
1326 CHECKIF(param == NULL) { in valid_change_offset_param()
1331 CHECKIF(param->count == 0) { in valid_change_offset_param()
1332 LOG_DBG("Invalid param->count: %u", param->count); in valid_change_offset_param()
1336 CHECKIF(param->param == NULL) { in valid_change_offset_param()
1341 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_change_offset_param()
1342 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_change_offset_param()
1347 for (size_t i = 0U; i < param->count; i++) { in valid_change_offset_param()
1349 &param->param[i]; in valid_change_offset_param()
1352 bt_cap_common_get_member_conn(param->type, member); in valid_change_offset_param()
1387 const union bt_cap_set_member *other = &param->param[j].member; in valid_change_offset_param()
1461 const struct bt_cap_commander_change_volume_offset_param *param) in bt_cap_commander_change_volume_offset() argument
1475 if (!valid_change_offset_param(param)) { in bt_cap_commander_change_volume_offset()
1479 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_VOLUME_OFFSET_CHANGE, param->count); in bt_cap_commander_change_volume_offset()
1490 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_change_volume_offset()
1492 &param->param[i]; in bt_cap_commander_change_volume_offset()
1494 bt_cap_common_get_member_conn(param->type, &member_param->member); in bt_cap_commander_change_volume_offset()
1561 const struct bt_cap_commander_change_microphone_mute_state_param *param) in valid_change_microphone_mute_state_param() argument
1563 CHECKIF(param == NULL) { in valid_change_microphone_mute_state_param()
1568 CHECKIF(param->count == 0) { in valid_change_microphone_mute_state_param()
1569 LOG_DBG("Invalid param->count: %u", param->count); in valid_change_microphone_mute_state_param()
1573 CHECKIF(param->members == NULL) { in valid_change_microphone_mute_state_param()
1578 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_change_microphone_mute_state_param()
1579 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_change_microphone_mute_state_param()
1584 for (size_t i = 0U; i < param->count; i++) { in valid_change_microphone_mute_state_param()
1585 const union bt_cap_set_member *member = &param->members[i]; in valid_change_microphone_mute_state_param()
1587 bt_cap_common_get_member_conn(param->type, member); in valid_change_microphone_mute_state_param()
1605 const union bt_cap_set_member *other = &param->members[j]; in valid_change_microphone_mute_state_param()
1682 const struct bt_cap_commander_change_microphone_mute_state_param *param) in bt_cap_commander_change_microphone_mute_state() argument
1695 if (!valid_change_microphone_mute_state_param(param)) { in bt_cap_commander_change_microphone_mute_state()
1699 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_MICROPHONE_MUTE_CHANGE, param->count); in bt_cap_commander_change_microphone_mute_state()
1711 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_change_microphone_mute_state()
1713 bt_cap_common_get_member_conn(param->type, &param->members[i]); in bt_cap_commander_change_microphone_mute_state()
1724 active_proc->proc_param.commander[i].change_mic_mute.mute = param->mute; in bt_cap_commander_change_microphone_mute_state()
1747 const struct bt_cap_commander_change_microphone_gain_setting_param *param) in valid_change_microphone_gain_param() argument
1749 CHECKIF(param == NULL) { in valid_change_microphone_gain_param()
1754 CHECKIF(param->count == 0) { in valid_change_microphone_gain_param()
1755 LOG_DBG("Invalid param->count: %u", param->count); in valid_change_microphone_gain_param()
1759 CHECKIF(param->param == NULL) { in valid_change_microphone_gain_param()
1764 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_change_microphone_gain_param()
1765 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_change_microphone_gain_param()
1770 for (size_t i = 0U; i < param->count; i++) { in valid_change_microphone_gain_param()
1771 const union bt_cap_set_member *member = &param->param[i].member; in valid_change_microphone_gain_param()
1773 bt_cap_common_get_member_conn(param->type, member); in valid_change_microphone_gain_param()
1803 const union bt_cap_set_member *other = &param->param[j].member; in valid_change_microphone_gain_param()
1875 const struct bt_cap_commander_change_microphone_gain_setting_param *param) in bt_cap_commander_change_microphone_gain_setting() argument
1888 if (!valid_change_microphone_gain_param(param)) { in bt_cap_commander_change_microphone_gain_setting()
1892 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_MICROPHONE_GAIN_CHANGE, param->count); in bt_cap_commander_change_microphone_gain_setting()
1903 for (size_t i = 0U; i < param->count; i++) { in bt_cap_commander_change_microphone_gain_setting()
1904 const union bt_cap_set_member *member = &param->param[i].member; in bt_cap_commander_change_microphone_gain_setting()
1905 struct bt_conn *member_conn = bt_cap_common_get_member_conn(param->type, member); in bt_cap_commander_change_microphone_gain_setting()
1930 active_proc->proc_param.commander[i].change_gain.gain = param->param[i].gain; in bt_cap_commander_change_microphone_gain_setting()