Lines Matching defs:rsp
397 mcap_md_sync_cap_rsp *rsp;
400 rsp = g_new0(mcap_md_sync_cap_rsp, 1);
402 rsp->op = MCAP_MD_SYNC_CAP_RSP;
403 rsp->rc = rspcode;
405 rsp->btclock = btclockres;
406 rsp->sltime = htons(synclead);
407 rsp->timestnr = htons(tmstampres);
408 rsp->timestna = htons(tmstampacc);
410 sent = send_sync_cmd(mcl, rsp, sizeof(*rsp));
411 g_free(rsp);
464 mcap_md_sync_set_rsp *rsp;
467 rsp = g_new0(mcap_md_sync_set_rsp, 1);
469 rsp->op = MCAP_MD_SYNC_SET_RSP;
470 rsp->rc = rspcode;
471 rsp->btclock = htonl(btclock);
472 rsp->timestst = hton64(timestamp);
473 rsp->timestsa = htons(tmstampres);
475 sent = send_sync_cmd(mcl, rsp, sizeof(*rsp));
476 g_free(rsp);
762 mcap_md_sync_cap_rsp *rsp;
795 rsp = (mcap_md_sync_cap_rsp *) cmd;
796 mcap_err = rsp->rc;
797 btclockres = rsp->btclock;
798 synclead = ntohs(rsp->sltime);
799 tmstampres = ntohs(rsp->timestnr);
800 tmstampacc = ntohs(rsp->timestna);
811 mcap_md_sync_set_rsp *rsp;
843 rsp = (mcap_md_sync_set_rsp *) cmd;
844 mcap_err = rsp->rc;
845 btclock = ntohl(rsp->btclock);
846 timestamp = ntoh64(rsp->timestst);
847 accuracy = ntohs(rsp->timestsa);