Home
last modified time | relevance | path

Searched refs:ptp_context (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/drivers/ethernet/
Deth_e1000.c322 struct ptp_context { struct
334 struct ptp_context *ptp_context = dev->data; in ptp_clock_e1000_set() argument
337 ptp_context->clock_time = tm->second * NSEC_PER_SEC + tm->nanosecond; in ptp_clock_e1000_set()
345 struct ptp_context *ptp_context = dev->data; in ptp_clock_e1000_get() local
348 tm->second = ptp_context->clock_time / NSEC_PER_SEC; in ptp_clock_e1000_get()
349 tm->nanosecond = ptp_context->clock_time - tm->second * NSEC_PER_SEC; in ptp_clock_e1000_get()
367 struct ptp_context *ptp_context = dev->data; in ptp_clock_e1000_rate_adjust() local
368 struct e1000_dev *context = ptp_context->eth_context; in ptp_clock_e1000_rate_adjust()
423 struct ptp_context *ptp_context = port->data; in ptp_e1000_init() local
424 struct e1000_dev *context = ptp_context->eth_context; in ptp_e1000_init()
[all …]
Deth_xmc4xxx.c1013 struct ptp_context { struct
1017 static struct ptp_context ptp_xmc4xxx_context_0; argument
1021 struct ptp_context *ptp_context = dev->data; in eth_xmc4xxx_ptp_clock_set() local
1022 const struct eth_xmc4xxx_config *dev_cfg = ptp_context->eth_dev->config; in eth_xmc4xxx_ptp_clock_set()
1038 struct ptp_context *ptp_context = dev->data; in eth_xmc4xxx_ptp_clock_get() local
1039 const struct eth_xmc4xxx_config *dev_cfg = ptp_context->eth_dev->config; in eth_xmc4xxx_ptp_clock_get()
1062 struct ptp_context *ptp_context = dev->data; in eth_xmc4xxx_ptp_clock_adjust() local
1063 const struct eth_xmc4xxx_config *dev_cfg = ptp_context->eth_dev->config; in eth_xmc4xxx_ptp_clock_adjust()
1091 struct ptp_context *ptp_context = dev->data; in eth_xmc4xxx_ptp_clock_rate_adjust() local
1092 const struct eth_xmc4xxx_config *dev_cfg = ptp_context->eth_dev->config; in eth_xmc4xxx_ptp_clock_rate_adjust()
[all …]
Deth_stm32_hal.c1345 struct ptp_context { struct
1349 static struct ptp_context ptp_stm32_0_context; argument
1354 struct ptp_context *ptp_context = dev->data; in ptp_clock_stm32_set() local
1355 struct eth_stm32_hal_dev_data *eth_dev_data = ptp_context->eth_dev_data; in ptp_clock_stm32_set()
1385 struct ptp_context *ptp_context = dev->data; in ptp_clock_stm32_get() local
1386 struct eth_stm32_hal_dev_data *eth_dev_data = ptp_context->eth_dev_data; in ptp_clock_stm32_get()
1418 struct ptp_context *ptp_context = dev->data; in ptp_clock_stm32_adjust() local
1419 struct eth_stm32_hal_dev_data *eth_dev_data = ptp_context->eth_dev_data; in ptp_clock_stm32_adjust()
1462 struct ptp_context *ptp_context = dev->data; in ptp_clock_stm32_rate_adjust() local
1463 struct eth_stm32_hal_dev_data *eth_dev_data = ptp_context->eth_dev_data; in ptp_clock_stm32_rate_adjust()
[all …]
Deth_native_posix.c507 struct ptp_context { struct
512 static struct ptp_context ptp_context_##x argument
575 struct ptp_context *ptp_context = port->data; \
578 ptp_context->eth_context = context; \
Deth_sam_gmac.c2343 struct ptp_context { struct
2347 static struct ptp_context ptp_gmac_0_context; argument
2352 struct ptp_context *ptp_context = dev->data; in ptp_clock_sam_gmac_set() local
2353 const struct eth_sam_dev_cfg *const cfg = ptp_context->eth_dev->config; in ptp_clock_sam_gmac_set()
2366 struct ptp_context *ptp_context = dev->data; in ptp_clock_sam_gmac_get() local
2367 const struct eth_sam_dev_cfg *const cfg = ptp_context->eth_dev->config; in ptp_clock_sam_gmac_get()
2378 struct ptp_context *ptp_context = dev->data; in ptp_clock_sam_gmac_adjust() local
2379 const struct eth_sam_dev_cfg *const cfg = ptp_context->eth_dev->config; in ptp_clock_sam_gmac_adjust()
2412 struct ptp_context *ptp_context = port->data; in ptp_gmac_init() local
2415 ptp_context->eth_dev = eth_dev; in ptp_gmac_init()
/Zephyr-latest/tests/net/ptp/clock/src/
Dmain.c183 struct ptp_context { struct
189 struct ptp_context *ptp_ctx = dev->data; in my_ptp_clock_set() argument
203 struct ptp_context *ptp_ctx = dev->data; in my_ptp_clock_get()
213 struct ptp_context *ptp_ctx = dev->data; in my_ptp_clock_adjust()
226 static struct ptp_context ptp_test_1_context;
227 static struct ptp_context ptp_test_2_context;
240 struct ptp_context *ptp_context = port->data; in ptp_test_1_init() local
243 ptp_context->eth_context = context; in ptp_test_1_init()
256 struct ptp_context *ptp_context = port->data; in ptp_test_2_init() local
259 ptp_context->eth_context = context; in ptp_test_2_init()
/Zephyr-latest/drivers/ethernet/nxp_enet/
Deth_mcux.c1585 struct ptp_context { struct
1602 static struct ptp_context ptp_mcux_0_context = { argument
1609 struct ptp_context *ptp_context = dev->data; in ptp_clock_mcux_set() local
1610 struct eth_context *context = ptp_context->eth_context; in ptp_clock_mcux_set()
1623 struct ptp_context *ptp_context = dev->data; in ptp_clock_mcux_get() local
1624 struct eth_context *context = ptp_context->eth_context; in ptp_clock_mcux_get()
1636 struct ptp_context *ptp_context = dev->data; in ptp_clock_mcux_adjust() local
1637 struct eth_context *context = ptp_context->eth_context; in ptp_clock_mcux_adjust()
1665 struct ptp_context *ptp_context = dev->data; in ptp_clock_mcux_rate_adjust() local
1666 struct eth_context *context = ptp_context->eth_context; in ptp_clock_mcux_rate_adjust()
[all …]