Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c378 struct kernel_hwtstamp_config *tstamp_config) in gem_get_hwtst() argument
382 *tstamp_config = bp->tstamp_config; in gem_get_hwtst()
402 struct kernel_hwtstamp_config *tstamp_config, in gem_set_hwtst() argument
413 switch (tstamp_config->tx_type) { in gem_set_hwtst()
428 switch (tstamp_config->rx_filter) { in gem_set_hwtst()
445 tstamp_config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in gem_set_hwtst()
452 tstamp_config->rx_filter = HWTSTAMP_FILTER_ALL; in gem_set_hwtst()
455 tstamp_config->rx_filter = HWTSTAMP_FILTER_NONE; in gem_set_hwtst()
459 bp->tstamp_config = *tstamp_config; in gem_set_hwtst()
H A Dmacb.h1172 struct kernel_hwtstamp_config *tstamp_config);
1174 struct kernel_hwtstamp_config *tstamp_config,
1327 struct kernel_hwtstamp_config tstamp_config; member
1363 if (bp->tstamp_config.tx_type == TSTAMP_DISABLED) in gem_ptp_do_txstamp()
1371 if (bp->tstamp_config.rx_filter == TSTAMP_DISABLED) in gem_ptp_do_rxstamp()
1378 struct kernel_hwtstamp_config *tstamp_config);
1380 struct kernel_hwtstamp_config *tstamp_config,
/linux-6.15/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ptp.c259 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 Dxgbe-drv.c1514 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 Dxgbe.h1229 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/ethernet/wangxun/libwx/
H A Dwx_ptp.c533 wx->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in wx_ptp_create_clock()
534 wx->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in wx_ptp_create_clock()
734 wx_ptp_set_timestamp_mode(wx, &wx->tstamp_config); in wx_ptp_reset()
858 *cfg = wx->tstamp_config; in wx_hwtstamp_get()
879 memcpy(&wx->tstamp_config, cfg, sizeof(wx->tstamp_config)); in wx_hwtstamp_set()
H A Dwx_type.h1240 struct kernel_hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/dsa/hirschmann/
H A Dhellcreek_hwtstamp.c130 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 Dhellcreek.h247 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c949 struct hwtstamp_config *config = &adapter->tstamp_config; in ixgbe_ptp_get_ts_config()
1152 memcpy(&adapter->tstamp_config, &config, in ixgbe_ptp_set_ts_config()
1153 sizeof(adapter->tstamp_config)); in ixgbe_ptp_set_ts_config()
1338 ixgbe_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in ixgbe_ptp_reset()
1453 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in ixgbe_ptp_create_clock()
1454 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in ixgbe_ptp_create_clock()
H A Dixgbe.h776 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/ethernet/intel/igc/
H A Digc_ptp.c886 memcpy(&adapter->tstamp_config, &config, in igc_ptp_set_ts_config()
887 sizeof(adapter->tstamp_config)); in igc_ptp_set_ts_config()
905 struct hwtstamp_config *config = &adapter->tstamp_config; in igc_ptp_get_ts_config()
1183 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in igc_ptp_init()
1184 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in igc_ptp_init()
1291 igc_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in igc_ptp_reset()
H A Digc.h311 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/dsa/mv88e6xxx/
H A Dhwtstamp.c190 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 Dchip.h244 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/ethernet/intel/igb/
H A Digb_ptp.c1122 struct hwtstamp_config *config = &adapter->tstamp_config; in igb_ptp_get_ts_config()
1311 memcpy(&adapter->tstamp_config, &config, in igb_ptp_set_ts_config()
1312 sizeof(adapter->tstamp_config)); in igb_ptp_set_ts_config()
1412 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in igb_ptp_init()
1413 adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF; in igb_ptp_init()
1489 igb_ptp_set_timestamp_mode(adapter, &adapter->tstamp_config); in igb_ptp_reset()
H A Digb.h628 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/dsa/microchip/
H A Dksz_ptp.c329 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 Dksz_common.h145 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/ethernet/intel/i40e/
H A Di40e_ptp.c925 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()
1522 i40e_ptp_set_timestamp_mode(pf, &pf->tstamp_config); in i40e_ptp_init()
H A Di40e.h663 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c216 enable = pf->ptp.tstamp_config.tx_type == HWTSTAMP_TX_ON; in ice_ptp_cfg_tx_interrupt()
285 enable_rx = pf->ptp.tstamp_config.rx_filter == HWTSTAMP_FILTER_ALL; in ice_ptp_restore_timestamp_mode()
2383 config = &pf->ptp.tstamp_config; in ice_ptp_get_ts_config()
2399 pf->ptp.tstamp_config.tx_type = HWTSTAMP_TX_OFF; in ice_ptp_set_timestamp_mode()
2402 pf->ptp.tstamp_config.tx_type = HWTSTAMP_TX_ON; in ice_ptp_set_timestamp_mode()
2410 pf->ptp.tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in ice_ptp_set_timestamp_mode()
2426 pf->ptp.tstamp_config.rx_filter = HWTSTAMP_FILTER_ALL; in ice_ptp_set_timestamp_mode()
2461 config = pf->ptp.tstamp_config; in ice_ptp_set_ts_config()
H A Dice_ptp.h265 struct hwtstamp_config tstamp_config; member
/linux-6.15/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_main.c3081 sizeof(pi->tstamp_config)) ? in cxgb_ioctl()
3084 if (copy_from_user(&pi->tstamp_config, req->ifr_data, in cxgb_ioctl()
3085 sizeof(pi->tstamp_config))) in cxgb_ioctl()
3089 switch (pi->tstamp_config.tx_type) { in cxgb_ioctl()
3097 switch (pi->tstamp_config.rx_filter) { in cxgb_ioctl()
3118 pi->tstamp_config.rx_filter = in cxgb_ioctl()
3124 (pi->tstamp_config.rx_filter == in cxgb_ioctl()
3130 if (pi->tstamp_config.rx_filter != in cxgb_ioctl()
3138 switch (pi->tstamp_config.rx_filter) { in cxgb_ioctl()
3146 pi->tstamp_config.rx_filter = in cxgb_ioctl()
[all …]
/linux-6.15/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac.h316 struct hwtstamp_config tstamp_config; member

12