/linux-6.6.21/drivers/net/ethernet/qlogic/qede/ |
D | qede_ptp.c | 27 u16 rx_filter; member 205 enum qed_ptp_filter_type rx_filter = QED_PTP_FILTER_NONE; in qede_ptp_cfg_filters() local 234 switch (ptp->rx_filter) { in qede_ptp_cfg_filters() 236 rx_filter = QED_PTP_FILTER_NONE; in qede_ptp_cfg_filters() 241 ptp->rx_filter = HWTSTAMP_FILTER_NONE; in qede_ptp_cfg_filters() 242 rx_filter = QED_PTP_FILTER_ALL; in qede_ptp_cfg_filters() 245 ptp->rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_EVENT; in qede_ptp_cfg_filters() 246 rx_filter = QED_PTP_FILTER_V1_L4_EVENT; in qede_ptp_cfg_filters() 250 ptp->rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_EVENT; in qede_ptp_cfg_filters() 252 rx_filter = QED_PTP_FILTER_V1_L4_GEN; in qede_ptp_cfg_filters() [all …]
|
/linux-6.6.21/include/linux/ |
D | net_tstamp.h | 33 int rx_filter; member 44 kernel_cfg->rx_filter = cfg->rx_filter; in hwtstamp_config_to_kernel() 52 cfg->rx_filter = kernel_cfg->rx_filter; in hwtstamp_config_from_kernel() 60 a->rx_filter != b->rx_filter; in kernel_hwtstamp_config_changed()
|
/linux-6.6.21/drivers/net/wireless/ti/wl18xx/ |
D | debugfs.c | 124 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, beacon_filter, "%u"); 125 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, arp_filter, "%u"); 126 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, mc_filter, "%u"); 127 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, dup_filter, "%u"); 128 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, data_filter, "%u"); 129 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, ibss_filter, "%u"); 130 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, protection_filter, "%u"); 131 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, accum_arp_pend_requests, "%u"); 132 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, max_arp_queue_dep, "%u"); 507 DEBUGFS_FWSTATS_ADD(rx_filter, beacon_filter); in wl18xx_debugfs_add_files() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | hwtstamp_config.c | 103 config.rx_filter = lookup_value(rx_filters, N_RX_FILTERS, argv[3]); in main() 104 if (config.tx_type < 0 || config.rx_filter < 0) { in main() 130 name = lookup_name(rx_filters, N_RX_FILTERS, config.rx_filter); in main() 134 printf("rx_filter = %d\n", config.rx_filter); in main()
|
D | timestamping.c | 399 hwconfig.rx_filter = in main() 407 hwconfig_requested.rx_filter == HWTSTAMP_FILTER_NONE) in main() 414 hwconfig_requested.rx_filter, hwconfig.rx_filter); in main()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_ptp.c | 289 int rx_filter = cfg->rx_filter; in hclge_ptp_set_rx_mode() local 291 switch (cfg->rx_filter) { in hclge_ptp_set_rx_mode() 301 rx_filter = HWTSTAMP_FILTER_PTP_V1_L4_EVENT; in hclge_ptp_set_rx_mode() 318 rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in hclge_ptp_set_rx_mode() 325 cfg->rx_filter = rx_filter; in hclge_ptp_set_rx_mode() 456 ptp->ts_cfg.rx_filter = HWTSTAMP_FILTER_NONE; in hclge_ptp_create_clock() 538 ptp->ts_cfg.rx_filter = HWTSTAMP_FILTER_NONE; in hclge_ptp_uninit()
|
/linux-6.6.21/drivers/net/wireless/ath/carl9170/ |
D | cmd.h | 66 __le32 rx_filter = cpu_to_le32(_rx_filter); in carl9170_rx_filter() local 69 sizeof(rx_filter), (u8 *)&rx_filter, in carl9170_rx_filter()
|
D | fwcmd.h | 175 __le32 rx_filter; member 241 struct carl9170_rx_filter_cmd rx_filter; member
|
D | main.c | 386 if (ar->fw.rx_filter) { in carl9170_op_start() 1005 if (ar->fw.rx_filter && changed_flags & ar->rx_filter_caps) { in carl9170_op_configure_filter() 1006 u32 rx_filter = 0; in carl9170_op_configure_filter() local 1009 rx_filter |= CARL9170_RX_FILTER_CTL_OTHER; in carl9170_op_configure_filter() 1012 rx_filter |= CARL9170_RX_FILTER_BAD; in carl9170_op_configure_filter() 1015 rx_filter |= CARL9170_RX_FILTER_CTL_OTHER; in carl9170_op_configure_filter() 1018 rx_filter |= CARL9170_RX_FILTER_CTL_PSPOLL; in carl9170_op_configure_filter() 1021 rx_filter |= CARL9170_RX_FILTER_OTHER_RA; in carl9170_op_configure_filter() 1022 rx_filter |= CARL9170_RX_FILTER_DECRY_FAIL; in carl9170_op_configure_filter() 1025 WARN_ON(carl9170_rx_filter(ar, rx_filter)); in carl9170_op_configure_filter()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ptp.c | 499 switch (ptp->rx_filter) { in bnxt_hwrm_ptp_cfg() 523 if (ptp->rx_filter == HWTSTAMP_FILTER_ALL) { in bnxt_hwrm_ptp_cfg() 556 old_rx_filter = ptp->rx_filter; in bnxt_hwtstamp_set() 559 switch (stmpconf.rx_filter) { in bnxt_hwtstamp_set() 562 ptp->rx_filter = HWTSTAMP_FILTER_NONE; in bnxt_hwtstamp_set() 566 ptp->rx_filter = HWTSTAMP_FILTER_ALL; in bnxt_hwtstamp_set() 574 ptp->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in bnxt_hwtstamp_set() 580 ptp->rx_filter = HWTSTAMP_FILTER_PTP_V2_SYNC; in bnxt_hwtstamp_set() 586 ptp->rx_filter = HWTSTAMP_FILTER_PTP_V2_DELAY_REQ; in bnxt_hwtstamp_set() 601 stmpconf.rx_filter = ptp->rx_filter; in bnxt_hwtstamp_set() [all …]
|
D | bnxt_ptp.h | 118 int rx_filter; member
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ptp.c | 1096 enum hwtstamp_rx_filters rx_filter = config->rx_filter; in mlxsw_sp1_ptp_get_message_types() local 1115 switch (rx_filter) { in mlxsw_sp1_ptp_get_message_types() 1149 *p_rx_filter = rx_filter; in mlxsw_sp1_ptp_get_message_types() 1250 enum hwtstamp_rx_filters rx_filter; in mlxsw_sp1_ptp_hwtstamp_set() local 1256 &rx_filter); in mlxsw_sp1_ptp_hwtstamp_set() 1273 config->rx_filter = rx_filter; in mlxsw_sp1_ptp_hwtstamp_set() 1467 enum hwtstamp_rx_filters rx_filter = config->rx_filter; in mlxsw_sp2_ptp_get_message_types() local 1472 *p_rx_filter = rx_filter; in mlxsw_sp2_ptp_get_message_types() 1474 switch (rx_filter) { in mlxsw_sp2_ptp_get_message_types() 1615 enum hwtstamp_rx_filters rx_filter; in mlxsw_sp2_ptp_hwtstamp_set() local [all …]
|
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/ |
D | hwtstamp.c | 118 if (!(BIT(config->rx_filter) & ptp_ops->rx_filters)) { in mv88e6xxx_set_hwtstamp_config() 119 config->rx_filter = HWTSTAMP_FILTER_NONE; in mv88e6xxx_set_hwtstamp_config() 121 config->rx_filter); in mv88e6xxx_set_hwtstamp_config() 125 switch (config->rx_filter) { in mv88e6xxx_set_hwtstamp_config() 138 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in mv88e6xxx_set_hwtstamp_config() 142 config->rx_filter = HWTSTAMP_FILTER_NONE; in mv88e6xxx_set_hwtstamp_config() 341 if (ps->tstamp_config.rx_filter != HWTSTAMP_FILTER_PTP_V2_EVENT) in mv88e6xxx_port_rxtstamp()
|
/linux-6.6.21/drivers/net/dsa/hirschmann/ |
D | hellcreek_hwtstamp.c | 69 switch (config->rx_filter) { in hellcreek_set_hwtstamp_config() 72 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in hellcreek_set_hwtstamp_config() 84 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in hellcreek_set_hwtstamp_config() 90 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in hellcreek_set_hwtstamp_config() 420 if (ps->tstamp_config.rx_filter != HWTSTAMP_FILTER_PTP_V2_EVENT) in hellcreek_port_rxtstamp()
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | debugfs.c | 620 u32 enable, rx_filter = 0, ring_id; in ath11k_write_extd_rx_stats() local 651 rx_filter = HTT_RX_FILTER_TLV_FLAGS_MPDU_START; in ath11k_write_extd_rx_stats() 652 rx_filter |= HTT_RX_FILTER_TLV_FLAGS_PPDU_START; in ath11k_write_extd_rx_stats() 653 rx_filter |= HTT_RX_FILTER_TLV_FLAGS_PPDU_END; in ath11k_write_extd_rx_stats() 654 rx_filter |= HTT_RX_FILTER_TLV_FLAGS_PPDU_END_USER_STATS; in ath11k_write_extd_rx_stats() 655 rx_filter |= HTT_RX_FILTER_TLV_FLAGS_PPDU_END_USER_STATS_EXT; in ath11k_write_extd_rx_stats() 656 rx_filter |= HTT_RX_FILTER_TLV_FLAGS_PPDU_END_STATUS_DONE; in ath11k_write_extd_rx_stats() 658 tlv_filter.rx_filter = rx_filter; in ath11k_write_extd_rx_stats() 668 ar->debug.rx_filter = tlv_filter.rx_filter; in ath11k_write_extd_rx_stats() 1073 u32 rx_filter = 0, ring_id, filter, mode; in ath11k_write_pktlog_filter() local [all …]
|
/linux-6.6.21/drivers/net/phy/mscc/ |
D | mscc_ptp.c | 391 enum hwtstamp_rx_filters rx_filter) in get_ptp_header_rx() argument 396 if (rx_filter == HWTSTAMP_FILTER_PTP_V2_L2_EVENT) in get_ptp_header_rx() 887 if (vsc8531->ptp->rx_filter == HWTSTAMP_FILTER_PTP_V2_L2_EVENT) { in vsc85xx_eth1_conf() 967 ptp_l4 = vsc8531->ptp->rx_filter == HWTSTAMP_FILTER_PTP_V2_L4_EVENT; in vsc85xx_ts_engine_init() 977 if (vsc8531->ptp->rx_filter == HWTSTAMP_FILTER_PTP_V2_L2_EVENT) { in vsc85xx_ts_engine_init() 997 vsc8531->ptp->rx_filter != HWTSTAMP_FILTER_NONE); in vsc85xx_ts_engine_init() 999 ptp_l4 && vsc8531->ptp->rx_filter != HWTSTAMP_FILTER_NONE); in vsc85xx_ts_engine_init() 1001 vsc8531->ptp->rx_filter != HWTSTAMP_FILTER_NONE); in vsc85xx_ts_engine_init() 1015 if (vsc8531->ptp->rx_filter != HWTSTAMP_FILTER_NONE) in vsc85xx_ts_engine_init() 1074 switch (cfg.rx_filter) { in vsc85xx_hwtstamp() [all …]
|
/linux-6.6.21/drivers/net/ethernet/engleder/ |
D | tsnep_ptp.c | 42 switch (config.rx_filter) { in tsnep_ptp_ioctl() 59 config.rx_filter = HWTSTAMP_FILTER_ALL; in tsnep_ptp_ioctl() 209 adapter->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in tsnep_ptp_init()
|
/linux-6.6.21/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 435 switch (tstamp_config->rx_filter) { in gem_set_hwtst() 452 tstamp_config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in gem_set_hwtst() 459 tstamp_config->rx_filter = HWTSTAMP_FILTER_ALL; in gem_set_hwtst() 462 tstamp_config->rx_filter = HWTSTAMP_FILTER_NONE; in gem_set_hwtst()
|
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/ |
D | ionic_phc.c | 112 rx_filt = ionic_hwstamp_rx_filt(config->rx_filter); in ionic_lif_hwstamp_set_ts_config() 113 rx_all = config->rx_filter != HWTSTAMP_FILTER_NONE && !rx_filt; in ionic_lif_hwstamp_set_ts_config() 119 config->rx_filter = HWTSTAMP_FILTER_ALL; in ionic_lif_hwstamp_set_ts_config() 123 __func__, config->rx_filter, rx_filt, rx_all); in ionic_lif_hwstamp_set_ts_config() 149 if (rx_all != (lif->phc->ts_config.rx_filter == HWTSTAMP_FILTER_ALL)) { in ionic_lif_hwstamp_set_ts_config()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 996 switch (config->rx_filter) { in ixgbe_ptp_set_timestamp_mode() 1026 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in ixgbe_ptp_set_timestamp_mode() 1038 config->rx_filter = HWTSTAMP_FILTER_ALL; in ixgbe_ptp_set_timestamp_mode() 1050 config->rx_filter = HWTSTAMP_FILTER_NONE; in ixgbe_ptp_set_timestamp_mode() 1074 if (config->rx_filter == HWTSTAMP_FILTER_NONE) in ixgbe_ptp_set_timestamp_mode() 1080 config->rx_filter = HWTSTAMP_FILTER_ALL; in ixgbe_ptp_set_timestamp_mode() 1444 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in ixgbe_ptp_create_clock()
|
/linux-6.6.21/drivers/net/wireless/st/cw1200/ |
D | debug.c | 129 if (priv->rx_filter.promiscuous) in cw1200_status_show() 131 else if (priv->rx_filter.fcs) in cw1200_status_show() 133 if (priv->rx_filter.bssid) in cw1200_status_show()
|
/linux-6.6.21/include/uapi/linux/ |
D | net_tstamp.h | 79 int rx_filter; member
|
/linux-6.6.21/net/core/ |
D | dev_ioctl.c | 190 enum hwtstamp_rx_filters rx_filter; in net_hwtstamp_validate() local 198 rx_filter = cfg->rx_filter; in net_hwtstamp_validate() 212 switch (rx_filter) { in net_hwtstamp_validate()
|
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ptp.c | 106 switch (cfg->rx_filter) { in sparx5_ptp_hwtstamp_set() 123 cfg->rx_filter = HWTSTAMP_FILTER_ALL; in sparx5_ptp_hwtstamp_set() 587 phc->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in sparx5_ptp_phc_init()
|
/linux-6.6.21/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 1160 switch (config->rx_filter) { in igb_ptp_set_timestamp_mode() 1184 config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; in igb_ptp_set_timestamp_mode() 1196 config->rx_filter = HWTSTAMP_FILTER_ALL; in igb_ptp_set_timestamp_mode() 1201 config->rx_filter = HWTSTAMP_FILTER_NONE; in igb_ptp_set_timestamp_mode() 1218 config->rx_filter = HWTSTAMP_FILTER_ALL; in igb_ptp_set_timestamp_mode() 1406 adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in igb_ptp_init()
|