Lines Matching refs:sync_msg
84 struct qts_host_time_sync_msg_data *sync_msg; member
133 struct qts_host_time_sync_msg_data *sync_msg; in qaic_timesync_timer() local
147 sync_msg = mqtsdev->sync_msg; in qaic_timesync_timer()
148 sync_msg->header.signature = cpu_to_le16(QAIC_TIMESYNC_SIGNATURE); in qaic_timesync_timer()
149 sync_msg->header.msg_type = QAIC_TS_SYNC_REQ; in qaic_timesync_timer()
158 sync_msg->data.tv_usec = cpu_to_le64(offset_us - host_sec * USEC_PER_SEC); in qaic_timesync_timer()
159 sync_msg->data.tv_sec = cpu_to_le64(host_sec); in qaic_timesync_timer()
160 ret = mhi_queue_buf(mqtsdev->mhi_dev, DMA_TO_DEVICE, sync_msg, sizeof(*sync_msg), MHI_EOT); in qaic_timesync_timer()
192 mqtsdev->sync_msg = kzalloc(sizeof(*mqtsdev->sync_msg), GFP_KERNEL); in qaic_timesync_probe()
193 if (!mqtsdev->sync_msg) { in qaic_timesync_probe()
213 kfree(mqtsdev->sync_msg); in qaic_timesync_probe()
226 kfree(mqtsdev->sync_msg); in qaic_timesync_remove()