Lines Matching refs:cp
120 struct bt_hci_cp_le_set_ext_scan_enable *cp; in cmd_le_set_ext_scan_enable() local
125 buf = bt_hci_cmd_create(BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE, sizeof(*cp)); in cmd_le_set_ext_scan_enable()
130 cp = net_buf_add(buf, sizeof(*cp)); in cmd_le_set_ext_scan_enable()
132 cp->filter_dup = filter_duplicates; in cmd_le_set_ext_scan_enable()
133 cp->enable = enable; in cmd_le_set_ext_scan_enable()
134 cp->duration = sys_cpu_to_le16(duration); in cmd_le_set_ext_scan_enable()
135 cp->period = 0; in cmd_le_set_ext_scan_enable()
150 struct bt_hci_cp_le_set_scan_enable *cp; in cmd_le_set_scan_enable_legacy() local
155 buf = bt_hci_cmd_create(BT_HCI_OP_LE_SET_SCAN_ENABLE, sizeof(*cp)); in cmd_le_set_scan_enable_legacy()
160 cp = net_buf_add(buf, sizeof(*cp)); in cmd_le_set_scan_enable_legacy()
162 cp->filter_dup = filter_duplicates; in cmd_le_set_scan_enable_legacy()
163 cp->enable = enable; in cmd_le_set_scan_enable_legacy()
1126 struct bt_hci_cp_le_per_adv_terminate_sync *cp; in per_adv_sync_terminate() local
1130 sizeof(*cp)); in per_adv_sync_terminate()
1135 cp = net_buf_add(buf, sizeof(*cp)); in per_adv_sync_terminate()
1136 (void)memset(cp, 0, sizeof(*cp)); in per_adv_sync_terminate()
1138 cp->handle = sys_cpu_to_le16(handle); in per_adv_sync_terminate()
1315 struct bt_hci_cp_le_set_pawr_sync_subevent *cp; in bt_le_per_adv_sync_subevent() local
1323 sizeof(*cp) + params->num_subevents); in bt_le_per_adv_sync_subevent()
1329 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_per_adv_sync_subevent()
1330 (void)memset(cp, 0, sizeof(*cp)); in bt_le_per_adv_sync_subevent()
1331 cp->sync_handle = sys_cpu_to_le16(per_adv_sync->handle); in bt_le_per_adv_sync_subevent()
1332 cp->periodic_adv_properties = sys_cpu_to_le16(params->properties); in bt_le_per_adv_sync_subevent()
1333 cp->num_subevents = params->num_subevents; in bt_le_per_adv_sync_subevent()
1334 net_buf_add_mem(buf, params->subevents, cp->num_subevents); in bt_le_per_adv_sync_subevent()
1343 struct bt_hci_cp_le_set_pawr_response_data *cp; in bt_le_per_adv_set_response_data() local
1363 sizeof(*cp) + data->len); in bt_le_per_adv_set_response_data()
1369 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_per_adv_set_response_data()
1370 (void)memset(cp, 0, sizeof(*cp)); in bt_le_per_adv_set_response_data()
1371 cp->sync_handle = sys_cpu_to_le16(per_adv_sync->handle); in bt_le_per_adv_set_response_data()
1372 cp->request_event = sys_cpu_to_le16(param->request_event); in bt_le_per_adv_set_response_data()
1373 cp->request_subevent = param->request_subevent; in bt_le_per_adv_set_response_data()
1374 cp->response_subevent = param->response_subevent; in bt_le_per_adv_set_response_data()
1375 cp->response_slot = param->response_slot; in bt_le_per_adv_set_response_data()
1376 cp->response_data_length = data->len; in bt_le_per_adv_set_response_data()
1378 net_buf_add_mem(buf, data->data, cp->response_data_length); in bt_le_per_adv_set_response_data()
1865 struct bt_hci_cp_le_per_adv_create_sync *cp; in bt_le_per_adv_sync_create() local
1890 buf = bt_hci_cmd_create(BT_HCI_OP_LE_PER_ADV_CREATE_SYNC, sizeof(*cp)); in bt_le_per_adv_sync_create()
1896 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_per_adv_sync_create()
1897 (void)memset(cp, 0, sizeof(*cp)); in bt_le_per_adv_sync_create()
1903 cp->options |= BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_USE_LIST; in bt_le_per_adv_sync_create()
1910 bt_addr_le_copy(&cp->addr, ¶m->addr); in bt_le_per_adv_sync_create()
1911 cp->sid = param->sid; in bt_le_per_adv_sync_create()
1916 cp->options |= in bt_le_per_adv_sync_create()
1924 cp->options |= in bt_le_per_adv_sync_create()
1929 cp->cte_type |= BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOA; in bt_le_per_adv_sync_create()
1933 cp->cte_type |= in bt_le_per_adv_sync_create()
1938 cp->cte_type |= in bt_le_per_adv_sync_create()
1943 cp->cte_type |= BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ONLY_CTE; in bt_le_per_adv_sync_create()
1946 cp->skip = sys_cpu_to_le16(param->skip); in bt_le_per_adv_sync_create()
1947 cp->sync_timeout = sys_cpu_to_le16(param->timeout); in bt_le_per_adv_sync_create()
2067 struct bt_hci_cp_le_set_per_adv_recv_enable *cp; in bt_le_set_per_adv_recv_enable() local
2094 sizeof(*cp)); in bt_le_set_per_adv_recv_enable()
2099 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_set_per_adv_recv_enable()
2100 (void)memset(cp, 0, sizeof(*cp)); in bt_le_set_per_adv_recv_enable()
2102 cp->handle = sys_cpu_to_le16(per_adv_sync->handle); in bt_le_set_per_adv_recv_enable()
2103 cp->enable = enable ? 1 : 0; in bt_le_set_per_adv_recv_enable()
2142 struct bt_hci_cp_le_per_adv_sync_transfer *cp; in bt_le_per_adv_sync_transfer() local
2153 sizeof(*cp)); in bt_le_per_adv_sync_transfer()
2158 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_per_adv_sync_transfer()
2159 (void)memset(cp, 0, sizeof(*cp)); in bt_le_per_adv_sync_transfer()
2161 cp->conn_handle = sys_cpu_to_le16(conn->handle); in bt_le_per_adv_sync_transfer()
2162 cp->sync_handle = sys_cpu_to_le16(per_adv_sync->handle); in bt_le_per_adv_sync_transfer()
2163 cp->service_data = sys_cpu_to_le16(service_data); in bt_le_per_adv_sync_transfer()
2190 struct bt_hci_cp_le_past_param *cp; in past_param_set() local
2193 buf = bt_hci_cmd_create(BT_HCI_OP_LE_PAST_PARAM, sizeof(*cp)); in past_param_set()
2198 cp = net_buf_add(buf, sizeof(*cp)); in past_param_set()
2199 (void)memset(cp, 0, sizeof(*cp)); in past_param_set()
2201 cp->conn_handle = sys_cpu_to_le16(conn->handle); in past_param_set()
2202 cp->mode = mode; in past_param_set()
2203 cp->skip = sys_cpu_to_le16(skip); in past_param_set()
2204 cp->timeout = sys_cpu_to_le16(timeout); in past_param_set()
2205 cp->cte_type = cte_type; in past_param_set()
2213 struct bt_hci_cp_le_default_past_param *cp; in default_past_param_set() local
2216 buf = bt_hci_cmd_create(BT_HCI_OP_LE_DEFAULT_PAST_PARAM, sizeof(*cp)); in default_past_param_set()
2221 cp = net_buf_add(buf, sizeof(*cp)); in default_past_param_set()
2222 (void)memset(cp, 0, sizeof(*cp)); in default_past_param_set()
2224 cp->mode = mode; in default_past_param_set()
2225 cp->skip = sys_cpu_to_le16(skip); in default_past_param_set()
2226 cp->timeout = sys_cpu_to_le16(timeout); in default_past_param_set()
2227 cp->cte_type = cte_type; in default_past_param_set()
2336 struct bt_hci_cp_le_add_dev_to_per_adv_list *cp; in bt_le_per_adv_list_add() local
2345 sizeof(*cp)); in bt_le_per_adv_list_add()
2350 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_per_adv_list_add()
2351 bt_addr_le_copy(&cp->addr, addr); in bt_le_per_adv_list_add()
2352 cp->sid = sid; in bt_le_per_adv_list_add()
2367 struct bt_hci_cp_le_rem_dev_from_per_adv_list *cp; in bt_le_per_adv_list_remove() local
2376 sizeof(*cp)); in bt_le_per_adv_list_remove()
2381 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_per_adv_list_remove()
2382 bt_addr_le_copy(&cp->addr, addr); in bt_le_per_adv_list_remove()
2383 cp->sid = sid; in bt_le_per_adv_list_remove()