Home
last modified time | relevance | path

Searched refs:mtu_conf (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dcmsg.c133 spin_lock_bh(&app_priv->mtu_conf.lock); in nfp_flower_process_mtu_ack()
134 if (!app_priv->mtu_conf.requested_val || in nfp_flower_process_mtu_ack()
135 app_priv->mtu_conf.portnum != be32_to_cpu(msg->portnum) || in nfp_flower_process_mtu_ack()
136 be16_to_cpu(msg->mtu) != app_priv->mtu_conf.requested_val) { in nfp_flower_process_mtu_ack()
138 spin_unlock_bh(&app_priv->mtu_conf.lock); in nfp_flower_process_mtu_ack()
142 app_priv->mtu_conf.ack = true; in nfp_flower_process_mtu_ack()
143 app_priv->mtu_conf.requested_val = 0; in nfp_flower_process_mtu_ack()
144 wake_up(&app_priv->mtu_conf.wait_q); in nfp_flower_process_mtu_ack()
145 spin_unlock_bh(&app_priv->mtu_conf.lock); in nfp_flower_process_mtu_ack()
H A Dmain.c824 spin_lock_init(&app_priv->mtu_conf.lock); in nfp_flower_init()
886 spin_lock_bh(&app_priv->mtu_conf.lock); in nfp_flower_check_ack()
887 ret = app_priv->mtu_conf.ack; in nfp_flower_check_ack()
888 spin_unlock_bh(&app_priv->mtu_conf.lock); in nfp_flower_check_ack()
910 spin_lock_bh(&app_priv->mtu_conf.lock); in nfp_flower_repr_change_mtu()
911 app_priv->mtu_conf.ack = false; in nfp_flower_repr_change_mtu()
914 spin_unlock_bh(&app_priv->mtu_conf.lock); in nfp_flower_repr_change_mtu()
919 spin_lock_bh(&app_priv->mtu_conf.lock); in nfp_flower_repr_change_mtu()
920 app_priv->mtu_conf.requested_val = 0; in nfp_flower_repr_change_mtu()
929 spin_lock_bh(&app_priv->mtu_conf.lock); in nfp_flower_repr_change_mtu()
[all …]
H A Dmain.h323 struct nfp_mtu_conf mtu_conf; member