Lines Matching refs:handle

210 	pps_handle_t *handle	/* returned handle */  in time_pps_create()  argument
219 if (!handle) { in time_pps_create()
228 *handle = malloc(sizeof(pps_unit_t)); in time_pps_create()
229 if (!(*handle)) { in time_pps_create()
234 memset(*handle, 0, sizeof(pps_unit_t)); in time_pps_create()
235 (*handle)->filedes = filedes; in time_pps_create()
236 (*handle)->params.api_version = PPS_API_VERS_1; in time_pps_create()
237 (*handle)->params.mode = PPS_CAPTUREASSERT | PPS_TSFMT_TSPEC; in time_pps_create()
247 pps_handle_t handle in time_pps_destroy() argument
254 if (!handle) { in time_pps_destroy()
258 free(handle); in time_pps_destroy()
268 pps_handle_t handle, in time_pps_setparams() argument
277 if (!handle) { in time_pps_setparams()
318 mode = handle->params.mode; in time_pps_setparams()
319 memcpy(&handle->params, params, sizeof(pps_params_t)); in time_pps_setparams()
320 handle->params.api_version = PPS_API_VERS_1; in time_pps_setparams()
321 handle->params.mode = mode | mode_in; in time_pps_setparams()
331 pps_handle_t handle, in time_pps_getparams() argument
339 if (!handle) { in time_pps_getparams()
349 memcpy(params, &handle->params, sizeof(pps_params_t)); in time_pps_getparams()
359 pps_handle_t handle, in time_pps_getcap() argument
367 if (!handle) { in time_pps_getcap()
386 pps_handle_t handle, in time_pps_fetch() argument
399 if (!handle) { in time_pps_fetch()
420 if (!handle->params.mode & PPS_CAPTUREASSERT) { in time_pps_fetch()
435 if (tv.tv_sec != handle->tv_save.tv_sec || tv.tv_usec != handle->tv_save.tv_usec) { in time_pps_fetch()
436 handle->tv_save = tv; in time_pps_fetch()
437 handle->serial++; in time_pps_fetch()
445 infobuf.assert_sequence = handle->serial; in time_pps_fetch()
449 if (handle->params.mode & PPS_OFFSETASSERT) { in time_pps_fetch()
450 infobuf.assert_timestamp.tv_sec += handle->params.assert_offset.tv_sec; in time_pps_fetch()
451 infobuf.assert_timestamp.tv_nsec += handle->params.assert_offset.tv_nsec; in time_pps_fetch()
472 infobuf.current_mode = handle->params.mode; in time_pps_fetch()
483 pps_handle_t handle, in time_pps_kcbind() argument
491 if (!handle) { in time_pps_kcbind()