Lines Matching refs:si
107 static void sync_info_offset_fill(struct pdu_adv_sync_info *si, uint32_t offs);
111 static void sync_info_offset_fill(struct pdu_adv_sync_info *si,
960 struct pdu_adv_sync_info *si) in ull_adv_sync_info_fill() argument
969 PDU_ADV_SYNC_INFO_OFFS_SET(si, 0U, OFFS_UNIT_VALUE_30_US, 0U); in ull_adv_sync_info_fill()
972 si->interval = sys_cpu_to_le16(sync->interval); in ull_adv_sync_info_fill()
974 (void)memcpy(&si->aa, lll_sync->access_addr, sizeof(si->aa)); in ull_adv_sync_info_fill()
975 (void)memcpy(si->crc_init, lll_sync->crc_init, sizeof(si->crc_init)); in ull_adv_sync_info_fill()
978 si->evt_cntr = 0U; in ull_adv_sync_info_fill()
2629 struct pdu_adv_sync_info *si; local
2634 si = sync_info_get(pdu);
2635 sync_info_offset_fill(si, lll_sync->us_adv_sync_pdu_offset);
2636 si->evt_cntr = lll_sync->event_counter + lll_sync->latency_prepare +
2643 instant_latency = (si->evt_cntr - lll_sync->chm_instant) &
2653 (void)memcpy(si->sca_chm, lll_sync->chm[chm_first].data_chan_map,
2654 sizeof(si->sca_chm));
2655 si->sca_chm[PDU_SYNC_INFO_SCA_CHM_SCA_BYTE_OFFSET] &=
2657 si->sca_chm[PDU_SYNC_INFO_SCA_CHM_SCA_BYTE_OFFSET] |=
2663 static void sync_info_offset_fill(struct pdu_adv_sync_info *si, uint32_t offs) argument
2674 PDU_ADV_SYNC_INFO_OFFS_SET(si, offs / (OFFS_UNIT_300_US / OFFS_UNIT_30_US),
2677 PDU_ADV_SYNC_INFO_OFFS_SET(si, offs, OFFS_UNIT_VALUE_30_US, offs_adjust);
2687 struct pdu_adv_sync_info *si; local
2752 si = sync_info_get(pdu);
2753 sync_info_offset_fill(si, ticks_to_expire, sync_remainder_us,
2755 si->evt_cntr = lll_sync->event_counter + lll_sync->latency_prepare +
2762 instant_latency = (si->evt_cntr - lll_sync->chm_instant) &
2772 (void)memcpy(si->sca_chm, lll_sync->chm[chm_first].data_chan_map,
2773 sizeof(si->sca_chm));
2774 si->sca_chm[PDU_SYNC_INFO_SCA_CHM_SCA_BYTE_OFFSET] &=
2776 si->sca_chm[PDU_SYNC_INFO_SCA_CHM_SCA_BYTE_OFFSET] |=
2782 static void sync_info_offset_fill(struct pdu_adv_sync_info *si, argument
2799 PDU_ADV_SYNC_INFO_OFFS_SET(si, offs / (OFFS_UNIT_300_US / OFFS_UNIT_30_US),
2802 PDU_ADV_SYNC_INFO_OFFS_SET(si, offs, OFFS_UNIT_VALUE_30_US, offs_adjust);