Lines Matching refs:parsing
2934 mlxsw_sp->parsing.parsing_depth = MLXSW_SP_DEFAULT_PARSING_DEPTH; in mlxsw_sp_parsing_init()
2935 mlxsw_sp->parsing.vxlan_udp_dport = MLXSW_SP_DEFAULT_VXLAN_UDP_DPORT; in mlxsw_sp_parsing_init()
2936 mutex_init(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_init()
2941 mutex_destroy(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_fini()
4153 mutex_lock(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_depth_inc()
4155 if (refcount_inc_not_zero(&mlxsw_sp->parsing.parsing_depth_ref)) in mlxsw_sp_parsing_depth_inc()
4159 mlxsw_sp->parsing.vxlan_udp_dport); in mlxsw_sp_parsing_depth_inc()
4164 mlxsw_sp->parsing.parsing_depth = MLXSW_SP_INCREASED_PARSING_DEPTH; in mlxsw_sp_parsing_depth_inc()
4165 refcount_set(&mlxsw_sp->parsing.parsing_depth_ref, 1); in mlxsw_sp_parsing_depth_inc()
4168 mutex_unlock(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_depth_inc()
4176 mutex_lock(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_depth_dec()
4178 if (!refcount_dec_and_test(&mlxsw_sp->parsing.parsing_depth_ref)) in mlxsw_sp_parsing_depth_dec()
4182 mlxsw_sp->parsing.vxlan_udp_dport); in mlxsw_sp_parsing_depth_dec()
4184 mlxsw_sp->parsing.parsing_depth = MLXSW_SP_DEFAULT_PARSING_DEPTH; in mlxsw_sp_parsing_depth_dec()
4187 mutex_unlock(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_depth_dec()
4196 mutex_lock(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_vxlan_udp_dport_set()
4198 mlxsw_reg_mprs_pack(mprs_pl, mlxsw_sp->parsing.parsing_depth, in mlxsw_sp_parsing_vxlan_udp_dport_set()
4204 mlxsw_sp->parsing.vxlan_udp_dport = be16_to_cpu(udp_dport); in mlxsw_sp_parsing_vxlan_udp_dport_set()
4207 mutex_unlock(&mlxsw_sp->parsing.lock); in mlxsw_sp_parsing_vxlan_udp_dport_set()