Lines Matching refs:sep

2967 	struct bt_hci_evt_le_connectionless_iq_report *sep;  in le_df_connectionless_iq_report()  local
3033 sep = meta_evt(buf, BT_HCI_EVT_LE_CONNECTIONLESS_IQ_REPORT, in le_df_connectionless_iq_report()
3034 (sizeof(*sep) + in le_df_connectionless_iq_report()
3040 sep->sync_handle = sys_cpu_to_le16(sync_handle); in le_df_connectionless_iq_report()
3041 sep->rssi = sys_cpu_to_le16(rssi); in le_df_connectionless_iq_report()
3042 sep->rssi_ant_id = iq_report->rssi_ant_id; in le_df_connectionless_iq_report()
3043 sep->cte_type = iq_report->cte_info.type; in le_df_connectionless_iq_report()
3045 sep->chan_idx = iq_report->chan_idx; in le_df_connectionless_iq_report()
3046 sep->per_evt_counter = sys_cpu_to_le16(per_evt_counter); in le_df_connectionless_iq_report()
3048 if (sep->cte_type == BT_HCI_LE_AOA_CTE) { in le_df_connectionless_iq_report()
3049 sep->slot_durations = iq_report->local_slot_durations; in le_df_connectionless_iq_report()
3050 } else if (sep->cte_type == BT_HCI_LE_AOD_CTE_1US) { in le_df_connectionless_iq_report()
3051 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_1US; in le_df_connectionless_iq_report()
3053 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US; in le_df_connectionless_iq_report()
3056 sep->packet_status = iq_report->packet_status; in le_df_connectionless_iq_report()
3060 sep->sample[0].i = BT_HCI_LE_CTE_REPORT_NO_VALID_SAMPLE; in le_df_connectionless_iq_report()
3061 sep->sample[0].q = BT_HCI_LE_CTE_REPORT_NO_VALID_SAMPLE; in le_df_connectionless_iq_report()
3064 sep->sample[idx].i = in le_df_connectionless_iq_report()
3066 sep->sample[idx].q = in le_df_connectionless_iq_report()
3072 sep->sample_count = samples_cnt; in le_df_connectionless_iq_report()
3121 struct bt_hci_evt_le_connection_iq_report *sep; in le_df_connection_iq_report() local
3165 sep = meta_evt(buf, BT_HCI_EVT_LE_CONNECTION_IQ_REPORT, in le_df_connection_iq_report()
3166 (sizeof(*sep) + (samples_cnt * sizeof(struct bt_hci_le_iq_sample)))); in le_df_connection_iq_report()
3170 sep->conn_handle = sys_cpu_to_le16(iq_report->rx.hdr.handle); in le_df_connection_iq_report()
3171 sep->rx_phy = phy_rx; in le_df_connection_iq_report()
3172 sep->rssi = sys_cpu_to_le16(rssi); in le_df_connection_iq_report()
3173 sep->rssi_ant_id = iq_report->rssi_ant_id; in le_df_connection_iq_report()
3174 sep->cte_type = iq_report->cte_info.type; in le_df_connection_iq_report()
3176 sep->data_chan_idx = iq_report->chan_idx; in le_df_connection_iq_report()
3177 sep->conn_evt_counter = sys_cpu_to_le16(iq_report->event_counter); in le_df_connection_iq_report()
3179 if (sep->cte_type == BT_HCI_LE_AOA_CTE) { in le_df_connection_iq_report()
3180 sep->slot_durations = iq_report->local_slot_durations; in le_df_connection_iq_report()
3181 } else if (sep->cte_type == BT_HCI_LE_AOD_CTE_1US) { in le_df_connection_iq_report()
3182 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_1US; in le_df_connection_iq_report()
3184 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US; in le_df_connection_iq_report()
3187 sep->packet_status = iq_report->packet_status; in le_df_connection_iq_report()
3191 sep->sample[0].i = BT_HCI_LE_CTE_REPORT_NO_VALID_SAMPLE; in le_df_connection_iq_report()
3192 sep->sample[0].q = BT_HCI_LE_CTE_REPORT_NO_VALID_SAMPLE; in le_df_connection_iq_report()
3195 sep->sample[idx].i = in le_df_connection_iq_report()
3197 sep->sample[idx].q = in le_df_connection_iq_report()
3203 sep->sample_count = samples_cnt; in le_df_connection_iq_report()
3229 struct bt_hci_evt_le_cte_req_failed *sep; in le_df_cte_req_failed() local
3236 sep = meta_evt(buf, BT_HCI_EVT_LE_CTE_REQUEST_FAILED, sizeof(*sep)); in le_df_cte_req_failed()
3238 sep->status = error_code; in le_df_cte_req_failed()
3239 sep->conn_handle = sys_cpu_to_le16(handle); in le_df_cte_req_failed()
4323 struct bt_hci_evt_le_cis_req *sep; local
4341 sep = meta_evt(buf, BT_HCI_EVT_LE_CIS_REQ, sizeof(*sep));
4342 sep->acl_handle = sys_cpu_to_le16(node_rx->hdr.handle);
4343 sep->cis_handle = sys_cpu_to_le16(req->cis_handle);
4344 sep->cig_id = req->cig_id;
4345 sep->cis_id = req->cis_id;
4356 struct bt_hci_evt_le_cis_established *sep; local
4372 sep = meta_evt(buf, BT_HCI_EVT_LE_CIS_ESTABLISHED, sizeof(*sep));
4381 sep->status = est->status;
4382 sep->conn_handle = sys_cpu_to_le16(est->cis_handle);
4394 sys_put_le24(cig->sync_delay, sep->cig_sync_delay);
4395 sys_put_le24(cis->sync_delay, sep->cis_sync_delay);
4396 sys_put_le24(cig->c_latency, sep->c_latency);
4397 sys_put_le24(cig->p_latency, sep->p_latency);
4398 sep->c_phy = find_lsb_set(lll_cis_c->phy);
4399 sep->p_phy = find_lsb_set(lll_cis_p->phy);
4400 sep->nse = lll_cis->nse;
4401 sep->c_bn = lll_cis_c->bn;
4402 sep->p_bn = lll_cis_p->bn;
4403 sep->c_ft = lll_cis_c->ft;
4404 sep->p_ft = lll_cis_p->ft;
4405 sep->c_max_pdu = sys_cpu_to_le16(lll_cis_c->max_pdu);
4406 sep->p_max_pdu = sys_cpu_to_le16(lll_cis_p->max_pdu);
4407 sep->interval = sys_cpu_to_le16(cig->iso_interval);
4421 struct bt_hci_evt_le_past_received *sep; local
4431 sep = meta_evt(buf, BT_HCI_EVT_LE_PAST_RECEIVED, sizeof(*sep));
4440 sep->status = se->rx_sync.status;
4445 sep->addr.type = sync->peer_id_addr_type;
4448 MARK_AS_IDENTITY_ADDR(sep->addr.type);
4450 (void)memcpy(sep->addr.a.val, sync->peer_id_addr, BDADDR_SIZE);
4452 sep->adv_sid = sync->sid;
4453 sep->phy = find_lsb_set(se->rx_sync.phy);
4454 sep->interval = sys_cpu_to_le16(se->rx_sync.interval);
4455 sep->clock_accuracy = se->rx_sync.sca;
4456 sep->conn_handle = sys_cpu_to_le16(se->conn_handle);
4457 sep->service_data = sys_cpu_to_le16(se->service_data);
4458 sep->sync_handle = sys_cpu_to_le16(node_rx->hdr.handle);
5329 struct bt_hci_evt_vs_le_connectionless_iq_report *sep; local
5375 sep = vs_event(buf, BT_HCI_EVT_VS_LE_CONNECTIONLESS_IQ_REPORT,
5376 (sizeof(*sep) + (samples_cnt * sizeof(struct bt_hci_le_iq_sample16))));
5380 sep->sync_handle = sys_cpu_to_le16(sync_handle);
5381 sep->rssi = sys_cpu_to_le16(rssi);
5382 sep->rssi_ant_id = iq_report->rssi_ant_id;
5383 sep->cte_type = iq_report->cte_info.type;
5385 sep->chan_idx = iq_report->chan_idx;
5386 sep->per_evt_counter = sys_cpu_to_le16(per_evt_counter);
5388 if (sep->cte_type == BT_HCI_LE_AOA_CTE) {
5389 sep->slot_durations = iq_report->local_slot_durations;
5390 } else if (sep->cte_type == BT_HCI_LE_AOD_CTE_1US) {
5391 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_1US;
5393 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US;
5396 sep->packet_status = iq_report->packet_status;
5400 sep->sample[0].i = sys_cpu_to_le16(BT_HCI_VS_LE_CTE_REPORT_NO_VALID_SAMPLE);
5401 sep->sample[0].q = sys_cpu_to_le16(BT_HCI_VS_LE_CTE_REPORT_NO_VALID_SAMPLE);
5404 sep->sample[idx].i = sys_cpu_to_le16(iq_report->sample[idx].i);
5405 sep->sample[idx].q = sys_cpu_to_le16(iq_report->sample[idx].q);
5410 sep->sample_count = samples_cnt;
5417 struct bt_hci_evt_vs_le_connection_iq_report *sep; local
5460 sep = vs_event(buf, BT_HCI_EVT_VS_LE_CONNECTION_IQ_REPORT,
5461 (sizeof(*sep) + (samples_cnt * sizeof(struct bt_hci_le_iq_sample16))));
5465 sep->conn_handle = sys_cpu_to_le16(iq_report->rx.hdr.handle);
5466 sep->rx_phy = phy_rx;
5467 sep->rssi = sys_cpu_to_le16(rssi);
5468 sep->rssi_ant_id = iq_report->rssi_ant_id;
5469 sep->cte_type = iq_report->cte_info.type;
5471 sep->data_chan_idx = iq_report->chan_idx;
5472 sep->conn_evt_counter = sys_cpu_to_le16(iq_report->event_counter);
5474 if (sep->cte_type == BT_HCI_LE_AOA_CTE) {
5475 sep->slot_durations = iq_report->local_slot_durations;
5476 } else if (sep->cte_type == BT_HCI_LE_AOD_CTE_1US) {
5477 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_1US;
5479 sep->slot_durations = BT_HCI_LE_ANTENNA_SWITCHING_SLOT_2US;
5482 sep->packet_status = iq_report->packet_status;
5486 sep->sample[0].i = sys_cpu_to_le16(BT_HCI_VS_LE_CTE_REPORT_NO_VALID_SAMPLE);
5487 sep->sample[0].q = sys_cpu_to_le16(BT_HCI_VS_LE_CTE_REPORT_NO_VALID_SAMPLE);
5490 sep->sample[idx].i = sys_cpu_to_le16(iq_report->sample[idx].i);
5491 sep->sample[idx].q = sys_cpu_to_le16(iq_report->sample[idx].q);
5496 sep->sample_count = samples_cnt;
6571 struct bt_hci_evt_le_advertising_report *sep; local
6637 sep = meta_evt(buf, BT_HCI_EVT_LE_ADVERTISING_REPORT,
6638 sizeof(*sep) + info_len);
6640 sep->num_reports = 1U;
6641 adv_info = (void *)(((uint8_t *)sep) + sizeof(*sep));
6698 struct bt_hci_evt_le_ext_advertising_report *sep; local
6742 sep = meta_evt(buf, BT_HCI_EVT_LE_EXT_ADVERTISING_REPORT,
6743 sizeof(*sep) + info_len);
6745 sep->num_reports = 1U;
6746 adv_info = (void *)(((uint8_t *)sep) + sizeof(*sep));
6928 struct bt_hci_evt_le_ext_advertising_report *sep; local
6933 sep = meta_evt(buf, BT_HCI_EVT_LE_EXT_ADVERTISING_REPORT,
6934 sizeof(*sep) + info_len);
6936 sep->num_reports = 1U;
6937 adv_info = (void *)(((uint8_t *)sep) + sizeof(*sep));
7622 struct bt_hci_evt_le_per_adv_sync_established *sep; local
7632 sep = meta_evt(buf, BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED,
7633 sizeof(*sep));
7642 sep->status = se->status;
7657 sep->handle = sys_cpu_to_le16(node_rx->hdr.handle);
7660 sep->adv_addr.type = sync->peer_id_addr_type;
7663 MARK_AS_IDENTITY_ADDR(sep->adv_addr.type);
7665 (void)memcpy(sep->adv_addr.a.val, sync->peer_id_addr, BDADDR_SIZE);
7667 sep->sid = sync->sid;
7668 sep->phy = find_lsb_set(se->phy);
7669 sep->interval = sys_cpu_to_le16(se->interval);
7670 sep->clock_accuracy = se->sca;
7725 struct bt_hci_evt_le_per_advertising_report *sep; local
7727 sep = meta_evt(buf,
7729 sizeof(*sep));
7731 sep->handle = sys_cpu_to_le16(node_rx->hdr.handle);
7732 sep->tx_power = BT_HCI_LE_ADV_TX_POWER_NO_PREF;
7733 sep->rssi = BT_HCI_LE_RSSI_NOT_AVAILABLE;
7734 sep->cte_type = BT_HCI_LE_NO_CTE;
7735 sep->data_status = BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_INCOMPLETE;
7736 sep->length = 0;
7893 struct bt_hci_evt_le_per_advertising_report *sep; local
7900 sep = meta_evt(evt_buf,
7902 sizeof(*sep) + data_len_frag);
7904 sep->handle = sys_cpu_to_le16(node_rx->hdr.handle);
7905 sep->tx_power = tx_pwr;
7906 sep->rssi = rssi;
7907 sep->cte_type = cte_type;
7908 sep->length = data_len_frag;
7909 memcpy(&sep->data[0], data, data_len_frag);
7940 sep->data_status = data_status;
7949 struct bt_hci_evt_le_biginfo_adv_report *sep; local
7981 sep = meta_evt(evt_buf, BT_HCI_EVT_LE_BIGINFO_ADV_REPORT,
7982 sizeof(*sep));
7984 sep->sync_handle = sys_cpu_to_le16(node_rx->hdr.handle);
7991 sep->num_bis = PDU_BIG_INFO_NUM_BIS_GET(bi);
7992 sep->nse = PDU_BIG_INFO_NSE_GET(bi);
7993 sep->iso_interval =
7995 sep->bn = PDU_BIG_INFO_BN_GET(bi);
7996 sep->pto = PDU_BIG_INFO_PTO_GET(bi);
7997 sep->irc = PDU_BIG_INFO_IRC_GET(bi);
7999 sep->max_pdu = sys_cpu_to_le16(bi->max_pdu);
8001 sep->sdu_interval);
8002 sep->max_sdu = sys_cpu_to_le16(PDU_BIG_INFO_MAX_SDU_GET(bi));
8003 sep->phy = HCI_AUX_PHY_TO_HCI_PHY(bi->chm_phy[4] >> 5);
8004 sep->framing = (bi->payload_count_framing[4] >> 7) & 0x01;
8006 sep->encryption = 1U;
8008 sep->encryption = 0U;
8017 struct bt_hci_evt_le_per_adv_sync_lost *sep; local
8024 sep = meta_evt(buf, BT_HCI_EVT_LE_PER_ADV_SYNC_LOST, sizeof(*sep));
8025 sep->handle = sys_cpu_to_le16(node_rx->hdr.handle);
8033 struct bt_hci_evt_le_big_sync_established *sep; local
8051 evt_size = sizeof(*sep) + (lll->stream_count * sizeof(uint16_t));
8053 sep = meta_evt(buf, BT_HCI_EVT_LE_BIG_SYNC_ESTABLISHED, evt_size);
8054 sep->big_handle = (uint8_t)node_rx->hdr.handle;
8063 sep->status = se->status;
8064 if (sep->status) {
8095 sys_put_le24(transport_latency_big, sep->latency);
8096 sep->nse = lll->nse;
8097 sep->bn = lll->bn;
8098 sep->pto = lll->pto;
8099 sep->irc = lll->irc;
8100 sep->max_pdu = sys_cpu_to_le16(lll->max_pdu);
8101 sep->iso_interval = sys_cpu_to_le16(lll->iso_interval);
8102 sep->num_bis = lll->stream_count;
8109 sep->handle[i] = sys_cpu_to_le16(handle);
8117 struct bt_hci_evt_le_big_sync_lost *sep; local
8124 sep = meta_evt(buf, BT_HCI_EVT_LE_BIG_SYNC_LOST, sizeof(*sep));
8125 sep->big_handle = (uint8_t)node_rx->hdr.handle;
8126 sep->reason = *((uint8_t *)pdu);
8139 struct bt_hci_evt_le_adv_set_terminated *sep; local
8146 sep = meta_evt(buf, BT_HCI_EVT_LE_ADV_SET_TERMINATED, sizeof(*sep));
8147 sep->status = node_rx->rx_ftr.param_adv_term.status;
8148 sep->adv_handle = ll_adv_set_hci_handle_get(node_rx->hdr.handle & 0xff);
8149 sep->conn_handle =
8151 sep->num_completed_ext_adv_evts =
8160 struct bt_hci_evt_le_big_complete *sep; local
8168 evt_size = sizeof(*sep) + (lll->num_bis * sizeof(uint16_t));
8170 sep = meta_evt(buf, BT_HCI_EVT_LE_BIG_COMPLETE, evt_size);
8172 sep->status = BT_HCI_ERR_SUCCESS;
8173 sep->big_handle = (uint8_t)node_rx->hdr.handle;
8175 if (sep->status) {
8180 sys_put_le24(0, sep->sync_delay);
8181 sys_put_le24(0, sep->latency);
8183 sep->phy = find_lsb_set(lll->phy);
8184 sep->nse = lll->nse;
8185 sep->bn = lll->bn;
8186 sep->pto = lll->pto;
8187 sep->irc = lll->irc;
8188 sep->max_pdu = sys_cpu_to_le16(lll->max_pdu);
8189 sep->num_bis = lll->num_bis;
8196 sep->handle[i] = sys_cpu_to_le16(handle);
8204 struct bt_hci_evt_le_big_terminate *sep; local
8211 sep = meta_evt(buf, BT_HCI_EVT_LE_BIG_TERMINATE, sizeof(*sep));
8212 sep->big_handle = (uint8_t)node_rx->hdr.handle;
8213 sep->reason = *((uint8_t *)pdu);
8226 struct bt_hci_evt_le_scan_req_received *sep; local
8251 sep = meta_evt(buf, BT_HCI_EVT_LE_SCAN_REQ_RECEIVED, sizeof(*sep));
8252 sep->handle = ll_adv_set_hci_handle_get(node_rx->hdr.handle & 0xff);
8253 sep->addr.type = adv->tx_addr;
8254 memcpy(&sep->addr.a.val[0], &adv->scan_req.scan_addr[0],
8261 ll_rl_id_addr_get(rl_idx, &sep->addr.type,
8262 &sep->addr.a.val[0]);
8264 MARK_AS_IDENTITY_ADDR(sep->addr.type);
8269 sep->addr.type = adv->tx_addr;
8270 memcpy(&sep->addr.a.val[0], &adv->adv_ind.addr[0],
8282 struct bt_hci_evt_vs_scan_req_rx *sep; local
8292 sep = vs_event(buf, BT_HCI_EVT_VS_SCAN_REQ_RX, sizeof(*sep));
8293 sep->addr.type = adv->tx_addr;
8294 memcpy(&sep->addr.a.val[0], &adv->scan_req.scan_addr[0],
8301 ll_rl_id_addr_get(rl_idx, &sep->addr.type,
8302 &sep->addr.a.val[0]);
8304 MARK_AS_IDENTITY_ADDR(sep->addr.type);
8309 sep->addr.type = adv->tx_addr;
8310 memcpy(&sep->addr.a.val[0], &adv->adv_ind.addr[0],
8315 sep->rssi = -(node_rx->rx_ftr.rssi);
8455 struct bt_hci_evt_le_conn_update_complete *sep; local
8464 sep = meta_evt(buf, BT_HCI_EVT_LE_CONN_UPDATE_COMPLETE, sizeof(*sep));
8473 sep->status = cu->status;
8474 sep->handle = sys_cpu_to_le16(handle);
8475 sep->interval = sys_cpu_to_le16(cu->interval);
8476 sep->latency = sys_cpu_to_le16(cu->latency);
8477 sep->supv_timeout = sys_cpu_to_le16(cu->timeout);
8520 struct bt_hci_evt_le_chan_sel_algo *sep; local
8531 sep = meta_evt(buf, BT_HCI_EVT_LE_CHAN_SEL_ALGO, sizeof(*sep));
8533 sep->handle = sys_cpu_to_le16(handle);
8534 sep->chan_sel_algo = cs->csa;
8542 struct bt_hci_evt_le_phy_update_complete *sep; local
8554 sep = meta_evt(buf, BT_HCI_EVT_LE_PHY_UPDATE_COMPLETE, sizeof(*sep));
8556 sep->status = pu->status;
8557 sep->handle = sys_cpu_to_le16(handle);
8558 sep->tx_phy = find_lsb_set(pu->tx);
8559 sep->rx_phy = find_lsb_set(pu->rx);
8567 struct bt_hci_evt_le_req_peer_sca_complete *sep; local
8580 sep = meta_evt(buf, BT_HCI_EVT_LE_REQ_PEER_SCA_COMPLETE, sizeof(*sep));
8582 sep->status = scau->status;
8583 sep->handle = sys_cpu_to_le16(handle);
8584 sep->sca = scau->sca;
8838 struct bt_hci_evt_le_ltk_request *sep; local
8845 sep = meta_evt(buf, BT_HCI_EVT_LE_LTK_REQUEST, sizeof(*sep));
8847 sep->handle = sys_cpu_to_le16(handle);
8848 memcpy(&sep->rand, pdu_data->llctrl.enc_req.rand, sizeof(uint64_t));
8849 memcpy(&sep->ediv, pdu_data->llctrl.enc_req.ediv, sizeof(uint16_t));
8873 struct bt_hci_evt_le_remote_feat_complete *sep; local
8880 sep = meta_evt(buf, BT_HCI_EVT_LE_REMOTE_FEAT_COMPLETE, sizeof(*sep));
8882 sep->status = status;
8883 sep->handle = sys_cpu_to_le16(handle);
8885 memcpy(&sep->features[0],
8887 sizeof(sep->features));
8889 (void)memset(&sep->features[0], 0x00, sizeof(sep->features));
8930 struct bt_hci_evt_le_conn_param_req *sep; local
8941 sep = meta_evt(buf, BT_HCI_EVT_LE_CONN_PARAM_REQ, sizeof(*sep));
8943 sep->handle = sys_cpu_to_le16(handle);
8944 sep->interval_min = pdu_data->llctrl.conn_param_req.interval_min;
8945 sep->interval_max = pdu_data->llctrl.conn_param_req.interval_max;
8946 sep->latency = pdu_data->llctrl.conn_param_req.latency;
8947 sep->timeout = pdu_data->llctrl.conn_param_req.timeout;
8955 struct bt_hci_evt_le_data_len_change *sep; local
8962 sep = meta_evt(buf, BT_HCI_EVT_LE_DATA_LEN_CHANGE, sizeof(*sep));
8964 sep->handle = sys_cpu_to_le16(handle);
8965 sep->max_tx_octets = pdu_data->llctrl.length_rsp.max_tx_octets;
8966 sep->max_tx_time = pdu_data->llctrl.length_rsp.max_tx_time;
8967 sep->max_rx_octets = pdu_data->llctrl.length_rsp.max_rx_octets;
8968 sep->max_rx_time = pdu_data->llctrl.length_rsp.max_rx_time;