Lines Matching defs:btclock
231 static gboolean read_btclock(struct mcap_mcl *mcl, uint32_t *btclock,
243 btclock, btaccuracy) < 0)
249 static gboolean read_btclock_retry(struct mcap_mcl *mcl, uint32_t *btclock,
255 if (read_btclock(mcl, btclock, btaccuracy))
302 uint32_t btclock;
308 if (!read_btclock_retry(mcl, &btclock, &accuracy))
309 btclock = 0xffffffff;
311 return btclock;
319 uint32_t btclock;
334 read_btclock_retry(mcl, &btclock, &btaccuracy);
342 if (!read_btclock(mcl, &btclock, &btaccuracy)) {
405 rsp->btclock = btclockres;
421 uint32_t btclock;
446 if (!read_btclock_retry(mcl, &btclock, &btres)) {
461 uint32_t btclock, uint64_t timestamp,
471 rsp->btclock = htonl(btclock);
481 static gboolean get_all_clocks(struct mcap_mcl *mcl, uint32_t *btclock,
499 if (!read_btclock(mcl, btclock, &btres))
519 uint32_t btclock;
532 if (!get_all_clocks(mcl, &btclock, &base_time, &tmstamp))
538 cmd->btclock = htonl(btclock);
557 uint32_t btclock;
584 if (!get_all_clocks(mcl, &btclock, &base_time, &tmstamp)) {
598 delay = bt2us(btdiff(sched_btclock, btclock));
626 send_sync_set_rsp(mcl, MCAP_SUCCESS, btclock, tmstamp, tmstampacc);
651 sched_btclock = ntohl(req->btclock);
797 btclockres = rsp->btclock;
813 uint32_t btclock;
845 btclock = ntohl(rsp->btclock);
849 if (!mcap_err && !valid_btclock(btclock))
852 cb(mcl, mcap_err, btclock, timestamp, accuracy, NULL, user_data);
859 uint32_t btclock;
871 btclock = ntohl(req->btclock);
873 if (!valid_btclock(btclock))
876 data.btclock = btclock;
956 void mcap_sync_set_req(struct mcap_mcl *mcl, uint8_t update, uint32_t btclock,
992 cmd->btclock = htonl(btclock);