Home
last modified time | relevance | path

Searched refs:tstamp_config (Results 1 – 16 of 16) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_ptp.c416 struct hwtstamp_config *tstamp_config; in gem_get_hwtst() local
419 tstamp_config = &bp->tstamp_config; in gem_get_hwtst()
423 if (copy_to_user(rq->ifr_data, tstamp_config, sizeof(*tstamp_config))) in gem_get_hwtst()
447 struct hwtstamp_config *tstamp_config; in gem_set_hwtst() local
451 tstamp_config = &bp->tstamp_config; in gem_set_hwtst()
455 if (copy_from_user(tstamp_config, ifr->ifr_data, in gem_set_hwtst()
456 sizeof(*tstamp_config))) in gem_set_hwtst()
460 if (tstamp_config->flags) in gem_set_hwtst()
463 switch (tstamp_config->tx_type) { in gem_set_hwtst()
477 switch (tstamp_config->rx_filter) { in gem_set_hwtst()
[all …]
Dmacb.h1206 struct hwtstamp_config tstamp_config; member
1237 if (queue->bp->tstamp_config.tx_type == TSTAMP_DISABLED) in gem_ptp_do_txstamp()
1245 if (bp->tstamp_config.rx_filter == TSTAMP_DISABLED) in gem_ptp_do_rxstamp()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c512 struct hwtstamp_config *config = &pf->tstamp_config; in i40e_ptp_get_ts_config()
675 pf->tstamp_config = config; in i40e_ptp_set_ts_config()
717 pf->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in i40e_ptp_create_clock()
718 pf->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in i40e_ptp_create_clock()
780 i40e_ptp_set_timestamp_mode(pf, &pf->tstamp_config); in i40e_ptp_init()
Di40e.h587 struct hwtstamp_config tstamp_config; member
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe-ptp.c271 pdata->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in xgbe_ptp_register()
272 pdata->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in xgbe_ptp_register()
Dxgbe-drv.c1570 if (copy_to_user(ifreq->ifr_data, &pdata->tstamp_config, in xgbe_get_hwtstamp_settings()
1571 sizeof(pdata->tstamp_config))) in xgbe_get_hwtstamp_settings()
1706 memcpy(&pdata->tstamp_config, &config, sizeof(config)); in xgbe_set_hwtstamp_settings()
1886 (pdata->tstamp_config.tx_type == HWTSTAMP_TX_ON)) in xgbe_packet_info()
Dxgbe.h1204 struct hwtstamp_config tstamp_config; member
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c809 struct hwtstamp_config *config = &adapter->tstamp_config; in ixgbe_ptp_get_ts_config()
1012 memcpy(&adapter->tstamp_config, &config, in ixgbe_ptp_set_ts_config()
1013 sizeof(adapter->tstamp_config)); in ixgbe_ptp_set_ts_config()
1165 ixgbe_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in ixgbe_ptp_reset()
1277 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in ixgbe_ptp_create_clock()
1278 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in ixgbe_ptp_create_clock()
Dixgbe.h713 struct hwtstamp_config tstamp_config; member
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_ptp.c900 struct hwtstamp_config *config = &adapter->tstamp_config; in igb_ptp_get_ts_config()
1092 memcpy(&adapter->tstamp_config, &config, in igb_ptp_set_ts_config()
1093 sizeof(adapter->tstamp_config)); in igb_ptp_set_ts_config()
1185 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in igb_ptp_init()
1186 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in igb_ptp_init()
1255 igb_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in igb_ptp_reset()
Digb.h551 struct hwtstamp_config tstamp_config; member
Digb_main.c6120 if (adapter->tstamp_config.tx_type == HWTSTAMP_TX_ON && in igb_xmit_frame_ring()
/Linux-v4.19/drivers/net/dsa/mv88e6xxx/
Dhwtstamp.c198 memcpy(&ps->tstamp_config, &config, sizeof(config)); in mv88e6xxx_port_hwtstamp_set()
209 struct hwtstamp_config *config = &ps->tstamp_config; in mv88e6xxx_port_hwtstamp_get()
379 if (ps->tstamp_config.rx_filter != HWTSTAMP_FILTER_PTP_V2_EVENT) in mv88e6xxx_port_rxtstamp()
Dchip.h190 struct hwtstamp_config tstamp_config; member
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c2532 return copy_to_user(req->ifr_data, &pi->tstamp_config, in cxgb_ioctl()
2533 sizeof(pi->tstamp_config)) ? in cxgb_ioctl()
2536 if (copy_from_user(&pi->tstamp_config, req->ifr_data, in cxgb_ioctl()
2537 sizeof(pi->tstamp_config))) in cxgb_ioctl()
2541 switch (pi->tstamp_config.tx_type) { in cxgb_ioctl()
2549 switch (pi->tstamp_config.rx_filter) { in cxgb_ioctl()
2570 pi->tstamp_config.rx_filter = in cxgb_ioctl()
2575 if ((pi->tstamp_config.tx_type == HWTSTAMP_TX_OFF) && in cxgb_ioctl()
2576 (pi->tstamp_config.rx_filter == in cxgb_ioctl()
2582 if (pi->tstamp_config.rx_filter != in cxgb_ioctl()
[all …]
Dcxgb4.h583 struct hwtstamp_config tstamp_config; member