/Zephyr-latest/include/zephyr/net/ |
D | ptp_time.h | 134 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()
|
D | net_pkt.h | 1126 pkt->timestamp.nanosecond = timestamp->nanosecond; in net_pkt_set_timestamp()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_native_posix_priv.h | 17 int eth_clock_gettime(uint64_t *second, uint32_t *nanosecond);
|
D | eth_native_posix_adapt.c | 119 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()
|
D | eth_stm32_hal.c | 317 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 …]
|
D | eth_e1000.c | 337 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()
|
D | eth_xmc4xxx.c | 426 .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()
|
D | eth_native_posix.c | 145 ret = eth_clock_gettime(×tamp.second, ×tamp.nanosecond); in update_gptp() 534 return eth_clock_gettime(&tm->second, &tm->nanosecond); in ptp_clock_get_native_posix()
|
D | eth_sam_gmac.c | 599 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/ |
D | ptp_clock_nxp_enet.c | 44 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/ |
D | main.c | 111 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/ |
D | gptp_private.h | 117 return (ts->second * NSEC_PER_SEC) + ts->nanosecond; in gptp_timestamp_to_nsec()
|
D | gptp_md.c | 62 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()
|
D | gptp_mi.c | 343 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()
|
D | gptp_messages.c | 893 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/ |
D | port.c | 125 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()
|
D | msg.c | 56 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()
|
D | clock.c | 533 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/ |
D | eth_mcux.c | 801 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()
|
D | eth_nxp_enet.c | 170 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/ |
D | main.c | 180 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/ |
D | main.c | 1023 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/ |
D | README.rst | 99 nanosecond-resolution offset in seconds between the RTC time and the
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | ethernet_mgmt.c | 153 (params->qbv_param.cycle_time.nanosecond >= 1000000000 || in ethernet_set_config()
|
/Zephyr-latest/samples/net/sockets/txtime/src/ |
D | main.c | 488 params.qbv_param.cycle_time.nanosecond = 20000000UL; in set_qbv_params()
|