Lines Matching refs:qevent_binding

1763 					  struct mlxsw_sp_qevent_binding *qevent_binding,  in mlxsw_sp_qevent_span_configure()  argument
1767 enum mlxsw_sp_span_trigger span_trigger = qevent_binding->span_trigger; in mlxsw_sp_qevent_span_configure()
1768 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; in mlxsw_sp_qevent_span_configure()
1791 qevent_binding->tclass_num); in mlxsw_sp_qevent_span_configure()
1809 struct mlxsw_sp_qevent_binding *qevent_binding, in mlxsw_sp_qevent_span_deconfigure() argument
1812 enum mlxsw_sp_span_trigger span_trigger = qevent_binding->span_trigger; in mlxsw_sp_qevent_span_deconfigure()
1813 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; in mlxsw_sp_qevent_span_deconfigure()
1822 qevent_binding->tclass_num); in mlxsw_sp_qevent_span_deconfigure()
1831 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_mirror_configure() argument
1837 return mlxsw_sp_qevent_span_configure(mlxsw_sp, mall_entry, qevent_binding, in mlxsw_sp_qevent_mirror_configure()
1843 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_mirror_deconfigure() argument
1845 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_deconfigure()
1850 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_trap_configure() argument
1864 return mlxsw_sp_qevent_span_configure(mlxsw_sp, mall_entry, qevent_binding, in mlxsw_sp_qevent_trap_configure()
1870 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_trap_deconfigure() argument
1872 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->trap.span_id); in mlxsw_sp_qevent_trap_deconfigure()
1878 struct mlxsw_sp_qevent_binding *qevent_binding, in mlxsw_sp_qevent_entry_configure() argument
1881 if (!(BIT(mall_entry->type) & qevent_binding->action_mask)) { in mlxsw_sp_qevent_entry_configure()
1888 return mlxsw_sp_qevent_mirror_configure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_configure()
1890 return mlxsw_sp_qevent_trap_configure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_configure()
1900 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_entry_deconfigure() argument
1904 return mlxsw_sp_qevent_mirror_deconfigure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_deconfigure()
1906 return mlxsw_sp_qevent_trap_deconfigure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_deconfigure()
1915 struct mlxsw_sp_qevent_binding *qevent_binding, in mlxsw_sp_qevent_binding_configure() argument
1923 qevent_binding, extack); in mlxsw_sp_qevent_binding_configure()
1933 qevent_binding); in mlxsw_sp_qevent_binding_configure()
1938 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_binding_deconfigure() argument
1944 qevent_binding); in mlxsw_sp_qevent_binding_deconfigure()
1951 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_qevent_block_configure() local
1954 list_for_each_entry(qevent_binding, &qevent_block->binding_list, list) { in mlxsw_sp_qevent_block_configure()
1956 qevent_binding, in mlxsw_sp_qevent_block_configure()
1965 list_for_each_entry_continue_reverse(qevent_binding, &qevent_block->binding_list, list) in mlxsw_sp_qevent_block_configure()
1966 mlxsw_sp_qevent_binding_deconfigure(qevent_block, qevent_binding); in mlxsw_sp_qevent_block_configure()
1972 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_qevent_block_deconfigure() local
1974 list_for_each_entry(qevent_binding, &qevent_block->binding_list, list) in mlxsw_sp_qevent_block_deconfigure()
1975 mlxsw_sp_qevent_binding_deconfigure(qevent_block, qevent_binding); in mlxsw_sp_qevent_block_deconfigure()
2159 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_qevent_binding_lookup() local
2161 list_for_each_entry(qevent_binding, &block->binding_list, list) in mlxsw_sp_qevent_binding_lookup()
2162 if (qevent_binding->mlxsw_sp_port == mlxsw_sp_port && in mlxsw_sp_qevent_binding_lookup()
2163 qevent_binding->handle == handle && in mlxsw_sp_qevent_binding_lookup()
2164 qevent_binding->span_trigger == span_trigger) in mlxsw_sp_qevent_binding_lookup()
2165 return qevent_binding; in mlxsw_sp_qevent_binding_lookup()
2176 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_setup_tc_block_qevent_bind() local
2215 qevent_binding = mlxsw_sp_qevent_binding_create(mlxsw_sp_port, in mlxsw_sp_setup_tc_block_qevent_bind()
2220 if (IS_ERR(qevent_binding)) { in mlxsw_sp_setup_tc_block_qevent_bind()
2221 err = PTR_ERR(qevent_binding); in mlxsw_sp_setup_tc_block_qevent_bind()
2225 err = mlxsw_sp_qevent_binding_configure(qevent_block, qevent_binding, in mlxsw_sp_setup_tc_block_qevent_bind()
2230 list_add(&qevent_binding->list, &qevent_block->binding_list); in mlxsw_sp_setup_tc_block_qevent_bind()
2240 mlxsw_sp_qevent_binding_destroy(qevent_binding); in mlxsw_sp_setup_tc_block_qevent_bind()
2254 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_setup_tc_block_qevent_unbind() local
2263 qevent_binding = mlxsw_sp_qevent_binding_lookup(qevent_block, mlxsw_sp_port, f->sch->handle, in mlxsw_sp_setup_tc_block_qevent_unbind()
2265 if (!qevent_binding) in mlxsw_sp_setup_tc_block_qevent_unbind()
2268 list_del(&qevent_binding->list); in mlxsw_sp_setup_tc_block_qevent_unbind()
2269 mlxsw_sp_qevent_binding_deconfigure(qevent_block, qevent_binding); in mlxsw_sp_setup_tc_block_qevent_unbind()
2270 mlxsw_sp_qevent_binding_destroy(qevent_binding); in mlxsw_sp_setup_tc_block_qevent_unbind()