hwtstamp_config
struct hwtstamp_config cfg;
struct kernel_hwtstamp_config hwtstamp_config;
*config = aq_ptp->hwtstamp_config;
aq_ptp->hwtstamp_config = *config;
struct kernel_hwtstamp_config hwtstamp_config;
if (rx->adapter->hwtstamp_config.rx_filter == HWTSTAMP_FILTER_ALL) {
tx->adapter->hwtstamp_config.tx_type == HWTSTAMP_TX_ON) {
adapter->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
adapter->hwtstamp_config.tx_type = HWTSTAMP_TX_OFF;
*config = adapter->hwtstamp_config;
adapter->hwtstamp_config = *config;
struct kernel_hwtstamp_config hwtstamp_config;
adapter->hwtstamp_config = *config;
ret_val = e1000e_config_hwtstamp(adapter, &adapter->hwtstamp_config,
if (adapter->hwtstamp_config.rx_filter != HWTSTAMP_FILTER_NONE) {
*kernel_config = adapter->hwtstamp_config;
*config = adapter->ptp.hwtstamp_config;
adapter->ptp.hwtstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
adapter->ptp.hwtstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
adapter->ptp.hwtstamp_config = *config;
struct kernel_hwtstamp_config hwtstamp_config;
if ((cq->type != RX && priv->hwtstamp_config.tx_type) ||
(cq->type == RX && priv->hwtstamp_config.rx_filter))
memcpy(&dst->hwtstamp_config, &prof->hwtstamp_config,
sizeof(dst->hwtstamp_config));
memcpy(&dst->hwtstamp_config, &src->hwtstamp_config,
sizeof(dst->hwtstamp_config));
*config = priv->hwtstamp_config;
ret = mlx4_en_reset_config(netdev, &priv->hwtstamp_config,
priv->hwtstamp_config.flags = 0;
priv->hwtstamp_config.tx_type = HWTSTAMP_TX_OFF;
priv->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
if (priv->hwtstamp_config.tx_type == ts_config->tx_type &&
priv->hwtstamp_config.rx_filter == ts_config->rx_filter &&
(priv->hwtstamp_config.rx_filter != HWTSTAMP_FILTER_NONE)) {
memcpy(&new_prof.hwtstamp_config, ts_config, sizeof(*ts_config));
ring->hwtstamp_rx_filter = priv->hwtstamp_config.rx_filter;
ring->hwtstamp_tx_type = priv->hwtstamp_config.tx_type;
struct kernel_hwtstamp_config hwtstamp_config;
struct kernel_hwtstamp_config hwtstamp_config;
struct kernel_hwtstamp_config *hwtstamp_config;
struct kernel_hwtstamp_config hwtstamp_config;
rq->hwtstamp_config = &priv->hwtstamp_config;
priv->hwtstamp_config.rx_filter);
rq->hwtstamp_config = &priv->hwtstamp_config;
if (unlikely(!mlx5e_rx_hw_stamp(_ctx->rq->hwtstamp_config)))
rq->hwtstamp_config = &c->priv->hwtstamp_config;
rx_filter = priv->hwtstamp_config.rx_filter != HWTSTAMP_FILTER_NONE;
priv->hwtstamp_config.tx_type = HWTSTAMP_TX_OFF;
priv->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
priv->hwtstamp_config = *config;
*config = priv->hwtstamp_config;
rq->hwtstamp_config = &c->priv->hwtstamp_config;
if (unlikely(mlx5e_rx_hw_stamp(rq->hwtstamp_config)))
if (unlikely(mlx5e_rx_hw_stamp(&priv->hwtstamp_config)))
struct kernel_hwtstamp_config hwtstamp_config;
*config = mlxsw_sp_port->ptp.hwtstamp_config;
mlxsw_sp_port->ptp.hwtstamp_config = *config;
*config = fbn->hwtstamp_config;
if (!kernel_hwtstamp_config_changed(config, &fbn->hwtstamp_config))
old_rx_filter = fbn->hwtstamp_config.rx_filter;
memcpy(&fbn->hwtstamp_config, config, sizeof(*config));
struct kernel_hwtstamp_config hwtstamp_config;
if (fbn->hwtstamp_config.rx_filter != HWTSTAMP_FILTER_NONE) {
switch (fbn->hwtstamp_config.rx_filter) {
if (fbn->hwtstamp_config.tx_type == HWTSTAMP_TX_OFF)
struct kernel_hwtstamp_config hwtstamp_config;
phc->hwtstamp_config = *cfg;
*cfg = phc->hwtstamp_config;
struct kernel_hwtstamp_config hwtstamp_config;
phc->hwtstamp_config = *cfg;
*cfg = phc->hwtstamp_config;
phc->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
struct hwtstamp_config;
struct hwtstamp_config;
struct hwtstamp_config cfg;
const struct hwtstamp_config *cfg)
static inline void hwtstamp_config_from_kernel(struct hwtstamp_config *cfg,
struct hwtstamp_config cfg;
struct hwtstamp_config cfg;
static void hwtstamp_ioctl(int op, const char *ifname, struct hwtstamp_config *cfg)
static struct hwtstamp_config saved_hwtstamp_cfg;
struct hwtstamp_config cfg = {
struct hwtstamp_config config;
struct hwtstamp_config hwconfig, hwconfig_requested;