/openbmc/linux/drivers/net/ethernet/cadence/ |
H A D | macb_ptp.c | 379 struct hwtstamp_config *tstamp_config; in gem_get_hwtst() local 382 tstamp_config = &bp->tstamp_config; in gem_get_hwtst() 386 if (copy_to_user(rq->ifr_data, tstamp_config, sizeof(*tstamp_config))) in gem_get_hwtst() 408 struct hwtstamp_config *tstamp_config; in gem_set_hwtst() local 412 tstamp_config = &bp->tstamp_config; in gem_set_hwtst() 416 if (copy_from_user(tstamp_config, ifr->ifr_data, in gem_set_hwtst() 417 sizeof(*tstamp_config))) in gem_set_hwtst() 420 switch (tstamp_config->tx_type) { in gem_set_hwtst() 435 switch (tstamp_config->rx_filter) { in gem_set_hwtst() 452 tstamp_config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in gem_set_hwtst() [all …]
|
H A D | macb.h | 1319 struct hwtstamp_config tstamp_config; member 1355 if (bp->tstamp_config.tx_type == TSTAMP_DISABLED) in gem_ptp_do_txstamp() 1363 if (bp->tstamp_config.rx_filter == TSTAMP_DISABLED) in gem_ptp_do_rxstamp()
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-ptp.c | 259 pdata->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in xgbe_ptp_register() 260 pdata->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in xgbe_ptp_register()
|
H A D | xgbe-drv.c | 1514 if (copy_to_user(ifreq->ifr_data, &pdata->tstamp_config, in xgbe_get_hwtstamp_settings() 1515 sizeof(pdata->tstamp_config))) in xgbe_get_hwtstamp_settings() 1647 memcpy(&pdata->tstamp_config, &config, sizeof(config)); in xgbe_set_hwtstamp_settings() 1814 (pdata->tstamp_config.tx_type == HWTSTAMP_TX_ON)) in xgbe_packet_info()
|
H A D | xgbe.h | 1225 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/dsa/hirschmann/ |
H A D | hellcreek_hwtstamp.c | 130 memcpy(&ps->tstamp_config, &config, sizeof(config)); in hellcreek_port_hwtstamp_set() 144 config = &ps->tstamp_config; in hellcreek_port_hwtstamp_get() 420 if (ps->tstamp_config.rx_filter != HWTSTAMP_FILTER_PTP_V2_EVENT) in hellcreek_port_rxtstamp()
|
H A D | hellcreek.h | 245 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ptp.c | 944 struct hwtstamp_config *config = &adapter->tstamp_config; in ixgbe_ptp_get_ts_config() 1146 memcpy(&adapter->tstamp_config, &config, in ixgbe_ptp_set_ts_config() 1147 sizeof(adapter->tstamp_config)); in ixgbe_ptp_set_ts_config() 1330 ixgbe_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in ixgbe_ptp_reset() 1444 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in ixgbe_ptp_create_clock() 1445 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in ixgbe_ptp_create_clock()
|
H A D | ixgbe.h | 770 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_ptp.c | 859 memcpy(&adapter->tstamp_config, &config, in igc_ptp_set_ts_config() 860 sizeof(adapter->tstamp_config)); in igc_ptp_set_ts_config() 878 struct hwtstamp_config *config = &adapter->tstamp_config; in igc_ptp_get_ts_config() 1113 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in igc_ptp_init() 1114 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in igc_ptp_init() 1210 igc_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in igc_ptp_reset()
|
H A D | igc.h | 260 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | hwtstamp.c | 190 memcpy(&ps->tstamp_config, &config, sizeof(config)); in mv88e6xxx_port_hwtstamp_set() 201 struct hwtstamp_config *config = &ps->tstamp_config; in mv88e6xxx_port_hwtstamp_get() 341 if (ps->tstamp_config.rx_filter != HWTSTAMP_FILTER_PTP_V2_EVENT) in mv88e6xxx_port_rxtstamp()
|
H A D | chip.h | 241 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 1116 struct hwtstamp_config *config = &adapter->tstamp_config; in igb_ptp_get_ts_config() 1305 memcpy(&adapter->tstamp_config, &config, in igb_ptp_set_ts_config() 1306 sizeof(adapter->tstamp_config)); in igb_ptp_set_ts_config() 1406 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in igb_ptp_init() 1407 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in igb_ptp_init() 1483 igb_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in igb_ptp_reset()
|
H A D | igb.h | 621 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/dsa/microchip/ |
H A D | ksz_ptp.c | 329 config = &prt->tstamp_config; in ksz_hwtstamp_get() 423 memcpy(&prt->tstamp_config, &config, sizeof(config)); in ksz_hwtstamp_set() 475 if (prt->tstamp_config.tx_type != HWTSTAMP_TX_ONESTEP_P2P) in ksz_port_rxtstamp() 526 if (prt->tstamp_config.tx_type == HWTSTAMP_TX_ONESTEP_P2P) in ksz_port_txtstamp() 532 if (prt->tstamp_config.tx_type == HWTSTAMP_TX_ONESTEP_P2P) { in ksz_port_txtstamp()
|
H A D | ksz_common.h | 123 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ptp.c | 925 struct hwtstamp_config *config = &pf->tstamp_config; in i40e_ptp_get_ts_config() 1322 pf->tstamp_config = config; in i40e_ptp_set_ts_config() 1407 pf->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in i40e_ptp_create_clock() 1408 pf->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in i40e_ptp_create_clock() 1521 i40e_ptp_set_timestamp_mode(pf, &pf->tstamp_config); in i40e_ptp_init()
|
H A D | i40e.h | 711 struct hwtstamp_config tstamp_config; member
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ptp.h | 210 struct hwtstamp_config tstamp_config; member
|
H A D | ice_ptp.c | 288 pf->ptp.tstamp_config.tx_type = on ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in ice_set_tx_tstamp() 312 pf->ptp.tstamp_config.rx_filter = on ? HWTSTAMP_FILTER_ALL : in ice_set_rx_tstamp() 2068 config = &pf->ptp.tstamp_config; in ice_ptp_get_ts_config() 2143 config = pf->ptp.tstamp_config; in ice_ptp_set_ts_config()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac.h | 273 struct hwtstamp_config tstamp_config; member
|
H A D | stmmac_main.c | 798 memcpy(&priv->tstamp_config, &config, sizeof(config)); in stmmac_hwtstamp_set() 816 struct hwtstamp_config *config = &priv->tstamp_config; in stmmac_hwtstamp_get()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 3092 return copy_to_user(req->ifr_data, &pi->tstamp_config, in cxgb_ioctl() 3093 sizeof(pi->tstamp_config)) ? in cxgb_ioctl() 3096 if (copy_from_user(&pi->tstamp_config, req->ifr_data, in cxgb_ioctl() 3097 sizeof(pi->tstamp_config))) in cxgb_ioctl() 3101 switch (pi->tstamp_config.tx_type) { in cxgb_ioctl() 3109 switch (pi->tstamp_config.rx_filter) { in cxgb_ioctl() 3130 pi->tstamp_config.rx_filter = in cxgb_ioctl() 3135 if ((pi->tstamp_config.tx_type == HWTSTAMP_TX_OFF) && in cxgb_ioctl() 3136 (pi->tstamp_config.rx_filter == in cxgb_ioctl() 3142 if (pi->tstamp_config.rx_filter != in cxgb_ioctl() [all …]
|
H A D | cxgb4.h | 677 struct hwtstamp_config tstamp_config; member
|