Lines Matching refs:priv
39 struct private_data *priv = (struct private_data *)response->priv_data; in get_sync_callback() local
41 priv->time_end = k_cycle_get_64(); in get_sync_callback()
44 k_sem_give(&(priv->semaphore)); in get_sync_callback()
58 struct private_data priv; in sip_svc_send_sync_request() local
70 k_sem_init(&(priv.semaphore), 0, 1); in sip_svc_send_sync_request()
74 req.priv_data = (void *)&priv; in sip_svc_send_sync_request()
76 priv.time_start = k_cycle_get_64(); in sip_svc_send_sync_request()
80 err = k_sem_take(&(priv.semaphore), K_FOREVER); in sip_svc_send_sync_request()
83 t = k_cyc_to_us_ceil64(priv.time_end - priv.time_start); in sip_svc_send_sync_request()
99 struct private_data *priv = (struct private_data *)response->priv_data; in get_async_callback() local
101 priv->time_end = k_cycle_get_64(); in get_async_callback()
109 k_sem_give(&(priv->semaphore)); in get_async_callback()
129 struct private_data priv; in sip_svc_send_async_request() local
144 k_sem_init(&(priv.semaphore), 0, 1); in sip_svc_send_async_request()
158 req.priv_data = (void *)&priv; in sip_svc_send_async_request()
160 priv.time_start = k_cycle_get_64(); in sip_svc_send_async_request()
164 err = k_sem_take(&(priv.semaphore), K_FOREVER); in sip_svc_send_async_request()
167 t = k_cyc_to_us_ceil64(priv.time_end - priv.time_start); in sip_svc_send_async_request()