Home
last modified time | relevance | path

Searched refs:nanosecond (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-latest/include/zephyr/net/
Dptp_time.h134 uint32_t nanosecond; member
220 return ((int64_t)ts->second * NSEC_PER_SEC) + ts->nanosecond; in net_ptp_time_to_ns()
238 ts.nanosecond = nsec % NSEC_PER_SEC; in ns_to_net_ptp_time()
Dnet_pkt.h1126 pkt->timestamp.nanosecond = timestamp->nanosecond; in net_pkt_set_timestamp()
/Zephyr-latest/drivers/ethernet/
Deth_native_posix_priv.h17 int eth_clock_gettime(uint64_t *second, uint32_t *nanosecond);
Deth_native_posix_adapt.c119 int eth_clock_gettime(uint64_t *second, uint32_t *nanosecond) in eth_clock_gettime() argument
130 *nanosecond = (uint32_t)tp.tv_nsec; in eth_clock_gettime()
Deth_stm32_hal.c317 ctx->pkt->timestamp.nanosecond = timestamp->TimeStampLow; in HAL_ETH_TxPtpCallback()
517 pkt->timestamp.nanosecond = last_dma_tx_desc->TimeStampLow; in eth_tx()
521 pkt->timestamp.nanosecond = UINT32_MAX; in eth_tx()
571 timestamp.nanosecond = UINT32_MAX; in eth_rx()
609 timestamp.nanosecond = ts_registers.TimeStampLow; in eth_rx()
618 timestamp.nanosecond = last_dma_rx_desc->TimeStampLow; in eth_rx()
689 pkt->timestamp.nanosecond = timestamp.nanosecond; in eth_rx()
1363 heth->Instance->MACSTNUR = tm->nanosecond; in ptp_clock_stm32_set()
1370 heth->Instance->PTPTSLUR = tm->nanosecond; in ptp_clock_stm32_set()
1395 tm->nanosecond = heth->Instance->MACSTNR; in ptp_clock_stm32_get()
[all …]
Deth_e1000.c337 ptp_context->clock_time = tm->second * NSEC_PER_SEC + tm->nanosecond; in ptp_clock_e1000_set()
349 tm->nanosecond = ptp_context->clock_time - tm->second * NSEC_PER_SEC; in ptp_clock_e1000_get()
Deth_xmc4xxx.c426 .nanosecond = dma_desc->time_stamp_nanoseconds}; in eth_xmc4xxx_rx_pkt()
534 .nanosecond = dma_desc->time_stamp_nanoseconds}; in eth_xmc4xxx_handle_tx()
1024 dev_cfg->regs->SYSTEM_TIME_NANOSECONDS_UPDATE = tm->nanosecond; in eth_xmc4xxx_ptp_clock_set()
1051 tm->nanosecond = nanosecond_0; in eth_xmc4xxx_ptp_clock_get()
1054 tm->nanosecond = nanosecond_1; in eth_xmc4xxx_ptp_clock_get()
Deth_native_posix.c145 ret = eth_clock_gettime(&timestamp.second, &timestamp.nanosecond); in update_gptp()
534 return eth_clock_gettime(&tm->second, &tm->nanosecond); in ptp_clock_get_native_posix()
Deth_sam_gmac.c599 ts.nanosecond = gmac->GMAC_EFRN; in get_ptp_event_rx_ts()
610 ts.nanosecond = gmac->GMAC_PEFRN; in get_ptp_peer_event_rx_ts()
621 ts.nanosecond = gmac->GMAC_EFTN; in get_ptp_event_tx_ts()
632 ts.nanosecond = gmac->GMAC_PEFTN; in get_ptp_peer_event_tx_ts()
642 ts.nanosecond = gmac->GMAC_TN; in get_current_ts()
2358 gmac->GMAC_TN = tm->nanosecond & 0xffffffff; in ptp_clock_sam_gmac_set()
2371 tm->nanosecond = gmac->GMAC_TN; in ptp_clock_sam_gmac_get()
/Zephyr-latest/drivers/ptp_clock/
Dptp_clock_nxp_enet.c44 enet_time.nanosecond = tm->nanosecond; in ptp_clock_nxp_enet_set()
60 tm->nanosecond = enet_time.nanosecond; in ptp_clock_nxp_enet_get()
/Zephyr-latest/tests/net/tx_timestamp/src/
Dmain.c111 pkt->timestamp.nanosecond = pkt->timestamp.second + 1; in eth_tx()
172 zassert_true(pkt->timestamp.nanosecond > pkt->timestamp.second, in timestamp_callback()
174 pkt->timestamp.nanosecond, pkt->timestamp.second); in timestamp_callback()
215 zassert_true(pkt->timestamp.nanosecond > pkt->timestamp.second, in timestamp_callback_2()
217 pkt->timestamp.nanosecond, pkt->timestamp.second); in timestamp_callback_2()
/Zephyr-latest/subsys/net/l2/ethernet/gptp/
Dgptp_private.h117 return (ts->second * NSEC_PER_SEC) + ts->nanosecond; in gptp_timestamp_to_nsec()
Dgptp_md.c62 fup->prec_orig_ts_nsecs = htonl(sync_ts->nanosecond); in gptp_md_follow_up_prepare()
75 fup->prec_orig_ts_nsecs = htonl(sync_send->precise_orig_ts.nanosecond); in gptp_md_follow_up_prepare()
86 sync_ts_ns += sync_ts->nanosecond; in gptp_md_follow_up_prepare()
148 sync_rcv->precise_orig_ts.nanosecond = ntohl(fup->prec_orig_ts_nsecs); in gptp_set_md_sync_receive()
153 sync_rcv->upstream_tx_time += sync_ts->nanosecond; in gptp_set_md_sync_receive()
Dgptp_mi.c343 if (tm.second == 0U && tm.nanosecond == 0U) { in gptp_get_current_time_nanosecond()
725 pss->precise_orig_ts.nanosecond * GPTP_POW2_16; in gptp_mi_clk_slave_sync_compute()
812 tm.nanosecond < -nanosecond_diff) { in gptp_update_local_port_clock()
816 tm.nanosecond += nanosecond_diff; in gptp_update_local_port_clock()
820 tm.nanosecond += NSEC_PER_SEC; in gptp_update_local_port_clock()
821 } else if (tm.nanosecond >= NSEC_PER_SEC) { in gptp_update_local_port_clock()
823 tm.nanosecond -= NSEC_PER_SEC; in gptp_update_local_port_clock()
832 (unsigned long int)tm.nanosecond); in gptp_update_local_port_clock()
961 sync_info->precise_orig_ts.nanosecond = current_time % NSEC_PER_SEC; in gptp_mi_set_ps_sync_cmss()
Dgptp_messages.c893 resp->req_receipt_ts_nsecs = htonl(treq->nanosecond); in gptp_send_pdelay_resp()
916 follow_up->resp_orig_ts_nsecs = htonl(tresp->nanosecond); in gptp_send_pdelay_follow_up()
/Zephyr-latest/subsys/net/lib/ptp/
Dport.c125 t1 = origin_ts.second * NSEC_PER_SEC + origin_ts.nanosecond; in port_synchronize()
126 t2 = ingress_ts.second * NSEC_PER_SEC + ingress_ts.nanosecond; in port_synchronize()
183 (pkt->timestamp.second == 0 && pkt->timestamp.nanosecond == 0)) { in port_delay_req_timestamp_cb()
192 req->timestamp.host.nanosecond = pkt->timestamp.nanosecond; in port_delay_req_timestamp_cb()
237 resp->follow_up.precise_origin_timestamp.nanoseconds = pkt->timestamp.nanosecond; in port_sync_timestamp_cb()
413 msg->timestamp.host.nanosecond; in foreign_clock_cleanup()
445 msg->timestamp.host.nanosecond; in port_delay_req_cleanup()
636 resp->delay_resp.receive_timestamp.nanoseconds = msg->timestamp.host.nanosecond; in port_delay_req_msg_process()
682 t3 = req->timestamp.host.second * NSEC_PER_SEC + req->timestamp.host.nanosecond; in port_delay_resp_msg_process()
683 t4 = msg->timestamp.protocol.second * NSEC_PER_SEC + msg->timestamp.protocol.nanosecond; in port_delay_resp_msg_process()
Dmsg.c56 msg->timestamp.protocol.nanosecond = ntohl(ts->nanoseconds); in msg_timestamp_post_recv()
322 msg->timestamp.host.nanosecond = (current % MSEC_PER_SEC) * NSEC_PER_MSEC; in ptp_msg_pre_send()
415 msg->timestamp.host.nanosecond = (current % MSEC_PER_SEC) * NSEC_PER_MSEC; in ptp_msg_post_recv()
Dclock.c533 dest_nsec = (int32_t)(current.nanosecond - (offset % NSEC_PER_SEC)); in ptp_clock_synchronize()
543 current.nanosecond = (uint32_t)dest_nsec; in ptp_clock_synchronize()
/Zephyr-latest/drivers/ethernet/nxp_enet/
Deth_mcux.c801 if (ptpTimeData.nanosecond < ts) { in eth_rx()
805 pkt->timestamp.nanosecond = ts; in eth_rx()
809 pkt->timestamp.nanosecond = UINT32_MAX; in eth_rx()
850 pkt->timestamp.nanosecond = in ts_register_tx_event()
851 frameinfo->timeStamp.nanosecond; in ts_register_tx_event()
1614 enet_time.nanosecond = tm->nanosecond; in ptp_clock_mcux_set()
1630 tm->nanosecond = enet_time.nanosecond; in ptp_clock_mcux_get()
Deth_nxp_enet.c170 pkt->timestamp.nanosecond = frameinfo->timeStamp.nanosecond; in ts_register_tx_event()
395 pkt->timestamp.nanosecond = UINT32_MAX; in eth_nxp_enet_rx()
407 if (ptp_time.nanosecond < ts) { in eth_nxp_enet_rx()
411 pkt->timestamp.nanosecond = ts; in eth_nxp_enet_rx()
/Zephyr-latest/tests/net/ptp/clock/src/
Dmain.c180 return (ts->second * NSEC_PER_SEC) + ts->nanosecond; in timestamp_to_nsec()
216 eth_ctx->time.nanosecond += increment; in my_ptp_clock_adjust()
443 .nanosecond = 1, in test_ptp_clock_iface()
/Zephyr-latest/tests/net/ethernet_mgmt/src/
Dmain.c1023 params.qbv_param.cycle_time.nanosecond = 20; in ZTEST()
1036 params.qbv_param.cycle_time.nanosecond = 0; in ZTEST()
1050 cycle_time.nanosecond = 20; in ZTEST()
1052 params.qbv_param.cycle_time.nanosecond == cycle_time.nanosecond, in ZTEST()
1113 params.qbv_param.cycle_time.nanosecond = 1000000000; in ZTEST()
/Zephyr-latest/samples/drivers/counter/maxim_ds3231/
DREADME.rst99 nanosecond-resolution offset in seconds between the RTC time and the
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet_mgmt.c153 (params->qbv_param.cycle_time.nanosecond >= 1000000000 || in ethernet_set_config()
/Zephyr-latest/samples/net/sockets/txtime/src/
Dmain.c488 params.qbv_param.cycle_time.nanosecond = 20000000UL; in set_qbv_params()

12