Lines Matching full:usecs
108 * keeping track of last anchor point. Would need last anchor usecs too. I guess
109 * we could also keep last anchor usecs as a uint32 or something and when we
111 * usecs calculation. Not sure.
261 uint32_t usecs; in ble_ll_conn_calc_itvl_ticks() local
267 usecs = connsm->conn_itvl * BLE_LL_CONN_ITVL_USECS; in ble_ll_conn_calc_itvl_ticks()
268 ticks = os_cputime_usecs_to_ticks(usecs); in ble_ll_conn_calc_itvl_ticks()
269 connsm->conn_itvl_usecs = (uint8_t)(usecs - in ble_ll_conn_calc_itvl_ticks()
1438 uint32_t usecs; in ble_ll_conn_event_start_cb() local
1534 * For the 32 kHz crystal, the amount of usecs we have to wait in ble_ll_conn_event_start_cb()
1540 * -> Up to one tick since the usecs to ticks calc can be off in ble_ll_conn_event_start_cb()
1547 usecs = connsm->slave_cur_tx_win_usecs + 61 + in ble_ll_conn_event_start_cb()
1549 ble_phy_wfr_enable(BLE_PHY_WFR_ENABLE_RX, 0, usecs); in ble_ll_conn_event_start_cb()
1587 uint32_t usecs; in ble_ll_conn_can_send_next_pdu() local
1624 usecs = ble_ll_pdu_tx_time_get(rem_bytes, tx_phy_mode); in ble_ll_conn_can_send_next_pdu()
1627 usecs = ble_ll_pdu_tx_time_get(0, tx_phy_mode); in ble_ll_conn_can_send_next_pdu()
1629 usecs += (BLE_LL_IFS * 2) + connsm->eff_max_rx_time; in ble_ll_conn_can_send_next_pdu()
1633 if ((usecs + add_usecs) >= allowed_usecs) { in ble_ll_conn_can_send_next_pdu()
1774 uint32_t usecs; in ble_ll_update_max_tx_octets_phy_mode() local
1776 usecs = connsm->eff_max_tx_time; in ble_ll_update_max_tx_octets_phy_mode()
1779 ble_ll_pdu_max_tx_octets_get(usecs, BLE_PHY_MODE_1M); in ble_ll_update_max_tx_octets_phy_mode()
1781 ble_ll_pdu_max_tx_octets_get(usecs, BLE_PHY_MODE_2M); in ble_ll_update_max_tx_octets_phy_mode()
1783 ble_ll_pdu_max_tx_octets_get(usecs, BLE_PHY_MODE_CODED_125KBPS); in ble_ll_update_max_tx_octets_phy_mode()
1785 ble_ll_pdu_max_tx_octets_get(usecs, BLE_PHY_MODE_CODED_500KBPS); in ble_ll_update_max_tx_octets_phy_mode()
2196 uint32_t usecs; in ble_ll_conn_next_event() local
2285 usecs = upd->winoffset * BLE_LL_CONN_ITVL_USECS; in ble_ll_conn_next_event()
2286 ticks = os_cputime_usecs_to_ticks(usecs); in ble_ll_conn_next_event()
2288 usecs = usecs - os_cputime_ticks_to_usecs(ticks); in ble_ll_conn_next_event()
2289 connsm->anchor_point_usecs += usecs; in ble_ll_conn_next_event()
2418 uint32_t usecs; in ble_ll_conn_created() local
2445 * With a 32.768 kHz crystal we dont care about the remaining usecs in ble_ll_conn_created()
2452 usecs = rxhdr->rem_usecs + 1250 + in ble_ll_conn_created()
2461 usecs += 1250; in ble_ll_conn_created()
2464 usecs += 2500; in ble_ll_conn_created()
2473 endtime = os_cputime_usecs_to_ticks(usecs); in ble_ll_conn_created()
2475 connsm->anchor_point_usecs = usecs - os_cputime_ticks_to_usecs(endtime); in ble_ll_conn_created()
2595 * usecs to 0 since we dont need to listen in the transmit window. in ble_ll_conn_event_end()
2664 /* XXX: Convert to ticks to usecs calculation instead??? */ in ble_ll_conn_event_end()
3810 * to the 'additional usecs' field to save some calculations. in ble_ll_conn_rx_isr_end()