Searched refs:ptp_context (Results 1 – 7 of 7) sorted by relevance
322 struct ptp_context { struct334 struct ptp_context *ptp_context = dev->data; in ptp_clock_e1000_set() argument337 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() local348 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() local368 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() local424 struct e1000_dev *context = ptp_context->eth_context; in ptp_e1000_init()[all …]
1013 struct ptp_context { struct1017 static struct ptp_context ptp_xmc4xxx_context_0; argument1021 struct ptp_context *ptp_context = dev->data; in eth_xmc4xxx_ptp_clock_set() local1022 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() local1039 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() local1063 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() local1092 const struct eth_xmc4xxx_config *dev_cfg = ptp_context->eth_dev->config; in eth_xmc4xxx_ptp_clock_rate_adjust()[all …]
1345 struct ptp_context { struct1349 static struct ptp_context ptp_stm32_0_context; argument1354 struct ptp_context *ptp_context = dev->data; in ptp_clock_stm32_set() local1355 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() local1386 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() local1419 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() local1463 struct eth_stm32_hal_dev_data *eth_dev_data = ptp_context->eth_dev_data; in ptp_clock_stm32_rate_adjust()[all …]
507 struct ptp_context { struct512 static struct ptp_context ptp_context_##x argument575 struct ptp_context *ptp_context = port->data; \578 ptp_context->eth_context = context; \
2343 struct ptp_context { struct2347 static struct ptp_context ptp_gmac_0_context; argument2352 struct ptp_context *ptp_context = dev->data; in ptp_clock_sam_gmac_set() local2353 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() local2367 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() local2379 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() local2415 ptp_context->eth_dev = eth_dev; in ptp_gmac_init()
183 struct ptp_context { struct189 struct ptp_context *ptp_ctx = dev->data; in my_ptp_clock_set() argument203 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() local243 ptp_context->eth_context = context; in ptp_test_1_init()256 struct ptp_context *ptp_context = port->data; in ptp_test_2_init() local259 ptp_context->eth_context = context; in ptp_test_2_init()
1585 struct ptp_context { struct1602 static struct ptp_context ptp_mcux_0_context = { argument1609 struct ptp_context *ptp_context = dev->data; in ptp_clock_mcux_set() local1610 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() local1624 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() local1637 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() local1666 struct eth_context *context = ptp_context->eth_context; in ptp_clock_mcux_rate_adjust()[all …]