Lines Matching refs:offs
107 static void sync_info_offset_fill(struct pdu_adv_sync_info *si, uint32_t offs);
2663 static void sync_info_offset_fill(struct pdu_adv_sync_info *si, uint32_t offs) argument
2667 if (offs >= OFFS_ADJUST_US) {
2668 offs -= OFFS_ADJUST_US;
2672 offs = offs / OFFS_UNIT_30_US;
2673 if (!!(offs >> OFFS_UNIT_BITS)) {
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);
2788 uint32_t offs; local
2790 offs = HAL_TICKER_TICKS_TO_US(ticks_offset) + remainder_us - start_us;
2792 if (offs >= OFFS_ADJUST_US) {
2793 offs -= OFFS_ADJUST_US;
2797 offs = offs / OFFS_UNIT_30_US;
2798 if (!!(offs >> OFFS_UNIT_BITS)) {
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);