Lines Matching refs:cp
91 struct bt_hci_cp_le_set_cl_cte_tx_params *cp; in hci_df_set_cl_cte_tx_params() local
128 sizeof(*cp) + params->num_ant_ids); in hci_df_set_cl_cte_tx_params()
133 cp = net_buf_add(buf, sizeof(*cp)); in hci_df_set_cl_cte_tx_params()
134 cp->handle = adv->handle; in hci_df_set_cl_cte_tx_params()
135 cp->cte_len = params->cte_len; in hci_df_set_cl_cte_tx_params()
136 cp->cte_type = get_hci_cte_type(params->cte_type); in hci_df_set_cl_cte_tx_params()
137 cp->cte_count = params->cte_count; in hci_df_set_cl_cte_tx_params()
143 cp->switch_pattern_len = params->num_ant_ids; in hci_df_set_cl_cte_tx_params()
145 cp->switch_pattern_len = 0; in hci_df_set_cl_cte_tx_params()
210 struct bt_hci_cp_le_set_cl_cte_tx_enable *cp; in hci_df_set_adv_cte_tx_enable() local
214 buf = bt_hci_cmd_create(BT_HCI_OP_LE_SET_CL_CTE_TX_ENABLE, sizeof(*cp)); in hci_df_set_adv_cte_tx_enable()
219 cp = net_buf_add(buf, sizeof(*cp)); in hci_df_set_adv_cte_tx_enable()
220 (void)memset(cp, 0, sizeof(*cp)); in hci_df_set_adv_cte_tx_enable()
222 cp->handle = adv->handle; in hci_df_set_adv_cte_tx_enable()
223 cp->cte_enable = enable ? 1 : 0; in hci_df_set_adv_cte_tx_enable()
282 struct bt_hci_cp_le_set_cl_cte_sampling_enable *cp; in prepare_cl_cte_rx_enable_cmd_params() local
301 cp = net_buf_add(*buf, sizeof(*cp)); in prepare_cl_cte_rx_enable_cmd_params()
302 (void)memset(cp, 0, sizeof(*cp)); in prepare_cl_cte_rx_enable_cmd_params()
304 cp->sync_handle = sys_cpu_to_le16(sync->handle); in prepare_cl_cte_rx_enable_cmd_params()
305 cp->sampling_enable = enable ? 1 : 0; in prepare_cl_cte_rx_enable_cmd_params()
311 cp->max_sampled_cte = params->max_cte_count; in prepare_cl_cte_rx_enable_cmd_params()
314 cp->slot_durations = params->slot_durations; in prepare_cl_cte_rx_enable_cmd_params()
322 cp->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US; in prepare_cl_cte_rx_enable_cmd_params()
326 cp->switch_pattern_len = switch_pattern_len; in prepare_cl_cte_rx_enable_cmd_params()
327 dest_ant_ids = net_buf_add(*buf, cp->switch_pattern_len); in prepare_cl_cte_rx_enable_cmd_params()
328 memcpy(dest_ant_ids, ant_ids, cp->switch_pattern_len); in prepare_cl_cte_rx_enable_cmd_params()
493 struct bt_hci_cp_le_set_conn_cte_tx_params *cp; in prepare_conn_cte_tx_params_cmd() local
496 cp = net_buf_add(buf, sizeof(*cp)); in prepare_conn_cte_tx_params_cmd()
497 (void)memset(cp, 0, sizeof(*cp)); in prepare_conn_cte_tx_params_cmd()
499 cp->handle = sys_cpu_to_le16(conn->handle); in prepare_conn_cte_tx_params_cmd()
500 cp->cte_types = params->cte_types; in prepare_conn_cte_tx_params_cmd()
503 cp->switch_pattern_len = params->num_ant_ids; in prepare_conn_cte_tx_params_cmd()
505 ant_ids = net_buf_add(buf, cp->switch_pattern_len); in prepare_conn_cte_tx_params_cmd()
506 (void)memcpy(ant_ids, params->ant_ids, cp->switch_pattern_len); in prepare_conn_cte_tx_params_cmd()
508 cp->switch_pattern_len = 0U; in prepare_conn_cte_tx_params_cmd()
573 struct bt_hci_cp_le_set_conn_cte_rx_params *cp; in prepare_conn_cte_rx_enable_cmd_params() local
592 cp = net_buf_add(*buf, sizeof(*cp)); in prepare_conn_cte_rx_enable_cmd_params()
593 (void)memset(cp, 0, sizeof(*cp)); in prepare_conn_cte_rx_enable_cmd_params()
595 cp->handle = sys_cpu_to_le16(conn->handle); in prepare_conn_cte_rx_enable_cmd_params()
596 cp->sampling_enable = enable ? 1 : 0; in prepare_conn_cte_rx_enable_cmd_params()
603 cp->slot_durations = params->slot_durations; in prepare_conn_cte_rx_enable_cmd_params()
613 cp->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US; in prepare_conn_cte_rx_enable_cmd_params()
617 cp->switch_pattern_len = switch_pattern_len; in prepare_conn_cte_rx_enable_cmd_params()
618 dest_ant_ids = net_buf_add(*buf, cp->switch_pattern_len); in prepare_conn_cte_rx_enable_cmd_params()
619 (void)memcpy(dest_ant_ids, ant_ids, cp->switch_pattern_len); in prepare_conn_cte_rx_enable_cmd_params()
794 struct bt_hci_cp_le_conn_cte_req_enable *cp; in prepare_conn_cte_req_enable_cmd_params() local
796 cp = net_buf_add(buf, sizeof(*cp)); in prepare_conn_cte_req_enable_cmd_params()
797 (void)memset(cp, 0, sizeof(*cp)); in prepare_conn_cte_req_enable_cmd_params()
799 cp->handle = sys_cpu_to_le16(conn->handle); in prepare_conn_cte_req_enable_cmd_params()
800 cp->enable = enable ? 1 : 0; in prepare_conn_cte_req_enable_cmd_params()
803 cp->cte_request_interval = params->interval; in prepare_conn_cte_req_enable_cmd_params()
804 cp->requested_cte_length = sys_cpu_to_le16(params->cte_length); in prepare_conn_cte_req_enable_cmd_params()
805 cp->requested_cte_type = get_hci_cte_type(params->cte_type); in prepare_conn_cte_req_enable_cmd_params()
891 struct bt_hci_cp_le_conn_cte_rsp_enable *cp; in prepare_conn_cte_rsp_enable_cmd_params() local
893 cp = net_buf_add(buf, sizeof(*cp)); in prepare_conn_cte_rsp_enable_cmd_params()
894 (void)memset(cp, 0, sizeof(*cp)); in prepare_conn_cte_rsp_enable_cmd_params()
896 cp->handle = sys_cpu_to_le16(conn->handle); in prepare_conn_cte_rsp_enable_cmd_params()
897 cp->enable = enable ? 1U : 0U; in prepare_conn_cte_rsp_enable_cmd_params()