Lines Matching refs:cp

154 	const struct btp_aics_set_gain_cmd *cp = cmd;  in aics_set_gain()  local
156 LOG_DBG("AICS set gain %d", cp->gain); in aics_set_gain()
158 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_set_gain()
159 if (bt_aics_gain_set(aics_client_instance.aics[0], cp->gain) != 0) { in aics_set_gain()
164 if (bt_aics_gain_set(aics_server_instance.aics[i], cp->gain) != 0) { in aics_set_gain()
175 const struct btp_aics_unmute_cmd *cp = cmd; in aics_unmute() local
179 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_unmute()
196 const struct btp_aics_mute_cmd *cp = cmd; in aics_mute() local
200 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_mute()
217 const struct btp_aics_state_cmd *cp = cmd; in aics_state_get() local
221 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_state_get()
238 const struct btp_aics_type_cmd *cp = cmd; in aics_type_get() local
242 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_type_get()
259 const struct btp_aics_status_cmd *cp = cmd; in aics_status_get() local
263 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_status_get()
281 const struct btp_aics_gain_setting_prop_cmd *cp = cmd; in aics_gain_setting_prop_get() local
285 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_gain_setting_prop_get()
302 const struct btp_aics_manual_gain_cmd *cp = cmd; in aics_man_gain_set() local
306 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_man_gain_set()
323 const struct btp_aics_auto_gain_cmd *cp = cmd; in aics_auto_gain_set() local
327 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_auto_gain_set()
385 const struct btp_aics_audio_desc_cmd *cp = cmd; in aics_desc_set() local
390 if (cmd_len < sizeof(*cp) || cmd_len != sizeof(*cp) + cp->desc_len) { in aics_desc_set()
394 if (cp->desc_len >= sizeof(description)) { in aics_desc_set()
398 if (cp->desc_len > (BT_AICS_MAX_INPUT_DESCRIPTION_SIZE - 1)) { in aics_desc_set()
402 memcpy(description, cp->desc, cp->desc_len); in aics_desc_set()
403 description[cp->desc_len] = '\0'; in aics_desc_set()
416 const struct btp_aics_desc_cmd *cp = cmd; in aics_desc_get() local
420 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { in aics_desc_get()