Lines Matching full:role
589 return info.role; in conn_get_role()
597 uint8_t role; in bt_bap_stream_config() local
615 role = conn_get_role(conn); in bt_bap_stream_config()
616 if (role != BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_config()
617 LOG_DBG("Invalid conn role: %u, shall be central", role); in bt_bap_stream_config()
647 uint8_t role; in bt_bap_stream_qos() local
667 role = conn_get_role(conn); in bt_bap_stream_qos()
668 if (role != BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_qos()
669 LOG_DBG("Invalid conn role: %u, shall be central", role); in bt_bap_stream_qos()
684 uint8_t role; in bt_bap_stream_enable() local
694 role = conn_get_role(stream->conn); in bt_bap_stream_enable()
695 if (role != BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_enable()
696 LOG_DBG("Invalid conn role: %u, shall be central", role); in bt_bap_stream_enable()
718 uint8_t role; in bt_bap_stream_stop() local
726 role = conn_get_role(stream->conn); in bt_bap_stream_stop()
727 if (role != BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_stop()
728 LOG_DBG("Invalid conn role: %u, shall be central", role); in bt_bap_stream_stop()
757 uint8_t role; in bt_bap_stream_reconfig() local
786 role = conn_get_role(stream->conn); in bt_bap_stream_reconfig()
787 if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_CLIENT) && role == BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_reconfig()
789 } else if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_SERVER) && role == BT_HCI_ROLE_PERIPHERAL) { in bt_bap_stream_reconfig()
841 uint8_t role; in bt_bap_stream_start() local
861 role = conn_get_role(stream->conn); in bt_bap_stream_start()
862 if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_CLIENT) && role == BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_start()
864 } else if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_SERVER) && role == BT_HCI_ROLE_PERIPHERAL) { in bt_bap_stream_start()
881 uint8_t role; in bt_bap_stream_metadata() local
908 role = conn_get_role(stream->conn); in bt_bap_stream_metadata()
909 if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_CLIENT) && role == BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_metadata()
911 } else if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_SERVER) && role == BT_HCI_ROLE_PERIPHERAL) { in bt_bap_stream_metadata()
928 uint8_t role; in bt_bap_stream_disable() local
950 role = conn_get_role(stream->conn); in bt_bap_stream_disable()
951 if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_CLIENT) && role == BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_disable()
953 } else if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_SERVER) && role == BT_HCI_ROLE_PERIPHERAL) { in bt_bap_stream_disable()
970 uint8_t role; in bt_bap_stream_release() local
998 role = conn_get_role(stream->conn); in bt_bap_stream_release()
999 if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_CLIENT) && role == BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_release()
1001 } else if (IS_ENABLED(CONFIG_BT_BAP_UNICAST_SERVER) && role == BT_HCI_ROLE_PERIPHERAL) { in bt_bap_stream_release()